@rabby-wallet/rabby-api 0.9.3 → 0.9.4-alpha.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/index.d.ts +14 -0
- package/dist/index.js +12 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1001,5 +1001,19 @@ export declare class OpenApiService {
|
|
|
1001
1001
|
}) => Promise<{
|
|
1002
1002
|
success: boolean;
|
|
1003
1003
|
}>;
|
|
1004
|
+
getToken24hPrice: (params: {
|
|
1005
|
+
chain_id: string;
|
|
1006
|
+
id: string;
|
|
1007
|
+
}) => Promise<{
|
|
1008
|
+
time_at: number;
|
|
1009
|
+
price: number;
|
|
1010
|
+
}[]>;
|
|
1011
|
+
getTokenDatePrice: (params: {
|
|
1012
|
+
chain_id: string;
|
|
1013
|
+
id: string;
|
|
1014
|
+
}) => Promise<{
|
|
1015
|
+
date_at: number;
|
|
1016
|
+
price: number;
|
|
1017
|
+
}[]>;
|
|
1004
1018
|
}
|
|
1005
1019
|
export {};
|
package/dist/index.js
CHANGED
|
@@ -1344,6 +1344,18 @@ export class OpenApiService {
|
|
|
1344
1344
|
});
|
|
1345
1345
|
return data;
|
|
1346
1346
|
});
|
|
1347
|
+
this.getToken24hPrice = (params) => __awaiter(this, void 0, void 0, function* () {
|
|
1348
|
+
const { data } = yield this.request.get('/v1/token/24h_price', {
|
|
1349
|
+
params,
|
|
1350
|
+
});
|
|
1351
|
+
return data;
|
|
1352
|
+
});
|
|
1353
|
+
this.getTokenDatePrice = (params) => __awaiter(this, void 0, void 0, function* () {
|
|
1354
|
+
const { data } = yield this.request.get('/v1/token/date_price', {
|
|
1355
|
+
params,
|
|
1356
|
+
});
|
|
1357
|
+
return data;
|
|
1358
|
+
});
|
|
1347
1359
|
if (store instanceof Promise) {
|
|
1348
1360
|
store.then((resolvedStore) => {
|
|
1349
1361
|
this.store = resolvedStore;
|