@reyaxyz/api-sdk 0.7.0 → 0.8.0
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/clients/modules/account.js +7 -7
- package/dist/clients/modules/account.js.map +1 -1
- package/dist/clients/modules/markets.js +3 -3
- package/dist/clients/modules/markets.js.map +1 -1
- package/dist/types/clients/modules/account.d.ts +4 -4
- package/dist/types/clients/modules/account.d.ts.map +1 -1
- package/dist/types/clients/modules/markets.d.ts +2 -2
- package/dist/types/clients/modules/markets.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/clients/modules/account.ts +8 -8
- package/src/clients/modules/markets.ts +3 -5
|
@@ -67,17 +67,17 @@ var AccountClient = /** @class */ (function (_super) {
|
|
|
67
67
|
* based on the provided Ethereum address. An optional limit can be specified to control the number of
|
|
68
68
|
* collateral accounts returned in the response.
|
|
69
69
|
*
|
|
70
|
-
* @param {GetMarginAccountsParams}
|
|
70
|
+
* @param {GetMarginAccountsParams} params
|
|
71
71
|
* @returns {Promise<MarginAccountEntity[]>} A promise that resolves to the response containing the margin
|
|
72
72
|
* account data.
|
|
73
73
|
* @memberof account
|
|
74
74
|
* */
|
|
75
|
-
AccountClient.prototype.
|
|
75
|
+
AccountClient.prototype.getMarginAccounts = function (params) {
|
|
76
76
|
return __awaiter(this, void 0, void 0, function () {
|
|
77
77
|
var uri;
|
|
78
78
|
return __generator(this, function (_a) {
|
|
79
|
-
uri = "/api/accounts/".concat(
|
|
80
|
-
return [2 /*return*/, this.get(uri, { limit:
|
|
79
|
+
uri = "/api/accounts/".concat(params.address);
|
|
80
|
+
return [2 /*return*/, this.get(uri, { limit: params.limit })];
|
|
81
81
|
});
|
|
82
82
|
});
|
|
83
83
|
};
|
|
@@ -87,16 +87,16 @@ var AccountClient = /** @class */ (function (_super) {
|
|
|
87
87
|
* This method sends a request to the API to obtain detailed information about a specific collateral account
|
|
88
88
|
* associated with the provided Ethereum address. The account is identified using the collateral account number.
|
|
89
89
|
*
|
|
90
|
-
* @param {GetMarginAccountParams}
|
|
90
|
+
* @param {GetMarginAccountParams} params
|
|
91
91
|
* @returns {Promise<MarginAccountEntity>} A promise that resolves to the response containing the detailed
|
|
92
92
|
* information of the specified margin account.
|
|
93
93
|
* @memberof account
|
|
94
94
|
*/
|
|
95
|
-
AccountClient.prototype.getCollateralAccount = function (
|
|
95
|
+
AccountClient.prototype.getCollateralAccount = function (params) {
|
|
96
96
|
return __awaiter(this, void 0, void 0, function () {
|
|
97
97
|
var uri;
|
|
98
98
|
return __generator(this, function (_a) {
|
|
99
|
-
uri = "/api/accounts/".concat(
|
|
99
|
+
uri = "/api/accounts/".concat(params.address, "/collateralAccount/").concat(params.marginAccountNumber);
|
|
100
100
|
return [2 /*return*/, this.get(uri)];
|
|
101
101
|
});
|
|
102
102
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account.js","sourceRoot":"/","sources":["clients/modules/account.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,gDAAgC;AAEhC;IAA2C,iCAAU;IAArD;;IAuCA,CAAC;IAtCC;;;;;;;;;;;SAWK;IAEC,
|
|
1
|
+
{"version":3,"file":"account.js","sourceRoot":"/","sources":["clients/modules/account.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,gDAAgC;AAEhC;IAA2C,iCAAU;IAArD;;IAuCA,CAAC;IAtCC;;;;;;;;;;;SAWK;IAEC,yCAAiB,GAAvB,UACE,MAA+B;;;;gBAEzB,GAAG,GAAG,wBAAiB,MAAM,CAAC,OAAO,CAAE,CAAC;gBAC9C,sBAAO,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,CAAC,EAAC;;;KAC/C;IAED;;;;;;;;;;OAUG;IAEG,4CAAoB,GAA1B,UACE,MAA8B;;;;gBAExB,GAAG,GAAG,wBAAiB,MAAM,CAAC,OAAO,gCAAsB,MAAM,CAAC,mBAAmB,CAAE,CAAC;gBAC9F,sBAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,EAAC;;;KACtB;IACH,oBAAC;AAAD,CAAC,AAvCD,CAA2C,cAAU,GAuCpD","sourcesContent":["import {\n GetMarginAccountParams,\n GetMarginAccountsParams,\n MarginAccountEntity,\n} from '../types';\nimport RestClient from './rest';\n\nexport default class AccountClient extends RestClient {\n /**\n * Asynchronously retrieves a list of collateral accounts associated with a specific address.\n *\n * This method makes a request to the API endpoint to fetch collateral account data. The data is filtered\n * based on the provided Ethereum address. An optional limit can be specified to control the number of\n * collateral accounts returned in the response.\n *\n * @param {GetMarginAccountsParams} params\n * @returns {Promise<MarginAccountEntity[]>} A promise that resolves to the response containing the margin\n * account data.\n * @memberof account\n * */\n\n async getMarginAccounts(\n params: GetMarginAccountsParams,\n ): Promise<MarginAccountEntity[]> {\n const uri = `/api/accounts/${params.address}`;\n return this.get(uri, { limit: params.limit });\n }\n\n /**\n * Asynchronously retrieves details of a specific collateral account for a given Ethereum address.\n *\n * This method sends a request to the API to obtain detailed information about a specific collateral account\n * associated with the provided Ethereum address. The account is identified using the collateral account number.\n *\n * @param {GetMarginAccountParams} params\n * @returns {Promise<MarginAccountEntity>} A promise that resolves to the response containing the detailed\n * information of the specified margin account.\n * @memberof account\n */\n\n async getCollateralAccount(\n params: GetMarginAccountParams,\n ): Promise<MarginAccountEntity> {\n const uri = `/api/accounts/${params.address}/collateralAccount/${params.marginAccountNumber}`;\n return this.get(uri);\n }\n}\n"]}
|
|
@@ -66,7 +66,7 @@ var MarketsClient = /** @class */ (function (_super) {
|
|
|
66
66
|
* This method makes a request to the API to fetch data for markets. If a specific market is provided as a parameter,
|
|
67
67
|
* it fetches data for that particular market; otherwise, it fetches data for all available markets.
|
|
68
68
|
*
|
|
69
|
-
* @param {GetMarketsParams} [
|
|
69
|
+
* @param {GetMarketsParams} [params] - The specific market ticker identifier for which data is requested. This parameter is optional.
|
|
70
70
|
* @returns {Promise<MarketEntity[]>} A promise that resolves to the response containing market data.
|
|
71
71
|
* @memberof MarketsClient
|
|
72
72
|
*
|
|
@@ -78,12 +78,12 @@ var MarketsClient = /** @class */ (function (_super) {
|
|
|
78
78
|
* // Fetch data for a specific market
|
|
79
79
|
* const specificMarketData = await market.getMarkets('ETH-USDC');
|
|
80
80
|
*/
|
|
81
|
-
MarketsClient.prototype.getMarkets = function (
|
|
81
|
+
MarketsClient.prototype.getMarkets = function (params) {
|
|
82
82
|
return __awaiter(this, void 0, void 0, function () {
|
|
83
83
|
var uri;
|
|
84
84
|
return __generator(this, function (_a) {
|
|
85
85
|
uri = '/api/markets';
|
|
86
|
-
return [2 /*return*/, this.get(uri, { id:
|
|
86
|
+
return [2 /*return*/, this.get(uri, { id: params.id })];
|
|
87
87
|
});
|
|
88
88
|
});
|
|
89
89
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"markets.js","sourceRoot":"/","sources":["clients/modules/markets.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,gDAAgC;AAEhC;IAA2C,iCAAU;IAArD;;
|
|
1
|
+
{"version":3,"file":"markets.js","sourceRoot":"/","sources":["clients/modules/markets.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA,gDAAgC;AAEhC;IAA2C,iCAAU;IAArD;;IAoEA,CAAC;IAnEC;;;;;;;;;;;;;;;;;OAiBG;IAEG,kCAAU,GAAhB,UAAiB,MAAwB;;;;gBACjC,GAAG,GAAG,cAAc,CAAC;gBAC3B,sBAAO,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,EAAE,EAAE,EAAE,MAAM,CAAC,EAAE,EAAE,CAAC,EAAC;;;KACzC;IAED;;;;;;;;;;;;;;;;OAgBG;IAEG,wCAAgB,GAAtB,UACE,QAA4B,EAC5B,UAA6B,EAC7B,OAAuB,EACvB,KAAqB,EACrB,KAAqB;;;;gBAEf,GAAG,GAAG,+BAAwB,QAAQ,CAAE,CAAC;gBAC/C,sBAAO,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE;wBACnB,UAAU,YAAA;wBACV,OAAO,SAAA;wBACP,KAAK,OAAA;wBACL,KAAK,OAAA;qBACN,CAAC,EAAC;;;KACJ;IAEK,gDAAwB,GAA9B,UACE,QAAgB,EAChB,KAAqB;;;;gBAEf,GAAG,GAAG,sBAAe,QAAQ,CAAE,CAAC;gBACtC,sBAAO,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE;wBACnB,KAAK,OAAA;qBACN,CAAC,EAAC;;;KACJ;IACH,oBAAC;AAAD,CAAC,AApED,CAA2C,cAAU,GAoEpD","sourcesContent":["import {\n CandlesResolution,\n GetMarketsParams,\n MarketCandlesResponse,\n MarketEntity,\n TradesResponse,\n} from '../types';\nimport RestClient from './rest';\n\nexport default class MarketsClient extends RestClient {\n /**\n * Asynchronously retrieves market data from the API.\n *\n * This method makes a request to the API to fetch data for markets. If a specific market is provided as a parameter,\n * it fetches data for that particular market; otherwise, it fetches data for all available markets.\n *\n * @param {GetMarketsParams} [params] - The specific market ticker identifier for which data is requested. This parameter is optional.\n * @returns {Promise<MarketEntity[]>} A promise that resolves to the response containing market data.\n * @memberof MarketsClient\n *\n * @example\n * // Fetch data for all markets\n * const allMarketsData = await market.getMarkets();\n *\n * @example\n * // Fetch data for a specific market\n * const specificMarketData = await market.getMarkets('ETH-USDC');\n */\n\n async getMarkets(params: GetMarketsParams): Promise<MarketEntity[]> {\n const uri = '/api/markets';\n return this.get(uri, { id: params.id });\n }\n\n /**\n * Retrieves candlestick data for a specified market.\n *\n * This method fetches historical candlestick (or OHLC - Open, High, Low, Close) data for a given market.\n * The data can be filtered by time range (fromISO and toISO) and resolution.\n *\n * @param {number} marketId - The market identifier for which candlestick data is to be retrieved.\n * @param {CandlesResolution} resolution - The granularity of the candlestick data (e.g., '1MIN', '5MIN', '1HR').\n * @param {string|null} [fromISO] - The start time for the range of candlestick data in ISO 8601 format. Optional.\n * @param {string|null} [toISO] - The end time for the range of candlestick data in ISO 8601 format. Optional.\n * @param {number|null} [limit] - The maximum number of candlestick data points to retrieve. Optional.\n * @returns {Promise<MarketCandlesResponse>} A promise that resolves to the market candlestick data.\n * @memberof MarketsClient\n *\n * @example\n * const marketCandles = await market.getMarketCandles('BTC-USD', '1HR', '2023-01-01T00:00:00Z', '2023-01-02T00:00:00Z');\n */\n\n async getMarketCandles(\n marketId: MarketEntity['id'],\n resolution: CandlesResolution,\n fromISO?: string | null,\n toISO?: string | null,\n limit?: number | null,\n ): Promise<MarketCandlesResponse> {\n const uri = `/api/markets/candles/${marketId}`;\n return this.get(uri, {\n resolution,\n fromISO,\n toISO,\n limit,\n });\n }\n\n async getPerpetualMarketTrades(\n marketId: number,\n limit?: number | null,\n ): Promise<TradesResponse> {\n const uri = `/api/trades/${marketId}`;\n return this.get(uri, {\n limit,\n });\n }\n}\n"]}
|
|
@@ -8,23 +8,23 @@ export default class AccountClient extends RestClient {
|
|
|
8
8
|
* based on the provided Ethereum address. An optional limit can be specified to control the number of
|
|
9
9
|
* collateral accounts returned in the response.
|
|
10
10
|
*
|
|
11
|
-
* @param {GetMarginAccountsParams}
|
|
11
|
+
* @param {GetMarginAccountsParams} params
|
|
12
12
|
* @returns {Promise<MarginAccountEntity[]>} A promise that resolves to the response containing the margin
|
|
13
13
|
* account data.
|
|
14
14
|
* @memberof account
|
|
15
15
|
* */
|
|
16
|
-
|
|
16
|
+
getMarginAccounts(params: GetMarginAccountsParams): Promise<MarginAccountEntity[]>;
|
|
17
17
|
/**
|
|
18
18
|
* Asynchronously retrieves details of a specific collateral account for a given Ethereum address.
|
|
19
19
|
*
|
|
20
20
|
* This method sends a request to the API to obtain detailed information about a specific collateral account
|
|
21
21
|
* associated with the provided Ethereum address. The account is identified using the collateral account number.
|
|
22
22
|
*
|
|
23
|
-
* @param {GetMarginAccountParams}
|
|
23
|
+
* @param {GetMarginAccountParams} params
|
|
24
24
|
* @returns {Promise<MarginAccountEntity>} A promise that resolves to the response containing the detailed
|
|
25
25
|
* information of the specified margin account.
|
|
26
26
|
* @memberof account
|
|
27
27
|
*/
|
|
28
|
-
getCollateralAccount(
|
|
28
|
+
getCollateralAccount(params: GetMarginAccountParams): Promise<MarginAccountEntity>;
|
|
29
29
|
}
|
|
30
30
|
//# sourceMappingURL=account.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account.d.ts","sourceRoot":"/","sources":["clients/modules/account.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EACtB,uBAAuB,EACvB,mBAAmB,EACpB,MAAM,UAAU,CAAC;AAClB,OAAO,UAAU,MAAM,QAAQ,CAAC;AAEhC,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,UAAU;IACnD;;;;;;;;;;;SAWK;IAEC,
|
|
1
|
+
{"version":3,"file":"account.d.ts","sourceRoot":"/","sources":["clients/modules/account.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EACtB,uBAAuB,EACvB,mBAAmB,EACpB,MAAM,UAAU,CAAC;AAClB,OAAO,UAAU,MAAM,QAAQ,CAAC;AAEhC,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,UAAU;IACnD;;;;;;;;;;;SAWK;IAEC,iBAAiB,CACrB,MAAM,EAAE,uBAAuB,GAC9B,OAAO,CAAC,mBAAmB,EAAE,CAAC;IAKjC;;;;;;;;;;OAUG;IAEG,oBAAoB,CACxB,MAAM,EAAE,sBAAsB,GAC7B,OAAO,CAAC,mBAAmB,CAAC;CAIhC"}
|
|
@@ -7,7 +7,7 @@ export default class MarketsClient extends RestClient {
|
|
|
7
7
|
* This method makes a request to the API to fetch data for markets. If a specific market is provided as a parameter,
|
|
8
8
|
* it fetches data for that particular market; otherwise, it fetches data for all available markets.
|
|
9
9
|
*
|
|
10
|
-
* @param {GetMarketsParams} [
|
|
10
|
+
* @param {GetMarketsParams} [params] - The specific market ticker identifier for which data is requested. This parameter is optional.
|
|
11
11
|
* @returns {Promise<MarketEntity[]>} A promise that resolves to the response containing market data.
|
|
12
12
|
* @memberof MarketsClient
|
|
13
13
|
*
|
|
@@ -19,7 +19,7 @@ export default class MarketsClient extends RestClient {
|
|
|
19
19
|
* // Fetch data for a specific market
|
|
20
20
|
* const specificMarketData = await market.getMarkets('ETH-USDC');
|
|
21
21
|
*/
|
|
22
|
-
getMarkets(
|
|
22
|
+
getMarkets(params: GetMarketsParams): Promise<MarketEntity[]>;
|
|
23
23
|
/**
|
|
24
24
|
* Retrieves candlestick data for a specified market.
|
|
25
25
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"markets.d.ts","sourceRoot":"/","sources":["clients/modules/markets.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,gBAAgB,EAChB,qBAAqB,EACrB,YAAY,EACZ,cAAc,EACf,MAAM,UAAU,CAAC;AAClB,OAAO,UAAU,MAAM,QAAQ,CAAC;AAEhC,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,UAAU;IACnD;;;;;;;;;;;;;;;;;OAiBG;IAEG,UAAU,
|
|
1
|
+
{"version":3,"file":"markets.d.ts","sourceRoot":"/","sources":["clients/modules/markets.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,gBAAgB,EAChB,qBAAqB,EACrB,YAAY,EACZ,cAAc,EACf,MAAM,UAAU,CAAC;AAClB,OAAO,UAAU,MAAM,QAAQ,CAAC;AAEhC,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,UAAU;IACnD;;;;;;;;;;;;;;;;;OAiBG;IAEG,UAAU,CAAC,MAAM,EAAE,gBAAgB,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC;IAKnE;;;;;;;;;;;;;;;;OAgBG;IAEG,gBAAgB,CACpB,QAAQ,EAAE,YAAY,CAAC,IAAI,CAAC,EAC5B,UAAU,EAAE,iBAAiB,EAC7B,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,EACvB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,EACrB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GACpB,OAAO,CAAC,qBAAqB,CAAC;IAU3B,wBAAwB,CAC5B,QAAQ,EAAE,MAAM,EAChB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GACpB,OAAO,CAAC,cAAc,CAAC;CAM3B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reyaxyz/api-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"axios": "^1.6.2"
|
|
37
37
|
},
|
|
38
38
|
"packageManager": "pnpm@8.10.4",
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "f762d6bc89fe5866fc0f22e21c4c804dc6147f08"
|
|
40
40
|
}
|
|
@@ -13,17 +13,17 @@ export default class AccountClient extends RestClient {
|
|
|
13
13
|
* based on the provided Ethereum address. An optional limit can be specified to control the number of
|
|
14
14
|
* collateral accounts returned in the response.
|
|
15
15
|
*
|
|
16
|
-
* @param {GetMarginAccountsParams}
|
|
16
|
+
* @param {GetMarginAccountsParams} params
|
|
17
17
|
* @returns {Promise<MarginAccountEntity[]>} A promise that resolves to the response containing the margin
|
|
18
18
|
* account data.
|
|
19
19
|
* @memberof account
|
|
20
20
|
* */
|
|
21
21
|
|
|
22
|
-
async
|
|
23
|
-
|
|
22
|
+
async getMarginAccounts(
|
|
23
|
+
params: GetMarginAccountsParams,
|
|
24
24
|
): Promise<MarginAccountEntity[]> {
|
|
25
|
-
const uri = `/api/accounts/${
|
|
26
|
-
return this.get(uri, { limit:
|
|
25
|
+
const uri = `/api/accounts/${params.address}`;
|
|
26
|
+
return this.get(uri, { limit: params.limit });
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
/**
|
|
@@ -32,16 +32,16 @@ export default class AccountClient extends RestClient {
|
|
|
32
32
|
* This method sends a request to the API to obtain detailed information about a specific collateral account
|
|
33
33
|
* associated with the provided Ethereum address. The account is identified using the collateral account number.
|
|
34
34
|
*
|
|
35
|
-
* @param {GetMarginAccountParams}
|
|
35
|
+
* @param {GetMarginAccountParams} params
|
|
36
36
|
* @returns {Promise<MarginAccountEntity>} A promise that resolves to the response containing the detailed
|
|
37
37
|
* information of the specified margin account.
|
|
38
38
|
* @memberof account
|
|
39
39
|
*/
|
|
40
40
|
|
|
41
41
|
async getCollateralAccount(
|
|
42
|
-
|
|
42
|
+
params: GetMarginAccountParams,
|
|
43
43
|
): Promise<MarginAccountEntity> {
|
|
44
|
-
const uri = `/api/accounts/${
|
|
44
|
+
const uri = `/api/accounts/${params.address}/collateralAccount/${params.marginAccountNumber}`;
|
|
45
45
|
return this.get(uri);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
@@ -14,7 +14,7 @@ export default class MarketsClient extends RestClient {
|
|
|
14
14
|
* This method makes a request to the API to fetch data for markets. If a specific market is provided as a parameter,
|
|
15
15
|
* it fetches data for that particular market; otherwise, it fetches data for all available markets.
|
|
16
16
|
*
|
|
17
|
-
* @param {GetMarketsParams} [
|
|
17
|
+
* @param {GetMarketsParams} [params] - The specific market ticker identifier for which data is requested. This parameter is optional.
|
|
18
18
|
* @returns {Promise<MarketEntity[]>} A promise that resolves to the response containing market data.
|
|
19
19
|
* @memberof MarketsClient
|
|
20
20
|
*
|
|
@@ -27,11 +27,9 @@ export default class MarketsClient extends RestClient {
|
|
|
27
27
|
* const specificMarketData = await market.getMarkets('ETH-USDC');
|
|
28
28
|
*/
|
|
29
29
|
|
|
30
|
-
async getMarkets(
|
|
31
|
-
getMarketsParams: GetMarketsParams,
|
|
32
|
-
): Promise<MarketEntity[]> {
|
|
30
|
+
async getMarkets(params: GetMarketsParams): Promise<MarketEntity[]> {
|
|
33
31
|
const uri = '/api/markets';
|
|
34
|
-
return this.get(uri, { id:
|
|
32
|
+
return this.get(uri, { id: params.id });
|
|
35
33
|
}
|
|
36
34
|
|
|
37
35
|
/**
|