@0xmonaco/types 0.0.0-develop-20260415185155 → 0.0.0-develop-20260420223958
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.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/margin-accounts/index.d.ts +106 -0
- package/dist/margin-accounts/index.js +0 -0
- package/dist/market/index.d.ts +98 -0
- package/dist/positions/index.d.ts +128 -0
- package/dist/positions/index.js +0 -0
- package/dist/sdk/index.d.ts +8 -1
- package/dist/trading/index.d.ts +24 -4
- package/dist/trading/orders.d.ts +26 -0
- package/dist/trading/responses.d.ts +83 -2
- package/dist/validation/index.d.ts +2 -0
- package/dist/validation/index.js +2 -0
- package/dist/validation/margin-accounts.d.ts +55 -0
- package/dist/validation/margin-accounts.js +59 -0
- package/dist/validation/positions.d.ts +89 -0
- package/dist/validation/positions.js +93 -0
- package/dist/validation/trading.d.ts +121 -0
- package/dist/validation/trading.js +124 -3
- package/dist/websocket/events/conditional-order-events.d.ts +33 -0
- package/dist/websocket/events/conditional-order-events.js +0 -0
- package/dist/websocket/events/index.d.ts +1 -0
- package/dist/websocket/events/index.js +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { ConditionalOrderConditionType, ConditionalOrderState, ConditionalOrderTriggerSource, OrderSide, OrderType, PositionSide, TimeInForce } from "../../trading";
|
|
2
|
+
export type ConditionalOrderEventReason = "created" | "cancelled" | "triggered" | "failed" | "oco_cancelled";
|
|
3
|
+
export interface ConditionalOrderEventData {
|
|
4
|
+
conditionalOrderId: string;
|
|
5
|
+
tradingPairId: string;
|
|
6
|
+
marginAccountId: string;
|
|
7
|
+
positionId?: string;
|
|
8
|
+
linkedGroupId?: string;
|
|
9
|
+
conditionType: ConditionalOrderConditionType;
|
|
10
|
+
triggerSource: ConditionalOrderTriggerSource;
|
|
11
|
+
triggerPrice: string;
|
|
12
|
+
side: OrderSide;
|
|
13
|
+
positionSide: PositionSide;
|
|
14
|
+
orderType: OrderType;
|
|
15
|
+
limitPrice?: string;
|
|
16
|
+
quantity?: string;
|
|
17
|
+
slippageToleranceBps?: number;
|
|
18
|
+
reduceOnly: boolean;
|
|
19
|
+
timeInForce?: Extract<TimeInForce, "GTC" | "IOC">;
|
|
20
|
+
state: ConditionalOrderState;
|
|
21
|
+
triggeredOrderId?: string;
|
|
22
|
+
triggeredAt?: string;
|
|
23
|
+
cancelledAt?: string;
|
|
24
|
+
expiresAt?: string;
|
|
25
|
+
failureReason?: string;
|
|
26
|
+
reason: ConditionalOrderEventReason;
|
|
27
|
+
updatedAt: string;
|
|
28
|
+
}
|
|
29
|
+
export interface ConditionalOrderEvent {
|
|
30
|
+
eventType: "conditional_order_update";
|
|
31
|
+
userId: string;
|
|
32
|
+
data: ConditionalOrderEventData;
|
|
33
|
+
}
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@0xmonaco/types",
|
|
3
|
-
"version": "0.0.0-develop-
|
|
3
|
+
"version": "0.0.0-develop-20260420223958",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"lint": "biome lint ."
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@0xmonaco/contracts": "0.0.0-develop-
|
|
23
|
+
"@0xmonaco/contracts": "0.0.0-develop-20260420223958",
|
|
24
24
|
"zod": "^4.1.12"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|