@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.
- package/dist/src/api/sentio.js +2 -2
- package/package.json +1 -1
package/dist/src/api/sentio.js
CHANGED
|
@@ -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
|
|
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
|
|
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
|
}
|