@polyester/sdk 0.36.0-devnet-20261116150503 → 0.36.0-devnet-20261117035807
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/CHANGELOG.md +3 -1
- package/dist/realtime/client.js +1 -1
- package/dist/realtime/client.js.map +1 -1
- package/dist/services/address-book/address-book.schemas.d.ts +2 -2
- package/dist/services/assistant/assistant-events.schemas.d.ts +85 -85
- package/dist/services/assistant/assistant.schemas.d.ts +1 -1
- package/dist/services/auto-withdraw/auto-withdraw.schemas.d.ts +16 -16
- package/dist/services/changelog/changelog.schemas.d.ts +22 -22
- package/dist/services/checkpoints/checkpoints.schemas.d.ts +3 -3
- package/dist/services/dust-conversion/dust-conversion.schemas.d.ts +8 -8
- package/dist/services/heatmap/heatmap.schemas.d.ts +4 -4
- package/dist/services/internal-transfers/internal-transfers.schemas.d.ts +11 -11
- package/dist/services/lifecycle/lifecycle.schemas.d.ts +51 -51
- package/dist/services/notifications/notifications.schemas.d.ts +1 -13
- package/dist/services/notifications/notifications.schemas.d.ts.map +1 -1
- package/dist/services/orderbook/orderbook.d.ts +1 -1
- package/dist/services/orderbook/orderbook.js +7 -7
- package/dist/services/orderbook/orderbook.js.map +1 -1
- package/dist/services/orders/order-errors.schemas.d.ts +2 -2
- package/dist/services/orders/orders-batch.schemas.d.ts +52 -52
- package/dist/services/orders/orders-input.schemas.d.ts +6 -6
- package/dist/services/orders/orders-output.schemas.d.ts +17 -17
- package/dist/services/price-alerts/price-alerts.schemas.d.ts +10 -10
- package/dist/services/rewards/rewards.schemas.d.ts +4 -4
- package/dist/services/statement-exports/statement-exports.schemas.d.ts +6 -6
- package/dist/services/subaccounts/subaccounts.schemas.d.ts +15 -15
- package/dist/services/system/system.schemas.d.ts +13 -13
- package/dist/services/trades/trades.schemas.d.ts +2 -2
- package/dist/services/triggers/trigger-input.schemas.d.ts +2 -2
- package/dist/services/triggers/triggers-output.schemas.d.ts +55 -55
- package/package.json +1 -1
|
@@ -10,14 +10,14 @@ declare function formatOrderPreview(o: OrderPreview): {
|
|
|
10
10
|
symbol: string;
|
|
11
11
|
baseAsset: string;
|
|
12
12
|
quoteAsset: string;
|
|
13
|
-
side: "
|
|
13
|
+
side: "buy" | "sell" | "unspecified";
|
|
14
14
|
quantity: string | undefined;
|
|
15
15
|
quoteAmount: string | undefined;
|
|
16
16
|
estimatedValue: string | undefined;
|
|
17
17
|
reservedAmount: string | undefined;
|
|
18
18
|
referencePrice: {
|
|
19
19
|
price: string;
|
|
20
|
-
source: "unspecified" | "
|
|
20
|
+
source: "unspecified" | "best_bid" | "best_ask" | "last_price" | "index_price";
|
|
21
21
|
observedAt: number | undefined;
|
|
22
22
|
} | undefined;
|
|
23
23
|
/** The order type and its own values; `type: "unspecified"` means show the summary only. */
|
|
@@ -287,7 +287,7 @@ declare function formatOrderPreview(o: OrderPreview): {
|
|
|
287
287
|
offsetBps: number;
|
|
288
288
|
reference: {
|
|
289
289
|
price: string;
|
|
290
|
-
source: "unspecified" | "
|
|
290
|
+
source: "unspecified" | "best_bid" | "best_ask" | "last_price" | "index_price";
|
|
291
291
|
observedAt: number | undefined;
|
|
292
292
|
type: "market";
|
|
293
293
|
} | {
|
|
@@ -307,14 +307,14 @@ declare function formatApprovalPreview(p: ApprovalRequested["preview"]): {
|
|
|
307
307
|
symbol: string;
|
|
308
308
|
baseAsset: string;
|
|
309
309
|
quoteAsset: string;
|
|
310
|
-
side: "
|
|
310
|
+
side: "buy" | "sell" | "unspecified";
|
|
311
311
|
quantity: string | undefined;
|
|
312
312
|
quoteAmount: string | undefined;
|
|
313
313
|
estimatedValue: string | undefined;
|
|
314
314
|
reservedAmount: string | undefined;
|
|
315
315
|
referencePrice: {
|
|
316
316
|
price: string;
|
|
317
|
-
source: "unspecified" | "
|
|
317
|
+
source: "unspecified" | "best_bid" | "best_ask" | "last_price" | "index_price";
|
|
318
318
|
observedAt: number | undefined;
|
|
319
319
|
} | undefined;
|
|
320
320
|
/** The order type and its own values; `type: "unspecified"` means show the summary only. */
|
|
@@ -584,7 +584,7 @@ declare function formatApprovalPreview(p: ApprovalRequested["preview"]): {
|
|
|
584
584
|
offsetBps: number;
|
|
585
585
|
reference: {
|
|
586
586
|
price: string;
|
|
587
|
-
source: "unspecified" | "
|
|
587
|
+
source: "unspecified" | "best_bid" | "best_ask" | "last_price" | "index_price";
|
|
588
588
|
observedAt: number | undefined;
|
|
589
589
|
type: "market";
|
|
590
590
|
} | {
|
|
@@ -637,14 +637,14 @@ declare function formatApprovalPreview(p: ApprovalRequested["preview"]): {
|
|
|
637
637
|
symbol: string;
|
|
638
638
|
baseAsset: string;
|
|
639
639
|
quoteAsset: string;
|
|
640
|
-
side: "
|
|
640
|
+
side: "buy" | "sell" | "unspecified";
|
|
641
641
|
quantity: string | undefined;
|
|
642
642
|
quoteAmount: string | undefined;
|
|
643
643
|
estimatedValue: string | undefined;
|
|
644
644
|
reservedAmount: string | undefined;
|
|
645
645
|
referencePrice: {
|
|
646
646
|
price: string;
|
|
647
|
-
source: "unspecified" | "
|
|
647
|
+
source: "unspecified" | "best_bid" | "best_ask" | "last_price" | "index_price";
|
|
648
648
|
observedAt: number | undefined;
|
|
649
649
|
} | undefined;
|
|
650
650
|
/** The order type and its own values; `type: "unspecified"` means show the summary only. */
|
|
@@ -914,7 +914,7 @@ declare function formatApprovalPreview(p: ApprovalRequested["preview"]): {
|
|
|
914
914
|
offsetBps: number;
|
|
915
915
|
reference: {
|
|
916
916
|
price: string;
|
|
917
|
-
source: "unspecified" | "
|
|
917
|
+
source: "unspecified" | "best_bid" | "best_ask" | "last_price" | "index_price";
|
|
918
918
|
observedAt: number | undefined;
|
|
919
919
|
type: "market";
|
|
920
920
|
} | {
|
|
@@ -974,14 +974,14 @@ declare function formatApprovalPreview(p: ApprovalRequested["preview"]): {
|
|
|
974
974
|
orders: {
|
|
975
975
|
orderId: string;
|
|
976
976
|
symbol: string;
|
|
977
|
-
side: "
|
|
977
|
+
side: "buy" | "sell" | "unspecified";
|
|
978
978
|
price: string | undefined;
|
|
979
979
|
quantity: string;
|
|
980
980
|
filledQuantity: string;
|
|
981
981
|
}[];
|
|
982
982
|
cancelAll: boolean;
|
|
983
983
|
symbols: string[];
|
|
984
|
-
side: "
|
|
984
|
+
side: "buy" | "sell" | "unspecified";
|
|
985
985
|
liveTriggersKept: number;
|
|
986
986
|
liveTriggersKeptLowerBound: boolean;
|
|
987
987
|
totalValues?: undefined;
|
|
@@ -1025,7 +1025,7 @@ declare function formatApprovalPreview(p: ApprovalRequested["preview"]): {
|
|
|
1025
1025
|
quoteAsset: string;
|
|
1026
1026
|
orders: {
|
|
1027
1027
|
orderId: string;
|
|
1028
|
-
side: "
|
|
1028
|
+
side: "buy" | "sell" | "unspecified";
|
|
1029
1029
|
price: string;
|
|
1030
1030
|
newPrice: string | undefined;
|
|
1031
1031
|
quantity: string;
|
|
@@ -1075,11 +1075,11 @@ declare function formatApprovalPreview(p: ApprovalRequested["preview"]): {
|
|
|
1075
1075
|
baseAsset: string;
|
|
1076
1076
|
quoteAsset: string;
|
|
1077
1077
|
triggerType: "unspecified" | "twap" | "ladder" | "stop_loss" | "take_profit" | "trailing_stop";
|
|
1078
|
-
side: "
|
|
1078
|
+
side: "buy" | "sell" | "unspecified";
|
|
1079
1079
|
quantity: string;
|
|
1080
|
-
action: "unspecified" | "
|
|
1080
|
+
action: "unspecified" | "modify" | "pause" | "resume";
|
|
1081
1081
|
before: {
|
|
1082
|
-
status: "unspecified" | "
|
|
1082
|
+
status: "unspecified" | "failed" | "canceled" | "created" | "armed" | "running" | "completed" | "paused";
|
|
1083
1083
|
triggerPrice: string | undefined;
|
|
1084
1084
|
trailingDistance: {
|
|
1085
1085
|
kind: "distance";
|
|
@@ -1103,7 +1103,7 @@ declare function formatApprovalPreview(p: ApprovalRequested["preview"]): {
|
|
|
1103
1103
|
limitPrice: string | undefined;
|
|
1104
1104
|
} | undefined;
|
|
1105
1105
|
after: {
|
|
1106
|
-
status: "unspecified" | "
|
|
1106
|
+
status: "unspecified" | "failed" | "canceled" | "created" | "armed" | "running" | "completed" | "paused";
|
|
1107
1107
|
triggerPrice: string | undefined;
|
|
1108
1108
|
trailingDistance: {
|
|
1109
1109
|
kind: "distance";
|
|
@@ -1128,7 +1128,7 @@ declare function formatApprovalPreview(p: ApprovalRequested["preview"]): {
|
|
|
1128
1128
|
} | undefined;
|
|
1129
1129
|
referencePrice: {
|
|
1130
1130
|
price: string;
|
|
1131
|
-
source: "unspecified" | "
|
|
1131
|
+
source: "unspecified" | "best_bid" | "best_ask" | "last_price" | "index_price";
|
|
1132
1132
|
observedAt: number | undefined;
|
|
1133
1133
|
} | undefined;
|
|
1134
1134
|
direction: "unspecified" | "at_or_above" | "at_or_below";
|
|
@@ -1164,7 +1164,7 @@ declare function formatApprovalPreview(p: ApprovalRequested["preview"]): {
|
|
|
1164
1164
|
symbolId: number;
|
|
1165
1165
|
symbol: string;
|
|
1166
1166
|
triggerType: "unspecified" | "twap" | "ladder" | "stop_loss" | "take_profit" | "trailing_stop";
|
|
1167
|
-
side: "
|
|
1167
|
+
side: "buy" | "sell" | "unspecified";
|
|
1168
1168
|
quantity: string;
|
|
1169
1169
|
triggerPrice: string | undefined;
|
|
1170
1170
|
filledQuantity: string | undefined;
|
|
@@ -1209,7 +1209,7 @@ declare function formatApprovalPreview(p: ApprovalRequested["preview"]): {
|
|
|
1209
1209
|
maxSlippageBps: number;
|
|
1210
1210
|
legs: {
|
|
1211
1211
|
symbol: string;
|
|
1212
|
-
side: "
|
|
1212
|
+
side: "buy" | "sell" | "unspecified";
|
|
1213
1213
|
averagePrice: string;
|
|
1214
1214
|
priceImpactBps: number;
|
|
1215
1215
|
takerFeeRatePercent: string;
|
|
@@ -1311,7 +1311,7 @@ declare function formatView(view: View, scales: SdkScales): {
|
|
|
1311
1311
|
attachedRisk: {
|
|
1312
1312
|
takeProfit: {
|
|
1313
1313
|
state: {
|
|
1314
|
-
status: "unspecified" | "
|
|
1314
|
+
status: "unspecified" | "failed" | "canceled" | "created" | "armed" | "running" | "completed" | "paused" | "not_configured";
|
|
1315
1315
|
armedTs: number | undefined;
|
|
1316
1316
|
armedTsNs: string | undefined;
|
|
1317
1317
|
terminalTs: number | undefined;
|
|
@@ -1331,7 +1331,7 @@ declare function formatView(view: View, scales: SdkScales): {
|
|
|
1331
1331
|
} | undefined;
|
|
1332
1332
|
stopLoss: {
|
|
1333
1333
|
state: {
|
|
1334
|
-
status: "unspecified" | "
|
|
1334
|
+
status: "unspecified" | "failed" | "canceled" | "created" | "armed" | "running" | "completed" | "paused" | "not_configured";
|
|
1335
1335
|
armedTs: number | undefined;
|
|
1336
1336
|
armedTsNs: string | undefined;
|
|
1337
1337
|
terminalTs: number | undefined;
|
|
@@ -1351,7 +1351,7 @@ declare function formatView(view: View, scales: SdkScales): {
|
|
|
1351
1351
|
} | undefined;
|
|
1352
1352
|
trailingStop: {
|
|
1353
1353
|
state: {
|
|
1354
|
-
status: "unspecified" | "
|
|
1354
|
+
status: "unspecified" | "failed" | "canceled" | "created" | "armed" | "running" | "completed" | "paused" | "not_configured";
|
|
1355
1355
|
armedTs: number | undefined;
|
|
1356
1356
|
armedTsNs: string | undefined;
|
|
1357
1357
|
terminalTs: number | undefined;
|
|
@@ -1382,7 +1382,7 @@ declare function formatView(view: View, scales: SdkScales): {
|
|
|
1382
1382
|
oco: boolean;
|
|
1383
1383
|
} | undefined;
|
|
1384
1384
|
cancelReason?: "unspecified" | "system" | "user_request" | "ioc_remainder" | "market_remainder" | "stp_expire_maker" | "stp_expire_taker" | "stp_expire_both" | "replaced" | "gtd_expired" | "qty_at_or_below_filled" | "pair_drain" | "attached_risk_refused" | "cancel_all_after" | "account_repair" | "twap_rollover" | "strategy_cancel" | "market_halted" | "attached_exit_fired" | "stp_decrement" | "price_band" | "cancel_on_disconnect" | undefined;
|
|
1385
|
-
rejectReason?: "STALE_QUOTE" | "UNSPECIFIED" | "
|
|
1385
|
+
rejectReason?: "STALE_QUOTE" | "UNSPECIFIED" | "BAD_REQUEST" | "INVALID_ARGUMENT" | "INSUFFICIENT_FUNDS" | "UNKNOWN_SYMBOL" | "BAD_PRICE" | "BAD_QTY" | "MIN_NOTIONAL" | "QTY_STEP_SIZE" | "CONFLICT_DUPLICATE_CLIENT_ORDER_ID" | "UNAVAILABLE" | "UNAUTHENTICATED" | "PERMISSION_DENIED" | "NOT_FOUND" | "UPSTREAM_ERROR" | "FEE_ASSET_NOT_ALLOWED" | "PAIR_DISABLED" | "ORDER_UNKNOWN" | "INTERNAL_ERROR" | "SUBACCOUNT_INACTIVE" | "POLICY_MARKET_DENY" | "POLICY_MAX_NOTIONAL" | "POLICY_TRADING_HALTED" | "POLICY_SPOT_TRADE_DENY" | "API_KEY_ROOT_SCOPE_ONLY" | "API_KEY_SUB_SCOPE_ONLY" | "API_KEY_SUBACCOUNT_MISMATCH" | "API_KEY_POLICY_REQUIRED" | "API_KEY_UNKNOWN" | "API_KEY_MARKET_DENY" | "API_KEY_SPOT_TRADE_DENY" | "PRICE_TICK_SIZE" | "MIN_QTY" | "POST_ONLY_LIMIT_ONLY" | "BATCH_TOO_LARGE" | "POLICY_MAX_OPEN_ORDERS" | "MODIFICATION_REQUIRES_REPLACE" | "CONFLICT_IDEMPOTENCY_KEY_REUSE" | "MARKET_PRICE_UNAVAILABLE" | "PAIR_NOT_LISTED_YET" | "PAIR_DELISTED" | "PAIR_CANCEL_ONLY" | "PAIR_POST_ONLY" | "PAIR_REDUCE_ONLY" | "RISK_LIMIT" | "MARKET_HALTED" | "ACCOUNT_UNKNOWN" | "POST_ONLY_CROSS" | "REDUCE_ONLY_BLOCKED" | "PRICE_BAND_VIOLATION" | "MARKET_CAP_VIOLATION" | "EMPTY_BOOK" | "FOK_INSUFFICIENT_LIQUIDITY" | "ORDER_ALREADY_TERMINAL" | "TRIGGER_PRICE_INVALID" | "TRIGGER_PRICE_SOURCE_UNSUPPORTED" | "TRAILING_DISTANCE_INVALID" | "TRIGGER_NOT_FOUND" | "TRIGGER_STATUS_INVALID" | "TRIGGER_NOT_MODIFIABLE" | "CONFLICT_DUPLICATE_CLIENT_TRIGGER_ID" | "MAX_SLIPPAGE_INVALID" | "VALIDATION_ERROR" | "OVERLOADED" | "QUOTE_SIZE_TOO_SMALL" | "RATE_LIMIT_EXCEEDED" | "SUBACCOUNT_READ_FORBIDDEN" | "POLICY_SPOT_READ_DENY" | "API_KEY_SPOT_READ_DENY" | "CANCEL_REQUEST_EXPIRED" | "MAX_QTY" | "MAX_NOTIONAL" | "QTY_AT_OR_BELOW_FILLED" | "GATEWAY_MISCONFIGURED" | "INVALID_ORDER_ID" | "CHILD_QTY_RAISE_NOT_ALLOWED" | "ATTACHED_RISK_NOT_SUPPORTED" | "SETTLEMENT_BACKLOGGED" | "PRICE_LEVEL_QUANTITY_LIMIT" | "MARKET_QUOTE_STALE" | "MARKET_QUOTE_UNHEALTHY" | "INVALID_TIME_IN_FORCE" | "QUICKSWAP_NOT_PERMITTED" | "DUPLICATE_ORDER_ID" | "MAX_OPEN_ORDERS_TOTAL" | "STP_MODE_NOT_ALLOWED" | "PAIR_BACKLOGGED" | "PRICE_LEVELS_EXHAUSTED" | "CLIENT_ORDER_IDS_EXHAUSTED" | "ORDER_ID_CONFLICT" | "INVALID_SIDE" | "INVALID_ORDER_TYPE" | "INVALID_STP_MODE" | "INVALID_ORDER_FLAGS" | "BATCH_OTHER_ITEM_INVALID" | "REPLACE_ONTO_OWN_ID" | "INVALID_CLIENT_ORDER_ID" | "ORDER_SEQUENCE_EXHAUSTED" | "INVALID_HANDLING_MODE" | "FEE_SCHEDULE_UNAVAILABLE" | "POLICY_UNAVAILABLE" | "CANCEL_ALL_AFTER_TIMEOUT_INVALID" | "CANCEL_SCOPE_TOO_LARGE" | "RATE_LIMIT_POLICY_UNAVAILABLE" | "SYSTEM_RATE_LIMITED" | "ORDER_MODIFY_IN_PROGRESS" | "ORDER_PLACEMENT_PENDING" | "INVALID_MODIFY_BEHAVIOR" | "BATCH_REPLACE_ONLY_REQUIRED" | "BATCH_SINGLE_SYMBOL_REQUIRED" | "REQUEST_RECEIPTS_EXHAUSTED" | "INTENT_ID_INVALID" | "DRY_RUN_INVALID" | "CANCEL_ALL_AFTER_SCOPE_CONFLICT" | "NEW_ACCOUNT_CAPACITY_REACHED" | "TRIGGER_CHILD_PRICE_NOT_MODIFIABLE" | "TRIGGER_GENERATIONS_EXHAUSTED" | "TRIGGER_CONTROL_SHARE_EXHAUSTED" | "TRIGGER_CONTROLS_BUSY" | "TRIGGER_TYPE_NOT_SUPPORTED" | "INVALID_TRIGGER_TYPE" | "TRIGGER_DIRECTION_INVALID" | "TRIGGER_QTY_INVALID" | "TRIGGER_BUY_REQUIRES_LIMIT" | "ACCOUNT_ROUTING_INVALID" | "TRIGGER_LIMIT_EXCEEDED" | "TRIGGER_CONTROL_IN_PROGRESS" | "TRIGGER_PATCH_EMPTY" | "CLIENT_TRIGGER_ID_INVALID" | "TRIGGER_ACTIVATION_PRICE_INVALID" | "SLIPPAGE_TICKS_INVALID" | "SLIPPAGE_BPS_INVALID" | "TRIGGER_CONTROL_OUTCOME_UNKNOWN" | "TRIGGER_CAPACITY_REACHED" | "RESERVATION_CAPACITY_REACHED" | "CLIENT_ORDER_ID_CAPACITY_REACHED" | "ACCOUNT_RESERVATION_LIMIT_REACHED" | "INVALID_TRIGGER_CONTROL" | "TRIGGER_PATCH_NOT_ALLOWED" | "TRIGGER_PATCH_FIELD_UNKNOWN" | "TRIGGER_PATCH_VALUE_UNMASKED" | "TRIGGER_PATCH_PRICE_MODE_INVALID" | "ACCOUNT_ORDERS_SUSPENDED" | "TRAILING_SIDE_NOT_SUPPORTED" | "TRAILING_CHILD_NOT_MARKET" | "TWAP_DURATION_INVALID" | "LIMIT_CHILD_SLIPPAGE_SET" | "SLIPPAGE_BOUNDS_CONFLICT" | "TWAP_INTERVAL_INVALID" | "LADDER_LEVEL_REJECTED" | "LADDER_RANGE_TOO_NARROW" | "LADDER_LEVELS_INVALID" | "ORDER_LIMITS_UNAVAILABLE" | "ORDER_TYPE_NOT_ALLOWED_IN_AUCTION" | "POST_ONLY_NOT_ALLOWED_IN_AUCTION" | "QUICKSWAP_FEE_DETAILS_INCOMPLETE" | "QUICKSWAP_MARKET_NOT_PRICED" | "QUICKSWAP_BROKER_FEE_TERMS_MISMATCH" | "QUICKSWAP_FEE_RECIPIENT_IS_PAYER" | "QUICKSWAP_BROKER_FEE_TERMS_UNAVAILABLE" | "QUICKSWAP_BROKER_ACCOUNT_UNAVAILABLE" | "QUICKSWAP_ACCOUNT_OWNER_UNKNOWN" | "QUICKSWAP_DISABLED" | "QUICKSWAP_ATTACHED_RISK_NOT_ALLOWED" | "QUICKSWAP_ORDER_NOT_MODIFIABLE" | "QUICKSWAP_FEE_TOTAL_TOO_HIGH" | "QUICKSWAP_BROKER_FEE_TERMS_INVALID" | "QUICKSWAP_BROKER_INVALID" | "QUICKSWAP_FEE_SCHEDULE_INVALID" | "QUICKSWAP_MARKET_FEE_INVALID" | "QUICKSWAP_SETUP_INVALID" | "QUICKSWAP_CAPACITY_REACHED" | "ATTACHED_EXIT_WORKING" | "MARKET_TRIGGER_LIMIT_EXCEEDED" | "MARKET_TWAP_LIMIT_EXCEEDED" | "MARKET_LADDER_LIMIT_EXCEEDED" | "CHILD_QTY_EXCEEDS_REMAINING" | "ORDER_CANCEL_OUTCOME_UNKNOWN" | "ORDER_MODIFY_OUTCOME_UNKNOWN" | "ORDER_REPAIRING" | "ACCOUNT_REPAIRING" | "TRIGGER_WOULD_TRIGGER_IMMEDIATELY" | "ORDER_CREATE_OUTCOME_UNKNOWN" | "TRIGGER_CREATE_OUTCOME_UNKNOWN" | "TRIGGER_SYMBOL_MISMATCH" | "MAX_OPEN_ORDERS_PER_PAIR" | "SELF_TRADE_PREVENTED" | "ATTACHED_LEGS_EXCEEDED" | "FEE_ASSET_INVALID" | "FEE_CEILING_INVALID" | "UNSUPPORTED_FIELD_SET" | "TRIGGER_FIRE_LIMIT_REACHED" | "CONDITION_FLAGS_INVALID" | "CONDITION_PARAMETER_SET" | "TWAP_CAPACITY_REACHED" | "CHILD_ORDER_INCONSISTENT" | "PATH_BODY_ID_MISMATCH" | "REQUEST_DEADLINE_EXCEEDED" | "ICEBERG_NOT_ALLOWED" | "ICEBERG_DISPLAY_TOO_SMALL" | "ICEBERG_DISPLAY_INVALID" | "PEG_LIMIT_VIOLATION" | "PEG_REFERENCE_UNAVAILABLE" | "INVALID_PEG" | "TRIGGER_ACTIVATION_PRICE_NOT_MODIFIABLE" | undefined;
|
|
1386
1386
|
price: string;
|
|
1387
1387
|
createdTs: number;
|
|
1388
1388
|
terminalTs: number;
|
|
@@ -1397,8 +1397,8 @@ declare function formatView(view: View, scales: SdkScales): {
|
|
|
1397
1397
|
hiddenQty?: string | undefined;
|
|
1398
1398
|
symbolId: number;
|
|
1399
1399
|
clientOrderId: string;
|
|
1400
|
-
status: "unspecified" | "canceled" | "
|
|
1401
|
-
side: "
|
|
1400
|
+
status: "unspecified" | "canceled" | "pending" | "rejected" | "pending_cancel" | "working" | "filled" | "partial";
|
|
1401
|
+
side: "buy" | "sell" | "unspecified";
|
|
1402
1402
|
orderType: "unspecified" | "limit" | "market";
|
|
1403
1403
|
timeInForce: "unspecified" | "gtc" | "ioc" | "fok" | "gtd";
|
|
1404
1404
|
selfTradePreventionMode: "unspecified" | "expire_taker" | "expire_maker" | "expire_both" | "decrement";
|
|
@@ -1436,12 +1436,12 @@ declare function formatView(view: View, scales: SdkScales): {
|
|
|
1436
1436
|
triggers: ({
|
|
1437
1437
|
runtimeDetails: TriggerDetailsOutput;
|
|
1438
1438
|
version: number;
|
|
1439
|
-
cancelReason: "unspecified" | "
|
|
1439
|
+
cancelReason: "unspecified" | "oco" | "user_request" | "account_repair" | "market_halted" | "parent_canceled_no_fill" | "self_trade_prevention" | "pair_drain_trigger" | "pair_drain_twap" | "pair_drain_ladder" | "pair_drain_attached_leg" | "missing_reason_code" | "internal_error";
|
|
1440
1440
|
failureReason: undefined;
|
|
1441
1441
|
triggerId: string;
|
|
1442
1442
|
subaccountId: string;
|
|
1443
1443
|
symbolId: number;
|
|
1444
|
-
status: "unspecified" | "
|
|
1444
|
+
status: "unspecified" | "failed" | "canceled" | "created" | "armed" | "running" | "completed" | "paused";
|
|
1445
1445
|
parentOrderId: string | undefined;
|
|
1446
1446
|
orderListId: string | undefined;
|
|
1447
1447
|
qty: string;
|
|
@@ -1449,7 +1449,7 @@ declare function formatView(view: View, scales: SdkScales): {
|
|
|
1449
1449
|
selfTradePreventionMode: "unspecified" | "expire_taker" | "expire_maker" | "expire_both" | "decrement";
|
|
1450
1450
|
configuration: {
|
|
1451
1451
|
type: "stop_loss" | "take_profit";
|
|
1452
|
-
side: "
|
|
1452
|
+
side: "buy" | "sell" | "unspecified";
|
|
1453
1453
|
triggerPrice: string;
|
|
1454
1454
|
triggerPriceSource: "unspecified" | "last" | "index" | "mark";
|
|
1455
1455
|
execution: {
|
|
@@ -1502,7 +1502,7 @@ declare function formatView(view: View, scales: SdkScales): {
|
|
|
1502
1502
|
postOnly?: undefined;
|
|
1503
1503
|
} | {
|
|
1504
1504
|
type: "trailing_stop";
|
|
1505
|
-
side: "
|
|
1505
|
+
side: "buy" | "sell" | "unspecified";
|
|
1506
1506
|
trailingDistance: {
|
|
1507
1507
|
kind: "distance";
|
|
1508
1508
|
distance: string;
|
|
@@ -1542,7 +1542,7 @@ declare function formatView(view: View, scales: SdkScales): {
|
|
|
1542
1542
|
postOnly?: undefined;
|
|
1543
1543
|
} | {
|
|
1544
1544
|
type: "twap";
|
|
1545
|
-
side: "
|
|
1545
|
+
side: "buy" | "sell" | "unspecified";
|
|
1546
1546
|
durationMs: number;
|
|
1547
1547
|
sliceIntervalMs: number;
|
|
1548
1548
|
execution: {
|
|
@@ -1582,7 +1582,7 @@ declare function formatView(view: View, scales: SdkScales): {
|
|
|
1582
1582
|
postOnly?: undefined;
|
|
1583
1583
|
} | {
|
|
1584
1584
|
type: "ladder";
|
|
1585
|
-
side: "
|
|
1585
|
+
side: "buy" | "sell" | "unspecified";
|
|
1586
1586
|
priceMin: string;
|
|
1587
1587
|
priceMax: string;
|
|
1588
1588
|
levels: number;
|
|
@@ -1623,11 +1623,11 @@ declare function formatView(view: View, scales: SdkScales): {
|
|
|
1623
1623
|
runtimeDetails: TriggerDetailsOutput;
|
|
1624
1624
|
version: number;
|
|
1625
1625
|
cancelReason: undefined;
|
|
1626
|
-
failureReason: "unspecified" | "
|
|
1626
|
+
failureReason: "unspecified" | "market_halted" | "missing_reason_code" | "internal_error" | "unknown_symbol" | "pair_disabled" | "min_notional" | "tick_size" | "insufficient_funds" | "risk_limit" | "duplicate_client_id" | "engine_busy" | "account_unknown" | "order_unknown" | "post_only_cross" | "reduce_only_blocked" | "price_band_violation" | "market_cap_violation" | "empty_book" | "fok_insufficient_liquidity" | "fee_asset_not_allowed" | "market_price_unavailable" | "stale_quote" | "min_quantity" | "step_size" | "invalid_sizing" | "quote_size_too_small" | "fee_ceiling_exceeded" | "trigger_price_invalid" | "trigger_price_source_unsupported" | "trailing_distance_invalid" | "modification_requires_replace" | "order_already_terminal" | "conflict_idempotency_key_reuse" | "rate_limited" | "policy_spot_trade_deny" | "policy_market_deny" | "policy_max_notional" | "policy_max_open_orders" | "policy_trading_halted" | "max_slippage_invalid" | "invalid_time_in_force" | "duplicate_order_id" | "max_quantity" | "max_notional" | "pair_post_only" | "max_open_orders_total" | "stp_mode_not_allowed" | "pair_backlogged" | "mode_not_supported" | "market_quote_stale" | "market_quote_unhealthy" | "qty_invalid" | "limit_price_invalid" | "twap_interval_invalid" | "ladder_range_too_narrow" | "ladder_levels_invalid" | "attached_legs_exceeded" | "price_levels_exhausted" | "settlement_backlogged" | "client_order_ids_exhausted" | "invalid_order_id" | "order_id_conflict" | "invalid_side" | "invalid_order_type" | "invalid_stp_mode" | "invalid_order_flags" | "price_level_quantity_limit" | "child_qty_raise_not_allowed" | "triggers_exhausted" | "order_sequence_exhausted" | "fee_schedule_unavailable" | "policy_unavailable" | "account_routing_invalid" | "client_trigger_id_invalid" | "trigger_direction_invalid" | "fee_asset_invalid" | "fee_ceiling_invalid" | "unsupported_field_set" | "trigger_fire_limit_reached" | "condition_flags_invalid" | "condition_parameter_set" | "slippage_ticks_invalid" | "slippage_bps_invalid" | "slippage_bounds_conflict" | "limit_child_slippage_set" | "new_account_capacity_reached" | "order_type_not_allowed_in_auction" | "post_only_not_allowed_in_auction" | "twap_capacity_reached" | "order_limits_unavailable" | "child_order_inconsistent" | "index_price_unavailable" | "trigger_would_trigger_immediately" | "max_open_orders_per_pair" | "account_repairing" | "self_trade_prevented";
|
|
1627
1627
|
triggerId: string;
|
|
1628
1628
|
subaccountId: string;
|
|
1629
1629
|
symbolId: number;
|
|
1630
|
-
status: "unspecified" | "
|
|
1630
|
+
status: "unspecified" | "failed" | "canceled" | "created" | "armed" | "running" | "completed" | "paused";
|
|
1631
1631
|
parentOrderId: string | undefined;
|
|
1632
1632
|
orderListId: string | undefined;
|
|
1633
1633
|
qty: string;
|
|
@@ -1635,7 +1635,7 @@ declare function formatView(view: View, scales: SdkScales): {
|
|
|
1635
1635
|
selfTradePreventionMode: "unspecified" | "expire_taker" | "expire_maker" | "expire_both" | "decrement";
|
|
1636
1636
|
configuration: {
|
|
1637
1637
|
type: "stop_loss" | "take_profit";
|
|
1638
|
-
side: "
|
|
1638
|
+
side: "buy" | "sell" | "unspecified";
|
|
1639
1639
|
triggerPrice: string;
|
|
1640
1640
|
triggerPriceSource: "unspecified" | "last" | "index" | "mark";
|
|
1641
1641
|
execution: {
|
|
@@ -1688,7 +1688,7 @@ declare function formatView(view: View, scales: SdkScales): {
|
|
|
1688
1688
|
postOnly?: undefined;
|
|
1689
1689
|
} | {
|
|
1690
1690
|
type: "trailing_stop";
|
|
1691
|
-
side: "
|
|
1691
|
+
side: "buy" | "sell" | "unspecified";
|
|
1692
1692
|
trailingDistance: {
|
|
1693
1693
|
kind: "distance";
|
|
1694
1694
|
distance: string;
|
|
@@ -1728,7 +1728,7 @@ declare function formatView(view: View, scales: SdkScales): {
|
|
|
1728
1728
|
postOnly?: undefined;
|
|
1729
1729
|
} | {
|
|
1730
1730
|
type: "twap";
|
|
1731
|
-
side: "
|
|
1731
|
+
side: "buy" | "sell" | "unspecified";
|
|
1732
1732
|
durationMs: number;
|
|
1733
1733
|
sliceIntervalMs: number;
|
|
1734
1734
|
execution: {
|
|
@@ -1768,7 +1768,7 @@ declare function formatView(view: View, scales: SdkScales): {
|
|
|
1768
1768
|
postOnly?: undefined;
|
|
1769
1769
|
} | {
|
|
1770
1770
|
type: "ladder";
|
|
1771
|
-
side: "
|
|
1771
|
+
side: "buy" | "sell" | "unspecified";
|
|
1772
1772
|
priceMin: string;
|
|
1773
1773
|
priceMax: string;
|
|
1774
1774
|
levels: number;
|
|
@@ -1813,7 +1813,7 @@ declare function formatView(view: View, scales: SdkScales): {
|
|
|
1813
1813
|
triggerId: string;
|
|
1814
1814
|
subaccountId: string;
|
|
1815
1815
|
symbolId: number;
|
|
1816
|
-
status: "unspecified" | "
|
|
1816
|
+
status: "unspecified" | "failed" | "canceled" | "created" | "armed" | "running" | "completed" | "paused";
|
|
1817
1817
|
parentOrderId: string | undefined;
|
|
1818
1818
|
orderListId: string | undefined;
|
|
1819
1819
|
qty: string;
|
|
@@ -1821,7 +1821,7 @@ declare function formatView(view: View, scales: SdkScales): {
|
|
|
1821
1821
|
selfTradePreventionMode: "unspecified" | "expire_taker" | "expire_maker" | "expire_both" | "decrement";
|
|
1822
1822
|
configuration: {
|
|
1823
1823
|
type: "stop_loss" | "take_profit";
|
|
1824
|
-
side: "
|
|
1824
|
+
side: "buy" | "sell" | "unspecified";
|
|
1825
1825
|
triggerPrice: string;
|
|
1826
1826
|
triggerPriceSource: "unspecified" | "last" | "index" | "mark";
|
|
1827
1827
|
execution: {
|
|
@@ -1874,7 +1874,7 @@ declare function formatView(view: View, scales: SdkScales): {
|
|
|
1874
1874
|
postOnly?: undefined;
|
|
1875
1875
|
} | {
|
|
1876
1876
|
type: "trailing_stop";
|
|
1877
|
-
side: "
|
|
1877
|
+
side: "buy" | "sell" | "unspecified";
|
|
1878
1878
|
trailingDistance: {
|
|
1879
1879
|
kind: "distance";
|
|
1880
1880
|
distance: string;
|
|
@@ -1914,7 +1914,7 @@ declare function formatView(view: View, scales: SdkScales): {
|
|
|
1914
1914
|
postOnly?: undefined;
|
|
1915
1915
|
} | {
|
|
1916
1916
|
type: "twap";
|
|
1917
|
-
side: "
|
|
1917
|
+
side: "buy" | "sell" | "unspecified";
|
|
1918
1918
|
durationMs: number;
|
|
1919
1919
|
sliceIntervalMs: number;
|
|
1920
1920
|
execution: {
|
|
@@ -1954,7 +1954,7 @@ declare function formatView(view: View, scales: SdkScales): {
|
|
|
1954
1954
|
postOnly?: undefined;
|
|
1955
1955
|
} | {
|
|
1956
1956
|
type: "ladder";
|
|
1957
|
-
side: "
|
|
1957
|
+
side: "buy" | "sell" | "unspecified";
|
|
1958
1958
|
priceMin: string;
|
|
1959
1959
|
priceMax: string;
|
|
1960
1960
|
levels: number;
|
|
@@ -2093,7 +2093,7 @@ declare function formatView(view: View, scales: SdkScales): {
|
|
|
2093
2093
|
price: string;
|
|
2094
2094
|
referencePrice: string;
|
|
2095
2095
|
armed: boolean;
|
|
2096
|
-
status: "unspecified" | "active" | "
|
|
2096
|
+
status: "unspecified" | "active" | "canceled" | "triggered";
|
|
2097
2097
|
channels: ("unspecified" | "in_app" | "telegram")[];
|
|
2098
2098
|
revision: string;
|
|
2099
2099
|
createdAt: number | null;
|
|
@@ -2389,7 +2389,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
2389
2389
|
memories: {
|
|
2390
2390
|
memoryId: string;
|
|
2391
2391
|
text: string;
|
|
2392
|
-
kind: "unspecified" | "
|
|
2392
|
+
kind: "unspecified" | "fact" | "planning_figure" | "profile";
|
|
2393
2393
|
}[];
|
|
2394
2394
|
text?: undefined;
|
|
2395
2395
|
fromSeq?: undefined;
|
|
@@ -2583,14 +2583,14 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
2583
2583
|
symbol: string;
|
|
2584
2584
|
baseAsset: string;
|
|
2585
2585
|
quoteAsset: string;
|
|
2586
|
-
side: "
|
|
2586
|
+
side: "buy" | "sell" | "unspecified";
|
|
2587
2587
|
quantity: string | undefined;
|
|
2588
2588
|
quoteAmount: string | undefined;
|
|
2589
2589
|
estimatedValue: string | undefined;
|
|
2590
2590
|
reservedAmount: string | undefined;
|
|
2591
2591
|
referencePrice: {
|
|
2592
2592
|
price: string;
|
|
2593
|
-
source: "unspecified" | "
|
|
2593
|
+
source: "unspecified" | "best_bid" | "best_ask" | "last_price" | "index_price";
|
|
2594
2594
|
observedAt: number | undefined;
|
|
2595
2595
|
} | undefined;
|
|
2596
2596
|
/** The order type and its own values; `type: "unspecified"` means show the summary only. */
|
|
@@ -2860,7 +2860,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
2860
2860
|
offsetBps: number;
|
|
2861
2861
|
reference: {
|
|
2862
2862
|
price: string;
|
|
2863
|
-
source: "unspecified" | "
|
|
2863
|
+
source: "unspecified" | "best_bid" | "best_ask" | "last_price" | "index_price";
|
|
2864
2864
|
observedAt: number | undefined;
|
|
2865
2865
|
type: "market";
|
|
2866
2866
|
} | {
|
|
@@ -2913,14 +2913,14 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
2913
2913
|
symbol: string;
|
|
2914
2914
|
baseAsset: string;
|
|
2915
2915
|
quoteAsset: string;
|
|
2916
|
-
side: "
|
|
2916
|
+
side: "buy" | "sell" | "unspecified";
|
|
2917
2917
|
quantity: string | undefined;
|
|
2918
2918
|
quoteAmount: string | undefined;
|
|
2919
2919
|
estimatedValue: string | undefined;
|
|
2920
2920
|
reservedAmount: string | undefined;
|
|
2921
2921
|
referencePrice: {
|
|
2922
2922
|
price: string;
|
|
2923
|
-
source: "unspecified" | "
|
|
2923
|
+
source: "unspecified" | "best_bid" | "best_ask" | "last_price" | "index_price";
|
|
2924
2924
|
observedAt: number | undefined;
|
|
2925
2925
|
} | undefined;
|
|
2926
2926
|
/** The order type and its own values; `type: "unspecified"` means show the summary only. */
|
|
@@ -3190,7 +3190,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
3190
3190
|
offsetBps: number;
|
|
3191
3191
|
reference: {
|
|
3192
3192
|
price: string;
|
|
3193
|
-
source: "unspecified" | "
|
|
3193
|
+
source: "unspecified" | "best_bid" | "best_ask" | "last_price" | "index_price";
|
|
3194
3194
|
observedAt: number | undefined;
|
|
3195
3195
|
type: "market";
|
|
3196
3196
|
} | {
|
|
@@ -3250,14 +3250,14 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
3250
3250
|
orders: {
|
|
3251
3251
|
orderId: string;
|
|
3252
3252
|
symbol: string;
|
|
3253
|
-
side: "
|
|
3253
|
+
side: "buy" | "sell" | "unspecified";
|
|
3254
3254
|
price: string | undefined;
|
|
3255
3255
|
quantity: string;
|
|
3256
3256
|
filledQuantity: string;
|
|
3257
3257
|
}[];
|
|
3258
3258
|
cancelAll: boolean;
|
|
3259
3259
|
symbols: string[];
|
|
3260
|
-
side: "
|
|
3260
|
+
side: "buy" | "sell" | "unspecified";
|
|
3261
3261
|
liveTriggersKept: number;
|
|
3262
3262
|
liveTriggersKeptLowerBound: boolean;
|
|
3263
3263
|
totalValues?: undefined;
|
|
@@ -3301,7 +3301,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
3301
3301
|
quoteAsset: string;
|
|
3302
3302
|
orders: {
|
|
3303
3303
|
orderId: string;
|
|
3304
|
-
side: "
|
|
3304
|
+
side: "buy" | "sell" | "unspecified";
|
|
3305
3305
|
price: string;
|
|
3306
3306
|
newPrice: string | undefined;
|
|
3307
3307
|
quantity: string;
|
|
@@ -3351,11 +3351,11 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
3351
3351
|
baseAsset: string;
|
|
3352
3352
|
quoteAsset: string;
|
|
3353
3353
|
triggerType: "unspecified" | "twap" | "ladder" | "stop_loss" | "take_profit" | "trailing_stop";
|
|
3354
|
-
side: "
|
|
3354
|
+
side: "buy" | "sell" | "unspecified";
|
|
3355
3355
|
quantity: string;
|
|
3356
|
-
action: "unspecified" | "
|
|
3356
|
+
action: "unspecified" | "modify" | "pause" | "resume";
|
|
3357
3357
|
before: {
|
|
3358
|
-
status: "unspecified" | "
|
|
3358
|
+
status: "unspecified" | "failed" | "canceled" | "created" | "armed" | "running" | "completed" | "paused";
|
|
3359
3359
|
triggerPrice: string | undefined;
|
|
3360
3360
|
trailingDistance: {
|
|
3361
3361
|
kind: "distance";
|
|
@@ -3379,7 +3379,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
3379
3379
|
limitPrice: string | undefined;
|
|
3380
3380
|
} | undefined;
|
|
3381
3381
|
after: {
|
|
3382
|
-
status: "unspecified" | "
|
|
3382
|
+
status: "unspecified" | "failed" | "canceled" | "created" | "armed" | "running" | "completed" | "paused";
|
|
3383
3383
|
triggerPrice: string | undefined;
|
|
3384
3384
|
trailingDistance: {
|
|
3385
3385
|
kind: "distance";
|
|
@@ -3404,7 +3404,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
3404
3404
|
} | undefined;
|
|
3405
3405
|
referencePrice: {
|
|
3406
3406
|
price: string;
|
|
3407
|
-
source: "unspecified" | "
|
|
3407
|
+
source: "unspecified" | "best_bid" | "best_ask" | "last_price" | "index_price";
|
|
3408
3408
|
observedAt: number | undefined;
|
|
3409
3409
|
} | undefined;
|
|
3410
3410
|
direction: "unspecified" | "at_or_above" | "at_or_below";
|
|
@@ -3440,7 +3440,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
3440
3440
|
symbolId: number;
|
|
3441
3441
|
symbol: string;
|
|
3442
3442
|
triggerType: "unspecified" | "twap" | "ladder" | "stop_loss" | "take_profit" | "trailing_stop";
|
|
3443
|
-
side: "
|
|
3443
|
+
side: "buy" | "sell" | "unspecified";
|
|
3444
3444
|
quantity: string;
|
|
3445
3445
|
triggerPrice: string | undefined;
|
|
3446
3446
|
filledQuantity: string | undefined;
|
|
@@ -3485,7 +3485,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
3485
3485
|
maxSlippageBps: number;
|
|
3486
3486
|
legs: {
|
|
3487
3487
|
symbol: string;
|
|
3488
|
-
side: "
|
|
3488
|
+
side: "buy" | "sell" | "unspecified";
|
|
3489
3489
|
averagePrice: string;
|
|
3490
3490
|
priceImpactBps: number;
|
|
3491
3491
|
takerFeeRatePercent: string;
|
|
@@ -3589,7 +3589,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
3589
3589
|
} | {
|
|
3590
3590
|
type: "approval_resolved";
|
|
3591
3591
|
approvalId: string;
|
|
3592
|
-
status: "unspecified" | "
|
|
3592
|
+
status: "unspecified" | "pending" | "approved" | "rejected" | "expired";
|
|
3593
3593
|
text?: undefined;
|
|
3594
3594
|
fromSeq?: undefined;
|
|
3595
3595
|
toolCallId?: undefined;
|
|
@@ -3638,7 +3638,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
3638
3638
|
attachedRisk: {
|
|
3639
3639
|
takeProfit: {
|
|
3640
3640
|
state: {
|
|
3641
|
-
status: "unspecified" | "
|
|
3641
|
+
status: "unspecified" | "failed" | "canceled" | "created" | "armed" | "running" | "completed" | "paused" | "not_configured";
|
|
3642
3642
|
armedTs: number | undefined;
|
|
3643
3643
|
armedTsNs: string | undefined;
|
|
3644
3644
|
terminalTs: number | undefined;
|
|
@@ -3658,7 +3658,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
3658
3658
|
} | undefined;
|
|
3659
3659
|
stopLoss: {
|
|
3660
3660
|
state: {
|
|
3661
|
-
status: "unspecified" | "
|
|
3661
|
+
status: "unspecified" | "failed" | "canceled" | "created" | "armed" | "running" | "completed" | "paused" | "not_configured";
|
|
3662
3662
|
armedTs: number | undefined;
|
|
3663
3663
|
armedTsNs: string | undefined;
|
|
3664
3664
|
terminalTs: number | undefined;
|
|
@@ -3678,7 +3678,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
3678
3678
|
} | undefined;
|
|
3679
3679
|
trailingStop: {
|
|
3680
3680
|
state: {
|
|
3681
|
-
status: "unspecified" | "
|
|
3681
|
+
status: "unspecified" | "failed" | "canceled" | "created" | "armed" | "running" | "completed" | "paused" | "not_configured";
|
|
3682
3682
|
armedTs: number | undefined;
|
|
3683
3683
|
armedTsNs: string | undefined;
|
|
3684
3684
|
terminalTs: number | undefined;
|
|
@@ -3709,7 +3709,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
3709
3709
|
oco: boolean;
|
|
3710
3710
|
} | undefined;
|
|
3711
3711
|
cancelReason?: "unspecified" | "system" | "user_request" | "ioc_remainder" | "market_remainder" | "stp_expire_maker" | "stp_expire_taker" | "stp_expire_both" | "replaced" | "gtd_expired" | "qty_at_or_below_filled" | "pair_drain" | "attached_risk_refused" | "cancel_all_after" | "account_repair" | "twap_rollover" | "strategy_cancel" | "market_halted" | "attached_exit_fired" | "stp_decrement" | "price_band" | "cancel_on_disconnect" | undefined;
|
|
3712
|
-
rejectReason?: "STALE_QUOTE" | "UNSPECIFIED" | "
|
|
3712
|
+
rejectReason?: "STALE_QUOTE" | "UNSPECIFIED" | "BAD_REQUEST" | "INVALID_ARGUMENT" | "INSUFFICIENT_FUNDS" | "UNKNOWN_SYMBOL" | "BAD_PRICE" | "BAD_QTY" | "MIN_NOTIONAL" | "QTY_STEP_SIZE" | "CONFLICT_DUPLICATE_CLIENT_ORDER_ID" | "UNAVAILABLE" | "UNAUTHENTICATED" | "PERMISSION_DENIED" | "NOT_FOUND" | "UPSTREAM_ERROR" | "FEE_ASSET_NOT_ALLOWED" | "PAIR_DISABLED" | "ORDER_UNKNOWN" | "INTERNAL_ERROR" | "SUBACCOUNT_INACTIVE" | "POLICY_MARKET_DENY" | "POLICY_MAX_NOTIONAL" | "POLICY_TRADING_HALTED" | "POLICY_SPOT_TRADE_DENY" | "API_KEY_ROOT_SCOPE_ONLY" | "API_KEY_SUB_SCOPE_ONLY" | "API_KEY_SUBACCOUNT_MISMATCH" | "API_KEY_POLICY_REQUIRED" | "API_KEY_UNKNOWN" | "API_KEY_MARKET_DENY" | "API_KEY_SPOT_TRADE_DENY" | "PRICE_TICK_SIZE" | "MIN_QTY" | "POST_ONLY_LIMIT_ONLY" | "BATCH_TOO_LARGE" | "POLICY_MAX_OPEN_ORDERS" | "MODIFICATION_REQUIRES_REPLACE" | "CONFLICT_IDEMPOTENCY_KEY_REUSE" | "MARKET_PRICE_UNAVAILABLE" | "PAIR_NOT_LISTED_YET" | "PAIR_DELISTED" | "PAIR_CANCEL_ONLY" | "PAIR_POST_ONLY" | "PAIR_REDUCE_ONLY" | "RISK_LIMIT" | "MARKET_HALTED" | "ACCOUNT_UNKNOWN" | "POST_ONLY_CROSS" | "REDUCE_ONLY_BLOCKED" | "PRICE_BAND_VIOLATION" | "MARKET_CAP_VIOLATION" | "EMPTY_BOOK" | "FOK_INSUFFICIENT_LIQUIDITY" | "ORDER_ALREADY_TERMINAL" | "TRIGGER_PRICE_INVALID" | "TRIGGER_PRICE_SOURCE_UNSUPPORTED" | "TRAILING_DISTANCE_INVALID" | "TRIGGER_NOT_FOUND" | "TRIGGER_STATUS_INVALID" | "TRIGGER_NOT_MODIFIABLE" | "CONFLICT_DUPLICATE_CLIENT_TRIGGER_ID" | "MAX_SLIPPAGE_INVALID" | "VALIDATION_ERROR" | "OVERLOADED" | "QUOTE_SIZE_TOO_SMALL" | "RATE_LIMIT_EXCEEDED" | "SUBACCOUNT_READ_FORBIDDEN" | "POLICY_SPOT_READ_DENY" | "API_KEY_SPOT_READ_DENY" | "CANCEL_REQUEST_EXPIRED" | "MAX_QTY" | "MAX_NOTIONAL" | "QTY_AT_OR_BELOW_FILLED" | "GATEWAY_MISCONFIGURED" | "INVALID_ORDER_ID" | "CHILD_QTY_RAISE_NOT_ALLOWED" | "ATTACHED_RISK_NOT_SUPPORTED" | "SETTLEMENT_BACKLOGGED" | "PRICE_LEVEL_QUANTITY_LIMIT" | "MARKET_QUOTE_STALE" | "MARKET_QUOTE_UNHEALTHY" | "INVALID_TIME_IN_FORCE" | "QUICKSWAP_NOT_PERMITTED" | "DUPLICATE_ORDER_ID" | "MAX_OPEN_ORDERS_TOTAL" | "STP_MODE_NOT_ALLOWED" | "PAIR_BACKLOGGED" | "PRICE_LEVELS_EXHAUSTED" | "CLIENT_ORDER_IDS_EXHAUSTED" | "ORDER_ID_CONFLICT" | "INVALID_SIDE" | "INVALID_ORDER_TYPE" | "INVALID_STP_MODE" | "INVALID_ORDER_FLAGS" | "BATCH_OTHER_ITEM_INVALID" | "REPLACE_ONTO_OWN_ID" | "INVALID_CLIENT_ORDER_ID" | "ORDER_SEQUENCE_EXHAUSTED" | "INVALID_HANDLING_MODE" | "FEE_SCHEDULE_UNAVAILABLE" | "POLICY_UNAVAILABLE" | "CANCEL_ALL_AFTER_TIMEOUT_INVALID" | "CANCEL_SCOPE_TOO_LARGE" | "RATE_LIMIT_POLICY_UNAVAILABLE" | "SYSTEM_RATE_LIMITED" | "ORDER_MODIFY_IN_PROGRESS" | "ORDER_PLACEMENT_PENDING" | "INVALID_MODIFY_BEHAVIOR" | "BATCH_REPLACE_ONLY_REQUIRED" | "BATCH_SINGLE_SYMBOL_REQUIRED" | "REQUEST_RECEIPTS_EXHAUSTED" | "INTENT_ID_INVALID" | "DRY_RUN_INVALID" | "CANCEL_ALL_AFTER_SCOPE_CONFLICT" | "NEW_ACCOUNT_CAPACITY_REACHED" | "TRIGGER_CHILD_PRICE_NOT_MODIFIABLE" | "TRIGGER_GENERATIONS_EXHAUSTED" | "TRIGGER_CONTROL_SHARE_EXHAUSTED" | "TRIGGER_CONTROLS_BUSY" | "TRIGGER_TYPE_NOT_SUPPORTED" | "INVALID_TRIGGER_TYPE" | "TRIGGER_DIRECTION_INVALID" | "TRIGGER_QTY_INVALID" | "TRIGGER_BUY_REQUIRES_LIMIT" | "ACCOUNT_ROUTING_INVALID" | "TRIGGER_LIMIT_EXCEEDED" | "TRIGGER_CONTROL_IN_PROGRESS" | "TRIGGER_PATCH_EMPTY" | "CLIENT_TRIGGER_ID_INVALID" | "TRIGGER_ACTIVATION_PRICE_INVALID" | "SLIPPAGE_TICKS_INVALID" | "SLIPPAGE_BPS_INVALID" | "TRIGGER_CONTROL_OUTCOME_UNKNOWN" | "TRIGGER_CAPACITY_REACHED" | "RESERVATION_CAPACITY_REACHED" | "CLIENT_ORDER_ID_CAPACITY_REACHED" | "ACCOUNT_RESERVATION_LIMIT_REACHED" | "INVALID_TRIGGER_CONTROL" | "TRIGGER_PATCH_NOT_ALLOWED" | "TRIGGER_PATCH_FIELD_UNKNOWN" | "TRIGGER_PATCH_VALUE_UNMASKED" | "TRIGGER_PATCH_PRICE_MODE_INVALID" | "ACCOUNT_ORDERS_SUSPENDED" | "TRAILING_SIDE_NOT_SUPPORTED" | "TRAILING_CHILD_NOT_MARKET" | "TWAP_DURATION_INVALID" | "LIMIT_CHILD_SLIPPAGE_SET" | "SLIPPAGE_BOUNDS_CONFLICT" | "TWAP_INTERVAL_INVALID" | "LADDER_LEVEL_REJECTED" | "LADDER_RANGE_TOO_NARROW" | "LADDER_LEVELS_INVALID" | "ORDER_LIMITS_UNAVAILABLE" | "ORDER_TYPE_NOT_ALLOWED_IN_AUCTION" | "POST_ONLY_NOT_ALLOWED_IN_AUCTION" | "QUICKSWAP_FEE_DETAILS_INCOMPLETE" | "QUICKSWAP_MARKET_NOT_PRICED" | "QUICKSWAP_BROKER_FEE_TERMS_MISMATCH" | "QUICKSWAP_FEE_RECIPIENT_IS_PAYER" | "QUICKSWAP_BROKER_FEE_TERMS_UNAVAILABLE" | "QUICKSWAP_BROKER_ACCOUNT_UNAVAILABLE" | "QUICKSWAP_ACCOUNT_OWNER_UNKNOWN" | "QUICKSWAP_DISABLED" | "QUICKSWAP_ATTACHED_RISK_NOT_ALLOWED" | "QUICKSWAP_ORDER_NOT_MODIFIABLE" | "QUICKSWAP_FEE_TOTAL_TOO_HIGH" | "QUICKSWAP_BROKER_FEE_TERMS_INVALID" | "QUICKSWAP_BROKER_INVALID" | "QUICKSWAP_FEE_SCHEDULE_INVALID" | "QUICKSWAP_MARKET_FEE_INVALID" | "QUICKSWAP_SETUP_INVALID" | "QUICKSWAP_CAPACITY_REACHED" | "ATTACHED_EXIT_WORKING" | "MARKET_TRIGGER_LIMIT_EXCEEDED" | "MARKET_TWAP_LIMIT_EXCEEDED" | "MARKET_LADDER_LIMIT_EXCEEDED" | "CHILD_QTY_EXCEEDS_REMAINING" | "ORDER_CANCEL_OUTCOME_UNKNOWN" | "ORDER_MODIFY_OUTCOME_UNKNOWN" | "ORDER_REPAIRING" | "ACCOUNT_REPAIRING" | "TRIGGER_WOULD_TRIGGER_IMMEDIATELY" | "ORDER_CREATE_OUTCOME_UNKNOWN" | "TRIGGER_CREATE_OUTCOME_UNKNOWN" | "TRIGGER_SYMBOL_MISMATCH" | "MAX_OPEN_ORDERS_PER_PAIR" | "SELF_TRADE_PREVENTED" | "ATTACHED_LEGS_EXCEEDED" | "FEE_ASSET_INVALID" | "FEE_CEILING_INVALID" | "UNSUPPORTED_FIELD_SET" | "TRIGGER_FIRE_LIMIT_REACHED" | "CONDITION_FLAGS_INVALID" | "CONDITION_PARAMETER_SET" | "TWAP_CAPACITY_REACHED" | "CHILD_ORDER_INCONSISTENT" | "PATH_BODY_ID_MISMATCH" | "REQUEST_DEADLINE_EXCEEDED" | "ICEBERG_NOT_ALLOWED" | "ICEBERG_DISPLAY_TOO_SMALL" | "ICEBERG_DISPLAY_INVALID" | "PEG_LIMIT_VIOLATION" | "PEG_REFERENCE_UNAVAILABLE" | "INVALID_PEG" | "TRIGGER_ACTIVATION_PRICE_NOT_MODIFIABLE" | undefined;
|
|
3713
3713
|
price: string;
|
|
3714
3714
|
createdTs: number;
|
|
3715
3715
|
terminalTs: number;
|
|
@@ -3724,8 +3724,8 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
3724
3724
|
hiddenQty?: string | undefined;
|
|
3725
3725
|
symbolId: number;
|
|
3726
3726
|
clientOrderId: string;
|
|
3727
|
-
status: "unspecified" | "canceled" | "
|
|
3728
|
-
side: "
|
|
3727
|
+
status: "unspecified" | "canceled" | "pending" | "rejected" | "pending_cancel" | "working" | "filled" | "partial";
|
|
3728
|
+
side: "buy" | "sell" | "unspecified";
|
|
3729
3729
|
orderType: "unspecified" | "limit" | "market";
|
|
3730
3730
|
timeInForce: "unspecified" | "gtc" | "ioc" | "fok" | "gtd";
|
|
3731
3731
|
selfTradePreventionMode: "unspecified" | "expire_taker" | "expire_maker" | "expire_both" | "decrement";
|
|
@@ -3763,12 +3763,12 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
3763
3763
|
triggers: ({
|
|
3764
3764
|
runtimeDetails: TriggerDetailsOutput;
|
|
3765
3765
|
version: number;
|
|
3766
|
-
cancelReason: "unspecified" | "
|
|
3766
|
+
cancelReason: "unspecified" | "oco" | "user_request" | "account_repair" | "market_halted" | "parent_canceled_no_fill" | "self_trade_prevention" | "pair_drain_trigger" | "pair_drain_twap" | "pair_drain_ladder" | "pair_drain_attached_leg" | "missing_reason_code" | "internal_error";
|
|
3767
3767
|
failureReason: undefined;
|
|
3768
3768
|
triggerId: string;
|
|
3769
3769
|
subaccountId: string;
|
|
3770
3770
|
symbolId: number;
|
|
3771
|
-
status: "unspecified" | "
|
|
3771
|
+
status: "unspecified" | "failed" | "canceled" | "created" | "armed" | "running" | "completed" | "paused";
|
|
3772
3772
|
parentOrderId: string | undefined;
|
|
3773
3773
|
orderListId: string | undefined;
|
|
3774
3774
|
qty: string;
|
|
@@ -3776,7 +3776,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
3776
3776
|
selfTradePreventionMode: "unspecified" | "expire_taker" | "expire_maker" | "expire_both" | "decrement";
|
|
3777
3777
|
configuration: {
|
|
3778
3778
|
type: "stop_loss" | "take_profit";
|
|
3779
|
-
side: "
|
|
3779
|
+
side: "buy" | "sell" | "unspecified";
|
|
3780
3780
|
triggerPrice: string;
|
|
3781
3781
|
triggerPriceSource: "unspecified" | "last" | "index" | "mark";
|
|
3782
3782
|
execution: {
|
|
@@ -3829,7 +3829,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
3829
3829
|
postOnly?: undefined;
|
|
3830
3830
|
} | {
|
|
3831
3831
|
type: "trailing_stop";
|
|
3832
|
-
side: "
|
|
3832
|
+
side: "buy" | "sell" | "unspecified";
|
|
3833
3833
|
trailingDistance: {
|
|
3834
3834
|
kind: "distance";
|
|
3835
3835
|
distance: string;
|
|
@@ -3869,7 +3869,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
3869
3869
|
postOnly?: undefined;
|
|
3870
3870
|
} | {
|
|
3871
3871
|
type: "twap";
|
|
3872
|
-
side: "
|
|
3872
|
+
side: "buy" | "sell" | "unspecified";
|
|
3873
3873
|
durationMs: number;
|
|
3874
3874
|
sliceIntervalMs: number;
|
|
3875
3875
|
execution: {
|
|
@@ -3909,7 +3909,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
3909
3909
|
postOnly?: undefined;
|
|
3910
3910
|
} | {
|
|
3911
3911
|
type: "ladder";
|
|
3912
|
-
side: "
|
|
3912
|
+
side: "buy" | "sell" | "unspecified";
|
|
3913
3913
|
priceMin: string;
|
|
3914
3914
|
priceMax: string;
|
|
3915
3915
|
levels: number;
|
|
@@ -3950,11 +3950,11 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
3950
3950
|
runtimeDetails: TriggerDetailsOutput;
|
|
3951
3951
|
version: number;
|
|
3952
3952
|
cancelReason: undefined;
|
|
3953
|
-
failureReason: "unspecified" | "
|
|
3953
|
+
failureReason: "unspecified" | "market_halted" | "missing_reason_code" | "internal_error" | "unknown_symbol" | "pair_disabled" | "min_notional" | "tick_size" | "insufficient_funds" | "risk_limit" | "duplicate_client_id" | "engine_busy" | "account_unknown" | "order_unknown" | "post_only_cross" | "reduce_only_blocked" | "price_band_violation" | "market_cap_violation" | "empty_book" | "fok_insufficient_liquidity" | "fee_asset_not_allowed" | "market_price_unavailable" | "stale_quote" | "min_quantity" | "step_size" | "invalid_sizing" | "quote_size_too_small" | "fee_ceiling_exceeded" | "trigger_price_invalid" | "trigger_price_source_unsupported" | "trailing_distance_invalid" | "modification_requires_replace" | "order_already_terminal" | "conflict_idempotency_key_reuse" | "rate_limited" | "policy_spot_trade_deny" | "policy_market_deny" | "policy_max_notional" | "policy_max_open_orders" | "policy_trading_halted" | "max_slippage_invalid" | "invalid_time_in_force" | "duplicate_order_id" | "max_quantity" | "max_notional" | "pair_post_only" | "max_open_orders_total" | "stp_mode_not_allowed" | "pair_backlogged" | "mode_not_supported" | "market_quote_stale" | "market_quote_unhealthy" | "qty_invalid" | "limit_price_invalid" | "twap_interval_invalid" | "ladder_range_too_narrow" | "ladder_levels_invalid" | "attached_legs_exceeded" | "price_levels_exhausted" | "settlement_backlogged" | "client_order_ids_exhausted" | "invalid_order_id" | "order_id_conflict" | "invalid_side" | "invalid_order_type" | "invalid_stp_mode" | "invalid_order_flags" | "price_level_quantity_limit" | "child_qty_raise_not_allowed" | "triggers_exhausted" | "order_sequence_exhausted" | "fee_schedule_unavailable" | "policy_unavailable" | "account_routing_invalid" | "client_trigger_id_invalid" | "trigger_direction_invalid" | "fee_asset_invalid" | "fee_ceiling_invalid" | "unsupported_field_set" | "trigger_fire_limit_reached" | "condition_flags_invalid" | "condition_parameter_set" | "slippage_ticks_invalid" | "slippage_bps_invalid" | "slippage_bounds_conflict" | "limit_child_slippage_set" | "new_account_capacity_reached" | "order_type_not_allowed_in_auction" | "post_only_not_allowed_in_auction" | "twap_capacity_reached" | "order_limits_unavailable" | "child_order_inconsistent" | "index_price_unavailable" | "trigger_would_trigger_immediately" | "max_open_orders_per_pair" | "account_repairing" | "self_trade_prevented";
|
|
3954
3954
|
triggerId: string;
|
|
3955
3955
|
subaccountId: string;
|
|
3956
3956
|
symbolId: number;
|
|
3957
|
-
status: "unspecified" | "
|
|
3957
|
+
status: "unspecified" | "failed" | "canceled" | "created" | "armed" | "running" | "completed" | "paused";
|
|
3958
3958
|
parentOrderId: string | undefined;
|
|
3959
3959
|
orderListId: string | undefined;
|
|
3960
3960
|
qty: string;
|
|
@@ -3962,7 +3962,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
3962
3962
|
selfTradePreventionMode: "unspecified" | "expire_taker" | "expire_maker" | "expire_both" | "decrement";
|
|
3963
3963
|
configuration: {
|
|
3964
3964
|
type: "stop_loss" | "take_profit";
|
|
3965
|
-
side: "
|
|
3965
|
+
side: "buy" | "sell" | "unspecified";
|
|
3966
3966
|
triggerPrice: string;
|
|
3967
3967
|
triggerPriceSource: "unspecified" | "last" | "index" | "mark";
|
|
3968
3968
|
execution: {
|
|
@@ -4015,7 +4015,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
4015
4015
|
postOnly?: undefined;
|
|
4016
4016
|
} | {
|
|
4017
4017
|
type: "trailing_stop";
|
|
4018
|
-
side: "
|
|
4018
|
+
side: "buy" | "sell" | "unspecified";
|
|
4019
4019
|
trailingDistance: {
|
|
4020
4020
|
kind: "distance";
|
|
4021
4021
|
distance: string;
|
|
@@ -4055,7 +4055,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
4055
4055
|
postOnly?: undefined;
|
|
4056
4056
|
} | {
|
|
4057
4057
|
type: "twap";
|
|
4058
|
-
side: "
|
|
4058
|
+
side: "buy" | "sell" | "unspecified";
|
|
4059
4059
|
durationMs: number;
|
|
4060
4060
|
sliceIntervalMs: number;
|
|
4061
4061
|
execution: {
|
|
@@ -4095,7 +4095,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
4095
4095
|
postOnly?: undefined;
|
|
4096
4096
|
} | {
|
|
4097
4097
|
type: "ladder";
|
|
4098
|
-
side: "
|
|
4098
|
+
side: "buy" | "sell" | "unspecified";
|
|
4099
4099
|
priceMin: string;
|
|
4100
4100
|
priceMax: string;
|
|
4101
4101
|
levels: number;
|
|
@@ -4140,7 +4140,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
4140
4140
|
triggerId: string;
|
|
4141
4141
|
subaccountId: string;
|
|
4142
4142
|
symbolId: number;
|
|
4143
|
-
status: "unspecified" | "
|
|
4143
|
+
status: "unspecified" | "failed" | "canceled" | "created" | "armed" | "running" | "completed" | "paused";
|
|
4144
4144
|
parentOrderId: string | undefined;
|
|
4145
4145
|
orderListId: string | undefined;
|
|
4146
4146
|
qty: string;
|
|
@@ -4148,7 +4148,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
4148
4148
|
selfTradePreventionMode: "unspecified" | "expire_taker" | "expire_maker" | "expire_both" | "decrement";
|
|
4149
4149
|
configuration: {
|
|
4150
4150
|
type: "stop_loss" | "take_profit";
|
|
4151
|
-
side: "
|
|
4151
|
+
side: "buy" | "sell" | "unspecified";
|
|
4152
4152
|
triggerPrice: string;
|
|
4153
4153
|
triggerPriceSource: "unspecified" | "last" | "index" | "mark";
|
|
4154
4154
|
execution: {
|
|
@@ -4201,7 +4201,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
4201
4201
|
postOnly?: undefined;
|
|
4202
4202
|
} | {
|
|
4203
4203
|
type: "trailing_stop";
|
|
4204
|
-
side: "
|
|
4204
|
+
side: "buy" | "sell" | "unspecified";
|
|
4205
4205
|
trailingDistance: {
|
|
4206
4206
|
kind: "distance";
|
|
4207
4207
|
distance: string;
|
|
@@ -4241,7 +4241,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
4241
4241
|
postOnly?: undefined;
|
|
4242
4242
|
} | {
|
|
4243
4243
|
type: "twap";
|
|
4244
|
-
side: "
|
|
4244
|
+
side: "buy" | "sell" | "unspecified";
|
|
4245
4245
|
durationMs: number;
|
|
4246
4246
|
sliceIntervalMs: number;
|
|
4247
4247
|
execution: {
|
|
@@ -4281,7 +4281,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
4281
4281
|
postOnly?: undefined;
|
|
4282
4282
|
} | {
|
|
4283
4283
|
type: "ladder";
|
|
4284
|
-
side: "
|
|
4284
|
+
side: "buy" | "sell" | "unspecified";
|
|
4285
4285
|
priceMin: string;
|
|
4286
4286
|
priceMax: string;
|
|
4287
4287
|
levels: number;
|
|
@@ -4420,7 +4420,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
4420
4420
|
price: string;
|
|
4421
4421
|
referencePrice: string;
|
|
4422
4422
|
armed: boolean;
|
|
4423
|
-
status: "unspecified" | "active" | "
|
|
4423
|
+
status: "unspecified" | "active" | "canceled" | "triggered";
|
|
4424
4424
|
channels: ("unspecified" | "in_app" | "telegram")[];
|
|
4425
4425
|
revision: string;
|
|
4426
4426
|
createdAt: number | null;
|