@0xmonaco/core 0.8.18 → 0.8.20
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.
|
@@ -58,6 +58,8 @@ export class MarginAccountsAPIImpl extends BaseAPI {
|
|
|
58
58
|
amount: request.amount,
|
|
59
59
|
tradingPairId: request.tradingPairId,
|
|
60
60
|
strategyKey: request.strategyKey,
|
|
61
|
+
marginMode: request.marginMode,
|
|
62
|
+
selectedTradingPairIds: request.selectedTradingPairIds,
|
|
61
63
|
}),
|
|
62
64
|
});
|
|
63
65
|
}
|
|
@@ -130,6 +132,8 @@ export class MarginAccountsAPIImpl extends BaseAPI {
|
|
|
130
132
|
body: JSON.stringify({
|
|
131
133
|
tradingPairId: request.tradingPairId,
|
|
132
134
|
strategyKey: request.strategyKey,
|
|
135
|
+
marginMode: request.marginMode,
|
|
136
|
+
selectedTradingPairIds: request.selectedTradingPairIds,
|
|
133
137
|
side: request.side,
|
|
134
138
|
positionSide: request.positionSide,
|
|
135
139
|
orderType: request.orderType,
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
* );
|
|
22
22
|
* ```
|
|
23
23
|
*/
|
|
24
|
-
import type { BatchCancelOrdersResponse, BatchCreateOrderParams, BatchCreateOrdersResponse, BatchReplaceOrderParams, BatchReplaceOrdersResponse, CancelConditionalOrderResponse, CancelOrderResponse, CreateOrderResponse, GetOrderResponse, GetPaginatedOrdersParams, GetPaginatedOrdersResponse, ListConditionalOrdersParams, ListConditionalOrdersResponse, OrderSide, ParentTpSlLegParams, PositionSide, ReplaceOrderResponse, TimeInForce, TradingAPI, TradingMode } from "@0xmonaco/types";
|
|
24
|
+
import type { BatchCancelOrdersResponse, BatchCreateOrderParams, BatchCreateOrdersResponse, BatchReplaceOrderParams, BatchReplaceOrdersResponse, CancelConditionalOrderResponse, CancelOrderResponse, CreateOrderResponse, GetOrderResponse, GetPaginatedOrdersParams, GetPaginatedOrdersResponse, ListConditionalOrdersParams, ListConditionalOrdersResponse, MarginMode, OrderSide, ParentTpSlLegParams, PositionSide, ReplaceOrderResponse, TimeInForce, TradingAPI, TradingMode } from "@0xmonaco/types";
|
|
25
25
|
import { BaseAPI } from "../base";
|
|
26
26
|
export declare class TradingAPIImpl extends BaseAPI implements TradingAPI {
|
|
27
27
|
/**
|
|
@@ -80,6 +80,7 @@ export declare class TradingAPIImpl extends BaseAPI implements TradingAPI {
|
|
|
80
80
|
expirationDate?: string;
|
|
81
81
|
timeInForce?: TimeInForce;
|
|
82
82
|
marginAccountId?: string;
|
|
83
|
+
marginMode?: MarginMode;
|
|
83
84
|
riskBucketId?: string;
|
|
84
85
|
riskBucketCollateral?: string;
|
|
85
86
|
strategyKey?: string;
|
|
@@ -134,6 +135,7 @@ export declare class TradingAPIImpl extends BaseAPI implements TradingAPI {
|
|
|
134
135
|
tradingMode?: TradingMode;
|
|
135
136
|
slippageTolerance?: number;
|
|
136
137
|
marginAccountId?: string;
|
|
138
|
+
marginMode?: MarginMode;
|
|
137
139
|
riskBucketId?: string;
|
|
138
140
|
riskBucketCollateral?: string;
|
|
139
141
|
strategyKey?: string;
|
package/dist/api/trading/api.js
CHANGED
|
@@ -107,6 +107,7 @@ export class TradingAPIImpl extends BaseAPI {
|
|
|
107
107
|
expirationDate: options?.expirationDate,
|
|
108
108
|
timeInForce: options?.timeInForce,
|
|
109
109
|
marginAccountId: options?.marginAccountId,
|
|
110
|
+
marginMode: options?.marginMode,
|
|
110
111
|
riskBucketId: options?.riskBucketId,
|
|
111
112
|
riskBucketCollateral: options?.riskBucketCollateral,
|
|
112
113
|
strategyKey: options?.strategyKey,
|
|
@@ -179,6 +180,7 @@ export class TradingAPIImpl extends BaseAPI {
|
|
|
179
180
|
quantity,
|
|
180
181
|
tradingMode: options?.tradingMode || "SPOT",
|
|
181
182
|
marginAccountId: options?.marginAccountId,
|
|
183
|
+
marginMode: options?.marginMode,
|
|
182
184
|
riskBucketId: options?.riskBucketId,
|
|
183
185
|
riskBucketCollateral: options?.riskBucketCollateral,
|
|
184
186
|
strategyKey: options?.strategyKey,
|
|
@@ -344,6 +346,7 @@ export class TradingAPIImpl extends BaseAPI {
|
|
|
344
346
|
expirationDate: order.expirationDate,
|
|
345
347
|
timeInForce: order.timeInForce,
|
|
346
348
|
marginAccountId: order.marginAccountId,
|
|
349
|
+
marginMode: order.marginMode,
|
|
347
350
|
riskBucketId: order.riskBucketId,
|
|
348
351
|
riskBucketCollateral: order.riskBucketCollateral,
|
|
349
352
|
strategyKey: order.strategyKey,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@0xmonaco/core",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.20",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"viem": "^2.45.2"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@0xmonaco/contracts": "0.8.
|
|
27
|
-
"@0xmonaco/types": "0.8.
|
|
26
|
+
"@0xmonaco/contracts": "0.8.20",
|
|
27
|
+
"@0xmonaco/types": "0.8.20",
|
|
28
28
|
"@noble/curves": "^1.9.1",
|
|
29
29
|
"@noble/hashes": "^1.8.0",
|
|
30
30
|
"http-status-codes": "^2.3.0"
|