@typus/typus-perp-sdk 1.0.68 → 1.0.69

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.
@@ -104,7 +104,7 @@ function getTradingVolumeFromSentio(fromTimestamp, interval, toTimestamp) {
104
104
  requestData = {
105
105
  timeRange: {
106
106
  start: "".concat(fromTimestamp),
107
- end: "".concat(toTimestamp !== null && toTimestamp !== void 0 ? toTimestamp : "now"),
107
+ end: "".concat(toTimestamp !== null && toTimestamp !== void 0 ? toTimestamp : Date.now()),
108
108
  step: 3600 * interval,
109
109
  },
110
110
  limit: 30 * 24,
@@ -180,7 +180,7 @@ function getTlpFeeFromSentio(fromTimestamp, toTimestamp) {
180
180
  requestData = {
181
181
  timeRange: {
182
182
  start: "".concat(fromTimestamp),
183
- end: "".concat(toTimestamp !== null && toTimestamp !== void 0 ? toTimestamp : "now"),
183
+ end: "".concat(toTimestamp !== null && toTimestamp !== void 0 ? toTimestamp : Date.now()),
184
184
  step: 3600,
185
185
  },
186
186
  limit: 20,
@@ -234,7 +234,7 @@ function getTotalVolumeFromSentio(fromTimestamp, toTimestamp) {
234
234
  requestData = {
235
235
  timeRange: {
236
236
  start: "".concat(fromTimestamp),
237
- end: "".concat(toTimestamp !== null && toTimestamp !== void 0 ? toTimestamp : "now"),
237
+ end: "".concat(toTimestamp !== null && toTimestamp !== void 0 ? toTimestamp : Date.now()),
238
238
  step: 3600,
239
239
  },
240
240
  limit: 1,
@@ -288,7 +288,7 @@ function getAccumulatedUser() {
288
288
  requestData = {
289
289
  timeRange: {
290
290
  start: "now-1h",
291
- end: "now",
291
+ end: Date.now(),
292
292
  step: 3600,
293
293
  timezone: "Asia/Taipei",
294
294
  },
@@ -356,7 +356,7 @@ function getTlpPriceFromSentio(fromTimestamp, toTimestamp) {
356
356
  requestData = {
357
357
  timeRange: {
358
358
  start: "".concat(fromTimestamp),
359
- end: "".concat(toTimestamp !== null && toTimestamp !== void 0 ? toTimestamp : "now"),
359
+ end: "".concat(toTimestamp !== null && toTimestamp !== void 0 ? toTimestamp : Date.now()),
360
360
  step: 3600,
361
361
  },
362
362
  limit: 30 * 24,
@@ -399,6 +399,6 @@ function getTlpPriceFromSentio(fromTimestamp, toTimestamp) {
399
399
  // getVolumeFromSentio();
400
400
  // getAccumulatedUser();
401
401
  // getTradingVolumeFromSentio(1747008000, 1, 1747011600);
402
- // getTotalVolumeFromSentio(1748995200);
403
- // getTlpPriceFromSentio(1748995200);
404
- // getTlpFeeFromSentio(1748995200);
402
+ // getTlpPriceFromSentio(0);
403
+ // getTotalVolumeFromSentio(0).then((x) => console.log(x));
404
+ // getTlpFeeFromSentio(0).then((x) => console.log(x));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typus/typus-perp-sdk",
3
- "version": "1.0.68",
3
+ "version": "1.0.69",
4
4
  "repository": "https://github.com/Typus-Lab/typus-perp-sdk.git",
5
5
  "author": "Typus",
6
6
  "description": "typus perp sdk",