@polyester/sdk 0.35.0-devnet-20261112024759 → 0.35.0
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 +1 -1
- package/dist/services/address-book/address-book.schemas.d.ts +2 -2
- package/dist/services/assistant/assistant-events.schemas.d.ts +42 -42
- package/dist/services/assistant/assistant.schemas.d.ts +1 -1
- package/dist/services/auto-withdraw/auto-withdraw.schemas.d.ts +22 -22
- package/dist/services/changelog/changelog.schemas.d.ts +17 -17
- package/dist/services/checkpoints/checkpoints.schemas.d.ts +1 -1
- package/dist/services/heatmap/heatmap.schemas.d.ts +3 -3
- package/dist/services/lifecycle/lifecycle.schemas.d.ts +27 -27
- package/dist/services/orders/order-errors.schemas.d.ts +2 -2
- package/dist/services/orders/orders-batch.schemas.d.ts +47 -47
- package/dist/services/orders/orders-input.schemas.d.ts +6 -6
- package/dist/services/orders/orders-output.schemas.d.ts +14 -14
- package/dist/services/price-alerts/price-alerts.schemas.d.ts +11 -11
- package/dist/services/rewards/rewards.schemas.d.ts +4 -4
- package/dist/services/social-verification/social-verification.schemas.d.ts +1 -1
- package/dist/services/subaccounts/subaccounts.schemas.d.ts +15 -15
- package/dist/services/trades/trades.schemas.d.ts +1 -1
- package/dist/services/triggers/trigger-input.schemas.d.ts +2 -2
- package/dist/services/triggers/triggers-output.schemas.d.ts +25 -25
- package/dist/services/vip/vip.schemas.d.ts +3 -3
- package/dist/shared/rate-limit.schemas.d.ts +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -297,7 +297,7 @@ declare const AddressBookSchema: v.ObjectSchema<{
|
|
|
297
297
|
rootAccountId: string;
|
|
298
298
|
subaccountId: bigint;
|
|
299
299
|
}, AddressBookAccountScope>]>, undefined>;
|
|
300
|
-
readonly callerRole: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer"
|
|
300
|
+
readonly callerRole: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer">]>;
|
|
301
301
|
readonly label: v.StringSchema<undefined>;
|
|
302
302
|
readonly ownerUsername: v.StringSchema<undefined>;
|
|
303
303
|
readonly smartAccountAddress: v.StringSchema<undefined>;
|
|
@@ -1102,7 +1102,7 @@ declare const AddressBookViewSchema: v.ObjectSchema<{
|
|
|
1102
1102
|
rootAccountId: string;
|
|
1103
1103
|
subaccountId: bigint;
|
|
1104
1104
|
}, AddressBookAccountScope>]>, undefined>;
|
|
1105
|
-
readonly callerRole: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer"
|
|
1105
|
+
readonly callerRole: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer">]>;
|
|
1106
1106
|
readonly label: v.StringSchema<undefined>;
|
|
1107
1107
|
readonly ownerUsername: v.StringSchema<undefined>;
|
|
1108
1108
|
readonly smartAccountAddress: v.StringSchema<undefined>;
|
|
@@ -17,7 +17,7 @@ declare function formatOrderPreview(o: OrderPreview): {
|
|
|
17
17
|
reservedAmount: string | undefined;
|
|
18
18
|
referencePrice: {
|
|
19
19
|
price: string;
|
|
20
|
-
source: "unspecified" | "
|
|
20
|
+
source: "unspecified" | "last_price" | "index_price" | "best_bid" | "best_ask";
|
|
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" | "last_price" | "index_price" | "best_bid" | "best_ask";
|
|
291
291
|
observedAt: number | undefined;
|
|
292
292
|
type: "market";
|
|
293
293
|
} | {
|
|
@@ -314,7 +314,7 @@ declare function formatApprovalPreview(p: ApprovalRequested["preview"]): {
|
|
|
314
314
|
reservedAmount: string | undefined;
|
|
315
315
|
referencePrice: {
|
|
316
316
|
price: string;
|
|
317
|
-
source: "unspecified" | "
|
|
317
|
+
source: "unspecified" | "last_price" | "index_price" | "best_bid" | "best_ask";
|
|
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" | "last_price" | "index_price" | "best_bid" | "best_ask";
|
|
588
588
|
observedAt: number | undefined;
|
|
589
589
|
type: "market";
|
|
590
590
|
} | {
|
|
@@ -644,7 +644,7 @@ declare function formatApprovalPreview(p: ApprovalRequested["preview"]): {
|
|
|
644
644
|
reservedAmount: string | undefined;
|
|
645
645
|
referencePrice: {
|
|
646
646
|
price: string;
|
|
647
|
-
source: "unspecified" | "
|
|
647
|
+
source: "unspecified" | "last_price" | "index_price" | "best_bid" | "best_ask";
|
|
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" | "last_price" | "index_price" | "best_bid" | "best_ask";
|
|
918
918
|
observedAt: number | undefined;
|
|
919
919
|
type: "market";
|
|
920
920
|
} | {
|
|
@@ -1077,9 +1077,9 @@ declare function formatApprovalPreview(p: ApprovalRequested["preview"]): {
|
|
|
1077
1077
|
triggerType: "unspecified" | "twap" | "ladder" | "stop_loss" | "take_profit" | "trailing_stop";
|
|
1078
1078
|
side: "unspecified" | "buy" | "sell";
|
|
1079
1079
|
quantity: string;
|
|
1080
|
-
action: "unspecified" | "
|
|
1080
|
+
action: "unspecified" | "modify" | "pause" | "resume";
|
|
1081
1081
|
before: {
|
|
1082
|
-
status: "unspecified" | "
|
|
1082
|
+
status: "unspecified" | "armed" | "failed" | "canceled" | "created" | "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" | "armed" | "failed" | "canceled" | "created" | "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" | "last_price" | "index_price" | "best_bid" | "best_ask";
|
|
1132
1132
|
observedAt: number | undefined;
|
|
1133
1133
|
} | undefined;
|
|
1134
1134
|
direction: "unspecified" | "at_or_above" | "at_or_below";
|
|
@@ -1310,7 +1310,7 @@ declare function formatView(view: View, scales: SdkScales): {
|
|
|
1310
1310
|
attachedRisk: {
|
|
1311
1311
|
takeProfit: {
|
|
1312
1312
|
state: {
|
|
1313
|
-
status: "unspecified" | "
|
|
1313
|
+
status: "unspecified" | "armed" | "failed" | "canceled" | "created" | "running" | "completed" | "paused" | "not_configured";
|
|
1314
1314
|
armedTs: number | undefined;
|
|
1315
1315
|
armedTsNs: string | undefined;
|
|
1316
1316
|
terminalTs: number | undefined;
|
|
@@ -1330,7 +1330,7 @@ declare function formatView(view: View, scales: SdkScales): {
|
|
|
1330
1330
|
} | undefined;
|
|
1331
1331
|
stopLoss: {
|
|
1332
1332
|
state: {
|
|
1333
|
-
status: "unspecified" | "
|
|
1333
|
+
status: "unspecified" | "armed" | "failed" | "canceled" | "created" | "running" | "completed" | "paused" | "not_configured";
|
|
1334
1334
|
armedTs: number | undefined;
|
|
1335
1335
|
armedTsNs: string | undefined;
|
|
1336
1336
|
terminalTs: number | undefined;
|
|
@@ -1350,7 +1350,7 @@ declare function formatView(view: View, scales: SdkScales): {
|
|
|
1350
1350
|
} | undefined;
|
|
1351
1351
|
trailingStop: {
|
|
1352
1352
|
state: {
|
|
1353
|
-
status: "unspecified" | "
|
|
1353
|
+
status: "unspecified" | "armed" | "failed" | "canceled" | "created" | "running" | "completed" | "paused" | "not_configured";
|
|
1354
1354
|
armedTs: number | undefined;
|
|
1355
1355
|
armedTsNs: string | undefined;
|
|
1356
1356
|
terminalTs: number | undefined;
|
|
@@ -1381,7 +1381,7 @@ declare function formatView(view: View, scales: SdkScales): {
|
|
|
1381
1381
|
oco: boolean;
|
|
1382
1382
|
} | undefined;
|
|
1383
1383
|
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" | undefined;
|
|
1384
|
-
rejectReason?: "STALE_QUOTE" | "UNSPECIFIED" | "
|
|
1384
|
+
rejectReason?: "STALE_QUOTE" | "UNSPECIFIED" | "UNAUTHENTICATED" | "RATE_LIMIT_EXCEEDED" | "INTERNAL_ERROR" | "PERMISSION_DENIED" | "SUBACCOUNT_INACTIVE" | "BAD_REQUEST" | "INVALID_ARGUMENT" | "INSUFFICIENT_FUNDS" | "UNKNOWN_SYMBOL" | "BAD_PRICE" | "BAD_QTY" | "MIN_NOTIONAL" | "QTY_STEP_SIZE" | "CONFLICT_DUPLICATE_CLIENT_ORDER_ID" | "UNAVAILABLE" | "NOT_FOUND" | "UPSTREAM_ERROR" | "FEE_ASSET_NOT_ALLOWED" | "PAIR_DISABLED" | "ORDER_UNKNOWN" | "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" | "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" | "MAX_QUOTE_DEBIT_TOO_SMALL" | "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" | undefined;
|
|
1385
1385
|
price: string;
|
|
1386
1386
|
createdTs: number;
|
|
1387
1387
|
terminalTs: number;
|
|
@@ -1392,7 +1392,7 @@ declare function formatView(view: View, scales: SdkScales): {
|
|
|
1392
1392
|
} | undefined;
|
|
1393
1393
|
symbolId: number;
|
|
1394
1394
|
clientOrderId: string;
|
|
1395
|
-
status: "unspecified" | "
|
|
1395
|
+
status: "unspecified" | "canceled" | "pending" | "rejected" | "pending_cancel" | "working" | "filled" | "partial";
|
|
1396
1396
|
side: "unspecified" | "buy" | "sell";
|
|
1397
1397
|
orderType: "unspecified" | "limit" | "market";
|
|
1398
1398
|
timeInForce: "unspecified" | "gtc" | "ioc" | "fok" | "gtd";
|
|
@@ -1433,12 +1433,12 @@ declare function formatView(view: View, scales: SdkScales): {
|
|
|
1433
1433
|
triggers: ({
|
|
1434
1434
|
runtimeDetails: TriggerDetailsOutput;
|
|
1435
1435
|
version: number;
|
|
1436
|
-
cancelReason: "unspecified" | "
|
|
1436
|
+
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";
|
|
1437
1437
|
failureReason: undefined;
|
|
1438
1438
|
triggerId: string;
|
|
1439
1439
|
subaccountId: string;
|
|
1440
1440
|
symbolId: number;
|
|
1441
|
-
status: "unspecified" | "
|
|
1441
|
+
status: "unspecified" | "armed" | "failed" | "canceled" | "created" | "running" | "completed" | "paused";
|
|
1442
1442
|
parentOrderId: string | undefined;
|
|
1443
1443
|
qty: string;
|
|
1444
1444
|
feeAsset: "unspecified" | "quote" | "base";
|
|
@@ -1618,11 +1618,11 @@ declare function formatView(view: View, scales: SdkScales): {
|
|
|
1618
1618
|
runtimeDetails: TriggerDetailsOutput;
|
|
1619
1619
|
version: number;
|
|
1620
1620
|
cancelReason: undefined;
|
|
1621
|
-
failureReason: "unspecified" | "
|
|
1621
|
+
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" | "max_quote_debit_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";
|
|
1622
1622
|
triggerId: string;
|
|
1623
1623
|
subaccountId: string;
|
|
1624
1624
|
symbolId: number;
|
|
1625
|
-
status: "unspecified" | "
|
|
1625
|
+
status: "unspecified" | "armed" | "failed" | "canceled" | "created" | "running" | "completed" | "paused";
|
|
1626
1626
|
parentOrderId: string | undefined;
|
|
1627
1627
|
qty: string;
|
|
1628
1628
|
feeAsset: "unspecified" | "quote" | "base";
|
|
@@ -1806,7 +1806,7 @@ declare function formatView(view: View, scales: SdkScales): {
|
|
|
1806
1806
|
triggerId: string;
|
|
1807
1807
|
subaccountId: string;
|
|
1808
1808
|
symbolId: number;
|
|
1809
|
-
status: "unspecified" | "
|
|
1809
|
+
status: "unspecified" | "armed" | "failed" | "canceled" | "created" | "running" | "completed" | "paused";
|
|
1810
1810
|
parentOrderId: string | undefined;
|
|
1811
1811
|
qty: string;
|
|
1812
1812
|
feeAsset: "unspecified" | "quote" | "base";
|
|
@@ -2085,7 +2085,7 @@ declare function formatView(view: View, scales: SdkScales): {
|
|
|
2085
2085
|
referencePrice: string;
|
|
2086
2086
|
armed: boolean;
|
|
2087
2087
|
status: "unspecified" | "active" | "triggered" | "cancelled";
|
|
2088
|
-
channels: ("unspecified" | "
|
|
2088
|
+
channels: ("unspecified" | "in_app" | "telegram")[];
|
|
2089
2089
|
revision: string;
|
|
2090
2090
|
createdAt: number | null;
|
|
2091
2091
|
updatedAt: number | null;
|
|
@@ -2372,7 +2372,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
2372
2372
|
memories: {
|
|
2373
2373
|
memoryId: string;
|
|
2374
2374
|
text: string;
|
|
2375
|
-
kind: "unspecified" | "
|
|
2375
|
+
kind: "unspecified" | "fact" | "planning_figure" | "profile";
|
|
2376
2376
|
}[];
|
|
2377
2377
|
text?: undefined;
|
|
2378
2378
|
fromSeq?: undefined;
|
|
@@ -2533,7 +2533,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
2533
2533
|
reservedAmount: string | undefined;
|
|
2534
2534
|
referencePrice: {
|
|
2535
2535
|
price: string;
|
|
2536
|
-
source: "unspecified" | "
|
|
2536
|
+
source: "unspecified" | "last_price" | "index_price" | "best_bid" | "best_ask";
|
|
2537
2537
|
observedAt: number | undefined;
|
|
2538
2538
|
} | undefined;
|
|
2539
2539
|
/** The order type and its own values; `type: "unspecified"` means show the summary only. */
|
|
@@ -2803,7 +2803,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
2803
2803
|
offsetBps: number;
|
|
2804
2804
|
reference: {
|
|
2805
2805
|
price: string;
|
|
2806
|
-
source: "unspecified" | "
|
|
2806
|
+
source: "unspecified" | "last_price" | "index_price" | "best_bid" | "best_ask";
|
|
2807
2807
|
observedAt: number | undefined;
|
|
2808
2808
|
type: "market";
|
|
2809
2809
|
} | {
|
|
@@ -2863,7 +2863,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
2863
2863
|
reservedAmount: string | undefined;
|
|
2864
2864
|
referencePrice: {
|
|
2865
2865
|
price: string;
|
|
2866
|
-
source: "unspecified" | "
|
|
2866
|
+
source: "unspecified" | "last_price" | "index_price" | "best_bid" | "best_ask";
|
|
2867
2867
|
observedAt: number | undefined;
|
|
2868
2868
|
} | undefined;
|
|
2869
2869
|
/** The order type and its own values; `type: "unspecified"` means show the summary only. */
|
|
@@ -3133,7 +3133,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
3133
3133
|
offsetBps: number;
|
|
3134
3134
|
reference: {
|
|
3135
3135
|
price: string;
|
|
3136
|
-
source: "unspecified" | "
|
|
3136
|
+
source: "unspecified" | "last_price" | "index_price" | "best_bid" | "best_ask";
|
|
3137
3137
|
observedAt: number | undefined;
|
|
3138
3138
|
type: "market";
|
|
3139
3139
|
} | {
|
|
@@ -3296,9 +3296,9 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
3296
3296
|
triggerType: "unspecified" | "twap" | "ladder" | "stop_loss" | "take_profit" | "trailing_stop";
|
|
3297
3297
|
side: "unspecified" | "buy" | "sell";
|
|
3298
3298
|
quantity: string;
|
|
3299
|
-
action: "unspecified" | "
|
|
3299
|
+
action: "unspecified" | "modify" | "pause" | "resume";
|
|
3300
3300
|
before: {
|
|
3301
|
-
status: "unspecified" | "
|
|
3301
|
+
status: "unspecified" | "armed" | "failed" | "canceled" | "created" | "running" | "completed" | "paused";
|
|
3302
3302
|
triggerPrice: string | undefined;
|
|
3303
3303
|
trailingDistance: {
|
|
3304
3304
|
kind: "distance";
|
|
@@ -3322,7 +3322,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
3322
3322
|
limitPrice: string | undefined;
|
|
3323
3323
|
} | undefined;
|
|
3324
3324
|
after: {
|
|
3325
|
-
status: "unspecified" | "
|
|
3325
|
+
status: "unspecified" | "armed" | "failed" | "canceled" | "created" | "running" | "completed" | "paused";
|
|
3326
3326
|
triggerPrice: string | undefined;
|
|
3327
3327
|
trailingDistance: {
|
|
3328
3328
|
kind: "distance";
|
|
@@ -3347,7 +3347,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
3347
3347
|
} | undefined;
|
|
3348
3348
|
referencePrice: {
|
|
3349
3349
|
price: string;
|
|
3350
|
-
source: "unspecified" | "
|
|
3350
|
+
source: "unspecified" | "last_price" | "index_price" | "best_bid" | "best_ask";
|
|
3351
3351
|
observedAt: number | undefined;
|
|
3352
3352
|
} | undefined;
|
|
3353
3353
|
direction: "unspecified" | "at_or_above" | "at_or_below";
|
|
@@ -3530,7 +3530,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
3530
3530
|
} | {
|
|
3531
3531
|
type: "approval_resolved";
|
|
3532
3532
|
approvalId: string;
|
|
3533
|
-
status: "unspecified" | "pending" | "
|
|
3533
|
+
status: "unspecified" | "pending" | "approved" | "rejected" | "expired";
|
|
3534
3534
|
text?: undefined;
|
|
3535
3535
|
fromSeq?: undefined;
|
|
3536
3536
|
toolCallId?: undefined;
|
|
@@ -3576,7 +3576,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
3576
3576
|
attachedRisk: {
|
|
3577
3577
|
takeProfit: {
|
|
3578
3578
|
state: {
|
|
3579
|
-
status: "unspecified" | "
|
|
3579
|
+
status: "unspecified" | "armed" | "failed" | "canceled" | "created" | "running" | "completed" | "paused" | "not_configured";
|
|
3580
3580
|
armedTs: number | undefined;
|
|
3581
3581
|
armedTsNs: string | undefined;
|
|
3582
3582
|
terminalTs: number | undefined;
|
|
@@ -3596,7 +3596,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
3596
3596
|
} | undefined;
|
|
3597
3597
|
stopLoss: {
|
|
3598
3598
|
state: {
|
|
3599
|
-
status: "unspecified" | "
|
|
3599
|
+
status: "unspecified" | "armed" | "failed" | "canceled" | "created" | "running" | "completed" | "paused" | "not_configured";
|
|
3600
3600
|
armedTs: number | undefined;
|
|
3601
3601
|
armedTsNs: string | undefined;
|
|
3602
3602
|
terminalTs: number | undefined;
|
|
@@ -3616,7 +3616,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
3616
3616
|
} | undefined;
|
|
3617
3617
|
trailingStop: {
|
|
3618
3618
|
state: {
|
|
3619
|
-
status: "unspecified" | "
|
|
3619
|
+
status: "unspecified" | "armed" | "failed" | "canceled" | "created" | "running" | "completed" | "paused" | "not_configured";
|
|
3620
3620
|
armedTs: number | undefined;
|
|
3621
3621
|
armedTsNs: string | undefined;
|
|
3622
3622
|
terminalTs: number | undefined;
|
|
@@ -3647,7 +3647,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
3647
3647
|
oco: boolean;
|
|
3648
3648
|
} | undefined;
|
|
3649
3649
|
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" | undefined;
|
|
3650
|
-
rejectReason?: "STALE_QUOTE" | "UNSPECIFIED" | "
|
|
3650
|
+
rejectReason?: "STALE_QUOTE" | "UNSPECIFIED" | "UNAUTHENTICATED" | "RATE_LIMIT_EXCEEDED" | "INTERNAL_ERROR" | "PERMISSION_DENIED" | "SUBACCOUNT_INACTIVE" | "BAD_REQUEST" | "INVALID_ARGUMENT" | "INSUFFICIENT_FUNDS" | "UNKNOWN_SYMBOL" | "BAD_PRICE" | "BAD_QTY" | "MIN_NOTIONAL" | "QTY_STEP_SIZE" | "CONFLICT_DUPLICATE_CLIENT_ORDER_ID" | "UNAVAILABLE" | "NOT_FOUND" | "UPSTREAM_ERROR" | "FEE_ASSET_NOT_ALLOWED" | "PAIR_DISABLED" | "ORDER_UNKNOWN" | "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" | "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" | "MAX_QUOTE_DEBIT_TOO_SMALL" | "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" | undefined;
|
|
3651
3651
|
price: string;
|
|
3652
3652
|
createdTs: number;
|
|
3653
3653
|
terminalTs: number;
|
|
@@ -3658,7 +3658,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
3658
3658
|
} | undefined;
|
|
3659
3659
|
symbolId: number;
|
|
3660
3660
|
clientOrderId: string;
|
|
3661
|
-
status: "unspecified" | "
|
|
3661
|
+
status: "unspecified" | "canceled" | "pending" | "rejected" | "pending_cancel" | "working" | "filled" | "partial";
|
|
3662
3662
|
side: "unspecified" | "buy" | "sell";
|
|
3663
3663
|
orderType: "unspecified" | "limit" | "market";
|
|
3664
3664
|
timeInForce: "unspecified" | "gtc" | "ioc" | "fok" | "gtd";
|
|
@@ -3699,12 +3699,12 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
3699
3699
|
triggers: ({
|
|
3700
3700
|
runtimeDetails: TriggerDetailsOutput;
|
|
3701
3701
|
version: number;
|
|
3702
|
-
cancelReason: "unspecified" | "
|
|
3702
|
+
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";
|
|
3703
3703
|
failureReason: undefined;
|
|
3704
3704
|
triggerId: string;
|
|
3705
3705
|
subaccountId: string;
|
|
3706
3706
|
symbolId: number;
|
|
3707
|
-
status: "unspecified" | "
|
|
3707
|
+
status: "unspecified" | "armed" | "failed" | "canceled" | "created" | "running" | "completed" | "paused";
|
|
3708
3708
|
parentOrderId: string | undefined;
|
|
3709
3709
|
qty: string;
|
|
3710
3710
|
feeAsset: "unspecified" | "quote" | "base";
|
|
@@ -3884,11 +3884,11 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
3884
3884
|
runtimeDetails: TriggerDetailsOutput;
|
|
3885
3885
|
version: number;
|
|
3886
3886
|
cancelReason: undefined;
|
|
3887
|
-
failureReason: "unspecified" | "
|
|
3887
|
+
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" | "max_quote_debit_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";
|
|
3888
3888
|
triggerId: string;
|
|
3889
3889
|
subaccountId: string;
|
|
3890
3890
|
symbolId: number;
|
|
3891
|
-
status: "unspecified" | "
|
|
3891
|
+
status: "unspecified" | "armed" | "failed" | "canceled" | "created" | "running" | "completed" | "paused";
|
|
3892
3892
|
parentOrderId: string | undefined;
|
|
3893
3893
|
qty: string;
|
|
3894
3894
|
feeAsset: "unspecified" | "quote" | "base";
|
|
@@ -4072,7 +4072,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
4072
4072
|
triggerId: string;
|
|
4073
4073
|
subaccountId: string;
|
|
4074
4074
|
symbolId: number;
|
|
4075
|
-
status: "unspecified" | "
|
|
4075
|
+
status: "unspecified" | "armed" | "failed" | "canceled" | "created" | "running" | "completed" | "paused";
|
|
4076
4076
|
parentOrderId: string | undefined;
|
|
4077
4077
|
qty: string;
|
|
4078
4078
|
feeAsset: "unspecified" | "quote" | "base";
|
|
@@ -4351,7 +4351,7 @@ declare function formatRunEvent(event: RunEvent, scales: SdkScales): {
|
|
|
4351
4351
|
referencePrice: string;
|
|
4352
4352
|
armed: boolean;
|
|
4353
4353
|
status: "unspecified" | "active" | "triggered" | "cancelled";
|
|
4354
|
-
channels: ("unspecified" | "
|
|
4354
|
+
channels: ("unspecified" | "in_app" | "telegram")[];
|
|
4355
4355
|
revision: string;
|
|
4356
4356
|
createdAt: number | null;
|
|
4357
4357
|
updatedAt: number | null;
|
|
@@ -126,7 +126,7 @@ declare function formatMemory(m: Memory): {
|
|
|
126
126
|
createdAt: number | undefined;
|
|
127
127
|
/** Omitted when the conversation it was learned in is unknown. */
|
|
128
128
|
conversationId: string | undefined;
|
|
129
|
-
kind: "unspecified" | "
|
|
129
|
+
kind: "unspecified" | "fact" | "planning_figure" | "profile";
|
|
130
130
|
};
|
|
131
131
|
type AssistantMemory = ReturnType<typeof formatMemory>;
|
|
132
132
|
declare function formatAssistantKey(k: AssistantKey$1): {
|