@rabby-wallet/rabby-api 0.9.5 → 0.9.6

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 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
@@ -1359,12 +1359,21 @@ export class OpenApiService {
1359
1359
  });
1360
1360
  return data;
1361
1361
  });
1362
+ /**
1363
+ * @deprecated
1364
+ */
1362
1365
  this.getToken24hPrice = (params) => __awaiter(this, void 0, void 0, function* () {
1363
1366
  const { data } = yield this.request.get('/v1/token/24h_price', {
1364
1367
  params,
1365
1368
  });
1366
1369
  return data;
1367
1370
  });
1371
+ this.getTokenPriceCurve = (params) => __awaiter(this, void 0, void 0, function* () {
1372
+ const { data } = yield this.request.get('/v1/token/price_curve', {
1373
+ params,
1374
+ });
1375
+ return data;
1376
+ });
1368
1377
  this.getTokenDatePrice = (params) => __awaiter(this, void 0, void 0, function* () {
1369
1378
  const { data } = yield this.request.get('/v1/token/date_price', {
1370
1379
  params,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rabby-wallet/rabby-api",
3
- "version": "0.9.5",
3
+ "version": "0.9.6",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [