@typus/typus-perp-sdk 1.0.50 → 1.0.52

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.
@@ -220,7 +220,10 @@ function getTlpFeeFromSentio() {
220
220
  alias: "",
221
221
  id: "a",
222
222
  labelSelector: {},
223
- aggregate: null,
223
+ aggregate: {
224
+ op: "SUM",
225
+ grouping: [],
226
+ },
224
227
  functions: [],
225
228
  disabled: false,
226
229
  },
@@ -241,7 +241,13 @@ function parseUserHistory(raw_events) {
241
241
  order_id: undefined,
242
242
  position_id: json.position_id,
243
243
  market: market,
244
- side: related === null || related === void 0 ? void 0 : related.side,
244
+ side: !related
245
+ ? undefined
246
+ : related.action === "Order Filled (Open Position)"
247
+ ? related.side
248
+ : related.side === "Long"
249
+ ? "Short"
250
+ : "Long",
245
251
  order_type: related === null || related === void 0 ? void 0 : related.order_type,
246
252
  status: "Filled",
247
253
  size: related === null || related === void 0 ? void 0 : related.size,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typus/typus-perp-sdk",
3
- "version": "1.0.50",
3
+ "version": "1.0.52",
4
4
  "repository": "https://github.com/Typus-Lab/typus-perp-sdk.git",
5
5
  "author": "Typus",
6
6
  "description": "typus perp sdk",