@polyester/sdk 0.35.0-devnet-20261110194522 → 0.35.0-devnet-20261111024759

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.
Files changed (31) hide show
  1. package/CHANGELOG.md +5 -1
  2. package/dist/services/address-book/address-book.schemas.d.ts +2 -2
  3. package/dist/services/balances/balances.schemas.d.ts +3 -3
  4. package/dist/services/candles/candles.schemas.d.ts +10 -10
  5. package/dist/services/changelog/changelog.schemas.d.ts +17 -17
  6. package/dist/services/checkpoints/checkpoints.schemas.d.ts +2 -2
  7. package/dist/services/heatmap/heatmap.schemas.d.ts +13 -13
  8. package/dist/services/internal-transfers/internal-transfers.schemas.d.ts +3 -3
  9. package/dist/services/lifecycle/lifecycle.schemas.d.ts +145 -145
  10. package/dist/services/market-overview/market-overview.schemas.d.ts +3 -3
  11. package/dist/services/orderbook/orderbook.schemas.d.ts +1 -1
  12. package/dist/services/orders/order-enums.codecs.js +4 -4
  13. package/dist/services/orders/order-enums.codecs.js.map +1 -1
  14. package/dist/services/orders/order-errors.schemas.d.ts +1 -1
  15. package/dist/services/orders/orders-batch.schemas.d.ts +51 -51
  16. package/dist/services/orders/orders-input.schemas.d.ts +4 -4
  17. package/dist/services/orders/orders-modify.schemas.d.ts +5 -5
  18. package/dist/services/orders/orders-output.schemas.d.ts +21 -21
  19. package/dist/services/orders/orders.codecs.js +14 -14
  20. package/dist/services/orders/orders.codecs.js.map +1 -1
  21. package/dist/services/rewards/rewards.schemas.d.ts +3 -3
  22. package/dist/services/subaccounts/subaccounts.schemas.d.ts +14 -14
  23. package/dist/services/trades/trades.schemas.d.ts +2 -2
  24. package/dist/services/transfers/transfers.schemas.d.ts +1 -1
  25. package/dist/services/triggers/trigger-input.schemas.d.ts +1 -1
  26. package/dist/services/triggers/triggers-output.schemas.d.ts +43 -22
  27. package/dist/services/triggers/triggers-output.schemas.d.ts.map +1 -1
  28. package/dist/services/triggers/triggers-output.schemas.js +6 -2
  29. package/dist/services/triggers/triggers-output.schemas.js.map +1 -1
  30. package/dist/services/vip/vip.schemas.d.ts +3 -3
  31. package/package.json +1 -1
@@ -13,7 +13,7 @@ declare const SubaccountPermissionDefinitionSchema: v.ObjectSchema<{
13
13
  }, undefined>;
14
14
  type SubaccountPermissionDefinition = v.InferOutput<typeof SubaccountPermissionDefinitionSchema>;
15
15
  declare const SubaccountRoleDefinitionSchema: v.ObjectSchema<{
16
- readonly role: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer" | "unspecified">]>;
16
+ readonly role: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer">]>;
17
17
  readonly displayName: v.OptionalSchema<v.StringSchema<undefined>, "">;
18
18
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, "">;
19
19
  readonly assignable: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
@@ -28,7 +28,7 @@ declare const SubaccountRoleCatalogSchema: v.ObjectSchema<{
28
28
  readonly policyAction: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "swap" | "trade-spot" | "internal-transfer" | "external-withdraw" | "read-balances" | "read-spot" | "read-internal-transfers" | "read-address-book" | "manage-address-book" | "read-auto-withdraw" | "manage-auto-withdraw">]>;
29
29
  }, undefined>, undefined>, readonly []>;
30
30
  readonly roles: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
31
- readonly role: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer" | "unspecified">]>;
31
+ readonly role: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer">]>;
32
32
  readonly displayName: v.OptionalSchema<v.StringSchema<undefined>, "">;
33
33
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, "">;
34
34
  readonly assignable: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
@@ -37,7 +37,7 @@ declare const SubaccountRoleCatalogSchema: v.ObjectSchema<{
37
37
  }, undefined>;
38
38
  type SubaccountRoleCatalog = v.InferOutput<typeof SubaccountRoleCatalogSchema>;
39
39
  declare const EffectiveSubaccountPermissionsSchema: v.ObjectSchema<{
40
- readonly role: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer" | "unspecified">]>;
40
+ readonly role: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer">]>;
41
41
  readonly permissions: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "internal_transfer" | "read_subaccount" | "update_subaccount" | "read_balances" | "read_spot" | "trade_spot" | "read_internal_transfers" | "external_withdraw" | "read_address_book" | "manage_address_book" | "read_members" | "manage_members" | "read_invites" | "manage_invites" | "read_api_keys" | "manage_api_keys" | "read_subaccount_policy" | "manage_subaccount_policy" | "read_activity" | "read_activity_security_details" | "manage_member_mfa_requirement" | "create_deposit_address" | "read_deposit_addresses" | "read_guard_signer_status" | "manage_guard_signer" | "read_auto_withdraw" | "manage_auto_withdraw" | "swap">]>, undefined>, readonly []>;
