@typus/typus-perp-sdk 1.0.54-feat-exp → 1.0.54-feat-exp-b

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.
@@ -248,7 +248,7 @@ function getTotalVolumeFromSentio() {
248
248
  return [4 /*yield*/, response.json()];
249
249
  case 2:
250
250
  data = _a.sent();
251
- result = data.results[0].matrix.samples[0].values[0].value;
251
+ result = data.results[0].matrix.samples[0].values.at(-1).value;
252
252
  // console.log(result);
253
253
  return [2 /*return*/, result];
254
254
  }
@@ -312,7 +312,7 @@ function getAccumulatedUser() {
312
312
  return [4 /*yield*/, response.json()];
313
313
  case 2:
314
314
  data = _a.sent();
315
- result = data.results[0].matrix.samples[0].values[0].value;
315
+ result = data.results[0].matrix.samples[0].values.at(-1).value;
316
316
  // console.log(result);
317
317
  return [2 /*return*/, result];
318
318
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typus/typus-perp-sdk",
3
- "version": "1.0.54-feat-exp",
3
+ "version": "1.0.54-feat-exp-b",
4
4
  "repository": "https://github.com/Typus-Lab/typus-perp-sdk.git",
5
5
  "author": "Typus",
6
6
  "description": "typus perp sdk",