@rabby-wallet/rabby-api 0.9.5 → 0.9.7
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/index.d.ts +11 -0
- package/dist/index.js +10 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1009,6 +1009,9 @@ export declare class OpenApiService {
|
|
|
1009
1009
|
}) => Promise<{
|
|
1010
1010
|
success: boolean;
|
|
1011
1011
|
}>;
|
|
1012
|
+
/**
|
|
1013
|
+
* @deprecated
|
|
1014
|
+
*/
|
|
1012
1015
|
getToken24hPrice: (params: {
|
|
1013
1016
|
chain_id: string;
|
|
1014
1017
|
id: string;
|
|
@@ -1016,6 +1019,14 @@ export declare class OpenApiService {
|
|
|
1016
1019
|
time_at: number;
|
|
1017
1020
|
price: number;
|
|
1018
1021
|
}[]>;
|
|
1022
|
+
getTokenPriceCurve: (params: {
|
|
1023
|
+
chain_id: string;
|
|
1024
|
+
id: string;
|
|
1025
|
+
days: number | 1 | 7;
|
|
1026
|
+
}) => Promise<{
|
|
1027
|
+
time_at: number;
|
|
1028
|
+
price: number;
|
|
1029
|
+
}[]>;
|
|
1019
1030
|
getTokenDatePrice: (params: {
|
|
1020
1031
|
chain_id: string;
|
|
1021
1032
|
id: string;
|
package/dist/index.js
CHANGED
|
@@ -394,6 +394,7 @@ export class OpenApiService {
|
|
|
394
394
|
this.getSwapQuote = (params) => __awaiter(this, void 0, void 0, function* () {
|
|
395
395
|
const { data } = yield this.request.get('/v1/wallet/swap_quote', {
|
|
396
396
|
params,
|
|
397
|
+
timeout: 5000,
|
|
397
398
|
});
|
|
398
399
|
return data;
|
|
399
400
|
});
|
|
@@ -1359,12 +1360,21 @@ export class OpenApiService {
|
|
|
1359
1360
|
});
|
|
1360
1361
|
return data;
|
|
1361
1362
|
});
|
|
1363
|
+
/**
|
|
1364
|
+
* @deprecated
|
|
1365
|
+
*/
|
|
1362
1366
|
this.getToken24hPrice = (params) => __awaiter(this, void 0, void 0, function* () {
|
|
1363
1367
|
const { data } = yield this.request.get('/v1/token/24h_price', {
|
|
1364
1368
|
params,
|
|
1365
1369
|
});
|
|
1366
1370
|
return data;
|
|
1367
1371
|
});
|
|
1372
|
+
this.getTokenPriceCurve = (params) => __awaiter(this, void 0, void 0, function* () {
|
|
1373
|
+
const { data } = yield this.request.get('/v1/token/price_curve', {
|
|
1374
|
+
params,
|
|
1375
|
+
});
|
|
1376
|
+
return data;
|
|
1377
|
+
});
|
|
1368
1378
|
this.getTokenDatePrice = (params) => __awaiter(this, void 0, void 0, function* () {
|
|
1369
1379
|
const { data } = yield this.request.get('/v1/token/date_price', {
|
|
1370
1380
|
params,
|