42
42
  readonly subaccountPolicyId: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, string>]>;
43
43
  }, undefined>;
@@ -163,7 +163,7 @@ declare const ProtoSubaccountStatusSchema: v.SchemaWithPipe<readonly [v.NumberSc
163
163
  type SubaccountStatus = v.InferOutput<typeof ProtoSubaccountStatusSchema>;
164
164
  declare const SubaccountSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
165
165
  readonly id: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, string>]>;
166
- readonly role: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer" | "unspecified">]>;
166
+ readonly role: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer">]>;
167
167
  readonly label: v.OptionalSchema<v.StringSchema<undefined>, "">;
168
168
  readonly icon: v.OptionalSchema<v.StringSchema<undefined>, "">;
169
169
  readonly color: v.OptionalSchema<v.StringSchema<undefined>, "">;
@@ -189,7 +189,7 @@ declare const SubaccountSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
189
189
  readonly removed: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
190
190
  }, undefined>, v.TransformAction<{
191
191
  id: string;
192
- role: "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer" | "unspecified";
192
+ role: "unspecified" | "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer";
193
193
  label: string;
194
194
  icon: string;
195
195
  color: string;
@@ -211,7 +211,7 @@ declare const SubaccountSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
211
211
  updatedAt: number | undefined;
212
212
  updatedAtNs: string | undefined;
213
213
  id: string;
214
- role: "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer" | "unspecified";
214
+ role: "unspecified" | "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer";
215
215
  label: string;
216
216
  icon: string;
217
217
  color: string;
@@ -229,7 +229,7 @@ declare const SubaccountSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
229
229
  type Subaccount = v.InferOutput<typeof SubaccountSchema>;
230
230
  declare const SubaccountMemberSchema: v.ObjectSchema<{
231
231
  readonly accountId: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, string>]>;
232
- readonly role: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer" | "unspecified">]>;
232
+ readonly role: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer">]>;
233
233
  readonly username: v.OptionalSchema<v.StringSchema<undefined>, "">;
234
234
  readonly smartAccountAddress: v.StringSchema<undefined>;
235
235
  readonly avatarUrl: v.OptionalSchema<v.StringSchema<undefined>, "">;
@@ -241,8 +241,8 @@ declare const SubaccountInviteSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<
241
241
  readonly subaccountId: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, string>]>;
242
242
  readonly granteeAccountId: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, string>]>;
243
243
  readonly inviterAccountId: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, string>]>;
244
- readonly role: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer" | "unspecified">]>;
245
- readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "canceled" | "pending" | "accepted" | "declined">]>;
244
+ readonly role: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer">]>;
245
+ readonly status: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "accepted" | "canceled" | "pending" | "declined">]>;
246
246
  readonly createdAt: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ObjectSchema<{
247
247
  readonly seconds: v.BigintSchema<undefined>;
248
248
  readonly nanos: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
@@ -268,8 +268,8 @@ declare const SubaccountInviteSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<
268
268
  subaccountId: string;
269
269
  granteeAccountId: string;
270
270
  inviterAccountId: string;
271
- role: "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer" | "unspecified";
272
- status: "unspecified" | "canceled" | "pending" | "accepted" | "declined";
271
+ role: "unspecified" | "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer";
272
+ status: "unspecified" | "accepted" | "canceled" | "pending" | "declined";
273
273
  createdAt?: number | undefined;
274
274
  respondedAt?: number | undefined;
275
275
  granteeUsername: string;
@@ -286,8 +286,8 @@ declare const SubaccountInviteSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<
286
286
  id: string;
287
287
  granteeAccountId: string;
288
288
  inviterAccountId: string;
289
- role: "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer" | "unspecified";
290
- status: "unspecified" | "canceled" | "pending" | "accepted" | "declined";
289
+ role: "unspecified" | "owner" | "admin" | "treasury" | "leveraged_trader" | "trader" | "viewer";
290
+ status: "unspecified" | "accepted" | "canceled" | "pending" | "declined";
291
291
  createdAt?: number | undefined;
292
292
  respondedAt?: number | undefined;
293
293
  granteeUsername: string;
@@ -309,7 +309,7 @@ declare const SubaccountActivityEventSchema: v.ObjectSchema<{
309
309
  seconds: bigint;
310
310
  nanos: number;
311
311
  } | undefined, number | undefined>]>;
312
- readonly entityKind: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "subaccount" | "api_key" | "account" | "destination" | "session" | "member" | "policy" | "invite" | "security">]>;
312
+ readonly entityKind: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "subaccount" | "api_key" | "account" | "destination" | "session" | "policy" | "member" | "invite" | "security">]>;
313
313
  readonly eventAction: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "disabled" | "removed" | "revoked" | "failed" | "enabled" | "created" | "updated" | "deleted" | "role_set" | "received" | "replied" | "blocked" | "hold_placed" | "hold_released">]>;
314
314
  readonly source: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.TransformAction<number, "unspecified" | "api" | "web" | "mobile">]>;
315
315
  readonly ip: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
@@ -63,7 +63,7 @@ declare function createUserTradeSchema(scales: SdkScales): v.SchemaWithPipe<read
63
63
  referralShare?: string | undefined;
64
64
  orderId: string;
