@gainsnetwork/sdk 1.0.2-rc2 → 1.0.3

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.
@@ -119,7 +119,7 @@ const convertTradingPair = (pair, index) => ({
119
119
  pairIndex: index,
120
120
  feeIndex: parseInt(pair.feeIndex),
121
121
  groupIndex: parseInt(pair.groupIndex),
122
- spreadP: parseFloat(pair.spreadP) / 1e10 / 100,
122
+ spreadP: parseFloat(pair.spreadP) / 1e10,
123
123
  });
124
124
  const convertTradesAndLimitOrders = (allItems, collaterals) => allItems === null || allItems === void 0 ? void 0 : allItems.map(item => {
125
125
  return (0, exports.convertTradeContainer)(item, collaterals);
@@ -121,6 +121,7 @@ export type TradeHistoryRecord = {
121
121
  collateralDelta: number | null;
122
122
  leverageDelta: number | null;
123
123
  marketPrice: number | null;
124
+ isCounterTrade: 0 | 1;
124
125
  meta: OpenTradeHistoryMetaData | CloseTradeHistoryMetaData | PartialCloseTradeHistoryMetaData | PartialOpenTradeHistoryMetaData | WithdrawPnLHistoryMetaData | LeverageUpdateHistoryMetaData;
125
126
  };
126
127
  export type HistoryPriceImpact = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gainsnetwork/sdk",
3
- "version": "1.0.2-rc2",
3
+ "version": "1.0.3",
4
4
  "description": "Gains Network SDK",
5
5
  "main": "./lib/index.js",
6
6
  "files": [