@reyaxyz/api-v2-sdk 0.301.1 → 0.301.2
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.
- package/dist/rest/apis/MarketDataApi.js +1 -1
- package/dist/rest/apis/MarketDataApi.js.map +1 -1
- package/dist/rest/apis/OrderEntryApi.js +1 -1
- package/dist/rest/apis/OrderEntryApi.js.map +1 -1
- package/dist/rest/apis/ReferenceDataApi.js +1 -1
- package/dist/rest/apis/ReferenceDataApi.js.map +1 -1
- package/dist/rest/apis/WalletDataApi.js +47 -1
- package/dist/rest/apis/WalletDataApi.js.map +1 -1
- package/dist/rest/models/index.js.map +1 -1
- package/dist/rest/runtime.js +1 -1
- package/dist/rest/runtime.js.map +1 -1
- package/dist/types/rest/apis/MarketDataApi.d.ts +1 -1
- package/dist/types/rest/apis/OrderEntryApi.d.ts +1 -1
- package/dist/types/rest/apis/ReferenceDataApi.d.ts +1 -1
- package/dist/types/rest/apis/WalletDataApi.d.ts +15 -2
- package/dist/types/rest/apis/WalletDataApi.d.ts.map +1 -1
- package/dist/types/rest/models/index.d.ts +25 -0
- package/dist/types/rest/models/index.d.ts.map +1 -1
- package/dist/types/rest/runtime.d.ts +1 -1
- package/package.json +2 -2
- package/rest/apis/MarketDataApi.ts +1 -1
- package/rest/apis/OrderEntryApi.ts +1 -1
- package/rest/apis/ReferenceDataApi.ts +1 -1
- package/rest/apis/WalletDataApi.ts +38 -1
- package/rest/models/index.ts +25 -0
- package/rest/runtime.ts +1 -1
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Reya DEX Trading API v2
|
|
6
6
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 2.0.
|
|
8
|
+
* The version of the OpenAPI document: 2.0.1
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@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AO,CAAC,OAAO,GAsMjD;AAtMY,sCAAa;AAwM1B;;GAEG;AACU,QAAA,wBAAwB,GAAG;IACpC,GAAG,EAAE,IAAI;IACT,GAAG,EAAE,IAAI;IACT,IAAI,EAAE,KAAK;IACX,IAAI,EAAE,KAAK;IACX,GAAG,EAAE,IAAI;IACT,GAAG,EAAE,IAAI;IACT,GAAG,EAAE,IAAI;CACH,CAAC","sourcesContent":["/* tslint:disable */\n/* eslint-disable */\n/**\n * Reya DEX Trading API v2\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * The version of the OpenAPI document: 2.0.0\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nimport * as runtime from '../runtime';\nimport type {\n CandleHistoryData,\n MarketSummary,\n PerpExecutionList,\n Price,\n RequestError,\n ServerError,\n} from '../models/index';\n\nexport interface GetCandlesRequest {\n symbol: string;\n resolution: GetCandlesResolutionEnum;\n endTime?: number;\n}\n\nexport interface GetMarketPerpExecutionsRequest {\n symbol: string;\n startTime?: number;\n endTime?: number;\n}\n\nexport interface GetMarketSummaryRequest {\n symbol: string;\n}\n\nexport interface GetPriceRequest {\n symbol: string;\n}\n\n/**\n * \n */\nexport class MarketDataApi extends runtime.BaseAPI {\n\n /**\n * Returns up to 200 candles for a given market, sorted by time in descending order, and ending at the specified end time.\n * Get historical candles\n */\n async getCandlesRaw(requestParameters: GetCandlesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CandleHistoryData>> {\n if (requestParameters.symbol === null || requestParameters.symbol === undefined) {\n throw new runtime.RequiredError('symbol','Required parameter requestParameters.symbol was null or undefined when calling getCandles.');\n }\n\n if (requestParameters.resolution === null || requestParameters.resolution === undefined) {\n throw new runtime.RequiredError('resolution','Required parameter requestParameters.resolution was null or undefined when calling getCandles.');\n }\n\n const queryParameters: any = {};\n\n if (requestParameters.endTime !== undefined) {\n queryParameters['endTime'] = requestParameters.endTime;\n }\n\n const headerParameters: runtime.HTTPHeaders = {};\n\n const response = await this.request({\n path: `/candleHistory/{symbol}/{resolution}`.replace(`{${\"symbol\"}}`, encodeURIComponent(String(requestParameters.symbol))).replace(`{${\"resolution\"}}`, encodeURIComponent(String(requestParameters.resolution))),\n method: 'GET',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n\n return new runtime.JSONApiResponse(response);\n }\n\n /**\n * Returns up to 200 candles for a given market, sorted by time in descending order, and ending at the specified end time.\n * Get historical candles\n */\n async getCandles(requestParameters: GetCandlesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CandleHistoryData> {\n const response = await this.getCandlesRaw(requestParameters, initOverrides);\n return await response.value();\n }\n\n /**\n * Returns up to 100 perp executions for a given market.\n * Get perp executions for market\n */\n async getMarketPerpExecutionsRaw(requestParameters: GetMarketPerpExecutionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PerpExecutionList>> {\n if (requestParameters.symbol === null || requestParameters.symbol === undefined) {\n throw new runtime.RequiredError('symbol','Required parameter requestParameters.symbol was null or undefined when calling getMarketPerpExecutions.');\n }\n\n const queryParameters: any = {};\n\n if (requestParameters.startTime !== undefined) {\n queryParameters['startTime'] = requestParameters.startTime;\n }\n\n if (requestParameters.endTime !== undefined) {\n queryParameters['endTime'] = requestParameters.endTime;\n }\n\n const headerParameters: runtime.HTTPHeaders = {};\n\n const response = await this.request({\n path: `/market/{symbol}/perpExecutions`.replace(`{${\"symbol\"}}`, encodeURIComponent(String(requestParameters.symbol))),\n method: 'GET',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n\n return new runtime.JSONApiResponse(response);\n }\n\n /**\n * Returns up to 100 perp executions for a given market.\n * Get perp executions for market\n */\n async getMarketPerpExecutions(requestParameters: GetMarketPerpExecutionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PerpExecutionList> {\n const response = await this.getMarketPerpExecutionsRaw(requestParameters, initOverrides);\n return await response.value();\n }\n\n /**\n * Statistics and throttled data for a specific market. Recalculated every 0.5s\n * Get market summary\n */\n async getMarketSummaryRaw(requestParameters: GetMarketSummaryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MarketSummary>> {\n if (requestParameters.symbol === null || requestParameters.symbol === undefined) {\n throw new runtime.RequiredError('symbol','Required parameter requestParameters.symbol was null or undefined when calling getMarketSummary.');\n }\n\n const queryParameters: any = {};\n\n const headerParameters: runtime.HTTPHeaders = {};\n\n const response = await this.request({\n path: `/market/{symbol}/summary`.replace(`{${\"symbol\"}}`, encodeURIComponent(String(requestParameters.symbol))),\n method: 'GET',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n\n return new runtime.JSONApiResponse(response);\n }\n\n /**\n * Statistics and throttled data for a specific market. Recalculated every 0.5s\n * Get market summary\n */\n async getMarketSummary(requestParameters: GetMarketSummaryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MarketSummary> {\n const response = await this.getMarketSummaryRaw(requestParameters, initOverrides);\n return await response.value();\n }\n\n /**\n * Statistics and throttled market data for all markets. Recalculated every 0.5s\n * Get market summaries\n */\n async getMarketsSummaryRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<MarketSummary>>> {\n const queryParameters: any = {};\n\n const headerParameters: runtime.HTTPHeaders = {};\n\n const response = await this.request({\n path: `/markets/summary`,\n method: 'GET',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n\n return new runtime.JSONApiResponse(response);\n }\n\n /**\n * Statistics and throttled market data for all markets. Recalculated every 0.5s\n * Get market summaries\n */\n async getMarketsSummary(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<MarketSummary>> {\n const response = await this.getMarketsSummaryRaw(initOverrides);\n return await response.value();\n }\n\n /**\n * Get price by symbol\n */\n async getPriceRaw(requestParameters: GetPriceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Price>> {\n if (requestParameters.symbol === null || requestParameters.symbol === undefined) {\n throw new runtime.RequiredError('symbol','Required parameter requestParameters.symbol was null or undefined when calling getPrice.');\n }\n\n const queryParameters: any = {};\n\n const headerParameters: runtime.HTTPHeaders = {};\n\n const response = await this.request({\n path: `/prices/{symbol}`.replace(`{${\"symbol\"}}`, encodeURIComponent(String(requestParameters.symbol))),\n method: 'GET',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n\n return new runtime.JSONApiResponse(response);\n }\n\n /**\n * Get price by symbol\n */\n async getPrice(requestParameters: GetPriceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Price> {\n const response = await this.getPriceRaw(requestParameters, initOverrides);\n return await response.value();\n }\n\n /**\n * Get all prices\n */\n async getPricesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Price>>> {\n const queryParameters: any = {};\n\n const headerParameters: runtime.HTTPHeaders = {};\n\n const response = await this.request({\n path: `/prices`,\n method: 'GET',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n\n return new runtime.JSONApiResponse(response);\n }\n\n /**\n * Get all prices\n */\n async getPrices(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Price>> {\n const response = await this.getPricesRaw(initOverrides);\n return await response.value();\n }\n\n}\n\n/**\n * @export\n */\nexport const GetCandlesResolutionEnum = {\n _1M: '1m',\n _5M: '5m',\n _15M: '15m',\n _30M: '30m',\n _1H: '1h',\n _4H: '4h',\n _1D: '1d'\n} as const;\nexport type GetCandlesResolutionEnum = typeof GetCandlesResolutionEnum[keyof typeof GetCandlesResolutionEnum];\n"]}
|
|
1
|
+
{"version":3,"file":"MarketDataApi.js","sourceRoot":"/","sources":["rest/apis/MarketDataApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;;;;;;;;;;;;;;;;;;;;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G,EAAE,IAAI;IACT,GAAG,EAAE,IAAI;IACT,GAAG,EAAE,IAAI;CACH,CAAC","sourcesContent":["/* tslint:disable */\n/* eslint-disable */\n/**\n * Reya DEX Trading API v2\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * The version of the OpenAPI document: 2.0.1\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nimport * as runtime from '../runtime';\nimport type {\n CandleHistoryData,\n MarketSummary,\n PerpExecutionList,\n Price,\n RequestError,\n ServerError,\n} from '../models/index';\n\nexport interface GetCandlesRequest {\n symbol: string;\n resolution: GetCandlesResolutionEnum;\n endTime?: number;\n}\n\nexport interface GetMarketPerpExecutionsRequest {\n symbol: string;\n startTime?: number;\n endTime?: number;\n}\n\nexport interface GetMarketSummaryRequest {\n symbol: string;\n}\n\nexport interface GetPriceRequest {\n symbol: string;\n}\n\n/**\n * \n */\nexport class MarketDataApi extends runtime.BaseAPI {\n\n /**\n * Returns up to 200 candles for a given market, sorted by time in descending order, and ending at the specified end time.\n * Get historical candles\n */\n async getCandlesRaw(requestParameters: GetCandlesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CandleHistoryData>> {\n if (requestParameters.symbol === null || requestParameters.symbol === undefined) {\n throw new runtime.RequiredError('symbol','Required parameter requestParameters.symbol was null or undefined when calling getCandles.');\n }\n\n if (requestParameters.resolution === null || requestParameters.resolution === undefined) {\n throw new runtime.RequiredError('resolution','Required parameter requestParameters.resolution was null or undefined when calling getCandles.');\n }\n\n const queryParameters: any = {};\n\n if (requestParameters.endTime !== undefined) {\n queryParameters['endTime'] = requestParameters.endTime;\n }\n\n const headerParameters: runtime.HTTPHeaders = {};\n\n const response = await this.request({\n path: `/candleHistory/{symbol}/{resolution}`.replace(`{${\"symbol\"}}`, encodeURIComponent(String(requestParameters.symbol))).replace(`{${\"resolution\"}}`, encodeURIComponent(String(requestParameters.resolution))),\n method: 'GET',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n\n return new runtime.JSONApiResponse(response);\n }\n\n /**\n * Returns up to 200 candles for a given market, sorted by time in descending order, and ending at the specified end time.\n * Get historical candles\n */\n async getCandles(requestParameters: GetCandlesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CandleHistoryData> {\n const response = await this.getCandlesRaw(requestParameters, initOverrides);\n return await response.value();\n }\n\n /**\n * Returns up to 100 perp executions for a given market.\n * Get perp executions for market\n */\n async getMarketPerpExecutionsRaw(requestParameters: GetMarketPerpExecutionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PerpExecutionList>> {\n if (requestParameters.symbol === null || requestParameters.symbol === undefined) {\n throw new runtime.RequiredError('symbol','Required parameter requestParameters.symbol was null or undefined when calling getMarketPerpExecutions.');\n }\n\n const queryParameters: any = {};\n\n if (requestParameters.startTime !== undefined) {\n queryParameters['startTime'] = requestParameters.startTime;\n }\n\n if (requestParameters.endTime !== undefined) {\n queryParameters['endTime'] = requestParameters.endTime;\n }\n\n const headerParameters: runtime.HTTPHeaders = {};\n\n const response = await this.request({\n path: `/market/{symbol}/perpExecutions`.replace(`{${\"symbol\"}}`, encodeURIComponent(String(requestParameters.symbol))),\n method: 'GET',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n\n return new runtime.JSONApiResponse(response);\n }\n\n /**\n * Returns up to 100 perp executions for a given market.\n * Get perp executions for market\n */\n async getMarketPerpExecutions(requestParameters: GetMarketPerpExecutionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PerpExecutionList> {\n const response = await this.getMarketPerpExecutionsRaw(requestParameters, initOverrides);\n return await response.value();\n }\n\n /**\n * Statistics and throttled data for a specific market. Recalculated every 0.5s\n * Get market summary\n */\n async getMarketSummaryRaw(requestParameters: GetMarketSummaryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MarketSummary>> {\n if (requestParameters.symbol === null || requestParameters.symbol === undefined) {\n throw new runtime.RequiredError('symbol','Required parameter requestParameters.symbol was null or undefined when calling getMarketSummary.');\n }\n\n const queryParameters: any = {};\n\n const headerParameters: runtime.HTTPHeaders = {};\n\n const response = await this.request({\n path: `/market/{symbol}/summary`.replace(`{${\"symbol\"}}`, encodeURIComponent(String(requestParameters.symbol))),\n method: 'GET',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n\n return new runtime.JSONApiResponse(response);\n }\n\n /**\n * Statistics and throttled data for a specific market. Recalculated every 0.5s\n * Get market summary\n */\n async getMarketSummary(requestParameters: GetMarketSummaryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MarketSummary> {\n const response = await this.getMarketSummaryRaw(requestParameters, initOverrides);\n return await response.value();\n }\n\n /**\n * Statistics and throttled market data for all markets. Recalculated every 0.5s\n * Get market summaries\n */\n async getMarketsSummaryRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<MarketSummary>>> {\n const queryParameters: any = {};\n\n const headerParameters: runtime.HTTPHeaders = {};\n\n const response = await this.request({\n path: `/markets/summary`,\n method: 'GET',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n\n return new runtime.JSONApiResponse(response);\n }\n\n /**\n * Statistics and throttled market data for all markets. Recalculated every 0.5s\n * Get market summaries\n */\n async getMarketsSummary(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<MarketSummary>> {\n const response = await this.getMarketsSummaryRaw(initOverrides);\n return await response.value();\n }\n\n /**\n * Get price by symbol\n */\n async getPriceRaw(requestParameters: GetPriceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Price>> {\n if (requestParameters.symbol === null || requestParameters.symbol === undefined) {\n throw new runtime.RequiredError('symbol','Required parameter requestParameters.symbol was null or undefined when calling getPrice.');\n }\n\n const queryParameters: any = {};\n\n const headerParameters: runtime.HTTPHeaders = {};\n\n const response = await this.request({\n path: `/prices/{symbol}`.replace(`{${\"symbol\"}}`, encodeURIComponent(String(requestParameters.symbol))),\n method: 'GET',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n\n return new runtime.JSONApiResponse(response);\n }\n\n /**\n * Get price by symbol\n */\n async getPrice(requestParameters: GetPriceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Price> {\n const response = await this.getPriceRaw(requestParameters, initOverrides);\n return await response.value();\n }\n\n /**\n * Get all prices\n */\n async getPricesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Price>>> {\n const queryParameters: any = {};\n\n const headerParameters: runtime.HTTPHeaders = {};\n\n const response = await this.request({\n path: `/prices`,\n method: 'GET',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n\n return new runtime.JSONApiResponse(response);\n }\n\n /**\n * Get all prices\n */\n async getPrices(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Price>> {\n const response = await this.getPricesRaw(initOverrides);\n return await response.value();\n }\n\n}\n\n/**\n * @export\n */\nexport const GetCandlesResolutionEnum = {\n _1M: '1m',\n _5M: '5m',\n _15M: '15m',\n _30M: '30m',\n _1H: '1h',\n _4H: '4h',\n _1D: '1d'\n} as const;\nexport type GetCandlesResolutionEnum = typeof GetCandlesResolutionEnum[keyof typeof GetCandlesResolutionEnum];\n"]}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Reya DEX Trading API v2
|
|
6
6
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 2.0.
|
|
8
|
+
* The version of the OpenAPI document: 2.0.1
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OrderEntryApi.js","sourceRoot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sCAAc,GAApB,UAAqB,iBAA8C,EAAE,aAA0D;;;;;;wBAC3H,IAAI,iBAAiB,CAAC,kBAAkB,KAAK,IAAI,IAAI,iBAAiB,CAAC,kBAAkB,KAAK,SAAS,EAAE,CAAC;4BACtG,MAAM,IAAI,OAAO,CAAC,aAAa,CAAC,oBAAoB,EAAC,yGAAyG,CAAC,CAAC;wBACpK,CAAC;wBAEK,eAAe,GAAQ,EAAE,CAAC;wBAE1B,gBAAgB,GAAwB,EAAE,CAAC;wBAEjD,gBAAgB,CAAC,cAAc,CAAC,GAAG,kBAAkB,CAAC;wBAErC,qBAAM,IAAI,CAAC,OAAO,CAAC;gCAChC,IAAI,EAAE,cAAc;gCACpB,MAAM,EAAE,MAAM;gCACd,OAAO,EAAE,gBAAgB;gCACzB,KAAK,EAAE,eAAe;gCACtB,IAAI,EAAE,iBAAiB,CAAC,kBAAkB;6BAC7C,EAAE,aAAa,CAAC,EAAA;;wBANX,QAAQ,GAAG,SAMA;wBAEjB,sBAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,CAAC,EAAC;;;;KAChD;IAED;;;OAGG;IACG,mCAAW,GAAjB,UAAkB,iBAA8C,EAAE,aAA0D;;;;;4BACvG,qBAAM,IAAI,CAAC,cAAc,CAAC,iBAAiB,EAAE,aAAa,CAAC,EAAA;;wBAAtE,QAAQ,GAAG,SAA2D;wBACrE,qBAAM,QAAQ,CAAC,KAAK,EAAE,EAAA;4BAA7B,sBAAO,SAAsB,EAAC;;;;KACjC;IAEL,oBAAC;AAAD,CAAC,AAxED,CAAmC,OAAO,CAAC,OAAO,GAwEjD;AAxEY,sCAAa","sourcesContent":["/* tslint:disable */\n/* eslint-disable */\n/**\n * Reya DEX Trading API v2\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * The version of the OpenAPI document: 2.0.
|
|
1
|
+
{"version":3,"file":"OrderEntryApi.js","sourceRoot":"/","sources":["rest/apis/OrderEntryApi.ts"],"names":[],"mappings":";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;;wBAC3H,IAAI,iBAAiB,CAAC,kBAAkB,KAAK,IAAI,IAAI,iBAAiB,CAAC,kBAAkB,KAAK,SAAS,EAAE,CAAC;4BACtG,MAAM,IAAI,OAAO,CAAC,aAAa,CAAC,oBAAoB,EAAC,yGAAyG,CAAC,CAAC;wBACpK,CAAC;wBAEK,eAAe,GAAQ,EAAE,CAAC;wBAE1B,gBAAgB,GAAwB,EAAE,CAAC;wBAEjD,gBAAgB,CAAC,cAAc,CAAC,GAAG,kBAAkB,CAAC;wBAErC,qBAAM,IAAI,CAAC,OAAO,CAAC;gCAChC,IAAI,EAAE,cAAc;gCACpB,MAAM,EAAE,MAAM;gCACd,OAAO,EAAE,gBAAgB;gCACzB,KAAK,EAAE,eAAe;gCACtB,IAAI,EAAE,iBAAiB,CAAC,kBAAkB;6BAC7C,EAAE,aAAa,CAAC,EAAA;;wBANX,QAAQ,GAAG,SAMA;wBAEjB,sBAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,CAAC,EAAC;;;;KAChD;IAED;;;OAGG;IACG,mCAAW,GAAjB,UAAkB,iBAA8C,EAAE,aAA0D;;;;;4BACvG,qBAAM,IAAI,CAAC,cAAc,CAAC,iBAAiB,EAAE,aAAa,CAAC,EAAA;;wBAAtE,QAAQ,GAAG,SAA2D;wBACrE,qBAAM,QAAQ,CAAC,KAAK,EAAE,EAAA;4BAA7B,sBAAO,SAAsB,EAAC;;;;KACjC;IAEL,oBAAC;AAAD,CAAC,AAxED,CAAmC,OAAO,CAAC,OAAO,GAwEjD;AAxEY,sCAAa","sourcesContent":["/* tslint:disable */\n/* eslint-disable */\n/**\n * Reya DEX Trading API v2\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * The version of the OpenAPI document: 2.0.1\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nimport * as runtime from '../runtime';\nimport type {\n CancelOrderRequest,\n CancelOrderResponse,\n CreateOrderRequest,\n CreateOrderResponse,\n RequestError,\n ServerError,\n} from '../models/index';\n\nexport interface CancelOrderOperationRequest {\n cancelOrderRequest: CancelOrderRequest;\n}\n\nexport interface CreateOrderOperationRequest {\n createOrderRequest: CreateOrderRequest;\n}\n\n/**\n * \n */\nexport class OrderEntryApi extends runtime.BaseAPI {\n\n /**\n * Cancel an existing order\n * Cancel order\n */\n async cancelOrderRaw(requestParameters: CancelOrderOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CancelOrderResponse>> {\n if (requestParameters.cancelOrderRequest === null || requestParameters.cancelOrderRequest === undefined) {\n throw new runtime.RequiredError('cancelOrderRequest','Required parameter requestParameters.cancelOrderRequest was null or undefined when calling cancelOrder.');\n }\n\n const queryParameters: any = {};\n\n const headerParameters: runtime.HTTPHeaders = {};\n\n headerParameters['Content-Type'] = 'application/json';\n\n const response = await this.request({\n path: `/cancelOrder`,\n method: 'POST',\n headers: headerParameters,\n query: queryParameters,\n body: requestParameters.cancelOrderRequest,\n }, initOverrides);\n\n return new runtime.JSONApiResponse(response);\n }\n\n /**\n * Cancel an existing order\n * Cancel order\n */\n async cancelOrder(requestParameters: CancelOrderOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CancelOrderResponse> {\n const response = await this.cancelOrderRaw(requestParameters, initOverrides);\n return await response.value();\n }\n\n /**\n * Create a new order (IOC, GTC, SL, TP)\n * Create order\n */\n async createOrderRaw(requestParameters: CreateOrderOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateOrderResponse>> {\n if (requestParameters.createOrderRequest === null || requestParameters.createOrderRequest === undefined) {\n throw new runtime.RequiredError('createOrderRequest','Required parameter requestParameters.createOrderRequest was null or undefined when calling createOrder.');\n }\n\n const queryParameters: any = {};\n\n const headerParameters: runtime.HTTPHeaders = {};\n\n headerParameters['Content-Type'] = 'application/json';\n\n const response = await this.request({\n path: `/createOrder`,\n method: 'POST',\n headers: headerParameters,\n query: queryParameters,\n body: requestParameters.createOrderRequest,\n }, initOverrides);\n\n return new runtime.JSONApiResponse(response);\n }\n\n /**\n * Create a new order (IOC, GTC, SL, TP)\n * Create order\n */\n async createOrder(requestParameters: CreateOrderOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateOrderResponse> {\n const response = await this.createOrderRaw(requestParameters, initOverrides);\n return await response.value();\n }\n\n}\n"]}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Reya DEX Trading API v2
|
|
6
6
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 2.0.
|
|
8
|
+
* The version of the OpenAPI document: 2.0.1
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReferenceDataApi.js","sourceRoot":"/","sources":["rest/apis/ReferenceDataApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGH,kDAAsC;AAWtC;;GAEG;AACH;IAAsC,oCAAe;IAArD;;IAoIA,CAAC;IAlIG;;OAEG;IACG,iDAAsB,GAA5B,UAA6B,aAA0D;;;;;;wBAC7E,eAAe,GAAQ,EAAE,CAAC;wBAE1B,gBAAgB,GAAwB,EAAE,CAAC;wBAEhC,qBAAM,IAAI,CAAC,OAAO,CAAC;gCAChC,IAAI,EAAE,mBAAmB;gCACzB,MAAM,EAAE,KAAK;gCACb,OAAO,EAAE,gBAAgB;gCACzB,KAAK,EAAE,eAAe;6BACzB,EAAE,aAAa,CAAC,EAAA;;wBALX,QAAQ,GAAG,SAKA;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CAAC,EAAA;;wBALX,QAAQ,GAAG,SAKA;wBAEjB,sBAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,CAAC,EAAC;;;;KAChD;IAED;;OAEG;IACG,+CAAoB,GAA1B,UAA2B,aAA0D;;;;;4BAChE,qBAAM,IAAI,CAAC,uBAAuB,CAAC,aAAa,CAAC,EAAA;;wBAA5D,QAAQ,GAAG,SAAiD;wBAC3D,qBAAM,QAAQ,CAAC,KAAK,EAAE,EAAA;4BAA7B,sBAAO,SAAsB,EAAC;;;;KACjC;IAEL,uBAAC;AAAD,CAAC,AApID,CAAsC,OAAO,CAAC,OAAO,GAoIpD;AApIY,4CAAgB","sourcesContent":["/* tslint:disable */\n/* eslint-disable */\n/**\n * Reya DEX Trading API v2\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * The version of the OpenAPI document: 2.0.
|
|
1
|
+
{"version":3,"file":"ReferenceDataApi.js","sourceRoot":"/","sources":["rest/apis/ReferenceDataApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGH,kDAAsC;AAWtC;;GAEG;AACH;IAAsC,oCAAe;IAArD;;IAoIA,CAAC;IAlIG;;OAEG;IACG,iDAAsB,GAA5B,UAA6B,aAA0D;;;;;;wBAC7E,eAAe,GAAQ,EAAE,CAAC;wBAE1B,gBAAgB,GAAwB,EAAE,CAAC;wBAEhC,qBAAM,IAAI,CAAC,OAAO,CAAC;gCAChC,IAAI,EAAE,mBAAmB;gCACzB,MAAM,EAAE,KAAK;gCACb,OAAO,EAAE,gBAAgB;gCACzB,KAAK,EAAE,eAAe;6BACzB,EAAE,aAAa,CAAC,EAAA;;wBALX,QAAQ,GAAG,SAKA;wBAEjB,sBAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,C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IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,CAAC,EAAC;;;;KAChD;IAED;;OAEG;IACG,+CAAoB,GAA1B,UAA2B,aAA0D;;;;;4BAChE,qBAAM,IAAI,CAAC,uBAAuB,CAAC,aAAa,CAAC,EAAA;;wBAA5D,QAAQ,GAAG,SAAiD;wBAC3D,qBAAM,QAAQ,CAAC,KAAK,EAAE,EAAA;4BAA7B,sBAAO,SAAsB,EAAC;;;;KACjC;IAEL,uBAAC;AAAD,CAAC,AApID,CAAsC,OAAO,CAAC,OAAO,GAoIpD;AApIY,4CAAgB","sourcesContent":["/* tslint:disable */\n/* eslint-disable */\n/**\n * Reya DEX Trading API v2\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * The version of the OpenAPI document: 2.0.1\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nimport * as runtime from '../runtime';\nimport type {\n AssetDefinition,\n FeeTierParameters,\n GlobalFeeParameters,\n LiquidityParameters,\n MarketDefinition,\n RequestError,\n ServerError,\n} from '../models/index';\n\n/**\n * \n */\nexport class ReferenceDataApi extends runtime.BaseAPI {\n\n /**\n * Get asset definitions\n */\n async getAssetDefinitionsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AssetDefinition>>> {\n const queryParameters: any = {};\n\n const headerParameters: runtime.HTTPHeaders = {};\n\n const response = await this.request({\n path: `/assetDefinitions`,\n method: 'GET',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n\n return new runtime.JSONApiResponse(response);\n }\n\n /**\n * Get asset definitions\n */\n async getAssetDefinitions(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AssetDefinition>> {\n const response = await this.getAssetDefinitionsRaw(initOverrides);\n return await response.value();\n }\n\n /**\n * Get fee tiers\n */\n async getFeeTierParametersRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<FeeTierParameters>>> {\n const queryParameters: any = {};\n\n const headerParameters: runtime.HTTPHeaders = {};\n\n const response = await this.request({\n path: `/feeTiers`,\n method: 'GET',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n\n return new runtime.JSONApiResponse(response);\n }\n\n /**\n * Get fee tiers\n */\n async getFeeTierParameters(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<FeeTierParameters>> {\n const response = await this.getFeeTierParametersRaw(initOverrides);\n return await response.value();\n }\n\n /**\n * Get global fee parameters\n */\n async getGlobalFeeParametersRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GlobalFeeParameters>> {\n const queryParameters: any = {};\n\n const headerParameters: runtime.HTTPHeaders = {};\n\n const response = await this.request({\n path: `/globalFeeParameters`,\n method: 'GET',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n\n return new runtime.JSONApiResponse(response);\n }\n\n /**\n * Get global fee parameters\n */\n async getGlobalFeeParameters(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GlobalFeeParameters> {\n const response = await this.getGlobalFeeParametersRaw(initOverrides);\n return await response.value();\n }\n\n /**\n * Get liquidity parameters\n */\n async getLiquidityParametersRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<LiquidityParameters>>> {\n const queryParameters: any = {};\n\n const headerParameters: runtime.HTTPHeaders = {};\n\n const response = await this.request({\n path: `/liquidityParameters`,\n method: 'GET',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n\n return new runtime.JSONApiResponse(response);\n }\n\n /**\n * Get liquidity parameters\n */\n async getLiquidityParameters(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<LiquidityParameters>> {\n const response = await this.getLiquidityParametersRaw(initOverrides);\n return await response.value();\n }\n\n /**\n * Get market definitions\n */\n async getMarketDefinitionsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<MarketDefinition>>> {\n const queryParameters: any = {};\n\n const headerParameters: runtime.HTTPHeaders = {};\n\n const response = await this.request({\n path: `/marketDefinitions`,\n method: 'GET',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n\n return new runtime.JSONApiResponse(response);\n }\n\n /**\n * Get market definitions\n */\n async getMarketDefinitions(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<MarketDefinition>> {\n const response = await this.getMarketDefinitionsRaw(initOverrides);\n return await response.value();\n }\n\n}\n"]}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Reya DEX Trading API v2
|
|
6
6
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 2.0.
|
|
8
|
+
* The version of the OpenAPI document: 2.0.1
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -97,6 +97,52 @@ var WalletDataApi = /** @class */ (function (_super) {
|
|
|
97
97
|
function WalletDataApi() {
|
|
98
98
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
99
99
|
}
|
|
100
|
+
/**
|
|
101
|
+
* Returns all account real balances for a wallet.
|
|
102
|
+
* Get wallet account balances
|
|
103
|
+
*/
|
|
104
|
+
WalletDataApi.prototype.getWalletAccountBalancesRaw = function (requestParameters, initOverrides) {
|
|
105
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
106
|
+
var queryParameters, headerParameters, response;
|
|
107
|
+
return __generator(this, function (_a) {
|
|
108
|
+
switch (_a.label) {
|
|
109
|
+
case 0:
|
|
110
|
+
if (requestParameters.address === null || requestParameters.address === undefined) {
|
|
111
|
+
throw new runtime.RequiredError('address', 'Required parameter requestParameters.address was null or undefined when calling getWalletAccountBalances.');
|
|
112
|
+
}
|
|
113
|
+
queryParameters = {};
|
|
114
|
+
headerParameters = {};
|
|
115
|
+
return [4 /*yield*/, this.request({
|
|
116
|
+
path: "/wallet/{address}/accountBalances".replace("{".concat("address", "}"), encodeURIComponent(String(requestParameters.address))),
|
|
117
|
+
method: 'GET',
|
|
118
|
+
headers: headerParameters,
|
|
119
|
+
query: queryParameters,
|
|
120
|
+
}, initOverrides)];
|
|
121
|
+
case 1:
|
|
122
|
+
response = _a.sent();
|
|
123
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response)];
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
});
|
|
127
|
+
};
|
|
128
|
+
/**
|
|
129
|
+
* Returns all account real balances for a wallet.
|
|
130
|
+
* Get wallet account balances
|
|
131
|
+
*/
|
|
132
|
+
WalletDataApi.prototype.getWalletAccountBalances = function (requestParameters, initOverrides) {
|
|
133
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
134
|
+
var response;
|
|
135
|
+
return __generator(this, function (_a) {
|
|
136
|
+
switch (_a.label) {
|
|
137
|
+
case 0: return [4 /*yield*/, this.getWalletAccountBalancesRaw(requestParameters, initOverrides)];
|
|
138
|
+
case 1:
|
|
139
|
+
response = _a.sent();
|
|
140
|
+
return [4 /*yield*/, response.value()];
|
|
141
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
});
|
|
145
|
+
};
|
|
100
146
|
/**
|
|
101
147
|
* Get wallet accounts
|
|
102
148
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WalletDataApi.js","sourceRoot":"/","sources":["rest/apis/WalletDataApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGH,kDAAsC;AAwCtC;;GAEG;AACH;IAAmC,iCAAe;IAAlD;;IA8MA,CAAC;IA5MG;;OAEG;IACG,4CAAoB,GAA1B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AE,aAAa,CAAC,EAAA;;wBAAlF,QAAQ,GAAG,SAAuE;wBACjF,qBAAM,QAAQ,CAAC,KAAK,EAAE,EAAA;4BAA7B,sBAAO,SAAsB,EAAC;;;;KACjC;IAEL,oBAAC;AAAD,CAAC,AA9MD,CAAmC,OAAO,CAAC,OAAO,GA8MjD;AA9MY,sCAAa","sourcesContent":["/* tslint:disable */\n/* eslint-disable */\n/**\n * Reya DEX Trading API v2\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * The version of the OpenAPI document: 2.0.0\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nimport * as runtime from '../runtime';\nimport type {\n Account,\n Order,\n PerpExecutionList,\n Position,\n RequestError,\n ServerError,\n SpotExecutionList,\n WalletConfiguration,\n} from '../models/index';\n\nexport interface GetWalletAccountsRequest {\n address: string;\n}\n\nexport interface GetWalletConfigurationRequest {\n address: string;\n}\n\nexport interface GetWalletOpenOrdersRequest {\n address: string;\n}\n\nexport interface GetWalletPerpExecutionsRequest {\n address: string;\n startTime?: number;\n endTime?: number;\n}\n\nexport interface GetWalletPositionsRequest {\n address: string;\n}\n\nexport interface GetWalletSpotExecutionsRequest {\n address: string;\n startTime?: number;\n endTime?: number;\n}\n\n/**\n * \n */\nexport class WalletDataApi extends runtime.BaseAPI {\n\n /**\n * Get wallet accounts\n */\n async getWalletAccountsRaw(requestParameters: GetWalletAccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Account>>> {\n if (requestParameters.address === null || requestParameters.address === undefined) {\n throw new runtime.RequiredError('address','Required parameter requestParameters.address was null or undefined when calling getWalletAccounts.');\n }\n\n const queryParameters: any = {};\n\n const headerParameters: runtime.HTTPHeaders = {};\n\n const response = await this.request({\n path: `/wallet/{address}/accounts`.replace(`{${\"address\"}}`, encodeURIComponent(String(requestParameters.address))),\n method: 'GET',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n\n return new runtime.JSONApiResponse(response);\n }\n\n /**\n * Get wallet accounts\n */\n async getWalletAccounts(requestParameters: GetWalletAccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Account>> {\n const response = await this.getWalletAccountsRaw(requestParameters, initOverrides);\n return await response.value();\n }\n\n /**\n * Returns trading configuration for a wallet\n * Get wallet configuration\n */\n async getWalletConfigurationRaw(requestParameters: GetWalletConfigurationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WalletConfiguration>> {\n if (requestParameters.address === null || requestParameters.address === undefined) {\n throw new runtime.RequiredError('address','Required parameter requestParameters.address was null or undefined when calling getWalletConfiguration.');\n }\n\n const queryParameters: any = {};\n\n const headerParameters: runtime.HTTPHeaders = {};\n\n const response = await this.request({\n path: `/wallet/{address}/configuration`.replace(`{${\"address\"}}`, encodeURIComponent(String(requestParameters.address))),\n method: 'GET',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n\n return new runtime.JSONApiResponse(response);\n }\n\n /**\n * Returns trading configuration for a wallet\n * Get wallet configuration\n */\n async getWalletConfiguration(requestParameters: GetWalletConfigurationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WalletConfiguration> {\n const response = await this.getWalletConfigurationRaw(requestParameters, initOverrides);\n return await response.value();\n }\n\n /**\n * Returns all pending orders for a wallet.\n * Get wallet open orders\n */\n async getWalletOpenOrdersRaw(requestParameters: GetWalletOpenOrdersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Order>>> {\n if (requestParameters.address === null || requestParameters.address === undefined) {\n throw new runtime.RequiredError('address','Required parameter requestParameters.address was null or undefined when calling getWalletOpenOrders.');\n }\n\n const queryParameters: any = {};\n\n const headerParameters: runtime.HTTPHeaders = {};\n\n const response = await this.request({\n path: `/wallet/{address}/openOrders`.replace(`{${\"address\"}}`, encodeURIComponent(String(requestParameters.address))),\n method: 'GET',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n\n return new runtime.JSONApiResponse(response);\n }\n\n /**\n * Returns all pending orders for a wallet.\n * Get wallet open orders\n */\n async getWalletOpenOrders(requestParameters: GetWalletOpenOrdersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Order>> {\n const response = await this.getWalletOpenOrdersRaw(requestParameters, initOverrides);\n return await response.value();\n }\n\n /**\n * Returns up to 100 perp executions for a given wallet.\n * Get wallet perp executions\n */\n async getWalletPerpExecutionsRaw(requestParameters: GetWalletPerpExecutionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PerpExecutionList>> {\n if (requestParameters.address === null || requestParameters.address === undefined) {\n throw new runtime.RequiredError('address','Required parameter requestParameters.address was null or undefined when calling getWalletPerpExecutions.');\n }\n\n const queryParameters: any = {};\n\n if (requestParameters.startTime !== undefined) {\n queryParameters['startTime'] = requestParameters.startTime;\n }\n\n if (requestParameters.endTime !== undefined) {\n queryParameters['endTime'] = requestParameters.endTime;\n }\n\n const headerParameters: runtime.HTTPHeaders = {};\n\n const response = await this.request({\n path: `/wallet/{address}/perpExecutions`.replace(`{${\"address\"}}`, encodeURIComponent(String(requestParameters.address))),\n method: 'GET',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n\n return new runtime.JSONApiResponse(response);\n }\n\n /**\n * Returns up to 100 perp executions for a given wallet.\n * Get wallet perp executions\n */\n async getWalletPerpExecutions(requestParameters: GetWalletPerpExecutionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PerpExecutionList> {\n const response = await this.getWalletPerpExecutionsRaw(requestParameters, initOverrides);\n return await response.value();\n }\n\n /**\n * Get wallet positions\n */\n async getWalletPositionsRaw(requestParameters: GetWalletPositionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Position>>> {\n if (requestParameters.address === null || requestParameters.address === undefined) {\n throw new runtime.RequiredError('address','Required parameter requestParameters.address was null or undefined when calling getWalletPositions.');\n }\n\n const queryParameters: any = {};\n\n const headerParameters: runtime.HTTPHeaders = {};\n\n const response = await this.request({\n path: `/wallet/{address}/positions`.replace(`{${\"address\"}}`, encodeURIComponent(String(requestParameters.address))),\n method: 'GET',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n\n return new runtime.JSONApiResponse(response);\n }\n\n /**\n * Get wallet positions\n */\n async getWalletPositions(requestParameters: GetWalletPositionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Position>> {\n const response = await this.getWalletPositionsRaw(requestParameters, initOverrides);\n return await response.value();\n }\n\n /**\n * Returns up to 100 spot executions for a given wallet.\n * Get wallet spot executions\n */\n async getWalletSpotExecutionsRaw(requestParameters: GetWalletSpotExecutionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SpotExecutionList>> {\n if (requestParameters.address === null || requestParameters.address === undefined) {\n throw new runtime.RequiredError('address','Required parameter requestParameters.address was null or undefined when calling getWalletSpotExecutions.');\n }\n\n const queryParameters: any = {};\n\n if (requestParameters.startTime !== undefined) {\n queryParameters['startTime'] = requestParameters.startTime;\n }\n\n if (requestParameters.endTime !== undefined) {\n queryParameters['endTime'] = requestParameters.endTime;\n }\n\n const headerParameters: runtime.HTTPHeaders = {};\n\n const response = await this.request({\n path: `/wallet/{address}/spotExecutions`.replace(`{${\"address\"}}`, encodeURIComponent(String(requestParameters.address))),\n method: 'GET',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n\n return new runtime.JSONApiResponse(response);\n }\n\n /**\n * Returns up to 100 spot executions for a given wallet.\n * Get wallet spot executions\n */\n async getWalletSpotExecutions(requestParameters: GetWalletSpotExecutionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SpotExecutionList> {\n const response = await this.getWalletSpotExecutionsRaw(requestParameters, initOverrides);\n return await response.value();\n }\n\n}\n"]}
|
|
1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AA0D;;;;;4BACtH,qBAAM,IAAI,CAAC,0BAA0B,CAAC,iBAAiB,EAAE,aAAa,CAAC,EAAA;;wBAAlF,QAAQ,GAAG,SAAuE;wBACjF,qBAAM,QAAQ,CAAC,KAAK,EAAE,EAAA;4BAA7B,sBAAO,SAAsB,EAAC;;;;KACjC;IAEL,oBAAC;AAAD,CAAC,AA9OD,CAAmC,OAAO,CAAC,OAAO,GA8OjD;AA9OY,sCAAa","sourcesContent":["/* tslint:disable */\n/* eslint-disable */\n/**\n * Reya DEX Trading API v2\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * The version of the OpenAPI document: 2.0.1\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nimport * as runtime from '../runtime';\nimport type {\n Account,\n AccountBalance,\n Order,\n PerpExecutionList,\n Position,\n RequestError,\n ServerError,\n SpotExecutionList,\n WalletConfiguration,\n} from '../models/index';\n\nexport interface GetWalletAccountBalancesRequest {\n address: string;\n}\n\nexport interface GetWalletAccountsRequest {\n address: string;\n}\n\nexport interface GetWalletConfigurationRequest {\n address: string;\n}\n\nexport interface GetWalletOpenOrdersRequest {\n address: string;\n}\n\nexport interface GetWalletPerpExecutionsRequest {\n address: string;\n startTime?: number;\n endTime?: number;\n}\n\nexport interface GetWalletPositionsRequest {\n address: string;\n}\n\nexport interface GetWalletSpotExecutionsRequest {\n address: string;\n startTime?: number;\n endTime?: number;\n}\n\n/**\n * \n */\nexport class WalletDataApi extends runtime.BaseAPI {\n\n /**\n * Returns all account real balances for a wallet.\n * Get wallet account balances\n */\n async getWalletAccountBalancesRaw(requestParameters: GetWalletAccountBalancesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AccountBalance>>> {\n if (requestParameters.address === null || requestParameters.address === undefined) {\n throw new runtime.RequiredError('address','Required parameter requestParameters.address was null or undefined when calling getWalletAccountBalances.');\n }\n\n const queryParameters: any = {};\n\n const headerParameters: runtime.HTTPHeaders = {};\n\n const response = await this.request({\n path: `/wallet/{address}/accountBalances`.replace(`{${\"address\"}}`, encodeURIComponent(String(requestParameters.address))),\n method: 'GET',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n\n return new runtime.JSONApiResponse(response);\n }\n\n /**\n * Returns all account real balances for a wallet.\n * Get wallet account balances\n */\n async getWalletAccountBalances(requestParameters: GetWalletAccountBalancesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AccountBalance>> {\n const response = await this.getWalletAccountBalancesRaw(requestParameters, initOverrides);\n return await response.value();\n }\n\n /**\n * Get wallet accounts\n */\n async getWalletAccountsRaw(requestParameters: GetWalletAccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Account>>> {\n if (requestParameters.address === null || requestParameters.address === undefined) {\n throw new runtime.RequiredError('address','Required parameter requestParameters.address was null or undefined when calling getWalletAccounts.');\n }\n\n const queryParameters: any = {};\n\n const headerParameters: runtime.HTTPHeaders = {};\n\n const response = await this.request({\n path: `/wallet/{address}/accounts`.replace(`{${\"address\"}}`, encodeURIComponent(String(requestParameters.address))),\n method: 'GET',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n\n return new runtime.JSONApiResponse(response);\n }\n\n /**\n * Get wallet accounts\n */\n async getWalletAccounts(requestParameters: GetWalletAccountsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Account>> {\n const response = await this.getWalletAccountsRaw(requestParameters, initOverrides);\n return await response.value();\n }\n\n /**\n * Returns trading configuration for a wallet\n * Get wallet configuration\n */\n async getWalletConfigurationRaw(requestParameters: GetWalletConfigurationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WalletConfiguration>> {\n if (requestParameters.address === null || requestParameters.address === undefined) {\n throw new runtime.RequiredError('address','Required parameter requestParameters.address was null or undefined when calling getWalletConfiguration.');\n }\n\n const queryParameters: any = {};\n\n const headerParameters: runtime.HTTPHeaders = {};\n\n const response = await this.request({\n path: `/wallet/{address}/configuration`.replace(`{${\"address\"}}`, encodeURIComponent(String(requestParameters.address))),\n method: 'GET',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n\n return new runtime.JSONApiResponse(response);\n }\n\n /**\n * Returns trading configuration for a wallet\n * Get wallet configuration\n */\n async getWalletConfiguration(requestParameters: GetWalletConfigurationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WalletConfiguration> {\n const response = await this.getWalletConfigurationRaw(requestParameters, initOverrides);\n return await response.value();\n }\n\n /**\n * Returns all pending orders for a wallet.\n * Get wallet open orders\n */\n async getWalletOpenOrdersRaw(requestParameters: GetWalletOpenOrdersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Order>>> {\n if (requestParameters.address === null || requestParameters.address === undefined) {\n throw new runtime.RequiredError('address','Required parameter requestParameters.address was null or undefined when calling getWalletOpenOrders.');\n }\n\n const queryParameters: any = {};\n\n const headerParameters: runtime.HTTPHeaders = {};\n\n const response = await this.request({\n path: `/wallet/{address}/openOrders`.replace(`{${\"address\"}}`, encodeURIComponent(String(requestParameters.address))),\n method: 'GET',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n\n return new runtime.JSONApiResponse(response);\n }\n\n /**\n * Returns all pending orders for a wallet.\n * Get wallet open orders\n */\n async getWalletOpenOrders(requestParameters: GetWalletOpenOrdersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Order>> {\n const response = await this.getWalletOpenOrdersRaw(requestParameters, initOverrides);\n return await response.value();\n }\n\n /**\n * Returns up to 100 perp executions for a given wallet.\n * Get wallet perp executions\n */\n async getWalletPerpExecutionsRaw(requestParameters: GetWalletPerpExecutionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PerpExecutionList>> {\n if (requestParameters.address === null || requestParameters.address === undefined) {\n throw new runtime.RequiredError('address','Required parameter requestParameters.address was null or undefined when calling getWalletPerpExecutions.');\n }\n\n const queryParameters: any = {};\n\n if (requestParameters.startTime !== undefined) {\n queryParameters['startTime'] = requestParameters.startTime;\n }\n\n if (requestParameters.endTime !== undefined) {\n queryParameters['endTime'] = requestParameters.endTime;\n }\n\n const headerParameters: runtime.HTTPHeaders = {};\n\n const response = await this.request({\n path: `/wallet/{address}/perpExecutions`.replace(`{${\"address\"}}`, encodeURIComponent(String(requestParameters.address))),\n method: 'GET',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n\n return new runtime.JSONApiResponse(response);\n }\n\n /**\n * Returns up to 100 perp executions for a given wallet.\n * Get wallet perp executions\n */\n async getWalletPerpExecutions(requestParameters: GetWalletPerpExecutionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PerpExecutionList> {\n const response = await this.getWalletPerpExecutionsRaw(requestParameters, initOverrides);\n return await response.value();\n }\n\n /**\n * Get wallet positions\n */\n async getWalletPositionsRaw(requestParameters: GetWalletPositionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Position>>> {\n if (requestParameters.address === null || requestParameters.address === undefined) {\n throw new runtime.RequiredError('address','Required parameter requestParameters.address was null or undefined when calling getWalletPositions.');\n }\n\n const queryParameters: any = {};\n\n const headerParameters: runtime.HTTPHeaders = {};\n\n const response = await this.request({\n path: `/wallet/{address}/positions`.replace(`{${\"address\"}}`, encodeURIComponent(String(requestParameters.address))),\n method: 'GET',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n\n return new runtime.JSONApiResponse(response);\n }\n\n /**\n * Get wallet positions\n */\n async getWalletPositions(requestParameters: GetWalletPositionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Position>> {\n const response = await this.getWalletPositionsRaw(requestParameters, initOverrides);\n return await response.value();\n }\n\n /**\n * Returns up to 100 spot executions for a given wallet.\n * Get wallet spot executions\n */\n async getWalletSpotExecutionsRaw(requestParameters: GetWalletSpotExecutionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SpotExecutionList>> {\n if (requestParameters.address === null || requestParameters.address === undefined) {\n throw new runtime.RequiredError('address','Required parameter requestParameters.address was null or undefined when calling getWalletSpotExecutions.');\n }\n\n const queryParameters: any = {};\n\n if (requestParameters.startTime !== undefined) {\n queryParameters['startTime'] = requestParameters.startTime;\n }\n\n if (requestParameters.endTime !== undefined) {\n queryParameters['endTime'] = requestParameters.endTime;\n }\n\n const headerParameters: runtime.HTTPHeaders = {};\n\n const response = await this.request({\n path: `/wallet/{address}/spotExecutions`.replace(`{${\"address\"}}`, encodeURIComponent(String(requestParameters.address))),\n method: 'GET',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n\n return new runtime.JSONApiResponse(response);\n }\n\n /**\n * Returns up to 100 spot executions for a given wallet.\n * Get wallet spot executions\n */\n async getWalletSpotExecutions(requestParameters: GetWalletSpotExecutionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SpotExecutionList> {\n const response = await this.getWalletSpotExecutionsRaw(requestParameters, initOverrides);\n return await response.value();\n }\n\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"/","sources":["rest/models/index.ts"],"names":[],"mappings":";;;AAwGA;;GAEG;AACU,QAAA,6BAA6B,GAAG;IACzC,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,QAAQ;IAChB,SAAS,EAAE,WAAW;IACtB,QAAQ,EAAE,UAAU;CACd,CAAC;AAqIX;;GAEG;AACU,QAAA,+BAA+B,GAAG;IAC3C,KAAK,EAAE,OAAO;IACd,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;CACF,CAAC;AAGX;;GAEG;AACU,QAAA,iCAAiC,GAAG;IAC7C,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;CACJ,CAAC;A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U,QAAA,qBAAqB,GAAG;IACjC,WAAW,EAAE,aAAa;IAC1B,WAAW,EAAE,aAAa;IAC1B,GAAG,EAAE,KAAK;CACJ,CAAC;AAqFX;;GAEG;AACU,QAAA,kCAAkC,GAAG;IAC9C,CAAC,EAAE,GAAG;IACN,CAAC,EAAE,GAAG;CACA,CAAC;AAGX;;GAEG;AACU,QAAA,kCAAkC,GAAG;IAC9C,WAAW,EAAE,aAAa;IAC1B,WAAW,EAAE,aAAa;IAC1B,GAAG,EAAE,KAAK;CACJ,CAAC;AAIX;;;GAGG;AACU,QAAA,WAAW,GAAG;IACvB,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;CACJ,CAAC","sourcesContent":["/* tslint:disable */\n/* eslint-disable */\n/**\n * \n * @export\n * @interface Account\n */\nexport interface Account {\n /**\n * \n * @type {number}\n * @memberof Account\n */\n accountId: number;\n /**\n * \n * @type {string}\n * @memberof Account\n */\n name: string;\n /**\n * Last update timestamp (milliseconds)\n * @type {number}\n * @memberof Account\n */\n lastUpdateAt: number;\n}\n/**\n * \n * @export\n * @interface AssetDefinition\n */\nexport interface AssetDefinition {\n /**\n * \n * @type {string}\n * @memberof AssetDefinition\n */\n asset: string;\n /**\n * \n * @type {string}\n * @memberof AssetDefinition\n */\n spotMarketSymbol: string;\n /**\n * Notional discount to the value of a collateral when used to satisfy the margin requirements; it does not imply any token conversion, but is rather an accounting adjustment.\n * @type {string}\n * @memberof AssetDefinition\n */\n priceHaircut: string;\n /**\n * Discount in the token price when liquidating collateral.\n * @type {string}\n * @memberof AssetDefinition\n */\n liquidationDiscount: string;\n /**\n * Configuration timestamp (milliseconds)\n * @type {number}\n * @memberof AssetDefinition\n */\n timestamp: number;\n}\n/**\n * \n * @export\n * @interface CancelOrderRequest\n */\nexport interface CancelOrderRequest {\n /**\n * Order ID to cancel\n * @type {string}\n * @memberof CancelOrderRequest\n */\n orderId: string;\n /**\n * See signatures section for more details on how to generate.\n * @type {string}\n * @memberof CancelOrderRequest\n */\n signature: string;\n}\n/**\n * \n * @export\n * @interface CancelOrderResponse\n */\nexport interface CancelOrderResponse {\n /**\n * Order status\n * @type {string}\n * @memberof CancelOrderResponse\n */\n status: CancelOrderResponseStatusEnum;\n /**\n * Cancelled order ID\n * @type {string}\n * @memberof CancelOrderResponse\n */\n orderId: string;\n}\n\n\n/**\n * @export\n */\nexport const CancelOrderResponseStatusEnum = {\n OPEN: 'OPEN',\n FILLED: 'FILLED',\n CANCELLED: 'CANCELLED',\n REJECTED: 'REJECTED'\n} as const;\nexport type CancelOrderResponseStatusEnum = typeof CancelOrderResponseStatusEnum[keyof typeof CancelOrderResponseStatusEnum];\n\n/**\n * \n * @export\n * @interface CandleHistoryData\n */\nexport interface CandleHistoryData {\n /**\n * Array of timestamps (seconds)\n * @type {Array<number>}\n * @memberof CandleHistoryData\n */\n t: Array<number>;\n /**\n * Array of opening prices\n * @type {Array<string>}\n * @memberof CandleHistoryData\n */\n o: Array<string>;\n /**\n * Array of high prices\n * @type {Array<string>}\n * @memberof CandleHistoryData\n */\n h: Array<string>;\n /**\n * Array of low prices\n * @type {Array<string>}\n * @memberof CandleHistoryData\n */\n l: Array<string>;\n /**\n * Array of closing prices\n * @type {Array<string>}\n * @memberof CandleHistoryData\n */\n c: Array<string>;\n}\n/**\n * \n * @export\n * @interface CreateOrderRequest\n */\nexport interface CreateOrderRequest {\n /**\n * \n * @type {number}\n * @memberof CreateOrderRequest\n */\n exchangeId: number;\n /**\n * \n * @type {string}\n * @memberof CreateOrderRequest\n */\n symbol?: string;\n /**\n * \n * @type {number}\n * @memberof CreateOrderRequest\n */\n accountId: number;\n /**\n * Whether this is a buy order\n * @type {boolean}\n * @memberof CreateOrderRequest\n */\n isBuy: boolean;\n /**\n * \n * @type {string}\n * @memberof CreateOrderRequest\n */\n limitPx: string;\n /**\n * \n * @type {string}\n * @memberof CreateOrderRequest\n */\n qty?: string;\n /**\n * Order type, (LIMIT = Limit, TP = Take Profit, SL = Stop Loss)\n * @type {string}\n * @memberof CreateOrderRequest\n */\n orderType: CreateOrderRequestOrderTypeEnum;\n /**\n * Order time in force, exclusively used for LIMIT orders\n * @type {string}\n * @memberof CreateOrderRequest\n */\n timeInForce?: CreateOrderRequestTimeInForceEnum;\n /**\n * Trigger price, only for TP/SL orders\n * @type {string}\n * @memberof CreateOrderRequest\n */\n triggerPx?: string;\n /**\n * Whether this is a reduce-only order, exclusively used for LIMIT IOC orders.\n * @type {boolean}\n * @memberof CreateOrderRequest\n */\n reduceOnly?: boolean;\n /**\n * See signatures and nonces section for more details on how to generate.\n * @type {string}\n * @memberof CreateOrderRequest\n */\n signature: string;\n /**\n * Order nonce, see signatures and nonces section for more details.\n * @type {string}\n * @memberof CreateOrderRequest\n */\n nonce: string;\n /**\n * Signer wallet address\n * @type {string}\n * @memberof CreateOrderRequest\n */\n signerWallet: string;\n /**\n * Expiration timestamp (exclusively for IOC orders). The order will only be filled before this timestamp.\n * @type {number}\n * @memberof CreateOrderRequest\n */\n expiresAfter?: number;\n}\n\n\n/**\n * @export\n */\nexport const CreateOrderRequestOrderTypeEnum = {\n LIMIT: 'LIMIT',\n TP: 'TP',\n SL: 'SL'\n} as const;\nexport type CreateOrderRequestOrderTypeEnum = typeof CreateOrderRequestOrderTypeEnum[keyof typeof CreateOrderRequestOrderTypeEnum];\n\n/**\n * @export\n */\nexport const CreateOrderRequestTimeInForceEnum = {\n IOC: 'IOC',\n GTC: 'GTC'\n} as const;\nexport type CreateOrderRequestTimeInForceEnum = typeof CreateOrderRequestTimeInForceEnum[keyof typeof CreateOrderRequestTimeInForceEnum];\n\n/**\n * \n * @export\n * @interface CreateOrderResponse\n */\nexport interface CreateOrderResponse {\n /**\n * Order status\n * @type {string}\n * @memberof CreateOrderResponse\n */\n status: CreateOrderResponseStatusEnum;\n /**\n * Created order ID (currently generated for all order types except IOC)\n * @type {string}\n * @memberof CreateOrderResponse\n */\n orderId?: string;\n}\n\n\n/**\n * @export\n */\nexport const CreateOrderResponseStatusEnum = {\n OPEN: 'OPEN',\n FILLED: 'FILLED',\n CANCELLED: 'CANCELLED',\n REJECTED: 'REJECTED'\n} as const;\nexport type CreateOrderResponseStatusEnum = typeof CreateOrderResponseStatusEnum[keyof typeof CreateOrderResponseStatusEnum];\n\n\n/**\n * Type of execution\n * @export\n */\nexport const ExecutionType = {\n ORDER_MATCH: 'ORDER_MATCH',\n LIQUIDATION: 'LIQUIDATION',\n ADL: 'ADL'\n} as const;\nexport type ExecutionType = typeof ExecutionType[keyof typeof ExecutionType];\n\n/**\n * \n * @export\n * @interface FeeTierParameters\n */\nexport interface FeeTierParameters {\n /**\n * \n * @type {number}\n * @memberof FeeTierParameters\n */\n tierId: number;\n /**\n * Taker fee rate (fee will be qty * takerFee)\n * @type {string}\n * @memberof FeeTierParameters\n */\n takerFee: string;\n /**\n * Maker fee rate (fee will be qty * makerFee)\n * @type {string}\n * @memberof FeeTierParameters\n */\n makerFee: string;\n /**\n * 14-day volume level required this fee tier to be applied to a wallet\n * @type {string}\n * @memberof FeeTierParameters\n */\n volume14d: string;\n /**\n * Fee tier type (REGULAR = Standard tier, VIP = VIP tier)\n * @type {string}\n * @memberof FeeTierParameters\n */\n tierType: FeeTierParametersTierTypeEnum;\n}\n\n\n/**\n * @export\n */\nexport const FeeTierParametersTierTypeEnum = {\n REGULAR: 'REGULAR',\n VIP: 'VIP'\n} as const;\nexport type FeeTierParametersTierTypeEnum = typeof FeeTierParametersTierTypeEnum[keyof typeof FeeTierParametersTierTypeEnum];\n\n/**\n * \n * @export\n * @interface GlobalFeeParameters\n */\nexport interface GlobalFeeParameters {\n /**\n * OG user discount\n * @type {string}\n * @memberof GlobalFeeParameters\n */\n ogDiscount: string;\n /**\n * Referee discount\n * @type {string}\n * @memberof GlobalFeeParameters\n */\n refereeDiscount: string;\n /**\n * Referrer rebate\n * @type {string}\n * @memberof GlobalFeeParameters\n */\n referrerRebate: string;\n /**\n * Affiliate referrer rebate\n * @type {string}\n * @memberof GlobalFeeParameters\n */\n affiliateReferrerRebate: string;\n}\n/**\n * \n * @export\n * @interface LiquidityParameters\n */\nexport interface LiquidityParameters {\n /**\n * \n * @type {string}\n * @memberof LiquidityParameters\n */\n symbol: string;\n /**\n * Parameter determining the liquidity distribution along the AMM pricing curve, in particular expanding or contracting the max exposure parameter that would otherwise be determined by the capital available.\n * @type {string}\n * @memberof LiquidityParameters\n */\n depth: string;\n /**\n * Parameter determining the sensitivity of the dynamic funding rate to the size of the imbalances; higher multiplier means that the funding rate will diverge faster, all else being equal.\n * @type {string}\n * @memberof LiquidityParameters\n */\n velocityMultiplier: string;\n}\n/**\n * \n * @export\n * @interface MarketDefinition\n */\nexport interface MarketDefinition {\n /**\n * \n * @type {string}\n * @memberof MarketDefinition\n */\n symbol: string;\n /**\n * Numerical identifier for each market, only needed to generate signatures\n * @type {number}\n * @memberof MarketDefinition\n */\n marketId: number;\n /**\n * \n * @type {string}\n * @memberof MarketDefinition\n */\n minOrderQty: string;\n /**\n * Minimum size increment\n * @type {string}\n * @memberof MarketDefinition\n */\n qtyStepSize: string;\n /**\n * Minimum price increment\n * @type {string}\n * @memberof MarketDefinition\n */\n tickSize: string;\n /**\n * Minimum percentage of notional that needs to be covered to avoid liquidation procedures for a given market; below this value, your account is subject to liquidation procedures. When cross margining, all requirements across markets are covered by the same balance, and all positions are subject to liquidations.\n * @type {string}\n * @memberof MarketDefinition\n */\n liquidationMarginParameter: string;\n /**\n * Minimum percentage of notional that needs to be covered post trade; if the account does not satisfy this requirement, trades will not get executed.\n * @type {string}\n * @memberof MarketDefinition\n */\n initialMarginParameter: string;\n /**\n * Maximum leverage allowed\n * @type {number}\n * @memberof MarketDefinition\n */\n maxLeverage: number;\n /**\n * Maximum one-sided open interest in units for a given market.\n * @type {string}\n * @memberof MarketDefinition\n */\n oiCap: string;\n}\n/**\n * \n * @export\n * @interface MarketSummary\n */\nexport interface MarketSummary {\n /**\n * \n * @type {string}\n * @memberof MarketSummary\n */\n symbol: string;\n /**\n * Time when the market summary was last calculated (milliseconds)\n * @type {number}\n * @memberof MarketSummary\n */\n updatedAt: number;\n /**\n * Long open interest in lots\n * @type {string}\n * @memberof MarketSummary\n */\n longOiQty: string;\n /**\n * Short open interest in lots\n * @type {string}\n * @memberof MarketSummary\n */\n shortOiQty: string;\n /**\n * Total open interest quantity\n * @type {string}\n * @memberof MarketSummary\n */\n oiQty: string;\n /**\n * Current hourly funding rate\n * @type {string}\n * @memberof MarketSummary\n */\n fundingRate: string;\n /**\n * Current reference value of funding accrued by one unit of exposure; there is one funding value per market and per direction, with short v long funding values differing possibly due to Auto-Deleveraging (ADL)\n * @type {string}\n * @memberof MarketSummary\n */\n longFundingValue: string;\n /**\n * Current reference value of funding accrued by one unit of exposure; there is one funding value per market and per direction, with short v long funding values differing possibly due to Auto-Deleveraging (ADL)\n * @type {string}\n * @memberof MarketSummary\n */\n shortFundingValue: string;\n /**\n * Funding rate velocity\n * @type {string}\n * @memberof MarketSummary\n */\n fundingRateVelocity: string;\n /**\n * \n * @type {string}\n * @memberof MarketSummary\n */\n volume24h: string;\n /**\n * \n * @type {string}\n * @memberof MarketSummary\n */\n pxChange24h?: string;\n /**\n * Last oracle price, at the moment of the last market summary update\n * @type {string}\n * @memberof MarketSummary\n */\n throttledOraclePrice?: string;\n /**\n * Last pool price, at the moment of the last market summary update\n * @type {string}\n * @memberof MarketSummary\n */\n throttledPoolPrice?: string;\n /**\n * Timestamp of the last price update (milliseconds)\n * @type {number}\n * @memberof MarketSummary\n */\n pricesUpdatedAt?: number;\n}\n/**\n * \n * @export\n * @interface Order\n */\nexport interface Order {\n /**\n * \n * @type {number}\n * @memberof Order\n */\n exchangeId: number;\n /**\n * \n * @type {string}\n * @memberof Order\n */\n symbol: string;\n /**\n * \n * @type {number}\n * @memberof Order\n */\n accountId: number;\n /**\n * \n * @type {string}\n * @memberof Order\n */\n orderId?: string;\n /**\n * \n * @type {string}\n * @memberof Order\n */\n qty?: string;\n /**\n * Executed quantity. Example: I request 1.0 BTCRUSDPERP and the order is filled with 0.2 BTCRUSDPERP, qty will stay at 1.0 and execQty will be 0.2.\n * @type {string}\n * @memberof Order\n */\n execQty?: string;\n /**\n * Order side (B = Buy/Bid, A = Ask/Sell)\n * @type {string}\n * @memberof Order\n */\n side: OrderSideEnum;\n /**\n * \n * @type {string}\n * @memberof Order\n */\n limitPx: string;\n /**\n * Order type, (LIMIT = Limit, TP = Take Profit, SL = Stop Loss)\n * @type {string}\n * @memberof Order\n */\n orderType: OrderOrderTypeEnum;\n /**\n * Price at which TP/SL orders will be triggered, should not be set for other order types.\n * @type {string}\n * @memberof Order\n */\n triggerPx?: string;\n /**\n * Order time in force, exclusively used for LIMIT orders\n * @type {string}\n * @memberof Order\n */\n timeInForce?: OrderTimeInForceEnum;\n /**\n * Whether this is a reduce-only order, exclusively used for LIMIT IOC orders.\n * @type {boolean}\n * @memberof Order\n */\n reduceOnly?: boolean;\n /**\n * Order status\n * @type {string}\n * @memberof Order\n */\n status: OrderStatusEnum;\n /**\n * Creation timestamp (milliseconds)\n * @type {number}\n * @memberof Order\n */\n createdAt: number;\n /**\n * Last update timestamp (milliseconds)\n * @type {number}\n * @memberof Order\n */\n lastUpdateAt: number;\n}\n\n\n/**\n * @export\n */\nexport const OrderSideEnum = {\n B: 'B',\n A: 'A'\n} as const;\nexport type OrderSideEnum = typeof OrderSideEnum[keyof typeof OrderSideEnum];\n\n/**\n * @export\n */\nexport const OrderOrderTypeEnum = {\n LIMIT: 'LIMIT',\n TP: 'TP',\n SL: 'SL'\n} as const;\nexport type OrderOrderTypeEnum = typeof OrderOrderTypeEnum[keyof typeof OrderOrderTypeEnum];\n\n/**\n * @export\n */\nexport const OrderTimeInForceEnum = {\n IOC: 'IOC',\n GTC: 'GTC'\n} as const;\nexport type OrderTimeInForceEnum = typeof OrderTimeInForceEnum[keyof typeof OrderTimeInForceEnum];\n\n/**\n * @export\n */\nexport const OrderStatusEnum = {\n OPEN: 'OPEN',\n FILLED: 'FILLED',\n CANCELLED: 'CANCELLED',\n REJECTED: 'REJECTED'\n} as const;\nexport type OrderStatusEnum = typeof OrderStatusEnum[keyof typeof OrderStatusEnum];\n\n\n/**\n * Order status\n * @export\n */\nexport const OrderStatus = {\n OPEN: 'OPEN',\n FILLED: 'FILLED',\n CANCELLED: 'CANCELLED',\n REJECTED: 'REJECTED'\n} as const;\nexport type OrderStatus = typeof OrderStatus[keyof typeof OrderStatus];\n\n\n/**\n * Order type, (LIMIT = Limit, TP = Take Profit, SL = Stop Loss)\n * @export\n */\nexport const OrderType = {\n LIMIT: 'LIMIT',\n TP: 'TP',\n SL: 'SL'\n} as const;\nexport type OrderType = typeof OrderType[keyof typeof OrderType];\n\n/**\n * \n * @export\n * @interface PaginationParameters\n */\nexport interface PaginationParameters {\n /**\n * Number of items requested\n * @type {number}\n * @memberof PaginationParameters\n */\n limit: number;\n /**\n * Number of items returned\n * @type {number}\n * @memberof PaginationParameters\n */\n count: number;\n /**\n * Timestamp of last result, in milliseconds\n * @type {number}\n * @memberof PaginationParameters\n */\n endTime?: number;\n /**\n * Timestamp of first result, in milliseconds\n * @type {number}\n * @memberof PaginationParameters\n */\n startTime?: number;\n}\n/**\n * \n * @export\n * @interface PerpExecution\n */\nexport interface PerpExecution {\n /**\n * \n * @type {number}\n * @memberof PerpExecution\n */\n exchangeId: number;\n /**\n * \n * @type {string}\n * @memberof PerpExecution\n */\n symbol: string;\n /**\n * \n * @type {number}\n * @memberof PerpExecution\n */\n accountId: number;\n /**\n * \n * @type {string}\n * @memberof PerpExecution\n */\n qty: string;\n /**\n * Order side (B = Buy/Bid, A = Ask/Sell)\n * @type {string}\n * @memberof PerpExecution\n */\n side: PerpExecutionSideEnum;\n /**\n * \n * @type {string}\n * @memberof PerpExecution\n */\n price: string;\n /**\n * \n * @type {string}\n * @memberof PerpExecution\n */\n fee: string;\n /**\n * Type of execution\n * @type {string}\n * @memberof PerpExecution\n */\n type: PerpExecutionTypeEnum;\n /**\n * Execution timestamp (milliseconds)\n * @type {number}\n * @memberof PerpExecution\n */\n timestamp: number;\n /**\n * Execution sequence number, increases by 1 for every perp execution in reya chain\n * @type {number}\n * @memberof PerpExecution\n */\n sequenceNumber: number;\n}\n\n\n/**\n * @export\n */\nexport const PerpExecutionSideEnum = {\n B: 'B',\n A: 'A'\n} as const;\nexport type PerpExecutionSideEnum = typeof PerpExecutionSideEnum[keyof typeof PerpExecutionSideEnum];\n\n/**\n * @export\n */\nexport const PerpExecutionTypeEnum = {\n ORDER_MATCH: 'ORDER_MATCH',\n LIQUIDATION: 'LIQUIDATION',\n ADL: 'ADL'\n} as const;\nexport type PerpExecutionTypeEnum = typeof PerpExecutionTypeEnum[keyof typeof PerpExecutionTypeEnum];\n\n/**\n * \n * @export\n * @interface PerpExecutionList\n */\nexport interface PerpExecutionList {\n /**\n * \n * @type {Array<PerpExecutionListDataInner>}\n * @memberof PerpExecutionList\n */\n data: Array<PerpExecutionListDataInner>;\n /**\n * \n * @type {PerpExecutionListMeta}\n * @memberof PerpExecutionList\n */\n meta: PerpExecutionListMeta;\n}\n/**\n * \n * @export\n * @interface PerpExecutionListDataInner\n */\nexport interface PerpExecutionListDataInner {\n /**\n * \n * @type {number}\n * @memberof PerpExecutionListDataInner\n */\n exchangeId: number;\n /**\n * \n * @type {string}\n * @memberof PerpExecutionListDataInner\n */\n symbol: string;\n /**\n * \n * @type {number}\n * @memberof PerpExecutionListDataInner\n */\n accountId: number;\n /**\n * \n * @type {string}\n * @memberof PerpExecutionListDataInner\n */\n qty: string;\n /**\n * Order side (B = Buy/Bid, A = Ask/Sell)\n * @type {string}\n * @memberof PerpExecutionListDataInner\n */\n side: PerpExecutionListDataInnerSideEnum;\n /**\n * \n * @type {string}\n * @memberof PerpExecutionListDataInner\n */\n price: string;\n /**\n * \n * @type {string}\n * @memberof PerpExecutionListDataInner\n */\n fee: string;\n /**\n * Type of execution\n * @type {string}\n * @memberof PerpExecutionListDataInner\n */\n type: PerpExecutionListDataInnerTypeEnum;\n /**\n * Execution timestamp (milliseconds)\n * @type {number}\n * @memberof PerpExecutionListDataInner\n */\n timestamp: number;\n /**\n * Execution sequence number, increases by 1 for every perp execution in reya chain\n * @type {number}\n * @memberof PerpExecutionListDataInner\n */\n sequenceNumber: number;\n}\n\n\n/**\n * @export\n */\nexport const PerpExecutionListDataInnerSideEnum = {\n B: 'B',\n A: 'A'\n} as const;\nexport type PerpExecutionListDataInnerSideEnum = typeof PerpExecutionListDataInnerSideEnum[keyof typeof PerpExecutionListDataInnerSideEnum];\n\n/**\n * @export\n */\nexport const PerpExecutionListDataInnerTypeEnum = {\n ORDER_MATCH: 'ORDER_MATCH',\n LIQUIDATION: 'LIQUIDATION',\n ADL: 'ADL'\n} as const;\nexport type PerpExecutionListDataInnerTypeEnum = typeof PerpExecutionListDataInnerTypeEnum[keyof typeof PerpExecutionListDataInnerTypeEnum];\n\n/**\n * \n * @export\n * @interface PerpExecutionListMeta\n */\nexport interface PerpExecutionListMeta {\n /**\n * Number of items requested\n * @type {number}\n * @memberof PerpExecutionListMeta\n */\n limit: number;\n /**\n * Number of items returned\n * @type {number}\n * @memberof PerpExecutionListMeta\n */\n count: number;\n /**\n * Timestamp of last result, in milliseconds\n * @type {number}\n * @memberof PerpExecutionListMeta\n */\n endTime?: number;\n /**\n * Timestamp of first result, in milliseconds\n * @type {number}\n * @memberof PerpExecutionListMeta\n */\n startTime?: number;\n}\n/**\n * \n * @export\n * @interface Position\n */\nexport interface Position {\n /**\n * \n * @type {number}\n * @memberof Position\n */\n exchangeId: number;\n /**\n * \n * @type {string}\n * @memberof Position\n */\n symbol: string;\n /**\n * \n * @type {number}\n * @memberof Position\n */\n accountId: number;\n /**\n * \n * @type {string}\n * @memberof Position\n */\n qty: string;\n /**\n * Order side (B = Buy/Bid, A = Ask/Sell)\n * @type {string}\n * @memberof Position\n */\n side: PositionSideEnum;\n /**\n * \n * @type {string}\n * @memberof Position\n */\n avgEntryPrice: string;\n /**\n * Average of funding values at the entry times of currently open exposure, which serves as a baseline from which to compute the accrued funding in the position: units x (fundingValue - avgEntryFundingValue)\n * @type {string}\n * @memberof Position\n */\n avgEntryFundingValue: string;\n /**\n * Sequence number of last execution taken into account for the position.\n * @type {number}\n * @memberof Position\n */\n lastTradeSequenceNumber: number;\n}\n\n\n/**\n * @export\n */\nexport const PositionSideEnum = {\n B: 'B',\n A: 'A'\n} as const;\nexport type PositionSideEnum = typeof PositionSideEnum[keyof typeof PositionSideEnum];\n\n/**\n * \n * @export\n * @interface Price\n */\nexport interface Price {\n /**\n * \n * @type {string}\n * @memberof Price\n */\n symbol: string;\n /**\n * Price given by the Stork feeds, used both as the peg price for prices on Reya, as well as Mark Prices. The Stork price feed is usually the perp prices across three major CEXs\n * @type {string}\n * @memberof Price\n */\n oraclePrice?: string;\n /**\n * The price currently quoted by the AMM for zero volume, from which trades are priced (equivalent to mid price in an order book); a trade of any size will be move this price up or down depending on the direction.\n * @type {string}\n * @memberof Price\n */\n poolPrice?: string;\n /**\n * Last update timestamp (milliseconds)\n * @type {number}\n * @memberof Price\n */\n updatedAt: number;\n}\n/**\n * \n * @export\n * @interface RequestError\n */\nexport interface RequestError {\n /**\n * Standardized error codes for API responses\n * @type {string}\n * @memberof RequestError\n */\n error: RequestErrorErrorEnum;\n /**\n * Human-readable error message\n * @type {string}\n * @memberof RequestError\n */\n message: string;\n}\n\n\n/**\n * @export\n */\nexport const RequestErrorErrorEnum = {\n SYMBOL_NOT_FOUND: 'SYMBOL_NOT_FOUND',\n NO_ACCOUNTS_FOUND: 'NO_ACCOUNTS_FOUND',\n NO_PRICES_FOUND_FOR_SYMBOL: 'NO_PRICES_FOUND_FOR_SYMBOL',\n INPUT_VALIDATION_ERROR: 'INPUT_VALIDATION_ERROR',\n CREATE_ORDER_OTHER_ERROR: 'CREATE_ORDER_OTHER_ERROR',\n CANCEL_ORDER_OTHER_ERROR: 'CANCEL_ORDER_OTHER_ERROR'\n} as const;\nexport type RequestErrorErrorEnum = typeof RequestErrorErrorEnum[keyof typeof RequestErrorErrorEnum];\n\n\n/**\n * Standardized error codes for API responses\n * @export\n */\nexport const RequestErrorCode = {\n SYMBOL_NOT_FOUND: 'SYMBOL_NOT_FOUND',\n NO_ACCOUNTS_FOUND: 'NO_ACCOUNTS_FOUND',\n NO_PRICES_FOUND_FOR_SYMBOL: 'NO_PRICES_FOUND_FOR_SYMBOL',\n INPUT_VALIDATION_ERROR: 'INPUT_VALIDATION_ERROR',\n CREATE_ORDER_OTHER_ERROR: 'CREATE_ORDER_OTHER_ERROR',\n CANCEL_ORDER_OTHER_ERROR: 'CANCEL_ORDER_OTHER_ERROR'\n} as const;\nexport type RequestErrorCode = typeof RequestErrorCode[keyof typeof RequestErrorCode];\n\n/**\n * \n * @export\n * @interface ServerError\n */\nexport interface ServerError {\n /**\n * Standardized error codes for API responses\n * @type {string}\n * @memberof ServerError\n */\n error: ServerErrorErrorEnum;\n /**\n * Human-readable error message\n * @type {string}\n * @memberof ServerError\n */\n message: string;\n}\n\n\n/**\n * @export\n */\nexport const ServerErrorErrorEnum = {\n INTERNAL_SERVER_ERROR: 'INTERNAL_SERVER_ERROR'\n} as const;\nexport type ServerErrorErrorEnum = typeof ServerErrorErrorEnum[keyof typeof ServerErrorErrorEnum];\n\n\n/**\n * Standardized error codes for API responses\n * @export\n */\nexport const ServerErrorCode = {\n INTERNAL_SERVER_ERROR: 'INTERNAL_SERVER_ERROR'\n} as const;\nexport type ServerErrorCode = typeof ServerErrorCode[keyof typeof ServerErrorCode];\n\n\n/**\n * Order side (B = Buy/Bid, A = Ask/Sell)\n * @export\n */\nexport const Side = {\n B: 'B',\n A: 'A'\n} as const;\nexport type Side = typeof Side[keyof typeof Side];\n\n/**\n * \n * @export\n * @interface SpotExecution\n */\nexport interface SpotExecution {\n /**\n * \n * @type {number}\n * @memberof SpotExecution\n */\n exchangeId: number;\n /**\n * \n * @type {string}\n * @memberof SpotExecution\n */\n symbol: string;\n /**\n * \n * @type {number}\n * @memberof SpotExecution\n */\n accountId: number;\n /**\n * Order side (B = Buy/Bid, A = Ask/Sell)\n * @type {string}\n * @memberof SpotExecution\n */\n side: SpotExecutionSideEnum;\n /**\n * \n * @type {string}\n * @memberof SpotExecution\n */\n qty: string;\n /**\n * \n * @type {string}\n * @memberof SpotExecution\n */\n price?: string;\n /**\n * \n * @type {string}\n * @memberof SpotExecution\n */\n fee: string;\n /**\n * Type of execution\n * @type {string}\n * @memberof SpotExecution\n */\n type: SpotExecutionTypeEnum;\n /**\n * Execution timestamp (milliseconds)\n * @type {number}\n * @memberof SpotExecution\n */\n timestamp: number;\n}\n\n\n/**\n * @export\n */\nexport const SpotExecutionSideEnum = {\n B: 'B',\n A: 'A'\n} as const;\nexport type SpotExecutionSideEnum = typeof SpotExecutionSideEnum[keyof typeof SpotExecutionSideEnum];\n\n/**\n * @export\n */\nexport const SpotExecutionTypeEnum = {\n ORDER_MATCH: 'ORDER_MATCH',\n LIQUIDATION: 'LIQUIDATION',\n ADL: 'ADL'\n} as const;\nexport type SpotExecutionTypeEnum = typeof SpotExecutionTypeEnum[keyof typeof SpotExecutionTypeEnum];\n\n/**\n * \n * @export\n * @interface SpotExecutionList\n */\nexport interface SpotExecutionList {\n /**\n * \n * @type {Array<SpotExecutionListDataInner>}\n * @memberof SpotExecutionList\n */\n data: Array<SpotExecutionListDataInner>;\n /**\n * \n * @type {PerpExecutionListMeta}\n * @memberof SpotExecutionList\n */\n meta: PerpExecutionListMeta;\n}\n/**\n * \n * @export\n * @interface SpotExecutionListDataInner\n */\nexport interface SpotExecutionListDataInner {\n /**\n * \n * @type {number}\n * @memberof SpotExecutionListDataInner\n */\n exchangeId: number;\n /**\n * \n * @type {string}\n * @memberof SpotExecutionListDataInner\n */\n symbol: string;\n /**\n * \n * @type {number}\n * @memberof SpotExecutionListDataInner\n */\n accountId: number;\n /**\n * Order side (B = Buy/Bid, A = Ask/Sell)\n * @type {string}\n * @memberof SpotExecutionListDataInner\n */\n side: SpotExecutionListDataInnerSideEnum;\n /**\n * \n * @type {string}\n * @memberof SpotExecutionListDataInner\n */\n qty: string;\n /**\n * \n * @type {string}\n * @memberof SpotExecutionListDataInner\n */\n price?: string;\n /**\n * \n * @type {string}\n * @memberof SpotExecutionListDataInner\n */\n fee: string;\n /**\n * Type of execution\n * @type {string}\n * @memberof SpotExecutionListDataInner\n */\n type: SpotExecutionListDataInnerTypeEnum;\n /**\n * Execution timestamp (milliseconds)\n * @type {number}\n * @memberof SpotExecutionListDataInner\n */\n timestamp: number;\n}\n\n\n/**\n * @export\n */\nexport const SpotExecutionListDataInnerSideEnum = {\n B: 'B',\n A: 'A'\n} as const;\nexport type SpotExecutionListDataInnerSideEnum = typeof SpotExecutionListDataInnerSideEnum[keyof typeof SpotExecutionListDataInnerSideEnum];\n\n/**\n * @export\n */\nexport const SpotExecutionListDataInnerTypeEnum = {\n ORDER_MATCH: 'ORDER_MATCH',\n LIQUIDATION: 'LIQUIDATION',\n ADL: 'ADL'\n} as const;\nexport type SpotExecutionListDataInnerTypeEnum = typeof SpotExecutionListDataInnerTypeEnum[keyof typeof SpotExecutionListDataInnerTypeEnum];\n\n\n/**\n * Order time in force (IOC = Immediate or Cancel, GTC = Good Till Cancel)\n * @export\n */\nexport const TimeInForce = {\n IOC: 'IOC',\n GTC: 'GTC'\n} as const;\nexport type TimeInForce = typeof TimeInForce[keyof typeof TimeInForce];\n\n/**\n * \n * @export\n * @interface WalletConfiguration\n */\nexport interface WalletConfiguration {\n /**\n * Fee tier identifier\n * @type {number}\n * @memberof WalletConfiguration\n */\n feeTierId: number;\n /**\n * OG status\n * @type {boolean}\n * @memberof WalletConfiguration\n */\n ogStatus: boolean;\n /**\n * Affiliate status\n * @type {boolean}\n * @memberof WalletConfiguration\n */\n affiliateStatus: boolean;\n /**\n * Referee status\n * @type {boolean}\n * @memberof WalletConfiguration\n */\n refereeStatus: boolean;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"/","sources":["rest/models/index.ts"],"names":[],"mappings":";;;AAiIA;;GAEG;AACU,QAAA,6BAA6B,GAAG;IACzC,IAAI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AAqB,EAAE,uBAAuB;CACxC,CAAC;AAIX;;;GAGG;AACU,QAAA,eAAe,GAAG;IAC3B,qBAAqB,EAAE,uBAAuB;CACxC,CAAC;AAIX;;;GAGG;AACU,QAAA,IAAI,GAAG;IAChB,CAAC,EAAE,GAAG;IACN,CAAC,EAAE,GAAG;CACA,CAAC;AAkEX;;GAEG;AACU,QAAA,qBAAqB,GAAG;IACjC,CAAC,EAAE,GAAG;IACN,CAAC,EAAE,GAAG;CACA,CAAC;AAGX;;GAEG;AACU,QAAA,qBAAqB,GAAG;IACjC,WAAW,EAAE,aAAa;IAC1B,WAAW,EAAE,aAAa;IAC1B,GAAG,EAAE,KAAK;CACJ,CAAC;AAqFX;;GAEG;AACU,QAAA,kCAAkC,GAAG;IAC9C,CAAC,EAAE,GAAG;IACN,CAAC,EAAE,GAAG;CACA,CAAC;AAGX;;GAEG;AACU,QAAA,kCAAkC,GAAG;IAC9C,WAAW,EAAE,aAAa;IAC1B,WAAW,EAAE,aAAa;IAC1B,GAAG,EAAE,KAAK;CACJ,CAAC;AAIX;;;GAGG;AACU,QAAA,WAAW,GAAG;IACvB,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;CACJ,CAAC","sourcesContent":["/* tslint:disable */\n/* eslint-disable */\n/**\n * \n * @export\n * @interface Account\n */\nexport interface Account {\n /**\n * \n * @type {number}\n * @memberof Account\n */\n accountId: number;\n /**\n * \n * @type {string}\n * @memberof Account\n */\n name: string;\n /**\n * Last update timestamp (milliseconds)\n * @type {number}\n * @memberof Account\n */\n lastUpdateAt: number;\n}\n/**\n * \n * @export\n * @interface AccountBalance\n */\nexport interface AccountBalance {\n /**\n * \n * @type {number}\n * @memberof AccountBalance\n */\n accountId: number;\n /**\n * \n * @type {string}\n * @memberof AccountBalance\n */\n asset: string;\n /**\n * Sum of account net deposits (transfers, deposits and withdrawals) and realized pnl from closed positions. Realized pnl only applies to RUSD given it is the only settlement asset\n * @type {string}\n * @memberof AccountBalance\n */\n realBalance: string;\n}\n/**\n * \n * @export\n * @interface AssetDefinition\n */\nexport interface AssetDefinition {\n /**\n * \n * @type {string}\n * @memberof AssetDefinition\n */\n asset: string;\n /**\n * \n * @type {string}\n * @memberof AssetDefinition\n */\n spotMarketSymbol: string;\n /**\n * Notional discount to the value of a collateral when used to satisfy the margin requirements; it does not imply any token conversion, but is rather an accounting adjustment.\n * @type {string}\n * @memberof AssetDefinition\n */\n priceHaircut: string;\n /**\n * Discount in the token price when liquidating collateral.\n * @type {string}\n * @memberof AssetDefinition\n */\n liquidationDiscount: string;\n /**\n * Configuration timestamp (milliseconds)\n * @type {number}\n * @memberof AssetDefinition\n */\n timestamp: number;\n}\n/**\n * \n * @export\n * @interface CancelOrderRequest\n */\nexport interface CancelOrderRequest {\n /**\n * Order ID to cancel\n * @type {string}\n * @memberof CancelOrderRequest\n */\n orderId: string;\n /**\n * See signatures section for more details on how to generate.\n * @type {string}\n * @memberof CancelOrderRequest\n */\n signature: string;\n}\n/**\n * \n * @export\n * @interface CancelOrderResponse\n */\nexport interface CancelOrderResponse {\n /**\n * Order status\n * @type {string}\n * @memberof CancelOrderResponse\n */\n status: CancelOrderResponseStatusEnum;\n /**\n * Cancelled order ID\n * @type {string}\n * @memberof CancelOrderResponse\n */\n orderId: string;\n}\n\n\n/**\n * @export\n */\nexport const CancelOrderResponseStatusEnum = {\n OPEN: 'OPEN',\n FILLED: 'FILLED',\n CANCELLED: 'CANCELLED',\n REJECTED: 'REJECTED'\n} as const;\nexport type CancelOrderResponseStatusEnum = typeof CancelOrderResponseStatusEnum[keyof typeof CancelOrderResponseStatusEnum];\n\n/**\n * \n * @export\n * @interface CandleHistoryData\n */\nexport interface CandleHistoryData {\n /**\n * Array of timestamps (seconds)\n * @type {Array<number>}\n * @memberof CandleHistoryData\n */\n t: Array<number>;\n /**\n * Array of opening prices\n * @type {Array<string>}\n * @memberof CandleHistoryData\n */\n o: Array<string>;\n /**\n * Array of high prices\n * @type {Array<string>}\n * @memberof CandleHistoryData\n */\n h: Array<string>;\n /**\n * Array of low prices\n * @type {Array<string>}\n * @memberof CandleHistoryData\n */\n l: Array<string>;\n /**\n * Array of closing prices\n * @type {Array<string>}\n * @memberof CandleHistoryData\n */\n c: Array<string>;\n}\n/**\n * \n * @export\n * @interface CreateOrderRequest\n */\nexport interface CreateOrderRequest {\n /**\n * \n * @type {number}\n * @memberof CreateOrderRequest\n */\n exchangeId: number;\n /**\n * \n * @type {string}\n * @memberof CreateOrderRequest\n */\n symbol?: string;\n /**\n * \n * @type {number}\n * @memberof CreateOrderRequest\n */\n accountId: number;\n /**\n * Whether this is a buy order\n * @type {boolean}\n * @memberof CreateOrderRequest\n */\n isBuy: boolean;\n /**\n * \n * @type {string}\n * @memberof CreateOrderRequest\n */\n limitPx: string;\n /**\n * \n * @type {string}\n * @memberof CreateOrderRequest\n */\n qty?: string;\n /**\n * Order type, (LIMIT = Limit, TP = Take Profit, SL = Stop Loss)\n * @type {string}\n * @memberof CreateOrderRequest\n */\n orderType: CreateOrderRequestOrderTypeEnum;\n /**\n * Order time in force, exclusively used for LIMIT orders\n * @type {string}\n * @memberof CreateOrderRequest\n */\n timeInForce?: CreateOrderRequestTimeInForceEnum;\n /**\n * Trigger price, only for TP/SL orders\n * @type {string}\n * @memberof CreateOrderRequest\n */\n triggerPx?: string;\n /**\n * Whether this is a reduce-only order, exclusively used for LIMIT IOC orders.\n * @type {boolean}\n * @memberof CreateOrderRequest\n */\n reduceOnly?: boolean;\n /**\n * See signatures and nonces section for more details on how to generate.\n * @type {string}\n * @memberof CreateOrderRequest\n */\n signature: string;\n /**\n * Order nonce, see signatures and nonces section for more details.\n * @type {string}\n * @memberof CreateOrderRequest\n */\n nonce: string;\n /**\n * Signer wallet address\n * @type {string}\n * @memberof CreateOrderRequest\n */\n signerWallet: string;\n /**\n * Expiration timestamp (exclusively for IOC orders). The order will only be filled before this timestamp.\n * @type {number}\n * @memberof CreateOrderRequest\n */\n expiresAfter?: number;\n}\n\n\n/**\n * @export\n */\nexport const CreateOrderRequestOrderTypeEnum = {\n LIMIT: 'LIMIT',\n TP: 'TP',\n SL: 'SL'\n} as const;\nexport type CreateOrderRequestOrderTypeEnum = typeof CreateOrderRequestOrderTypeEnum[keyof typeof CreateOrderRequestOrderTypeEnum];\n\n/**\n * @export\n */\nexport const CreateOrderRequestTimeInForceEnum = {\n IOC: 'IOC',\n GTC: 'GTC'\n} as const;\nexport type CreateOrderRequestTimeInForceEnum = typeof CreateOrderRequestTimeInForceEnum[keyof typeof CreateOrderRequestTimeInForceEnum];\n\n/**\n * \n * @export\n * @interface CreateOrderResponse\n */\nexport interface CreateOrderResponse {\n /**\n * Order status\n * @type {string}\n * @memberof CreateOrderResponse\n */\n status: CreateOrderResponseStatusEnum;\n /**\n * Created order ID (currently generated for all order types except IOC)\n * @type {string}\n * @memberof CreateOrderResponse\n */\n orderId?: string;\n}\n\n\n/**\n * @export\n */\nexport const CreateOrderResponseStatusEnum = {\n OPEN: 'OPEN',\n FILLED: 'FILLED',\n CANCELLED: 'CANCELLED',\n REJECTED: 'REJECTED'\n} as const;\nexport type CreateOrderResponseStatusEnum = typeof CreateOrderResponseStatusEnum[keyof typeof CreateOrderResponseStatusEnum];\n\n\n/**\n * Type of execution\n * @export\n */\nexport const ExecutionType = {\n ORDER_MATCH: 'ORDER_MATCH',\n LIQUIDATION: 'LIQUIDATION',\n ADL: 'ADL'\n} as const;\nexport type ExecutionType = typeof ExecutionType[keyof typeof ExecutionType];\n\n/**\n * \n * @export\n * @interface FeeTierParameters\n */\nexport interface FeeTierParameters {\n /**\n * \n * @type {number}\n * @memberof FeeTierParameters\n */\n tierId: number;\n /**\n * Taker fee rate (fee will be qty * takerFee)\n * @type {string}\n * @memberof FeeTierParameters\n */\n takerFee: string;\n /**\n * Maker fee rate (fee will be qty * makerFee)\n * @type {string}\n * @memberof FeeTierParameters\n */\n makerFee: string;\n /**\n * 14-day volume level required this fee tier to be applied to a wallet\n * @type {string}\n * @memberof FeeTierParameters\n */\n volume14d: string;\n /**\n * Fee tier type (REGULAR = Standard tier, VIP = VIP tier)\n * @type {string}\n * @memberof FeeTierParameters\n */\n tierType: FeeTierParametersTierTypeEnum;\n}\n\n\n/**\n * @export\n */\nexport const FeeTierParametersTierTypeEnum = {\n REGULAR: 'REGULAR',\n VIP: 'VIP'\n} as const;\nexport type FeeTierParametersTierTypeEnum = typeof FeeTierParametersTierTypeEnum[keyof typeof FeeTierParametersTierTypeEnum];\n\n/**\n * \n * @export\n * @interface GlobalFeeParameters\n */\nexport interface GlobalFeeParameters {\n /**\n * OG user discount\n * @type {string}\n * @memberof GlobalFeeParameters\n */\n ogDiscount: string;\n /**\n * Referee discount\n * @type {string}\n * @memberof GlobalFeeParameters\n */\n refereeDiscount: string;\n /**\n * Referrer rebate\n * @type {string}\n * @memberof GlobalFeeParameters\n */\n referrerRebate: string;\n /**\n * Affiliate referrer rebate\n * @type {string}\n * @memberof GlobalFeeParameters\n */\n affiliateReferrerRebate: string;\n}\n/**\n * \n * @export\n * @interface LiquidityParameters\n */\nexport interface LiquidityParameters {\n /**\n * \n * @type {string}\n * @memberof LiquidityParameters\n */\n symbol: string;\n /**\n * Parameter determining the liquidity distribution along the AMM pricing curve, in particular expanding or contracting the max exposure parameter that would otherwise be determined by the capital available.\n * @type {string}\n * @memberof LiquidityParameters\n */\n depth: string;\n /**\n * Parameter determining the sensitivity of the dynamic funding rate to the size of the imbalances; higher multiplier means that the funding rate will diverge faster, all else being equal.\n * @type {string}\n * @memberof LiquidityParameters\n */\n velocityMultiplier: string;\n}\n/**\n * \n * @export\n * @interface MarketDefinition\n */\nexport interface MarketDefinition {\n /**\n * \n * @type {string}\n * @memberof MarketDefinition\n */\n symbol: string;\n /**\n * Numerical identifier for each market, only needed to generate signatures\n * @type {number}\n * @memberof MarketDefinition\n */\n marketId: number;\n /**\n * \n * @type {string}\n * @memberof MarketDefinition\n */\n minOrderQty: string;\n /**\n * Minimum size increment\n * @type {string}\n * @memberof MarketDefinition\n */\n qtyStepSize: string;\n /**\n * Minimum price increment\n * @type {string}\n * @memberof MarketDefinition\n */\n tickSize: string;\n /**\n * Minimum percentage of notional that needs to be covered to avoid liquidation procedures for a given market; below this value, your account is subject to liquidation procedures. When cross margining, all requirements across markets are covered by the same balance, and all positions are subject to liquidations.\n * @type {string}\n * @memberof MarketDefinition\n */\n liquidationMarginParameter: string;\n /**\n * Minimum percentage of notional that needs to be covered post trade; if the account does not satisfy this requirement, trades will not get executed.\n * @type {string}\n * @memberof MarketDefinition\n */\n initialMarginParameter: string;\n /**\n * Maximum leverage allowed\n * @type {number}\n * @memberof MarketDefinition\n */\n maxLeverage: number;\n /**\n * Maximum one-sided open interest in units for a given market.\n * @type {string}\n * @memberof MarketDefinition\n */\n oiCap: string;\n}\n/**\n * \n * @export\n * @interface MarketSummary\n */\nexport interface MarketSummary {\n /**\n * \n * @type {string}\n * @memberof MarketSummary\n */\n symbol: string;\n /**\n * Time when the market summary was last calculated (milliseconds)\n * @type {number}\n * @memberof MarketSummary\n */\n updatedAt: number;\n /**\n * Long open interest in lots\n * @type {string}\n * @memberof MarketSummary\n */\n longOiQty: string;\n /**\n * Short open interest in lots\n * @type {string}\n * @memberof MarketSummary\n */\n shortOiQty: string;\n /**\n * Total open interest quantity\n * @type {string}\n * @memberof MarketSummary\n */\n oiQty: string;\n /**\n * Current hourly funding rate\n * @type {string}\n * @memberof MarketSummary\n */\n fundingRate: string;\n /**\n * Current reference value of funding accrued by one unit of exposure; there is one funding value per market and per direction, with short v long funding values differing possibly due to Auto-Deleveraging (ADL)\n * @type {string}\n * @memberof MarketSummary\n */\n longFundingValue: string;\n /**\n * Current reference value of funding accrued by one unit of exposure; there is one funding value per market and per direction, with short v long funding values differing possibly due to Auto-Deleveraging (ADL)\n * @type {string}\n * @memberof MarketSummary\n */\n shortFundingValue: string;\n /**\n * Funding rate velocity\n * @type {string}\n * @memberof MarketSummary\n */\n fundingRateVelocity: string;\n /**\n * \n * @type {string}\n * @memberof MarketSummary\n */\n volume24h: string;\n /**\n * \n * @type {string}\n * @memberof MarketSummary\n */\n pxChange24h?: string;\n /**\n * Last oracle price, at the moment of the last market summary update\n * @type {string}\n * @memberof MarketSummary\n */\n throttledOraclePrice?: string;\n /**\n * Last pool price, at the moment of the last market summary update\n * @type {string}\n * @memberof MarketSummary\n */\n throttledPoolPrice?: string;\n /**\n * Timestamp of the last price update (milliseconds)\n * @type {number}\n * @memberof MarketSummary\n */\n pricesUpdatedAt?: number;\n}\n/**\n * \n * @export\n * @interface Order\n */\nexport interface Order {\n /**\n * \n * @type {number}\n * @memberof Order\n */\n exchangeId: number;\n /**\n * \n * @type {string}\n * @memberof Order\n */\n symbol: string;\n /**\n * \n * @type {number}\n * @memberof Order\n */\n accountId: number;\n /**\n * \n * @type {string}\n * @memberof Order\n */\n orderId?: string;\n /**\n * \n * @type {string}\n * @memberof Order\n */\n qty?: string;\n /**\n * Executed quantity. Example: I request 1.0 BTCRUSDPERP and the order is filled with 0.2 BTCRUSDPERP, qty will stay at 1.0 and execQty will be 0.2.\n * @type {string}\n * @memberof Order\n */\n execQty?: string;\n /**\n * Order side (B = Buy/Bid, A = Ask/Sell)\n * @type {string}\n * @memberof Order\n */\n side: OrderSideEnum;\n /**\n * \n * @type {string}\n * @memberof Order\n */\n limitPx: string;\n /**\n * Order type, (LIMIT = Limit, TP = Take Profit, SL = Stop Loss)\n * @type {string}\n * @memberof Order\n */\n orderType: OrderOrderTypeEnum;\n /**\n * Price at which TP/SL orders will be triggered, should not be set for other order types.\n * @type {string}\n * @memberof Order\n */\n triggerPx?: string;\n /**\n * Order time in force, exclusively used for LIMIT orders\n * @type {string}\n * @memberof Order\n */\n timeInForce?: OrderTimeInForceEnum;\n /**\n * Whether this is a reduce-only order, exclusively used for LIMIT IOC orders.\n * @type {boolean}\n * @memberof Order\n */\n reduceOnly?: boolean;\n /**\n * Order status\n * @type {string}\n * @memberof Order\n */\n status: OrderStatusEnum;\n /**\n * Creation timestamp (milliseconds)\n * @type {number}\n * @memberof Order\n */\n createdAt: number;\n /**\n * Last update timestamp (milliseconds)\n * @type {number}\n * @memberof Order\n */\n lastUpdateAt: number;\n}\n\n\n/**\n * @export\n */\nexport const OrderSideEnum = {\n B: 'B',\n A: 'A'\n} as const;\nexport type OrderSideEnum = typeof OrderSideEnum[keyof typeof OrderSideEnum];\n\n/**\n * @export\n */\nexport const OrderOrderTypeEnum = {\n LIMIT: 'LIMIT',\n TP: 'TP',\n SL: 'SL'\n} as const;\nexport type OrderOrderTypeEnum = typeof OrderOrderTypeEnum[keyof typeof OrderOrderTypeEnum];\n\n/**\n * @export\n */\nexport const OrderTimeInForceEnum = {\n IOC: 'IOC',\n GTC: 'GTC'\n} as const;\nexport type OrderTimeInForceEnum = typeof OrderTimeInForceEnum[keyof typeof OrderTimeInForceEnum];\n\n/**\n * @export\n */\nexport const OrderStatusEnum = {\n OPEN: 'OPEN',\n FILLED: 'FILLED',\n CANCELLED: 'CANCELLED',\n REJECTED: 'REJECTED'\n} as const;\nexport type OrderStatusEnum = typeof OrderStatusEnum[keyof typeof OrderStatusEnum];\n\n\n/**\n * Order status\n * @export\n */\nexport const OrderStatus = {\n OPEN: 'OPEN',\n FILLED: 'FILLED',\n CANCELLED: 'CANCELLED',\n REJECTED: 'REJECTED'\n} as const;\nexport type OrderStatus = typeof OrderStatus[keyof typeof OrderStatus];\n\n\n/**\n * Order type, (LIMIT = Limit, TP = Take Profit, SL = Stop Loss)\n * @export\n */\nexport const OrderType = {\n LIMIT: 'LIMIT',\n TP: 'TP',\n SL: 'SL'\n} as const;\nexport type OrderType = typeof OrderType[keyof typeof OrderType];\n\n/**\n * \n * @export\n * @interface PaginationParameters\n */\nexport interface PaginationParameters {\n /**\n * Number of items requested\n * @type {number}\n * @memberof PaginationParameters\n */\n limit: number;\n /**\n * Number of items returned\n * @type {number}\n * @memberof PaginationParameters\n */\n count: number;\n /**\n * Timestamp of last result, in milliseconds\n * @type {number}\n * @memberof PaginationParameters\n */\n endTime?: number;\n /**\n * Timestamp of first result, in milliseconds\n * @type {number}\n * @memberof PaginationParameters\n */\n startTime?: number;\n}\n/**\n * \n * @export\n * @interface PerpExecution\n */\nexport interface PerpExecution {\n /**\n * \n * @type {number}\n * @memberof PerpExecution\n */\n exchangeId: number;\n /**\n * \n * @type {string}\n * @memberof PerpExecution\n */\n symbol: string;\n /**\n * \n * @type {number}\n * @memberof PerpExecution\n */\n accountId: number;\n /**\n * \n * @type {string}\n * @memberof PerpExecution\n */\n qty: string;\n /**\n * Order side (B = Buy/Bid, A = Ask/Sell)\n * @type {string}\n * @memberof PerpExecution\n */\n side: PerpExecutionSideEnum;\n /**\n * \n * @type {string}\n * @memberof PerpExecution\n */\n price: string;\n /**\n * \n * @type {string}\n * @memberof PerpExecution\n */\n fee: string;\n /**\n * Type of execution\n * @type {string}\n * @memberof PerpExecution\n */\n type: PerpExecutionTypeEnum;\n /**\n * Execution timestamp (milliseconds)\n * @type {number}\n * @memberof PerpExecution\n */\n timestamp: number;\n /**\n * Execution sequence number, increases by 1 for every perp execution in reya chain\n * @type {number}\n * @memberof PerpExecution\n */\n sequenceNumber: number;\n}\n\n\n/**\n * @export\n */\nexport const PerpExecutionSideEnum = {\n B: 'B',\n A: 'A'\n} as const;\nexport type PerpExecutionSideEnum = typeof PerpExecutionSideEnum[keyof typeof PerpExecutionSideEnum];\n\n/**\n * @export\n */\nexport const PerpExecutionTypeEnum = {\n ORDER_MATCH: 'ORDER_MATCH',\n LIQUIDATION: 'LIQUIDATION',\n ADL: 'ADL'\n} as const;\nexport type PerpExecutionTypeEnum = typeof PerpExecutionTypeEnum[keyof typeof PerpExecutionTypeEnum];\n\n/**\n * \n * @export\n * @interface PerpExecutionList\n */\nexport interface PerpExecutionList {\n /**\n * \n * @type {Array<PerpExecutionListDataInner>}\n * @memberof PerpExecutionList\n */\n data: Array<PerpExecutionListDataInner>;\n /**\n * \n * @type {PerpExecutionListMeta}\n * @memberof PerpExecutionList\n */\n meta: PerpExecutionListMeta;\n}\n/**\n * \n * @export\n * @interface PerpExecutionListDataInner\n */\nexport interface PerpExecutionListDataInner {\n /**\n * \n * @type {number}\n * @memberof PerpExecutionListDataInner\n */\n exchangeId: number;\n /**\n * \n * @type {string}\n * @memberof PerpExecutionListDataInner\n */\n symbol: string;\n /**\n * \n * @type {number}\n * @memberof PerpExecutionListDataInner\n */\n accountId: number;\n /**\n * \n * @type {string}\n * @memberof PerpExecutionListDataInner\n */\n qty: string;\n /**\n * Order side (B = Buy/Bid, A = Ask/Sell)\n * @type {string}\n * @memberof PerpExecutionListDataInner\n */\n side: PerpExecutionListDataInnerSideEnum;\n /**\n * \n * @type {string}\n * @memberof PerpExecutionListDataInner\n */\n price: string;\n /**\n * \n * @type {string}\n * @memberof PerpExecutionListDataInner\n */\n fee: string;\n /**\n * Type of execution\n * @type {string}\n * @memberof PerpExecutionListDataInner\n */\n type: PerpExecutionListDataInnerTypeEnum;\n /**\n * Execution timestamp (milliseconds)\n * @type {number}\n * @memberof PerpExecutionListDataInner\n */\n timestamp: number;\n /**\n * Execution sequence number, increases by 1 for every perp execution in reya chain\n * @type {number}\n * @memberof PerpExecutionListDataInner\n */\n sequenceNumber: number;\n}\n\n\n/**\n * @export\n */\nexport const PerpExecutionListDataInnerSideEnum = {\n B: 'B',\n A: 'A'\n} as const;\nexport type PerpExecutionListDataInnerSideEnum = typeof PerpExecutionListDataInnerSideEnum[keyof typeof PerpExecutionListDataInnerSideEnum];\n\n/**\n * @export\n */\nexport const PerpExecutionListDataInnerTypeEnum = {\n ORDER_MATCH: 'ORDER_MATCH',\n LIQUIDATION: 'LIQUIDATION',\n ADL: 'ADL'\n} as const;\nexport type PerpExecutionListDataInnerTypeEnum = typeof PerpExecutionListDataInnerTypeEnum[keyof typeof PerpExecutionListDataInnerTypeEnum];\n\n/**\n * \n * @export\n * @interface PerpExecutionListMeta\n */\nexport interface PerpExecutionListMeta {\n /**\n * Number of items requested\n * @type {number}\n * @memberof PerpExecutionListMeta\n */\n limit: number;\n /**\n * Number of items returned\n * @type {number}\n * @memberof PerpExecutionListMeta\n */\n count: number;\n /**\n * Timestamp of last result, in milliseconds\n * @type {number}\n * @memberof PerpExecutionListMeta\n */\n endTime?: number;\n /**\n * Timestamp of first result, in milliseconds\n * @type {number}\n * @memberof PerpExecutionListMeta\n */\n startTime?: number;\n}\n/**\n * \n * @export\n * @interface Position\n */\nexport interface Position {\n /**\n * \n * @type {number}\n * @memberof Position\n */\n exchangeId: number;\n /**\n * \n * @type {string}\n * @memberof Position\n */\n symbol: string;\n /**\n * \n * @type {number}\n * @memberof Position\n */\n accountId: number;\n /**\n * \n * @type {string}\n * @memberof Position\n */\n qty: string;\n /**\n * Order side (B = Buy/Bid, A = Ask/Sell)\n * @type {string}\n * @memberof Position\n */\n side: PositionSideEnum;\n /**\n * \n * @type {string}\n * @memberof Position\n */\n avgEntryPrice: string;\n /**\n * Average of funding values at the entry times of currently open exposure, which serves as a baseline from which to compute the accrued funding in the position: units x (fundingValue - avgEntryFundingValue)\n * @type {string}\n * @memberof Position\n */\n avgEntryFundingValue: string;\n /**\n * Sequence number of last execution taken into account for the position.\n * @type {number}\n * @memberof Position\n */\n lastTradeSequenceNumber: number;\n}\n\n\n/**\n * @export\n */\nexport const PositionSideEnum = {\n B: 'B',\n A: 'A'\n} as const;\nexport type PositionSideEnum = typeof PositionSideEnum[keyof typeof PositionSideEnum];\n\n/**\n * \n * @export\n * @interface Price\n */\nexport interface Price {\n /**\n * \n * @type {string}\n * @memberof Price\n */\n symbol: string;\n /**\n * Price given by the Stork feeds, used both as the peg price for prices on Reya, as well as Mark Prices. The Stork price feed is usually the perp prices across three major CEXs\n * @type {string}\n * @memberof Price\n */\n oraclePrice?: string;\n /**\n * The price currently quoted by the AMM for zero volume, from which trades are priced (equivalent to mid price in an order book); a trade of any size will be move this price up or down depending on the direction.\n * @type {string}\n * @memberof Price\n */\n poolPrice?: string;\n /**\n * Last update timestamp (milliseconds)\n * @type {number}\n * @memberof Price\n */\n updatedAt: number;\n}\n/**\n * \n * @export\n * @interface RequestError\n */\nexport interface RequestError {\n /**\n * Standardized error codes for API responses\n * @type {string}\n * @memberof RequestError\n */\n error: RequestErrorErrorEnum;\n /**\n * Human-readable error message\n * @type {string}\n * @memberof RequestError\n */\n message: string;\n}\n\n\n/**\n * @export\n */\nexport const RequestErrorErrorEnum = {\n SYMBOL_NOT_FOUND: 'SYMBOL_NOT_FOUND',\n NO_ACCOUNTS_FOUND: 'NO_ACCOUNTS_FOUND',\n NO_PRICES_FOUND_FOR_SYMBOL: 'NO_PRICES_FOUND_FOR_SYMBOL',\n INPUT_VALIDATION_ERROR: 'INPUT_VALIDATION_ERROR',\n CREATE_ORDER_OTHER_ERROR: 'CREATE_ORDER_OTHER_ERROR',\n CANCEL_ORDER_OTHER_ERROR: 'CANCEL_ORDER_OTHER_ERROR'\n} as const;\nexport type RequestErrorErrorEnum = typeof RequestErrorErrorEnum[keyof typeof RequestErrorErrorEnum];\n\n\n/**\n * Standardized error codes for API responses\n * @export\n */\nexport const RequestErrorCode = {\n SYMBOL_NOT_FOUND: 'SYMBOL_NOT_FOUND',\n NO_ACCOUNTS_FOUND: 'NO_ACCOUNTS_FOUND',\n NO_PRICES_FOUND_FOR_SYMBOL: 'NO_PRICES_FOUND_FOR_SYMBOL',\n INPUT_VALIDATION_ERROR: 'INPUT_VALIDATION_ERROR',\n CREATE_ORDER_OTHER_ERROR: 'CREATE_ORDER_OTHER_ERROR',\n CANCEL_ORDER_OTHER_ERROR: 'CANCEL_ORDER_OTHER_ERROR'\n} as const;\nexport type RequestErrorCode = typeof RequestErrorCode[keyof typeof RequestErrorCode];\n\n/**\n * \n * @export\n * @interface ServerError\n */\nexport interface ServerError {\n /**\n * Standardized error codes for API responses\n * @type {string}\n * @memberof ServerError\n */\n error: ServerErrorErrorEnum;\n /**\n * Human-readable error message\n * @type {string}\n * @memberof ServerError\n */\n message: string;\n}\n\n\n/**\n * @export\n */\nexport const ServerErrorErrorEnum = {\n INTERNAL_SERVER_ERROR: 'INTERNAL_SERVER_ERROR'\n} as const;\nexport type ServerErrorErrorEnum = typeof ServerErrorErrorEnum[keyof typeof ServerErrorErrorEnum];\n\n\n/**\n * Standardized error codes for API responses\n * @export\n */\nexport const ServerErrorCode = {\n INTERNAL_SERVER_ERROR: 'INTERNAL_SERVER_ERROR'\n} as const;\nexport type ServerErrorCode = typeof ServerErrorCode[keyof typeof ServerErrorCode];\n\n\n/**\n * Order side (B = Buy/Bid, A = Ask/Sell)\n * @export\n */\nexport const Side = {\n B: 'B',\n A: 'A'\n} as const;\nexport type Side = typeof Side[keyof typeof Side];\n\n/**\n * \n * @export\n * @interface SpotExecution\n */\nexport interface SpotExecution {\n /**\n * \n * @type {number}\n * @memberof SpotExecution\n */\n exchangeId: number;\n /**\n * \n * @type {string}\n * @memberof SpotExecution\n */\n symbol: string;\n /**\n * \n * @type {number}\n * @memberof SpotExecution\n */\n accountId: number;\n /**\n * Order side (B = Buy/Bid, A = Ask/Sell)\n * @type {string}\n * @memberof SpotExecution\n */\n side: SpotExecutionSideEnum;\n /**\n * \n * @type {string}\n * @memberof SpotExecution\n */\n qty: string;\n /**\n * \n * @type {string}\n * @memberof SpotExecution\n */\n price?: string;\n /**\n * \n * @type {string}\n * @memberof SpotExecution\n */\n fee: string;\n /**\n * Type of execution\n * @type {string}\n * @memberof SpotExecution\n */\n type: SpotExecutionTypeEnum;\n /**\n * Execution timestamp (milliseconds)\n * @type {number}\n * @memberof SpotExecution\n */\n timestamp: number;\n}\n\n\n/**\n * @export\n */\nexport const SpotExecutionSideEnum = {\n B: 'B',\n A: 'A'\n} as const;\nexport type SpotExecutionSideEnum = typeof SpotExecutionSideEnum[keyof typeof SpotExecutionSideEnum];\n\n/**\n * @export\n */\nexport const SpotExecutionTypeEnum = {\n ORDER_MATCH: 'ORDER_MATCH',\n LIQUIDATION: 'LIQUIDATION',\n ADL: 'ADL'\n} as const;\nexport type SpotExecutionTypeEnum = typeof SpotExecutionTypeEnum[keyof typeof SpotExecutionTypeEnum];\n\n/**\n * \n * @export\n * @interface SpotExecutionList\n */\nexport interface SpotExecutionList {\n /**\n * \n * @type {Array<SpotExecutionListDataInner>}\n * @memberof SpotExecutionList\n */\n data: Array<SpotExecutionListDataInner>;\n /**\n * \n * @type {PerpExecutionListMeta}\n * @memberof SpotExecutionList\n */\n meta: PerpExecutionListMeta;\n}\n/**\n * \n * @export\n * @interface SpotExecutionListDataInner\n */\nexport interface SpotExecutionListDataInner {\n /**\n * \n * @type {number}\n * @memberof SpotExecutionListDataInner\n */\n exchangeId: number;\n /**\n * \n * @type {string}\n * @memberof SpotExecutionListDataInner\n */\n symbol: string;\n /**\n * \n * @type {number}\n * @memberof SpotExecutionListDataInner\n */\n accountId: number;\n /**\n * Order side (B = Buy/Bid, A = Ask/Sell)\n * @type {string}\n * @memberof SpotExecutionListDataInner\n */\n side: SpotExecutionListDataInnerSideEnum;\n /**\n * \n * @type {string}\n * @memberof SpotExecutionListDataInner\n */\n qty: string;\n /**\n * \n * @type {string}\n * @memberof SpotExecutionListDataInner\n */\n price?: string;\n /**\n * \n * @type {string}\n * @memberof SpotExecutionListDataInner\n */\n fee: string;\n /**\n * Type of execution\n * @type {string}\n * @memberof SpotExecutionListDataInner\n */\n type: SpotExecutionListDataInnerTypeEnum;\n /**\n * Execution timestamp (milliseconds)\n * @type {number}\n * @memberof SpotExecutionListDataInner\n */\n timestamp: number;\n}\n\n\n/**\n * @export\n */\nexport const SpotExecutionListDataInnerSideEnum = {\n B: 'B',\n A: 'A'\n} as const;\nexport type SpotExecutionListDataInnerSideEnum = typeof SpotExecutionListDataInnerSideEnum[keyof typeof SpotExecutionListDataInnerSideEnum];\n\n/**\n * @export\n */\nexport const SpotExecutionListDataInnerTypeEnum = {\n ORDER_MATCH: 'ORDER_MATCH',\n LIQUIDATION: 'LIQUIDATION',\n ADL: 'ADL'\n} as const;\nexport type SpotExecutionListDataInnerTypeEnum = typeof SpotExecutionListDataInnerTypeEnum[keyof typeof SpotExecutionListDataInnerTypeEnum];\n\n\n/**\n * Order time in force (IOC = Immediate or Cancel, GTC = Good Till Cancel)\n * @export\n */\nexport const TimeInForce = {\n IOC: 'IOC',\n GTC: 'GTC'\n} as const;\nexport type TimeInForce = typeof TimeInForce[keyof typeof TimeInForce];\n\n/**\n * \n * @export\n * @interface WalletConfiguration\n */\nexport interface WalletConfiguration {\n /**\n * Fee tier identifier\n * @type {number}\n * @memberof WalletConfiguration\n */\n feeTierId: number;\n /**\n * OG status\n * @type {boolean}\n * @memberof WalletConfiguration\n */\n ogStatus: boolean;\n /**\n * Affiliate status\n * @type {boolean}\n * @memberof WalletConfiguration\n */\n affiliateStatus: boolean;\n /**\n * Referee status\n * @type {boolean}\n * @memberof WalletConfiguration\n */\n refereeStatus: boolean;\n}\n"]}
|
package/dist/rest/runtime.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Reya DEX Trading API v2
|
|
6
6
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 2.0.
|
|
8
|
+
* The version of the OpenAPI document: 2.0.1
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/rest/runtime.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime.js","sourceRoot":"/","sources":["rest/runtime.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGU,QAAA,SAAS,GAAG,yBAAyB,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;AAevE;IACI,uBAAoB,aAA2C;QAA3C,8BAAA,EAAA,kBAA2C;QAA3C,kBAAa,GAAb,aAAa,CAA8B;IAAG,CAAC;IAEnE,sBAAI,iCAAM;aAAV,UAAW,a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;IACN,sBAAC;AAAD,CAAC,AAND,IAMC;AANY,0CAAe;AAQ5B;IACI,yBAAmB,GAAa;QAAb,QAAG,GAAH,GAAG,CAAU;IAAG,CAAC;IAE9B,+BAAK,GAAX;;;;4BACW,qBAAM,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,EAAA;4BAA5B,sBAAO,SAAqB,EAAC;;;;KAChC;IAAA,CAAC;IACN,sBAAC;AAAD,CAAC,AAND,IAMC;AANY,0CAAe","sourcesContent":["/* tslint:disable */\n/* eslint-disable */\n/**\n * Reya DEX Trading API v2\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * The version of the OpenAPI document: 2.0.0\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nexport const BASE_PATH = \"https://api.reya.xyz/v2\".replace(/\\/+$/, \"\");\n\nexport interface ConfigurationParameters {\n basePath?: string; // override base path\n fetchApi?: FetchAPI; // override for fetch implementation\n middleware?: Middleware[]; // middleware to apply before/after fetch requests\n queryParamsStringify?: (params: HTTPQuery) => string; // stringify function for query strings\n username?: string; // parameter for basic security\n password?: string; // parameter for basic security\n apiKey?: string | ((name: string) => string); // parameter for apiKey security\n accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string | Promise<string>); // parameter for oauth2 security\n headers?: HTTPHeaders; //header params we want to use on every request\n credentials?: RequestCredentials; //value for the credentials param we want to use on each request\n}\n\nexport class Configuration {\n constructor(private configuration: ConfigurationParameters = {}) {}\n\n set config(configuration: Configuration) {\n this.configuration = configuration;\n }\n\n get basePath(): string {\n return this.configuration.basePath != null ? this.configuration.basePath : BASE_PATH;\n }\n\n get fetchApi(): FetchAPI | undefined {\n return this.configuration.fetchApi;\n }\n\n get middleware(): Middleware[] {\n return this.configuration.middleware || [];\n }\n\n get queryParamsStringify(): (params: HTTPQuery) => string {\n return this.configuration.queryParamsStringify || querystring;\n }\n\n get username(): string | undefined {\n return this.configuration.username;\n }\n\n get password(): string | undefined {\n return this.configuration.password;\n }\n\n get apiKey(): ((name: string) => string) | undefined {\n const apiKey = this.configuration.apiKey;\n if (apiKey) {\n return typeof apiKey === 'function' ? apiKey : () => apiKey;\n }\n return undefined;\n }\n\n get accessToken(): ((name?: string, scopes?: string[]) => string | Promise<string>) | undefined {\n const accessToken = this.configuration.accessToken;\n if (accessToken) {\n return typeof accessToken === 'function' ? accessToken : async () => accessToken;\n }\n return undefined;\n }\n\n get headers(): HTTPHeaders | undefined {\n return this.configuration.headers;\n }\n\n get credentials(): RequestCredentials | undefined {\n return this.configuration.credentials;\n }\n}\n\nexport const DefaultConfig = new Configuration();\n\n/**\n * This is the base class for all generated API classes.\n */\nexport class BaseAPI {\n\n private static readonly jsonRegex = new RegExp('^(:?application\\/json|[^;/ \\t]+\\/[^;/ \\t]+[+]json)[ \\t]*(:?;.*)?$', 'i');\n private middleware: Middleware[];\n\n constructor(protected configuration = DefaultConfig) {\n this.middleware = configuration.middleware;\n }\n\n withMiddleware<T extends BaseAPI>(this: T, ...middlewares: Middleware[]) {\n const next = this.clone<T>();\n next.middleware = next.middleware.concat(...middlewares);\n return next;\n }\n\n withPreMiddleware<T extends BaseAPI>(this: T, ...preMiddlewares: Array<Middleware['pre']>) {\n const middlewares = preMiddlewares.map((pre) => ({ pre }));\n return this.withMiddleware<T>(...middlewares);\n }\n\n withPostMiddleware<T extends BaseAPI>(this: T, ...postMiddlewares: Array<Middleware['post']>) {\n const middlewares = postMiddlewares.map((post) => ({ post }));\n return this.withMiddleware<T>(...middlewares);\n }\n\n /**\n * Check if the given MIME is a JSON MIME.\n * JSON MIME examples:\n * application/json\n * application/json; charset=UTF8\n * APPLICATION/JSON\n * application/vnd.company+json\n * @param mime - MIME (Multipurpose Internet Mail Extensions)\n * @return True if the given MIME is JSON, false otherwise.\n */\n protected isJsonMime(mime: string | null | undefined): boolean {\n if (!mime) {\n return false;\n }\n return BaseAPI.jsonRegex.test(mime);\n }\n\n protected async request(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction): Promise<Response> {\n const { url, init } = await this.createFetchParams(context, initOverrides);\n const response = await this.fetchApi(url, init);\n if (response && (response.status >= 200 && response.status < 300)) {\n return response;\n }\n throw new ResponseError(response, 'Response returned an error code');\n }\n\n private async createFetchParams(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction) {\n let url = this.configuration.basePath + context.path;\n if (context.query !== undefined && Object.keys(context.query).length !== 0) {\n // only add the querystring to the URL if there are query parameters.\n // this is done to avoid urls ending with a \"?\" character which buggy webservers\n // do not handle correctly sometimes.\n url += '?' + this.configuration.queryParamsStringify(context.query);\n }\n\n const headers = Object.assign({}, this.configuration.headers, context.headers);\n Object.keys(headers).forEach(key => headers[key] === undefined ? delete headers[key] : {});\n\n const initOverrideFn =\n typeof initOverrides === \"function\"\n ? initOverrides\n : async () => initOverrides;\n\n const initParams = {\n method: context.method,\n headers,\n body: context.body,\n credentials: this.configuration.credentials,\n };\n\n const overriddenInit: RequestInit = {\n ...initParams,\n ...(await initOverrideFn({\n init: initParams,\n context,\n }))\n };\n\n let body: any;\n if (isFormData(overriddenInit.body)\n || (overriddenInit.body instanceof URLSearchParams)\n || isBlob(overriddenInit.body)) {\n body = overriddenInit.body;\n } else if (this.isJsonMime(headers['Content-Type'])) {\n body = JSON.stringify(overriddenInit.body);\n } else {\n body = overriddenInit.body;\n }\n\n const init: RequestInit = {\n ...overriddenInit,\n body\n };\n\n return { url, init };\n }\n\n private fetchApi = async (url: string, init: RequestInit) => {\n let fetchParams = { url, init };\n for (const middleware of this.middleware) {\n if (middleware.pre) {\n fetchParams = await middleware.pre({\n fetch: this.fetchApi,\n ...fetchParams,\n }) || fetchParams;\n }\n }\n let response: Response | undefined = undefined;\n try {\n response = await (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init);\n } catch (e) {\n for (const middleware of this.middleware) {\n if (middleware.onError) {\n response = await middleware.onError({\n fetch: this.fetchApi,\n url: fetchParams.url,\n init: fetchParams.init,\n error: e,\n response: response ? response.clone() : undefined,\n }) || response;\n }\n }\n if (response === undefined) {\n if (e instanceof Error) {\n throw new FetchError(e, 'The request failed and the interceptors did not return an alternative response');\n } else {\n throw e;\n }\n }\n }\n for (const middleware of this.middleware) {\n if (middleware.post) {\n response = await middleware.post({\n fetch: this.fetchApi,\n url: fetchParams.url,\n init: fetchParams.init,\n response: response.clone(),\n }) || response;\n }\n }\n return response;\n }\n\n /**\n * Create a shallow clone of `this` by constructing a new instance\n * and then shallow cloning data members.\n */\n private clone<T extends BaseAPI>(this: T): T {\n const constructor = this.constructor as any;\n const next = new constructor(this.configuration);\n next.middleware = this.middleware.slice();\n return next;\n }\n};\n\nfunction isBlob(value: any): value is Blob {\n return typeof Blob !== 'undefined' && value instanceof Blob;\n}\n\nfunction isFormData(value: any): value is FormData {\n return typeof FormData !== \"undefined\" && value instanceof FormData;\n}\n\nexport class ResponseError extends Error {\n override name: \"ResponseError\" = \"ResponseError\";\n constructor(public response: Response, msg?: string) {\n super(msg);\n }\n}\n\nexport class FetchError extends Error {\n override name: \"FetchError\" = \"FetchError\";\n constructor(public cause: Error, msg?: string) {\n super(msg);\n }\n}\n\nexport class RequiredError extends Error {\n override name: \"RequiredError\" = \"RequiredError\";\n constructor(public field: string, msg?: string) {\n super(msg);\n }\n}\n\nexport const COLLECTION_FORMATS = {\n csv: \",\",\n ssv: \" \",\n tsv: \"\\t\",\n pipes: \"|\",\n};\n\nexport type FetchAPI = WindowOrWorkerGlobalScope['fetch'];\n\nexport type Json = any;\nexport type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD';\nexport type HTTPHeaders = { [key: string]: string };\nexport type HTTPQuery = { [key: string]: string | number | null | boolean | Array<string | number | null | boolean> | Set<string | number | null | boolean> | HTTPQuery };\nexport type HTTPBody = Json | FormData | URLSearchParams;\nexport type HTTPRequestInit = { headers?: HTTPHeaders; method: HTTPMethod; credentials?: RequestCredentials; body?: HTTPBody };\nexport type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original';\n\nexport type InitOverrideFunction = (requestContext: { init: HTTPRequestInit, context: RequestOpts }) => Promise<RequestInit>\n\nexport interface FetchParams {\n url: string;\n init: RequestInit;\n}\n\nexport interface RequestOpts {\n path: string;\n method: HTTPMethod;\n headers: HTTPHeaders;\n query?: HTTPQuery;\n body?: HTTPBody;\n}\n\n\nexport function querystring(params: HTTPQuery, prefix: string = ''): string {\n return Object.keys(params)\n .map(key => querystringSingleKey(key, params[key], prefix))\n .filter(part => part.length > 0)\n .join('&');\n}\n\nfunction querystringSingleKey(key: string, value: string | number | null | undefined | boolean | Array<string | number | null | boolean> | Set<string | number | null | boolean> | HTTPQuery, keyPrefix: string = ''): string {\n const fullKey = keyPrefix + (keyPrefix.length ? `[${key}]` : key);\n if (value instanceof Array) {\n const multiValue = value.map(singleValue => encodeURIComponent(String(singleValue)))\n .join(`&${encodeURIComponent(fullKey)}=`);\n return `${encodeURIComponent(fullKey)}=${multiValue}`;\n }\n if (value instanceof Set) {\n const valueAsArray = Array.from(value);\n return querystringSingleKey(key, valueAsArray, keyPrefix);\n }\n if (value instanceof Date) {\n return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}`;\n }\n if (value instanceof Object) {\n return querystring(value as HTTPQuery, fullKey);\n }\n return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`;\n}\n\n\nexport function canConsumeForm(consumes: Consume[]): boolean {\n for (const consume of consumes) {\n if ('multipart/form-data' === consume.contentType) {\n return true;\n }\n }\n return false;\n}\n\nexport interface Consume {\n contentType: string;\n}\n\nexport interface RequestContext {\n fetch: FetchAPI;\n url: string;\n init: RequestInit;\n}\n\nexport interface ResponseContext {\n fetch: FetchAPI;\n url: string;\n init: RequestInit;\n response: Response;\n}\n\nexport interface ErrorContext {\n fetch: FetchAPI;\n url: string;\n init: RequestInit;\n error: unknown;\n response?: Response;\n}\n\nexport interface Middleware {\n pre?(context: RequestContext): Promise<FetchParams | void>;\n post?(context: ResponseContext): Promise<Response | void>;\n onError?(context: ErrorContext): Promise<Response | void>;\n}\n\nexport interface ApiResponse<T> {\n raw: Response;\n value(): Promise<T>;\n}\n\nexport interface ResponseTransformer<T> {\n (json: any): T;\n}\n\nexport class JSONApiResponse<T> {\n constructor(public raw: Response, private transformer: ResponseTransformer<T> = (jsonValue: any) => jsonValue) {}\n\n async value(): Promise<T> {\n return this.transformer(await this.raw.json());\n }\n}\n\nexport class VoidApiResponse {\n constructor(public raw: Response) {}\n\n async value(): Promise<void> {\n return undefined;\n }\n}\n\nexport class BlobApiResponse {\n constructor(public raw: Response) {}\n\n async value(): Promise<Blob> {\n return await this.raw.blob();\n };\n}\n\nexport class TextApiResponse {\n constructor(public raw: Response) {}\n\n async value(): Promise<string> {\n return await this.raw.text();\n };\n}\n"]}
|
|
1
|
+
{"version":3,"file":"runtime.js","sourceRoot":"/","sources":["rest/runtime.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGU,QAAA,SAAS,GAAG,yBAAyB,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;AAevE;IACI,uBAAoB,aAA2C;QAA3C,8BAAA,EAAA,kBAA2C;QAA3C,kBAAa,GAAb,aAAa,CAA8B;IAAG,CAAC;IAEnE,sBAAI,iCAAM;aAAV,UAAW,aAA4B;YACnC,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACvC,CAAC;;;OAAA;IAED,sBAAI,mCAAQ;aAAZ;YACI,OAAO,IAAI,CAAC,aAAa,CAAC,QAAQ,IAAI,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC,CAAC,iBAAS,CAAC;QACzF,CAAC;;;OAAA;IAED,sB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;AAAD,CAAC,AAND,IAMC;AANY,0CAAe","sourcesContent":["/* tslint:disable */\n/* eslint-disable */\n/**\n * Reya DEX Trading API v2\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * The version of the OpenAPI document: 2.0.1\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nexport const BASE_PATH = \"https://api.reya.xyz/v2\".replace(/\\/+$/, \"\");\n\nexport interface ConfigurationParameters {\n basePath?: string; // override base path\n fetchApi?: FetchAPI; // override for fetch implementation\n middleware?: Middleware[]; // middleware to apply before/after fetch requests\n queryParamsStringify?: (params: HTTPQuery) => string; // stringify function for query strings\n username?: string; // parameter for basic security\n password?: string; // parameter for basic security\n apiKey?: string | ((name: string) => string); // parameter for apiKey security\n accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string | Promise<string>); // parameter for oauth2 security\n headers?: HTTPHeaders; //header params we want to use on every request\n credentials?: RequestCredentials; //value for the credentials param we want to use on each request\n}\n\nexport class Configuration {\n constructor(private configuration: ConfigurationParameters = {}) {}\n\n set config(configuration: Configuration) {\n this.configuration = configuration;\n }\n\n get basePath(): string {\n return this.configuration.basePath != null ? this.configuration.basePath : BASE_PATH;\n }\n\n get fetchApi(): FetchAPI | undefined {\n return this.configuration.fetchApi;\n }\n\n get middleware(): Middleware[] {\n return this.configuration.middleware || [];\n }\n\n get queryParamsStringify(): (params: HTTPQuery) => string {\n return this.configuration.queryParamsStringify || querystring;\n }\n\n get username(): string | undefined {\n return this.configuration.username;\n }\n\n get password(): string | undefined {\n return this.configuration.password;\n }\n\n get apiKey(): ((name: string) => string) | undefined {\n const apiKey = this.configuration.apiKey;\n if (apiKey) {\n return typeof apiKey === 'function' ? apiKey : () => apiKey;\n }\n return undefined;\n }\n\n get accessToken(): ((name?: string, scopes?: string[]) => string | Promise<string>) | undefined {\n const accessToken = this.configuration.accessToken;\n if (accessToken) {\n return typeof accessToken === 'function' ? accessToken : async () => accessToken;\n }\n return undefined;\n }\n\n get headers(): HTTPHeaders | undefined {\n return this.configuration.headers;\n }\n\n get credentials(): RequestCredentials | undefined {\n return this.configuration.credentials;\n }\n}\n\nexport const DefaultConfig = new Configuration();\n\n/**\n * This is the base class for all generated API classes.\n */\nexport class BaseAPI {\n\n private static readonly jsonRegex = new RegExp('^(:?application\\/json|[^;/ \\t]+\\/[^;/ \\t]+[+]json)[ \\t]*(:?;.*)?$', 'i');\n private middleware: Middleware[];\n\n constructor(protected configuration = DefaultConfig) {\n this.middleware = configuration.middleware;\n }\n\n withMiddleware<T extends BaseAPI>(this: T, ...middlewares: Middleware[]) {\n const next = this.clone<T>();\n next.middleware = next.middleware.concat(...middlewares);\n return next;\n }\n\n withPreMiddleware<T extends BaseAPI>(this: T, ...preMiddlewares: Array<Middleware['pre']>) {\n const middlewares = preMiddlewares.map((pre) => ({ pre }));\n return this.withMiddleware<T>(...middlewares);\n }\n\n withPostMiddleware<T extends BaseAPI>(this: T, ...postMiddlewares: Array<Middleware['post']>) {\n const middlewares = postMiddlewares.map((post) => ({ post }));\n return this.withMiddleware<T>(...middlewares);\n }\n\n /**\n * Check if the given MIME is a JSON MIME.\n * JSON MIME examples:\n * application/json\n * application/json; charset=UTF8\n * APPLICATION/JSON\n * application/vnd.company+json\n * @param mime - MIME (Multipurpose Internet Mail Extensions)\n * @return True if the given MIME is JSON, false otherwise.\n */\n protected isJsonMime(mime: string | null | undefined): boolean {\n if (!mime) {\n return false;\n }\n return BaseAPI.jsonRegex.test(mime);\n }\n\n protected async request(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction): Promise<Response> {\n const { url, init } = await this.createFetchParams(context, initOverrides);\n const response = await this.fetchApi(url, init);\n if (response && (response.status >= 200 && response.status < 300)) {\n return response;\n }\n throw new ResponseError(response, 'Response returned an error code');\n }\n\n private async createFetchParams(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction) {\n let url = this.configuration.basePath + context.path;\n if (context.query !== undefined && Object.keys(context.query).length !== 0) {\n // only add the querystring to the URL if there are query parameters.\n // this is done to avoid urls ending with a \"?\" character which buggy webservers\n // do not handle correctly sometimes.\n url += '?' + this.configuration.queryParamsStringify(context.query);\n }\n\n const headers = Object.assign({}, this.configuration.headers, context.headers);\n Object.keys(headers).forEach(key => headers[key] === undefined ? delete headers[key] : {});\n\n const initOverrideFn =\n typeof initOverrides === \"function\"\n ? initOverrides\n : async () => initOverrides;\n\n const initParams = {\n method: context.method,\n headers,\n body: context.body,\n credentials: this.configuration.credentials,\n };\n\n const overriddenInit: RequestInit = {\n ...initParams,\n ...(await initOverrideFn({\n init: initParams,\n context,\n }))\n };\n\n let body: any;\n if (isFormData(overriddenInit.body)\n || (overriddenInit.body instanceof URLSearchParams)\n || isBlob(overriddenInit.body)) {\n body = overriddenInit.body;\n } else if (this.isJsonMime(headers['Content-Type'])) {\n body = JSON.stringify(overriddenInit.body);\n } else {\n body = overriddenInit.body;\n }\n\n const init: RequestInit = {\n ...overriddenInit,\n body\n };\n\n return { url, init };\n }\n\n private fetchApi = async (url: string, init: RequestInit) => {\n let fetchParams = { url, init };\n for (const middleware of this.middleware) {\n if (middleware.pre) {\n fetchParams = await middleware.pre({\n fetch: this.fetchApi,\n ...fetchParams,\n }) || fetchParams;\n }\n }\n let response: Response | undefined = undefined;\n try {\n response = await (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init);\n } catch (e) {\n for (const middleware of this.middleware) {\n if (middleware.onError) {\n response = await middleware.onError({\n fetch: this.fetchApi,\n url: fetchParams.url,\n init: fetchParams.init,\n error: e,\n response: response ? response.clone() : undefined,\n }) || response;\n }\n }\n if (response === undefined) {\n if (e instanceof Error) {\n throw new FetchError(e, 'The request failed and the interceptors did not return an alternative response');\n } else {\n throw e;\n }\n }\n }\n for (const middleware of this.middleware) {\n if (middleware.post) {\n response = await middleware.post({\n fetch: this.fetchApi,\n url: fetchParams.url,\n init: fetchParams.init,\n response: response.clone(),\n }) || response;\n }\n }\n return response;\n }\n\n /**\n * Create a shallow clone of `this` by constructing a new instance\n * and then shallow cloning data members.\n */\n private clone<T extends BaseAPI>(this: T): T {\n const constructor = this.constructor as any;\n const next = new constructor(this.configuration);\n next.middleware = this.middleware.slice();\n return next;\n }\n};\n\nfunction isBlob(value: any): value is Blob {\n return typeof Blob !== 'undefined' && value instanceof Blob;\n}\n\nfunction isFormData(value: any): value is FormData {\n return typeof FormData !== \"undefined\" && value instanceof FormData;\n}\n\nexport class ResponseError extends Error {\n override name: \"ResponseError\" = \"ResponseError\";\n constructor(public response: Response, msg?: string) {\n super(msg);\n }\n}\n\nexport class FetchError extends Error {\n override name: \"FetchError\" = \"FetchError\";\n constructor(public cause: Error, msg?: string) {\n super(msg);\n }\n}\n\nexport class RequiredError extends Error {\n override name: \"RequiredError\" = \"RequiredError\";\n constructor(public field: string, msg?: string) {\n super(msg);\n }\n}\n\nexport const COLLECTION_FORMATS = {\n csv: \",\",\n ssv: \" \",\n tsv: \"\\t\",\n pipes: \"|\",\n};\n\nexport type FetchAPI = WindowOrWorkerGlobalScope['fetch'];\n\nexport type Json = any;\nexport type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD';\nexport type HTTPHeaders = { [key: string]: string };\nexport type HTTPQuery = { [key: string]: string | number | null | boolean | Array<string | number | null | boolean> | Set<string | number | null | boolean> | HTTPQuery };\nexport type HTTPBody = Json | FormData | URLSearchParams;\nexport type HTTPRequestInit = { headers?: HTTPHeaders; method: HTTPMethod; credentials?: RequestCredentials; body?: HTTPBody };\nexport type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original';\n\nexport type InitOverrideFunction = (requestContext: { init: HTTPRequestInit, context: RequestOpts }) => Promise<RequestInit>\n\nexport interface FetchParams {\n url: string;\n init: RequestInit;\n}\n\nexport interface RequestOpts {\n path: string;\n method: HTTPMethod;\n headers: HTTPHeaders;\n query?: HTTPQuery;\n body?: HTTPBody;\n}\n\n\nexport function querystring(params: HTTPQuery, prefix: string = ''): string {\n return Object.keys(params)\n .map(key => querystringSingleKey(key, params[key], prefix))\n .filter(part => part.length > 0)\n .join('&');\n}\n\nfunction querystringSingleKey(key: string, value: string | number | null | undefined | boolean | Array<string | number | null | boolean> | Set<string | number | null | boolean> | HTTPQuery, keyPrefix: string = ''): string {\n const fullKey = keyPrefix + (keyPrefix.length ? `[${key}]` : key);\n if (value instanceof Array) {\n const multiValue = value.map(singleValue => encodeURIComponent(String(singleValue)))\n .join(`&${encodeURIComponent(fullKey)}=`);\n return `${encodeURIComponent(fullKey)}=${multiValue}`;\n }\n if (value instanceof Set) {\n const valueAsArray = Array.from(value);\n return querystringSingleKey(key, valueAsArray, keyPrefix);\n }\n if (value instanceof Date) {\n return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}`;\n }\n if (value instanceof Object) {\n return querystring(value as HTTPQuery, fullKey);\n }\n return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`;\n}\n\n\nexport function canConsumeForm(consumes: Consume[]): boolean {\n for (const consume of consumes) {\n if ('multipart/form-data' === consume.contentType) {\n return true;\n }\n }\n return false;\n}\n\nexport interface Consume {\n contentType: string;\n}\n\nexport interface RequestContext {\n fetch: FetchAPI;\n url: string;\n init: RequestInit;\n}\n\nexport interface ResponseContext {\n fetch: FetchAPI;\n url: string;\n init: RequestInit;\n response: Response;\n}\n\nexport interface ErrorContext {\n fetch: FetchAPI;\n url: string;\n init: RequestInit;\n error: unknown;\n response?: Response;\n}\n\nexport interface Middleware {\n pre?(context: RequestContext): Promise<FetchParams | void>;\n post?(context: ResponseContext): Promise<Response | void>;\n onError?(context: ErrorContext): Promise<Response | void>;\n}\n\nexport interface ApiResponse<T> {\n raw: Response;\n value(): Promise<T>;\n}\n\nexport interface ResponseTransformer<T> {\n (json: any): T;\n}\n\nexport class JSONApiResponse<T> {\n constructor(public raw: Response, private transformer: ResponseTransformer<T> = (jsonValue: any) => jsonValue) {}\n\n async value(): Promise<T> {\n return this.transformer(await this.raw.json());\n }\n}\n\nexport class VoidApiResponse {\n constructor(public raw: Response) {}\n\n async value(): Promise<void> {\n return undefined;\n }\n}\n\nexport class BlobApiResponse {\n constructor(public raw: Response) {}\n\n async value(): Promise<Blob> {\n return await this.raw.blob();\n };\n}\n\nexport class TextApiResponse {\n constructor(public raw: Response) {}\n\n async value(): Promise<string> {\n return await this.raw.text();\n };\n}\n"]}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Reya DEX Trading API v2
|
|
3
3
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 2.0.
|
|
5
|
+
* The version of the OpenAPI document: 2.0.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Reya DEX Trading API v2
|
|
3
3
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 2.0.
|
|
5
|
+
* The version of the OpenAPI document: 2.0.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Reya DEX Trading API v2
|
|
3
3
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 2.0.
|
|
5
|
+
* The version of the OpenAPI document: 2.0.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Reya DEX Trading API v2
|
|
3
3
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 2.0.
|
|
5
|
+
* The version of the OpenAPI document: 2.0.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -10,7 +10,10 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { Account, Order, PerpExecutionList, Position, SpotExecutionList, WalletConfiguration } from '../models/index';
|
|
13
|
+
import type { Account, AccountBalance, Order, PerpExecutionList, Position, SpotExecutionList, WalletConfiguration } from '../models/index';
|
|
14
|
+
export interface GetWalletAccountBalancesRequest {
|
|
15
|
+
address: string;
|
|
16
|
+
}
|
|
14
17
|
export interface GetWalletAccountsRequest {
|
|
15
18
|
address: string;
|
|
16
19
|
}
|
|
@@ -37,6 +40,16 @@ export interface GetWalletSpotExecutionsRequest {
|
|
|
37
40
|
*
|
|
38
41
|
*/
|
|
39
42
|
export declare class WalletDataApi extends runtime.BaseAPI {
|
|
43
|
+
/**
|
|
44
|
+
* Returns all account real balances for a wallet.
|
|
45
|
+
* Get wallet account balances
|
|
46
|
+
*/
|
|
47
|
+
getWalletAccountBalancesRaw(requestParameters: GetWalletAccountBalancesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AccountBalance>>>;
|
|
48
|
+
/**
|
|
49
|
+
* Returns all account real balances for a wallet.
|
|
50
|
+
* Get wallet account balances
|
|
51
|
+
*/
|
|
52
|
+
getWalletAccountBalances(requestParameters: GetWalletAccountBalancesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AccountBalance>>;
|
|
40
53
|
/**
|
|
41
54
|
* Get wallet accounts
|
|
42
55
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WalletDataApi.d.ts","sourceRoot":"/","sources":["rest/apis/WalletD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K3K"}
|
|
@@ -23,6 +23,31 @@ export interface Account {
|
|
|
23
23
|
*/
|
|
24
24
|
lastUpdateAt: number;
|
|
25
25
|
}
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @export
|
|
29
|
+
* @interface AccountBalance
|
|
30
|
+
*/
|
|
31
|
+
export interface AccountBalance {
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {number}
|
|
35
|
+
* @memberof AccountBalance
|
|
36
|
+
*/
|
|
37
|
+
accountId: number;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof AccountBalance
|
|
42
|
+
*/
|
|
43
|
+
asset: string;
|
|
44
|
+
/**
|
|
45
|
+
* Sum of account net deposits (transfers, deposits and withdrawals) and realized pnl from closed positions. Realized pnl only applies to RUSD given it is the only settlement asset
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof AccountBalance
|
|
48
|
+
*/
|
|
49
|
+
realBalance: string;
|
|
50
|
+
}
|
|
26
51
|
/**
|
|
27
52
|
*
|
|
28
53
|
* @export
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"/","sources":["rest/models/index.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,MAAM,WAAW,OAAO;IACpB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;CACxB;AACD;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC5B;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,mBAAmB,EAAE,MAAM,CAAC;IAC5B;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;CACrB;A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AkC,GAAG,OAAO,kCAAkC,CAAC,MAAM,OAAO,kCAAkC,CAAC,CAAC;AAE5I;;GAEG;AACH,eAAO,MAAM,kCAAkC;;;;CAIrC,CAAC;AACX,MAAM,MAAM,kCAAkC,GAAG,OAAO,kCAAkC,CAAC,MAAM,OAAO,kCAAkC,CAAC,CAAC;AAG5I;;;GAGG;AACH,eAAO,MAAM,WAAW;;;CAGd,CAAC;AACX,MAAM,MAAM,WAAW,GAAG,OAAO,WAAW,CAAC,MAAM,OAAO,WAAW,CAAC,CAAC;AAEvE;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,QAAQ,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,eAAe,EAAE,OAAO,CAAC;IACzB;;;;OAIG;IACH,aAAa,EAAE,OAAO,CAAC;CAC1B"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Reya DEX Trading API v2
|
|
3
3
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 2.0.
|
|
5
|
+
* The version of the OpenAPI document: 2.0.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reyaxyz/api-v2-sdk",
|
|
3
|
-
"version": "0.301.
|
|
3
|
+
"version": "0.301.2",
|
|
4
4
|
"description": "Generated TypeScript SDK for Reya DEX Trading API v2 (REST + WebSocket types)",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"engines": {
|
|
40
40
|
"node": ">=18.18.0"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "cc6c4fb287e6c8966857e2151eeb2c51ae6a4524"
|
|
43
43
|
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Reya DEX Trading API v2
|
|
5
5
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 2.0.
|
|
7
|
+
* The version of the OpenAPI document: 2.0.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Reya DEX Trading API v2
|
|
5
5
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 2.0.
|
|
7
|
+
* The version of the OpenAPI document: 2.0.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Reya DEX Trading API v2
|
|
5
5
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 2.0.
|
|
7
|
+
* The version of the OpenAPI document: 2.0.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Reya DEX Trading API v2
|
|
5
5
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 2.0.
|
|
7
|
+
* The version of the OpenAPI document: 2.0.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
18
|
Account,
|
|
19
|
+
AccountBalance,
|
|
19
20
|
Order,
|
|
20
21
|
PerpExecutionList,
|
|
21
22
|
Position,
|
|
@@ -25,6 +26,10 @@ import type {
|
|
|
25
26
|
WalletConfiguration,
|
|
26
27
|
} from '../models/index';
|
|
27
28
|
|
|
29
|
+
export interface GetWalletAccountBalancesRequest {
|
|
30
|
+
address: string;
|
|
31
|
+
}
|
|
32
|
+
|
|
28
33
|
export interface GetWalletAccountsRequest {
|
|
29
34
|
address: string;
|
|
30
35
|
}
|
|
@@ -58,6 +63,38 @@ export interface GetWalletSpotExecutionsRequest {
|
|
|
58
63
|
*/
|
|
59
64
|
export class WalletDataApi extends runtime.BaseAPI {
|
|
60
65
|
|
|
66
|
+
/**
|
|
67
|
+
* Returns all account real balances for a wallet.
|
|
68
|
+
* Get wallet account balances
|
|
69
|
+
*/
|
|
70
|
+
async getWalletAccountBalancesRaw(requestParameters: GetWalletAccountBalancesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AccountBalance>>> {
|
|
71
|
+
if (requestParameters.address === null || requestParameters.address === undefined) {
|
|
72
|
+
throw new runtime.RequiredError('address','Required parameter requestParameters.address was null or undefined when calling getWalletAccountBalances.');
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
const queryParameters: any = {};
|
|
76
|
+
|
|
77
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
78
|
+
|
|
79
|
+
const response = await this.request({
|
|
80
|
+
path: `/wallet/{address}/accountBalances`.replace(`{${"address"}}`, encodeURIComponent(String(requestParameters.address))),
|
|
81
|
+
method: 'GET',
|
|
82
|
+
headers: headerParameters,
|
|
83
|
+
query: queryParameters,
|
|
84
|
+
}, initOverrides);
|
|
85
|
+
|
|
86
|
+
return new runtime.JSONApiResponse(response);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Returns all account real balances for a wallet.
|
|
91
|
+
* Get wallet account balances
|
|
92
|
+
*/
|
|
93
|
+
async getWalletAccountBalances(requestParameters: GetWalletAccountBalancesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AccountBalance>> {
|
|
94
|
+
const response = await this.getWalletAccountBalancesRaw(requestParameters, initOverrides);
|
|
95
|
+
return await response.value();
|
|
96
|
+
}
|
|
97
|
+
|
|
61
98
|
/**
|
|
62
99
|
* Get wallet accounts
|
|
63
100
|
*/
|
package/rest/models/index.ts
CHANGED
|
@@ -25,6 +25,31 @@ export interface Account {
|
|
|
25
25
|
*/
|
|
26
26
|
lastUpdateAt: number;
|
|
27
27
|
}
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @export
|
|
31
|
+
* @interface AccountBalance
|
|
32
|
+
*/
|
|
33
|
+
export interface AccountBalance {
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof AccountBalance
|
|
38
|
+
*/
|
|
39
|
+
accountId: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof AccountBalance
|
|
44
|
+
*/
|
|
45
|
+
asset: string;
|
|
46
|
+
/**
|
|
47
|
+
* Sum of account net deposits (transfers, deposits and withdrawals) and realized pnl from closed positions. Realized pnl only applies to RUSD given it is the only settlement asset
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof AccountBalance
|
|
50
|
+
*/
|
|
51
|
+
realBalance: string;
|
|
52
|
+
}
|
|
28
53
|
/**
|
|
29
54
|
*
|
|
30
55
|
* @export
|
package/rest/runtime.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Reya DEX Trading API v2
|
|
5
5
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 2.0.
|
|
7
|
+
* The version of the OpenAPI document: 2.0.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|