@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
|
|
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);
|
package/lib/trade/types.d.ts
CHANGED
|
@@ -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 = {
|