@reyaxyz/api-sdk 0.54.0 → 0.54.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"/","sources":["clients/modules/funding-rate/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA;IAIE,2BAAY,YAA2B;QAH/B,aAAQ,GAAkB,IAAI,CAAC;QAC/B,eAAU,GAAyC,IAAI,CAAC;QAG9D,oBAAoB;QACpB,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;IACnC,CAAC;IAED,qEAAqE;IAC/D,+BAAG,GAAT,UAAU,MAAqC;;;;;;wBAC7C,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;wBAEhC,KAAA,IAAI,CAAA;wBAAc,qBAAM,IAAI,CAAC,oBAAoB,CAAC,MAAM,CAAC,EAAA;;wBAAzD,GAAK,UAAU,GAAG,SAAuC,CAAC;;;;;KAC3D;IAEa,gDAAoB,GAAlC,UACE,MAAqC;;;gBAErC,sBAAO,IAAI,CAAC,YAAY,CAAC,uBAAuB,CAAC,MAAM,CAAC,EAAC;;;KAC1D;IAED,uCAAW,GAAX,UAAY,MAA6B;QACvC,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;YACrB,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;QACxD,CAAC;QAED,IAAI,MAAM,CAAC,UAAU,KAAK,IAAI;YAAE,OAAO,IAAI,CAAC,UAAU,CAAC;QAEvD,IAAM,aAAa,GAAG,MAAM,CAAC,UAAU,KAAK,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,GAAG,GAAG,CAAC;QAElE,OAAO;YACL,WAAW,EAAE,IAAI,CAAC,UAAU,CAAC,WAAW,GAAG,aAAa;YACxD,eAAe,EAAE,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC,GAAG,CAAC,UAAC,KAAK;gBACzD,OAAO;oBACL,aAAa,EAAE,KAAK,CAAC,aAAa;oBAClC,KAAK,EAAE,KAAK,CAAC,KAAK,GAAG,aAAa;iBACnC,CAAC;YACJ,CAAC,CAAC;SACH,CAAC;IACJ,CAAC;IACH,wBAAC;AAAD,CAAC,AAzCD,IAyCC","sourcesContent":["import { FundingRateResolution } from './types';\nimport { GetFundingRateChartDataParams } from '../markets/types';\nimport MarketsClient from '../markets';\nimport { GetFundingRateChartDataResult } from '@reyaxyz/common';\n\nexport default class FundingRateClient {\n private marketId: number | null = null;\n private loadedData: GetFundingRateChartDataResult | null = null;\n private marketClient: MarketsClient;\n constructor(marketClient: MarketsClient) {\n // Constructor added\n this.marketClient = marketClient;\n }\n\n // Method to asynchronously load data based on marketId and accountId\n async arm(params: GetFundingRateChartDataParams): Promise<void> {\n this.marketId = params.marketId;\n\n this.loadedData = await this.fetchFundingRateData(params);\n }\n\n private async fetchFundingRateData(\n params: GetFundingRateChartDataParams,\n ): Promise<GetFundingRateChartDataResult> {\n return this.marketClient.getFundingRateChartData(params);\n }\n\n createGraph(params: FundingRateResolution): GetFundingRateChartDataResult {\n if (!this.loadedData) {\n throw new Error('Data not loaded. Call arm() first.');\n }\n\n if (params.resolution === '1h') return this.loadedData;\n\n const multiplicator = params.resolution === '24h' ? 24 : 24 * 365;\n\n return {\n fundingRate: this.loadedData.fundingRate * multiplicator,\n fundingRateData: this.loadedData.fundingRateData.map((point) => {\n return {\n timestampInMs: point.timestampInMs,\n value: point.value * multiplicator,\n };\n }),\n };\n }\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"/","sources":["clients/modules/funding-rate/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA;IAIE,2BAAY,YAA2B;QAH/B,aAAQ,GAAkB,IAAI,CAAC;QAC/B,eAAU,GAAyC,IAAI,CAAC;QAG9D,oBAAoB;QACpB,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;IACnC,CAAC;IAED,qEAAqE;IAC/D,+BAAG,GAAT,UAAU,MAAqC;;;;;;wBAC7C,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;wBAEhC,KAAA,IAAI,CAAA;wBAAc,qBAAM,IAAI,CAAC,oBAAoB,CAAC,MAAM,CAAC,EAAA;;wBAAzD,GAAK,UAAU,GAAG,SAAuC,CAAC;;;;;KAC3D;IAEa,gDAAoB,GAAlC,UACE,MAAqC;;;gBAErC,sBAAO,IAAI,CAAC,YAAY,CAAC,uBAAuB,CAAC,MAAM,CAAC,EAAC;;;KAC1D;IAED,uCAAW,GAAX,UACE,MAAwC;QAExC,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;YACrB,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;QACxD,CAAC;QAED,IAAI,MAAM,CAAC,UAAU,KAAK,IAAI;YAAE,OAAO,IAAI,CAAC,UAAU,CAAC;QAEvD,IAAM,aAAa,GAAG,MAAM,CAAC,UAAU,KAAK,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,GAAG,GAAG,CAAC;QAElE,OAAO;YACL,WAAW,EAAE,IAAI,CAAC,UAAU,CAAC,WAAW,GAAG,aAAa;YACxD,eAAe,EAAE,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC,GAAG,CAAC,UAAC,KAAK;gBACzD,OAAO;oBACL,aAAa,EAAE,KAAK,CAAC,aAAa;oBAClC,KAAK,EAAE,KAAK,CAAC,KAAK,GAAG,aAAa;iBACnC,CAAC;YACJ,CAAC,CAAC;SACH,CAAC;IACJ,CAAC;IACH,wBAAC;AAAD,CAAC,AA3CD,IA2CC","sourcesContent":["import { CreateFundingRateChartDataParams } from './types';\nimport MarketsClient from '../markets';\nimport { GetFundingRateChartDataResult } from '@reyaxyz/common';\nimport { GetFundingRateChartDataParams } from '../markets/types';\n\nexport default class FundingRateClient {\n private marketId: number | null = null;\n private loadedData: GetFundingRateChartDataResult | null = null;\n private marketClient: MarketsClient;\n constructor(marketClient: MarketsClient) {\n // Constructor added\n this.marketClient = marketClient;\n }\n\n // Method to asynchronously load data based on marketId and accountId\n async arm(params: GetFundingRateChartDataParams): Promise<void> {\n this.marketId = params.marketId;\n\n this.loadedData = await this.fetchFundingRateData(params);\n }\n\n private async fetchFundingRateData(\n params: GetFundingRateChartDataParams,\n ): Promise<GetFundingRateChartDataResult> {\n return this.marketClient.getFundingRateChartData(params);\n }\n\n createGraph(\n params: CreateFundingRateChartDataParams,\n ): GetFundingRateChartDataResult {\n if (!this.loadedData) {\n throw new Error('Data not loaded. Call arm() first.');\n }\n\n if (params.resolution === '1h') return this.loadedData;\n\n const multiplicator = params.resolution === '24h' ? 24 : 24 * 365;\n\n return {\n fundingRate: this.loadedData.fundingRate * multiplicator,\n fundingRateData: this.loadedData.fundingRateData.map((point) => {\n return {\n timestampInMs: point.timestampInMs,\n value: point.value * multiplicator,\n };\n }),\n };\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"/","sources":["clients/modules/funding-rate/types.ts"],"names":[],"mappings":"","sourcesContent":["export type FundingRateResolution = {\n resolution: '1h' | '24h' | '1y';\n};\n"]}
1
+ {"version":3,"file":"types.js","sourceRoot":"/","sources":["clients/modules/funding-rate/types.ts"],"names":[],"mappings":"","sourcesContent":["export type CreateFundingRateChartDataParams = {\n resolution: '1h' | '24h' | '1y';\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"/","sources":["clients/types.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,qDAAqD;AACrD,0CAyByB;AAvBvB,2GAAA,iBAAiB,OAAA;AAYjB,qGAAA,WAAW,OAAA;AACX,2GAAA,iBAAiB,OAAA;AAGjB,8GAAA,oBAAoB,OAAA;AACpB,yHAAA,+BAA+B,OAAA;AAE/B,oIAAA,0CAA0C,OAAA;AAG1C,6HAAA,mCAAmC,OAAA;AAErC,0DAAwC;AACxC,qDAAmC;AACnC,0DAAwC;AACxC,yDAAuC;AACvC,mEAAiD;AACjD,wDAAsC;AACtC,iFAA+D;AAC/D,4EAA0D;AAC1D,6EAA2D;AAC3D,yEAAuD;AACvD,yFAAuE;AACvE,8EAA4D;AAC5D,+DAA6C","sourcesContent":["// reexporting what we want to share with integrators\nexport {\n Candle,\n CandlesResolution,\n MarketEntity,\n LpTransactionHistoryEntity,\n TradingHistoryEntity,\n PositionHistoryEntity,\n PositionEntity,\n TransactionHistoryType,\n MarginAccountTransactionHistoryType,\n MarginAccountTransactionHistoryEntity,\n MarginAccountEntity,\n LpPositionEntity,\n LpPoolEntity,\n ReyaChainId,\n MoneyInOutChainId,\n GetLpPoolPerformanceChartDataResult,\n GetLpPoolBalanceChartDataResult,\n LpBalanceGranularity,\n MarginAccountBalanceGranularity,\n GetMarginAccountBalanceChartDataResult,\n MarginAccountCollateralsBalanceGranularity,\n GetMarginAccountCollateralsBalanceChartDataResult,\n GetAllMarginAccountsBalanceChartDataResult,\n AllMarginAccountsBalanceGranularity,\n} from '@reyaxyz/common';\nexport * from './modules/account/types';\nexport * from './modules/lp/types';\nexport * from './modules/markets/types';\nexport * from './modules/tokens/types';\nexport * from './modules/trade.simulation/types';\nexport * from './modules/owner/types';\nexport * from './modules/deposit-existing-MA.simulation/types';\nexport * from './modules/deposit-new-MA.simulation/types';\nexport * from './modules/edit-collateral.simulation/types';\nexport * from './modules/withdraw-MA.simulation/types';\nexport * from './modules/transfer-margin-between-MAs.simulation/types';\nexport * from './modules/transfer-MA-Pool.simulation/types';\nexport * from './modules/funding-rate/types';\n"]}
1
+ {"version":3,"file":"types.js","sourceRoot":"/","sources":["clients/types.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,qDAAqD;AACrD,0CA0ByB;AAxBvB,2GAAA,iBAAiB,OAAA;AAYjB,qGAAA,WAAW,OAAA;AACX,2GAAA,iBAAiB,OAAA;AAGjB,8GAAA,oBAAoB,OAAA;AACpB,yHAAA,+BAA+B,OAAA;AAE/B,oIAAA,0CAA0C,OAAA;AAG1C,6HAAA,mCAAmC,OAAA;AAGrC,0DAAwC;AACxC,qDAAmC;AACnC,0DAAwC;AACxC,yDAAuC;AACvC,mEAAiD;AACjD,wDAAsC;AACtC,iFAA+D;AAC/D,4EAA0D;AAC1D,6EAA2D;AAC3D,yEAAuD;AACvD,yFAAuE;AACvE,8EAA4D;AAC5D,+DAA6C","sourcesContent":["// reexporting what we want to share with integrators\nexport {\n Candle,\n CandlesResolution,\n MarketEntity,\n LpTransactionHistoryEntity,\n TradingHistoryEntity,\n PositionHistoryEntity,\n PositionEntity,\n TransactionHistoryType,\n MarginAccountTransactionHistoryType,\n MarginAccountTransactionHistoryEntity,\n MarginAccountEntity,\n LpPositionEntity,\n LpPoolEntity,\n ReyaChainId,\n MoneyInOutChainId,\n GetLpPoolPerformanceChartDataResult,\n GetLpPoolBalanceChartDataResult,\n LpBalanceGranularity,\n MarginAccountBalanceGranularity,\n GetMarginAccountBalanceChartDataResult,\n MarginAccountCollateralsBalanceGranularity,\n GetMarginAccountCollateralsBalanceChartDataResult,\n GetAllMarginAccountsBalanceChartDataResult,\n AllMarginAccountsBalanceGranularity,\n GetFundingRateChartDataResult,\n} from '@reyaxyz/common';\nexport * from './modules/account/types';\nexport * from './modules/lp/types';\nexport * from './modules/markets/types';\nexport * from './modules/tokens/types';\nexport * from './modules/trade.simulation/types';\nexport * from './modules/owner/types';\nexport * from './modules/deposit-existing-MA.simulation/types';\nexport * from './modules/deposit-new-MA.simulation/types';\nexport * from './modules/edit-collateral.simulation/types';\nexport * from './modules/withdraw-MA.simulation/types';\nexport * from './modules/transfer-margin-between-MAs.simulation/types';\nexport * from './modules/transfer-MA-Pool.simulation/types';\nexport * from './modules/funding-rate/types';\n"]}
@@ -1,7 +1,7 @@
1
- import { FundingRateResolution } from './types';
2
- import { GetFundingRateChartDataParams } from '../markets/types';
1
+ import { CreateFundingRateChartDataParams } from './types';
3
2
  import MarketsClient from '../markets';
4
3
  import { GetFundingRateChartDataResult } from '@reyaxyz/common';
4
+ import { GetFundingRateChartDataParams } from '../markets/types';
5
5
  export default class FundingRateClient {
6
6
  private marketId;
7
7
  private loadedData;
@@ -9,6 +9,6 @@ export default class FundingRateClient {
9
9
  constructor(marketClient: MarketsClient);
10
10
  arm(params: GetFundingRateChartDataParams): Promise<void>;
11
11
  private fetchFundingRateData;
12
- createGraph(params: FundingRateResolution): GetFundingRateChartDataResult;
12
+ createGraph(params: CreateFundingRateChartDataParams): GetFundingRateChartDataResult;
13
13
  }
14
14
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["clients/modules/funding-rate/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAChD,OAAO,EAAE,6BAA6B,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,aAAa,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,6BAA6B,EAAE,MAAM,iBAAiB,CAAC;AAEhE,MAAM,CAAC,OAAO,OAAO,iBAAiB;IACpC,OAAO,CAAC,QAAQ,CAAuB;IACvC,OAAO,CAAC,UAAU,CAA8C;IAChE,OAAO,CAAC,YAAY,CAAgB;gBACxB,YAAY,EAAE,aAAa;IAMjC,GAAG,CAAC,MAAM,EAAE,6BAA6B,GAAG,OAAO,CAAC,IAAI,CAAC;YAMjD,oBAAoB;IAMlC,WAAW,CAAC,MAAM,EAAE,qBAAqB,GAAG,6BAA6B;CAmB1E"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["clients/modules/funding-rate/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gCAAgC,EAAE,MAAM,SAAS,CAAC;AAC3D,OAAO,aAAa,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,6BAA6B,EAAE,MAAM,iBAAiB,CAAC;AAChE,OAAO,EAAE,6BAA6B,EAAE,MAAM,kBAAkB,CAAC;AAEjE,MAAM,CAAC,OAAO,OAAO,iBAAiB;IACpC,OAAO,CAAC,QAAQ,CAAuB;IACvC,OAAO,CAAC,UAAU,CAA8C;IAChE,OAAO,CAAC,YAAY,CAAgB;gBACxB,YAAY,EAAE,aAAa;IAMjC,GAAG,CAAC,MAAM,EAAE,6BAA6B,GAAG,OAAO,CAAC,IAAI,CAAC;YAMjD,oBAAoB;IAMlC,WAAW,CACT,MAAM,EAAE,gCAAgC,GACvC,6BAA6B;CAmBjC"}
@@ -1,4 +1,4 @@
1
- export type FundingRateResolution = {
1
+ export type CreateFundingRateChartDataParams = {
2
2
  resolution: '1h' | '24h' | '1y';
3
3
  };
4
4
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"/","sources":["clients/modules/funding-rate/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,qBAAqB,GAAG;IAClC,UAAU,EAAE,IAAI,GAAG,KAAK,GAAG,IAAI,CAAC;CACjC,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"/","sources":["clients/modules/funding-rate/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gCAAgC,GAAG;IAC7C,UAAU,EAAE,IAAI,GAAG,KAAK,GAAG,IAAI,CAAC;CACjC,CAAC"}
@@ -1,4 +1,4 @@
1
- export { Candle, CandlesResolution, MarketEntity, LpTransactionHistoryEntity, TradingHistoryEntity, PositionHistoryEntity, PositionEntity, TransactionHistoryType, MarginAccountTransactionHistoryType, MarginAccountTransactionHistoryEntity, MarginAccountEntity, LpPositionEntity, LpPoolEntity, ReyaChainId, MoneyInOutChainId, GetLpPoolPerformanceChartDataResult, GetLpPoolBalanceChartDataResult, LpBalanceGranularity, MarginAccountBalanceGranularity, GetMarginAccountBalanceChartDataResult, MarginAccountCollateralsBalanceGranularity, GetMarginAccountCollateralsBalanceChartDataResult, GetAllMarginAccountsBalanceChartDataResult, AllMarginAccountsBalanceGranularity, } from '@reyaxyz/common';
1
+ export { Candle, CandlesResolution, MarketEntity, LpTransactionHistoryEntity, TradingHistoryEntity, PositionHistoryEntity, PositionEntity, TransactionHistoryType, MarginAccountTransactionHistoryType, MarginAccountTransactionHistoryEntity, MarginAccountEntity, LpPositionEntity, LpPoolEntity, ReyaChainId, MoneyInOutChainId, GetLpPoolPerformanceChartDataResult, GetLpPoolBalanceChartDataResult, LpBalanceGranularity, MarginAccountBalanceGranularity, GetMarginAccountBalanceChartDataResult, MarginAccountCollateralsBalanceGranularity, GetMarginAccountCollateralsBalanceChartDataResult, GetAllMarginAccountsBalanceChartDataResult, AllMarginAccountsBalanceGranularity, GetFundingRateChartDataResult, } from '@reyaxyz/common';
2
2
  export * from './modules/account/types';
3
3
  export * from './modules/lp/types';
4
4
  export * from './modules/markets/types';
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"/","sources":["clients/types.ts"],"names":[],"mappings":"AACA,OAAO,EACL,MAAM,EACN,iBAAiB,EACjB,YAAY,EACZ,0BAA0B,EAC1B,oBAAoB,EACpB,qBAAqB,EACrB,cAAc,EACd,sBAAsB,EACtB,mCAAmC,EACnC,qCAAqC,EACrC,mBAAmB,EACnB,gBAAgB,EAChB,YAAY,EACZ,WAAW,EACX,iBAAiB,EACjB,mCAAmC,EACnC,+BAA+B,EAC/B,oBAAoB,EACpB,+BAA+B,EAC/B,sCAAsC,EACtC,0CAA0C,EAC1C,iDAAiD,EACjD,0CAA0C,EAC1C,mCAAmC,GACpC,MAAM,iBAAiB,CAAC;AACzB,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kCAAkC,CAAC;AACjD,cAAc,uBAAuB,CAAC;AACtC,cAAc,gDAAgD,CAAC;AAC/D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,wCAAwC,CAAC;AACvD,cAAc,wDAAwD,CAAC;AACvE,cAAc,6CAA6C,CAAC;AAC5D,cAAc,8BAA8B,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"/","sources":["clients/types.ts"],"names":[],"mappings":"AACA,OAAO,EACL,MAAM,EACN,iBAAiB,EACjB,YAAY,EACZ,0BAA0B,EAC1B,oBAAoB,EACpB,qBAAqB,EACrB,cAAc,EACd,sBAAsB,EACtB,mCAAmC,EACnC,qCAAqC,EACrC,mBAAmB,EACnB,gBAAgB,EAChB,YAAY,EACZ,WAAW,EACX,iBAAiB,EACjB,mCAAmC,EACnC,+BAA+B,EAC/B,oBAAoB,EACpB,+BAA+B,EAC/B,sCAAsC,EACtC,0CAA0C,EAC1C,iDAAiD,EACjD,0CAA0C,EAC1C,mCAAmC,EACnC,6BAA6B,GAC9B,MAAM,iBAAiB,CAAC;AACzB,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kCAAkC,CAAC;AACjD,cAAc,uBAAuB,CAAC;AACtC,cAAc,gDAAgD,CAAC;AAC/D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,wCAAwC,CAAC;AACvD,cAAc,wDAAwD,CAAC;AACvE,cAAc,6CAA6C,CAAC;AAC5D,cAAc,8BAA8B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reyaxyz/api-sdk",
3
- "version": "0.54.0",
3
+ "version": "0.54.1",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -37,5 +37,5 @@
37
37
  "bignumber.js": "^9.1.2"
38
38
  },
39
39
  "packageManager": "pnpm@8.10.4",
40
- "gitHead": "61e86b6c82a2fd2a8df1e9a4cd55092fdd7a5411"
40
+ "gitHead": "1cf7066c2c102a2a44dfb66a40d5446094146325"
41
41
  }
@@ -1,7 +1,7 @@
1
- import { FundingRateResolution } from './types';
2
- import { GetFundingRateChartDataParams } from '../markets/types';
1
+ import { CreateFundingRateChartDataParams } from './types';
3
2
  import MarketsClient from '../markets';
4
3
  import { GetFundingRateChartDataResult } from '@reyaxyz/common';
4
+ import { GetFundingRateChartDataParams } from '../markets/types';
5
5
 
6
6
  export default class FundingRateClient {
7
7
  private marketId: number | null = null;
@@ -25,7 +25,9 @@ export default class FundingRateClient {
25
25
  return this.marketClient.getFundingRateChartData(params);
26
26
  }
27
27
 
28
- createGraph(params: FundingRateResolution): GetFundingRateChartDataResult {
28
+ createGraph(
29
+ params: CreateFundingRateChartDataParams,
30
+ ): GetFundingRateChartDataResult {
29
31
  if (!this.loadedData) {
30
32
  throw new Error('Data not loaded. Call arm() first.');
31
33
  }
@@ -1,3 +1,3 @@
1
- export type FundingRateResolution = {
1
+ export type CreateFundingRateChartDataParams = {
2
2
  resolution: '1h' | '24h' | '1y';
3
3
  };
@@ -24,6 +24,7 @@ export {
24
24
  GetMarginAccountCollateralsBalanceChartDataResult,
25
25
  GetAllMarginAccountsBalanceChartDataResult,
26
26
  AllMarginAccountsBalanceGranularity,
27
+ GetFundingRateChartDataResult,
27
28
  } from '@reyaxyz/common';
28
29
  export * from './modules/account/types';
29
30
  export * from './modules/lp/types';