@typus/typus-perp-sdk 1.0.33 → 1.0.34
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 +1 -3
- package/package.json +2 -2
package/dist/src/api/sentio.js
CHANGED
|
@@ -120,12 +120,11 @@ function getTlpAPRFromSentio() {
|
|
|
120
120
|
return [4 /*yield*/, response.json()];
|
|
121
121
|
case 2:
|
|
122
122
|
data = _a.sent();
|
|
123
|
-
console.log(data);
|
|
124
123
|
first = data.results[0].matrix.samples[0].values[0];
|
|
125
124
|
last = data.results[0].matrix.samples[0].values.at(-1);
|
|
126
125
|
r = last.value / first.value - 1;
|
|
127
126
|
apr = (365 / 7) * r;
|
|
128
|
-
console.log(apr);
|
|
127
|
+
// console.log(apr);
|
|
129
128
|
return [2 /*return*/, apr];
|
|
130
129
|
}
|
|
131
130
|
});
|
|
@@ -191,4 +190,3 @@ function getVolumeFromSentio() {
|
|
|
191
190
|
});
|
|
192
191
|
});
|
|
193
192
|
}
|
|
194
|
-
getTlpAPRFromSentio();
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typus/typus-perp-sdk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.34",
|
|
4
4
|
"repository": "https://github.com/Typus-Lab/typus-perp-sdk.git",
|
|
5
5
|
"author": "Typus",
|
|
6
6
|
"description": "typus perp sdk",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@typus/typus-sdk": "1.6.
|
|
9
|
+
"@typus/typus-sdk": "1.6.14"
|
|
10
10
|
},
|
|
11
11
|
"devDependencies": {
|
|
12
12
|
"@types/bs58": "^4.0.1",
|