65
65
  symbolId: number;
66
- sideLabel: "unspecified" | "buy" | "sell";
66
+ sideLabel: "buy" | "sell" | "unspecified";
67
67
  liquidityLabel: "maker" | "taker";
68
68
  feeAsset: "unspecified" | "quote" | "base";
69
69
  qty: string;
@@ -169,7 +169,7 @@ declare const GetUserTradesInputSchema: v.SchemaWithPipe<readonly [v.UnionSchema
169
169
  readonly orderId: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
170
170
  readonly lineageId: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.TransformAction<string, bigint>]>, v.CheckAction<bigint, `${string} must be greater than zero`>]>;
171
171
  readonly throughGeneration: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 4294967295, undefined>]>, undefined>;
172
- }, undefined>], undefined>], ({ input }: v.UnionIssue<v.NumberIssue | v.StringIssue | v.BooleanIssue | v.IntegerIssue<number> | v.MinValueIssue<number, 1> | v.MaxValueIssue<number, 4294967295> | v.StrictObjectIssue | v.PicklistIssue | v.MinLengthIssue<string, 1> | v.UnionIssue<v.StringIssue | v.StrictObjectIssue | v.PicklistIssue | v.MinLengthIssue<string, 1>> | v.GtValueIssue<number, 0> | v.CheckIssue<bigint> | v.MaxValueIssue<number, 1000> | v.NeverIssue | v.UnionIssue<v.NumberIssue | v.StringIssue | v.BooleanIssue | v.IntegerIssue<number> | v.MinValueIssue<number, 1> | v.MaxValueIssue<number, 4294967295> | v.StrictObjectIssue | v.PicklistIssue | v.MinLengthIssue<string, 1> | v.UnionIssue<v.StringIssue | v.StrictObjectIssue | v.PicklistIssue | v.MinLengthIssue<string, 1>> | v.GtValueIssue<number, 0> | v.CheckIssue<bigint> | v.MaxValueIssue<number, 1000> | v.NeverIssue>>) => "Provide at most one of orderId or lineageId" | "throughGeneration requires lineageId" | "symbolId is required when afterMatchId is set" | "Invalid trade filters">, v.TransformAction<{
172
+ }, undefined>], undefined>], ({ input }: v.UnionIssue<v.NumberIssue | v.BooleanIssue | v.IntegerIssue<number> | v.MinValueIssue<number, 1> | v.MaxValueIssue<number, 4294967295> | v.StringIssue | v.MinLengthIssue<string, 1> | v.StrictObjectIssue | v.PicklistIssue | v.UnionIssue<v.StringIssue | v.MinLengthIssue<string, 1> | v.StrictObjectIssue | v.PicklistIssue> | v.GtValueIssue<number, 0> | v.CheckIssue<bigint> | v.MaxValueIssue<number, 1000> | v.NeverIssue | v.UnionIssue<v.NumberIssue | v.BooleanIssue | v.IntegerIssue<number> | v.MinValueIssue<number, 1> | v.MaxValueIssue<number, 4294967295> | v.StringIssue | v.MinLengthIssue<string, 1> | v.StrictObjectIssue | v.PicklistIssue | v.UnionIssue<v.StringIssue | v.MinLengthIssue<string, 1> | v.StrictObjectIssue | v.PicklistIssue> | v.GtValueIssue<number, 0> | v.CheckIssue<bigint> | v.MaxValueIssue<number, 1000> | v.NeverIssue>>) => "Provide at most one of orderId or lineageId" | "throughGeneration requires lineageId" | "symbolId is required when afterMatchId is set" | "Invalid trade filters">, v.TransformAction<{
173
173
  symbolId?: number | undefined;
174
174
  afterMatchId?: undefined;
175
175
  side?: Side.BUY | Side.SELL | undefined;
@@ -85,7 +85,7 @@ declare const LedgerTransferSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
85
85
  amount: string;
86
86
  balanceAfter: string | undefined;
87
87
  type: "unspecified" | "internal_transfer" | "deposit" | "withdraw" | "maker_fee" | "taker_fee" | "trade_base" | "trade_quote" | "rebate" | "funding_to_trading" | "trading_to_funding" | "trading_withdraw_reserve" | "funding_user_transfer" | "trading_withdraw_request_fee";
88
- accountCode: "unspecified" | "funding" | "trading";
88
+ accountCode: "unspecified" | "trading" | "funding";
89
89
  timestamp: number;
90
90
  isDebit: boolean;
91
91
  linkId: string | undefined;
@@ -1334,7 +1334,7 @@ declare const ListTriggerEventsInputSchema: v.SchemaWithPipe<readonly [v.StrictO
1334
1334
  readonly triggerId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.TransformAction<string, bigint>]>;
1335
1335
  }, undefined>, v.TransformAction<{
1336
1336
  limit?: number | undefined;
1337
- eventType?: "failed" | "canceled" | "updated" | "armed" | "fired" | "activated" | "fire_refused" | undefined;
1337
+ eventType?: "failed" | "canceled" | "armed" | "updated" | "fired" | "activated" | "fire_refused" | undefined;
1338
1338
  pageToken: string;
1339
1339
  account?: "active" | "main" | {
1340
1340
  subaccountId: string;
@@ -144,6 +144,7 @@ declare function createTriggerSchema(scales: SdkScales): v.SchemaWithPipe<readon
144
144
  readonly case: v.LiteralSchema<"stopLoss", undefined>;
145
145
  readonly value: v.ObjectSchema<{
146
146
  readonly triggerPriceTicks: v.BigintSchema<undefined>;
147
+ readonly triggerPriceSource: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
147
148
  readonly side: v.NumberSchema<undefined>;
148
149
  readonly child: v.OptionalSchema<v.ObjectSchema<{
149
150
  readonly execution: v.VariantSchema<"case", [v.ObjectSchema<{
@@ -188,6 +189,7 @@ declare function createTriggerSchema(scales: SdkScales): v.SchemaWithPipe<readon
188
189
  readonly case: v.LiteralSchema<"takeProfit", undefined>;
189
190
  readonly value: v.ObjectSchema<{
190
191
  readonly triggerPriceTicks: v.BigintSchema<undefined>;
192
+ readonly triggerPriceSource: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
191
193
  readonly side: v.NumberSchema<undefined>;
192
194
  readonly child: v.OptionalSchema<v.ObjectSchema<{
193
195
  readonly execution: v.VariantSchema<"case", [v.ObjectSchema<{
@@ -254,6 +256,7 @@ declare function createTriggerSchema(scales: SdkScales): v.SchemaWithPipe<readon
254
256
  }, undefined>], undefined>;
255
257
  readonly side: v.NumberSchema<undefined>;
256
258
  readonly limitPriceTicks: v.OptionalSchema<v.BigintSchema<undefined>, 0n>;
259
+ readonly triggerPriceSource: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
257
260
  }, undefined>;
258
261
  }, undefined>, v.ObjectSchema<{
259
262
  readonly case: v.LiteralSchema<"twap", undefined>;
@@ -383,6 +386,7 @@ declare function createTriggerSchema(scales: SdkScales): v.SchemaWithPipe<readon
383
386
  case: "stopLoss";
384
387
  value: {
385
388
  triggerPriceTicks: bigint;
389
+ triggerPriceSource: number;
386
390
  side: number;
387
391
  child?: {
388
392
  execution: {
@@ -425,6 +429,7 @@ declare function createTriggerSchema(scales: SdkScales): v.SchemaWithPipe<readon
425
429
  case: "takeProfit";
426
430
  value: {
427
431
  triggerPriceTicks: bigint;
432
+ triggerPriceSource: number;
428
433
  side: number;
429
434
  child?: {
430
435
  execution: {
@@ -489,6 +494,7 @@ declare function createTriggerSchema(scales: SdkScales): v.SchemaWithPipe<readon
489
494
  };
490
495
  side: number;
491
496
  limitPriceTicks: bigint;
497
+ triggerPriceSource: number;
492
498
  };
493
499
  } | {
494
500
  case: "twap";
@@ -608,7 +614,7 @@ declare function createTriggerSchema(scales: SdkScales): v.SchemaWithPipe<readon
608
614
  }, {
609
615
  runtimeDetails: TriggerDetailsOutput;
610
616
  version: number;
611
- cancelReason: "unspecified" | "oco" | "user_request" | "account_repair" | "market_halted" | "internal_error" | "parent_canceled_no_fill" | "self_trade_prevention" | "pair_drain_trigger" | "pair_drain_twap" | "pair_drain_ladder" | "pair_drain_attached_leg" | "missing_reason_code";
617
+ cancelReason: "unspecified" | "internal_error" | "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";
612
618
  failureReason: undefined;
613
619
  triggerId: string;
614
620
  subaccountId: string;
@@ -620,8 +626,9 @@ declare function createTriggerSchema(scales: SdkScales): v.SchemaWithPipe<readon
620
626
  selfTradePreventionMode: "unspecified" | "expire_taker" | "expire_maker" | "expire_both";
621
627
  configuration: {
622
628
  type: "stop_loss" | "take_profit";
623
- side: "unspecified" | "buy" | "sell";
629
+ side: "buy" | "sell" | "unspecified";
624
630
  triggerPrice: string;
631
+ triggerPriceSource: "unspecified" | "last" | "index" | "mark";
625
632
  execution: {
626
633
  readonly type: "market_ioc";
627
634
  readonly maxSlippage: {
@@ -672,7 +679,7 @@ declare function createTriggerSchema(scales: SdkScales): v.SchemaWithPipe<readon
672
679
  readonly postOnly?: undefined;
673
680
  } | {
674
681
  type: "trailing_stop";
675
- side: "unspecified" | "buy" | "sell";
682
+ side: "buy" | "sell" | "unspecified";
676
683
  trailingDistance: {
677
684
  kind: "distance";
678
685
  distance: string;
@@ -701,6 +708,7 @@ declare function createTriggerSchema(scales: SdkScales): v.SchemaWithPipe<readon
701
708
  bps?: undefined;
702
709
  };
703
710
  limitPrice: string | undefined;
711
+ triggerPriceSource: "unspecified" | "last" | "index" | "mark";
704
712
  triggerPrice?: undefined;
705
713
  execution?: undefined;
706
714
  durationMs?: undefined;
@@ -711,7 +719,7 @@ declare function createTriggerSchema(scales: SdkScales): v.SchemaWithPipe<readon
711
719
  readonly postOnly?: undefined;
712
720
  } | {
713
721
  type: "twap";
714
- side: "unspecified" | "buy" | "sell";
722
+ side: "buy" | "sell" | "unspecified";
715
723
  durationMs: number;
716
724
  sliceIntervalMs: number;
717
725
  execution: {
@@ -740,6 +748,7 @@ declare function createTriggerSchema(scales: SdkScales): v.SchemaWithPipe<readon
740
748
  readonly price?: undefined;
741
749
  };
742
750
  triggerPrice?: undefined;
751
+ triggerPriceSource?: undefined;
743
752
  trailingDistance?: undefined;
744
753
  activationPrice?: undefined;
745
754
  readonly maxSlippage?: undefined;
@@ -750,12 +759,13 @@ declare function createTriggerSchema(scales: SdkScales): v.SchemaWithPipe<readon
750
759
  readonly postOnly?: undefined;
751
760
  } | {
752
761
  type: "ladder";
753
- side: "unspecified" | "buy" | "sell";
762
+ side: "buy" | "sell" | "unspecified";
754
763
  priceMin: string;
755
764
  priceMax: string;
756
765
  levels: number;
757
766
  postOnly: boolean;
758
767
  triggerPrice?: undefined;
768
+ triggerPriceSource?: undefined;
759
769
  execution?: undefined;
760
770
  trailingDistance?: undefined;
761
771
  activationPrice?: undefined;
@@ -767,6 +777,7 @@ declare function createTriggerSchema(scales: SdkScales): v.SchemaWithPipe<readon
767
777
  type: "unspecified";
768
778
  side?: undefined;
769
779
  triggerPrice?: undefined;
780
+ triggerPriceSource?: undefined;
770
781
  execution?: undefined;
771
782
  trailingDistance?: undefined;
772
783
  activationPrice?: undefined;
@@ -788,7 +799,7 @@ declare function createTriggerSchema(scales: SdkScales): v.SchemaWithPipe<readon
788
799
  runtimeDetails: TriggerDetailsOutput;
789
800
  version: number;
790
801
  cancelReason: undefined;
791
- failureReason: "unspecified" | "market_halted" | "internal_error" | "missing_reason_code" | "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";
802
+ failureReason: "unspecified" | "internal_error" | "market_halted" | "missing_reason_code" | "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";
792
803
  triggerId: string;
793
804
  subaccountId: string;
794
805
  symbolId: number;
@@ -799,8 +810,9 @@ declare function createTriggerSchema(scales: SdkScales): v.SchemaWithPipe<readon
799
810
  selfTradePreventionMode: "unspecified" | "expire_taker" | "expire_maker" | "expire_both";
800
811
  configuration: {
801
812
  type: "stop_loss" | "take_profit";
802
- side: "unspecified" | "buy" | "sell";
813
+ side: "buy" | "sell" | "unspecified";
803
814
  triggerPrice: string;
815
+ triggerPriceSource: "unspecified" | "last" | "index" | "mark";
804
816
  execution: {
805
817
  readonly type: "market_ioc";
806
818
  readonly maxSlippage: {
@@ -851,7 +863,7 @@ declare function createTriggerSchema(scales: SdkScales): v.SchemaWithPipe<readon
851
863
  readonly postOnly?: undefined;
852
864
  } | {
853
865
  type: "trailing_stop";
854
- side: "unspecified" | "buy" | "sell";
866
+ side: "buy" | "sell" | "unspecified";
855
867
  trailingDistance: {
856
868
  kind: "distance";
857
869
  distance: string;
@@ -880,6 +892,7 @@ declare function createTriggerSchema(scales: SdkScales): v.SchemaWithPipe<readon
880
892
  bps?: undefined;
881
893
  };
882
894
  limitPrice: string | undefined;
895
+ triggerPriceSource: "unspecified" | "last" | "index" | "mark";
883
896
  triggerPrice?: undefined;
884
897
  execution?: undefined;
885
898
  durationMs?: undefined;
@@ -890,7 +903,7 @@ declare function createTriggerSchema(scales: SdkScales): v.SchemaWithPipe<readon
890
903
  readonly postOnly?: undefined;
891
904
  } | {
892
905
  type: "twap";
893
- side: "unspecified" | "buy" | "sell";
906
+ side: "buy" | "sell" | "unspecified";
894
907
  durationMs: number;
895
908
  sliceIntervalMs: number;
896
909
  execution: {
@@ -919,6 +932,7 @@ declare function createTriggerSchema(scales: SdkScales): v.SchemaWithPipe<readon
919
932
  readonly price?: undefined;
920
933
  };
921
934
  triggerPrice?: undefined;
935
+ triggerPriceSource?: undefined;
922
936
  trailingDistance?: undefined;
923
937
  activationPrice?: undefined;
924
938
  readonly maxSlippage?: undefined;
@@ -929,12 +943,13 @@ declare function createTriggerSchema(scales: SdkScales): v.SchemaWithPipe<readon
929
943
  readonly postOnly?: undefined;
930
944
  } | {
931
945
  type: "ladder";
932
- side: "unspecified" | "buy" | "sell";
946
+ side: "buy" | "sell" | "unspecified";
933
947
  priceMin: string;
934
948
  priceMax: string;
935
949
  levels: number;
936
950
  postOnly: boolean;
937
951
  triggerPrice?: undefined;
952
+ triggerPriceSource?: undefined;
938
953
  execution?: undefined;
939
954
  trailingDistance?: undefined;
940
955
  activationPrice?: undefined;
@@ -946,6 +961,7 @@ declare function createTriggerSchema(scales: SdkScales): v.SchemaWithPipe<readon
946
961
  type: "unspecified";
947
962
  side?: undefined;
948
963
  triggerPrice?: undefined;
964
+ triggerPriceSource?: undefined;
949
965
  execution?: undefined;
950
966
  trailingDistance?: undefined;
951
967
  activationPrice?: undefined;
@@ -978,8 +994,9 @@ declare function createTriggerSchema(scales: SdkScales): v.SchemaWithPipe<readon
978
994
  selfTradePreventionMode: "unspecified" | "expire_taker" | "expire_maker" | "expire_both";
979
995
  configuration: {
980
996
  type: "stop_loss" | "take_profit";
981
- side: "unspecified" | "buy" | "sell";
997
+ side: "buy" | "sell" | "unspecified";
982
998
  triggerPrice: string;
999
+ triggerPriceSource: "unspecified" | "last" | "index" | "mark";
983
1000
  execution: {
984
1001
  readonly type: "market_ioc";
985
1002
  readonly maxSlippage: {
@@ -1030,7 +1047,7 @@ declare function createTriggerSchema(scales: SdkScales): v.SchemaWithPipe<readon
1030
1047
  readonly postOnly?: undefined;
1031
1048
  } | {
1032
1049
  type: "trailing_stop";
1033
- side: "unspecified" | "buy" | "sell";
1050
+ side: "buy" | "sell" | "unspecified";
1034
1051
  trailingDistance: {
1035
1052
  kind: "distance";
1036
1053
  distance: string;
@@ -1059,6 +1076,7 @@ declare function createTriggerSchema(scales: SdkScales): v.SchemaWithPipe<readon
1059
1076
  bps?: undefined;
1060
1077
  };
1061
1078
  limitPrice: string | undefined;
1079
+ triggerPriceSource: "unspecified" | "last" | "index" | "mark";
1062
1080
  triggerPrice?: undefined;
1063
1081
  execution?: undefined;
1064
1082
  durationMs?: undefined;
@@ -1069,7 +1087,7 @@ declare function createTriggerSchema(scales: SdkScales): v.SchemaWithPipe<readon
1069
1087
  readonly postOnly?: undefined;
1070
1088
  } | {
1071
1089
  type: "twap";
1072
- side: "unspecified" | "buy" | "sell";
1090
+ side: "buy" | "sell" | "unspecified";
1073
1091
  durationMs: number;
1074
1092
  sliceIntervalMs: number;
1075
1093
  execution: {
@@ -1098,6 +1116,7 @@ declare function createTriggerSchema(scales: SdkScales): v.SchemaWithPipe<readon
1098
1116
  readonly price?: undefined;
1099
1117
  };
1100
1118
  triggerPrice?: undefined;
1119
+ triggerPriceSource?: undefined;
1101
1120
  trailingDistance?: undefined;
1102
1121
  activationPrice?: undefined;
1103
1122
  readonly maxSlippage?: undefined;
@@ -1108,12 +1127,13 @@ declare function createTriggerSchema(scales: SdkScales): v.SchemaWithPipe<readon
1108
1127
  readonly postOnly?: undefined;
1109
1128
  } | {
1110
1129
  type: "ladder";
1111
- side: "unspecified" | "buy" | "sell";
1130
+ side: "buy" | "sell" | "unspecified";
1112
1131
  priceMin: string;
1113
1132
  priceMax: string;
1114
1133
  levels: number;
1115
1134
  postOnly: boolean;
1116
1135
  triggerPrice?: undefined;
1136
+ triggerPriceSource?: undefined;
1117
1137
  execution?: undefined;
1118
1138
  trailingDistance?: undefined;
1119
1139
  activationPrice?: undefined;
@@ -1125,6 +1145,7 @@ declare function createTriggerSchema(scales: SdkScales): v.SchemaWithPipe<readon
1125
1145
  type: "unspecified";
1126
1146
  side?: undefined;
1127
1147
  triggerPrice?: undefined;
1148
+ triggerPriceSource?: undefined;
1128
1149
  execution?: undefined;
1129
1150
  trailingDistance?: undefined;
1130
1151
  activationPrice?: undefined;
@@ -1189,14 +1210,14 @@ declare function createTriggerEventSchema(scales: SdkScales): v.SchemaWithPipe<r
1189
1210
  fireRefusalReason?: number | undefined;
1190
1211
  }, {
1191
1212
  /** Why a `fire_refused` attempt was refused; the trigger stayed live. */
1192
- fireRefusalReason: "unspecified" | "market_halted" | "internal_error" | "missing_reason_code" | "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" | undefined;
1193
- cancelReason: "unspecified" | "oco" | "user_request" | "account_repair" | "market_halted" | "internal_error" | "parent_canceled_no_fill" | "self_trade_prevention" | "pair_drain_trigger" | "pair_drain_twap" | "pair_drain_ladder" | "pair_drain_attached_leg" | "missing_reason_code";
1213
+ fireRefusalReason: "unspecified" | "internal_error" | "market_halted" | "missing_reason_code" | "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" | undefined;
1214
+ cancelReason: "unspecified" | "internal_error" | "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";
1194
1215
  failureReason: undefined;
1195
1216
  triggerId: string;
1196
1217
  subaccountId: string;
1197
1218
  symbolId: number;
1198
1219
  triggerType: "unspecified" | "twap" | "ladder" | "stop_loss" | "take_profit" | "trailing_stop";
1199
- eventType: "unspecified" | "failed" | "canceled" | "updated" | "armed" | "fired" | "activated" | "fire_refused";
1220
+ eventType: "unspecified" | "failed" | "canceled" | "armed" | "updated" | "fired" | "activated" | "fire_refused";
1200
1221
  ts: number;
1201
1222
  tsNs: string;
1202
1223
  childSeq: number;
@@ -1204,14 +1225,14 @@ declare function createTriggerEventSchema(scales: SdkScales): v.SchemaWithPipe<r
1204
1225
  firePrice: string | undefined;
1205
1226
  } | {
1206
1227
  /** Why a `fire_refused` attempt was refused; the trigger stayed live. */
1207
- fireRefusalReason: "unspecified" | "market_halted" | "internal_error" | "missing_reason_code" | "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" | undefined;
1228
+ fireRefusalReason: "unspecified" | "internal_error" | "market_halted" | "missing_reason_code" | "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" | undefined;
1208
1229
  cancelReason: undefined;
1209
- failureReason: "unspecified" | "market_halted" | "internal_error" | "missing_reason_code" | "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";
1230
+ failureReason: "unspecified" | "internal_error" | "market_halted" | "missing_reason_code" | "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";
1210
1231
  triggerId: string;
1211
1232
  subaccountId: string;
1212
1233
  symbolId: number;
1213
1234
  triggerType: "unspecified" | "twap" | "ladder" | "stop_loss" | "take_profit" | "trailing_stop";
1214
- eventType: "unspecified" | "failed" | "canceled" | "updated" | "armed" | "fired" | "activated" | "fire_refused";
1235
+ eventType: "unspecified" | "failed" | "canceled" | "armed" | "updated" | "fired" | "activated" | "fire_refused";
1215
1236
  ts: number;
1216
1237
  tsNs: string;
1217
1238
  childSeq: number;
@@ -1219,14 +1240,14 @@ declare function createTriggerEventSchema(scales: SdkScales): v.SchemaWithPipe<r
1219
1240
  firePrice: string | undefined;
1220
1241
  } | {
1221
1242
  /** Why a `fire_refused` attempt was refused; the trigger stayed live. */
1222
- fireRefusalReason: "unspecified" | "market_halted" | "internal_error" | "missing_reason_code" | "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" | undefined;
1243
+ fireRefusalReason: "unspecified" | "internal_error" | "market_halted" | "missing_reason_code" | "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" | undefined;
1223
1244
  cancelReason: undefined;
1224
1245
  failureReason: undefined;
1225
1246
  triggerId: string;
1226
1247
  subaccountId: string;
1227
1248
  symbolId: number;
1228
1249
  triggerType: "unspecified" | "twap" | "ladder" | "stop_loss" | "take_profit" | "trailing_stop";
1229
- eventType: "unspecified" | "failed" | "canceled" | "updated" | "armed" | "fired" | "activated" | "fire_refused";
1250
+ eventType: "unspecified" | "failed" | "canceled" | "armed" | "updated" | "fired" | "activated" | "fire_refused";
1230
1251
  ts: number;
1231
1252
  tsNs: string;
1232
1253
  childSeq: number;
@@ -1 +1 @@
1
- {"version":3,"file":"triggers-output.schemas.d.ts","names":[],"sources":["../../../src/services/triggers/triggers-output.schemas.ts"],"mappings":";;;KAyBK;KAEA;KAEA;cAiBQ,2BAAyB,EAAA,yBAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;KAc1B,sBAAsB,EAAE,mBAAmB;cAE1C,2BAAyB,EAAA,yBAAA,EAAA;;;;;;;;;;;;;;KAE1B,sBAAsB,EAAE,mBAAmB;cAE1C,2BAAyB,EAAA,yBAAA,EAAA;;;;;;;;;;;;;;KAE1B,sBAAsB,EAAE,mBAAmB;cAE1C,0BAAwB,EAAA,yBAAA,EAAA;;;;;;;;;;;;;;KACzB,qBAAqB,EAAE,mBAAmB;cAEzC,2BAAyB,EAAA,yBAAA,EAAA;;;;;;;;;;;;;;KAC1B,sBAAsB,EAAE,mBAAmB;KAoS3C;EACR;EACA;EACA,oBAAoB;EACpB,kBAAkB;;KAGV;EACR;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,oBAAoB;EACpB,kBAAkB;;EAElB;;KAGQ;EACR;EACA;EACA;EACA;EACA;;EAEA;;KAGQ;EACR;EACA;EACA;EACA;EACA,oBAAoB;;EAEpB;;EAEA;;KAGQ,uBACN,oBACA,wBACA,oBACA;EACE;;;iBAuGQ,oBAAoB,QAAQ,YAAS,EAAA,yBAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA+CzC,UAAU,EAAE,YAAY,kBAAkB;iBAEtC,yBAAyB,QAAQ,YAAS,EAAA,yBAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAuC9C,eAAe,EAAE,YAAY,kBAAkB;KAE/C;EACR,QAAQ;EACR"}
1
+ {"version":3,"file":"triggers-output.schemas.d.ts","names":[],"sources":["../../../src/services/triggers/triggers-output.schemas.ts"],"mappings":";;;KAyBK;KAEA;KAEA;cAiBQ,2BAAyB,EAAA,yBAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;KAc1B,sBAAsB,EAAE,mBAAmB;cAE1C,2BAAyB,EAAA,yBAAA,EAAA;;;;;;;;;;;;;;KAE1B,sBAAsB,EAAE,mBAAmB;cAE1C,2BAAyB,EAAA,yBAAA,EAAA;;;;;;;;;;;;;;KAE1B,sBAAsB,EAAE,mBAAmB;cAE1C,0BAAwB,EAAA,yBAAA,EAAA;;;;;;;;;;;;;;KACzB,qBAAqB,EAAE,mBAAmB;cAEzC,2BAAyB,EAAA,yBAAA,EAAA;;;;;;;;;;;;;;KAC1B,sBAAsB,EAAE,mBAAmB;KA8S3C;EACR;EACA;EACA,oBAAoB;EACpB,kBAAkB;;KAGV;EACR;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,oBAAoB;EACpB,kBAAkB;;EAElB;;KAGQ;EACR;EACA;EACA;EACA;EACA;;EAEA;;KAGQ;EACR;EACA;EACA;EACA;EACA,oBAAoB;;EAEpB;;EAEA;;KAGQ,uBACN,oBACA,wBACA,oBACA;EACE;;;iBAuGQ,oBAAoB,QAAQ,YAAS,EAAA,yBAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA+CzC,UAAU,EAAE,YAAY,kBAAkB;iBAEtC,yBAAyB,QAAQ,YAAS,EAAA,yBAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAuC9C,eAAe,EAAE,YAAY,kBAAkB;KAE/C;EACR,QAAQ;EACR"}
@@ -72,6 +72,7 @@ const ConditionalExecutionRawSchema = v.variant("case", [
72
72
  ]);
73
73
  const ConditionalConfigurationRawSchema = v.object({
74
74
  triggerPriceTicks: v.bigint(),
75
+ triggerPriceSource: v.optional(v.number(), 0),
75
76
  side: v.number(),
76
77
  child: v.optional(v.object({ execution: ConditionalExecutionRawSchema }))
77
78
  });
@@ -93,7 +94,8 @@ const TrailingConfigurationRawSchema = v.object({
93
94
  activationPriceTicks: v.bigint(),
94
95
  maxSlippage: MaxSlippageRawSchema,
95
96
  side: v.number(),
96
- limitPriceTicks: v.optional(v.bigint(), 0n)
97
+ limitPriceTicks: v.optional(v.bigint(), 0n),
98
+ triggerPriceSource: v.optional(v.number(), 0)
97
99
  });
98
100
  const TwapConfigurationRawSchema = v.object({
99
101
  side: v.number(),
@@ -176,6 +178,7 @@ function transformTriggerConfiguration(configuration, scales) {
176
178
  type: configuration.case === "stopLoss" ? "stop_loss" : "take_profit",
177
179
  side: enumLabel(OrderSideCodec.protoToOutput, configuration.value.side),
178
180
  triggerPrice: scaledToDecimalOutput(configuration.value.triggerPriceTicks, scales.price()),
181
+ triggerPriceSource: enumLabel(TriggerPriceSourceCodec.protoToOutput, configuration.value.triggerPriceSource),
179
182
  execution: transformConditionalExecution(configuration.value.child?.execution ?? { case: void 0 }, scales)
180
183
  };
181
184
  case "trailingStop": return {
@@ -190,7 +193,8 @@ function transformTriggerConfiguration(configuration, scales) {
190
193
  } : { kind: "unspecified" },
191
194
  activationPrice: configuration.value.activationPriceTicks > 0n ? scaledToDecimalOutput(configuration.value.activationPriceTicks, scales.price()) : void 0,
192
195
  maxSlippage: formatMaxSlippage(configuration.value.maxSlippage, scales),
193
- limitPrice: configuration.value.limitPriceTicks > 0n ? scaledToDecimalOutput(configuration.value.limitPriceTicks, scales.price()) : void 0
196
+ limitPrice: configuration.value.limitPriceTicks > 0n ? scaledToDecimalOutput(configuration.value.limitPriceTicks, scales.price()) : void 0,
197
+ triggerPriceSource: enumLabel(TriggerPriceSourceCodec.protoToOutput, configuration.value.triggerPriceSource)
194
198
  };
195
199
  case "twap": return {
196
200
  type: "twap",