@nightlylabs/dex-sdk 0.0.50 → 0.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.
- package/dist/index.cjs +4 -2
- package/dist/index.d.cts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +4 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1218,7 +1218,8 @@ var Client = class _Client {
|
|
|
1218
1218
|
params.isBid,
|
|
1219
1219
|
params.price,
|
|
1220
1220
|
params.size,
|
|
1221
|
-
params.postOnly
|
|
1221
|
+
params.postOnly,
|
|
1222
|
+
params.reduceOnly
|
|
1222
1223
|
]
|
|
1223
1224
|
});
|
|
1224
1225
|
const rawTx = new import_ts_sdk2.RawTransaction(
|
|
@@ -1254,7 +1255,8 @@ var Client = class _Client {
|
|
|
1254
1255
|
params.market,
|
|
1255
1256
|
params.isBid,
|
|
1256
1257
|
params.maxPrice,
|
|
1257
|
-
params.size
|
|
1258
|
+
params.size,
|
|
1259
|
+
params.reduceOnly
|
|
1258
1260
|
]
|
|
1259
1261
|
});
|
|
1260
1262
|
const rawTx = new import_ts_sdk2.RawTransaction(
|
package/dist/index.d.cts
CHANGED
|
@@ -175,8 +175,8 @@ interface PerpMarketData {
|
|
|
175
175
|
low24: string;
|
|
176
176
|
baseVolume24: string;
|
|
177
177
|
quoteVolume24: string;
|
|
178
|
-
|
|
179
|
-
|
|
178
|
+
predictedFundingRate: string;
|
|
179
|
+
openInterest: string;
|
|
180
180
|
timestamp: string;
|
|
181
181
|
}
|
|
182
182
|
interface GetPerpMarketsDataResponse {
|
|
@@ -839,6 +839,7 @@ interface PlacePerpLimitOrderParams {
|
|
|
839
839
|
price: string;
|
|
840
840
|
size: string;
|
|
841
841
|
postOnly: boolean;
|
|
842
|
+
reduceOnly: boolean;
|
|
842
843
|
}
|
|
843
844
|
interface PlacePerpMarketOrderParams {
|
|
844
845
|
userId: string;
|
|
@@ -846,6 +847,7 @@ interface PlacePerpMarketOrderParams {
|
|
|
846
847
|
isBid: boolean;
|
|
847
848
|
maxPrice: string;
|
|
848
849
|
size: string;
|
|
850
|
+
reduceOnly: boolean;
|
|
849
851
|
}
|
|
850
852
|
interface CancelAllPerpOrdersParams {
|
|
851
853
|
userId: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -175,8 +175,8 @@ interface PerpMarketData {
|
|
|
175
175
|
low24: string;
|
|
176
176
|
baseVolume24: string;
|
|
177
177
|
quoteVolume24: string;
|
|
178
|
-
|
|
179
|
-
|
|
178
|
+
predictedFundingRate: string;
|
|
179
|
+
openInterest: string;
|
|
180
180
|
timestamp: string;
|
|
181
181
|
}
|
|
182
182
|
interface GetPerpMarketsDataResponse {
|
|
@@ -839,6 +839,7 @@ interface PlacePerpLimitOrderParams {
|
|
|
839
839
|
price: string;
|
|
840
840
|
size: string;
|
|
841
841
|
postOnly: boolean;
|
|
842
|
+
reduceOnly: boolean;
|
|
842
843
|
}
|
|
843
844
|
interface PlacePerpMarketOrderParams {
|
|
844
845
|
userId: string;
|
|
@@ -846,6 +847,7 @@ interface PlacePerpMarketOrderParams {
|
|
|
846
847
|
isBid: boolean;
|
|
847
848
|
maxPrice: string;
|
|
848
849
|
size: string;
|
|
850
|
+
reduceOnly: boolean;
|
|
849
851
|
}
|
|
850
852
|
interface CancelAllPerpOrdersParams {
|
|
851
853
|
userId: string;
|
package/dist/index.js
CHANGED
|
@@ -1167,7 +1167,8 @@ var Client = class _Client {
|
|
|
1167
1167
|
params.isBid,
|
|
1168
1168
|
params.price,
|
|
1169
1169
|
params.size,
|
|
1170
|
-
params.postOnly
|
|
1170
|
+
params.postOnly,
|
|
1171
|
+
params.reduceOnly
|
|
1171
1172
|
]
|
|
1172
1173
|
});
|
|
1173
1174
|
const rawTx = new RawTransaction(
|
|
@@ -1203,7 +1204,8 @@ var Client = class _Client {
|
|
|
1203
1204
|
params.market,
|
|
1204
1205
|
params.isBid,
|
|
1205
1206
|
params.maxPrice,
|
|
1206
|
-
params.size
|
|
1207
|
+
params.size,
|
|
1208
|
+
params.reduceOnly
|
|
1207
1209
|
]
|
|
1208
1210
|
});
|
|
1209
1211
|
const rawTx = new RawTransaction(
|