@polyester/sdk 0.36.0-devnet-20261116010019 → 0.36.0-devnet-20261116150503

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 (199) hide show
  1. package/CHANGELOG.md +3 -1
  2. package/dist/browser-core.js +1 -1
  3. package/dist/gen/ai/v1/assistant_pb.d.ts +1 -1
  4. package/dist/gen/ai/v1/assistant_pb.js +1 -1
  5. package/dist/gen/alerts/v1/price_alerts_pb.d.ts +1 -1
  6. package/dist/gen/auth/v1/address_book_pb.d.ts +1 -1
  7. package/dist/gen/auth/v1/api_keys_pb.d.ts +1 -1
  8. package/dist/gen/auth/v1/auth_pb.d.ts +2 -2
  9. package/dist/gen/auth/v1/auth_pb.js +1 -1
  10. package/dist/gen/auth/v1/auth_pb.js.map +1 -1
  11. package/dist/gen/auth/v1/mfa_pb.d.ts +1 -1
  12. package/dist/gen/auth/v1/policies_pb.d.ts +1 -1
  13. package/dist/gen/auth/v1/profile_pb.d.ts +1 -1
  14. package/dist/gen/auth/v1/resolve_pb.d.ts +1 -1
  15. package/dist/gen/auth/v1/social_verification_pb.d.ts +1 -1
  16. package/dist/gen/auth/v1/subaccounts_pb.d.ts +2 -2
  17. package/dist/gen/auth/v1/subaccounts_pb.js +1 -1
  18. package/dist/gen/auth/v1/subaccounts_pb.js.map +1 -1
  19. package/dist/gen/chain/analytics/v1/analytics_read_pb.d.ts +1 -1
  20. package/dist/gen/chain/deposit/v1/deposit_pb.d.ts +1 -1
  21. package/dist/gen/chain/guard/v1/guard_signer_pb.d.ts +1 -1
  22. package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.d.ts +1 -1
  23. package/dist/gen/chain/lifecycle/v1/types_pb.d.ts +1 -1
  24. package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.d.ts +1 -1
  25. package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts +4 -3
  26. package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts.map +1 -1
  27. package/dist/gen/chain/withdraw/v1/withdraw_pb.js +3 -2
  28. package/dist/gen/chain/withdraw/v1/withdraw_pb.js.map +1 -1
  29. package/dist/gen/chain/zipper/v1/reason_pb.d.ts +1 -1
  30. package/dist/gen/chain/zipper/v1/zipper_pb.d.ts +1 -1
  31. package/dist/gen/changelog/v1/changelog_pb.d.ts +1 -1
  32. package/dist/gen/checkpoints/v1/checkpoints_pb.d.ts +1 -1
  33. package/dist/gen/claims/v1/claims_pb.d.ts +1 -1
  34. package/dist/gen/fees/v1/fees_pb.d.ts +1 -1
  35. package/dist/gen/index.js +21 -21
  36. package/dist/gen/ledger/read/v1/ledger_read_pb.d.ts +3 -2
  37. package/dist/gen/ledger/read/v1/ledger_read_pb.d.ts.map +1 -1
  38. package/dist/gen/ledger/read/v1/ledger_read_pb.js +2 -1
  39. package/dist/gen/ledger/read/v1/ledger_read_pb.js.map +1 -1
  40. package/dist/gen/ledger/read/v1/statement_export_pb.d.ts +1 -1
  41. package/dist/gen/marketdata/v1/asset_info_pb.d.ts +1 -1
  42. package/dist/gen/marketdata/v1/heatmap_pb.d.ts +1 -4
  43. package/dist/gen/marketdata/v1/heatmap_pb.d.ts.map +1 -1
  44. package/dist/gen/marketdata/v1/heatmap_pb.js +0 -3
  45. package/dist/gen/marketdata/v1/heatmap_pb.js.map +1 -1
  46. package/dist/gen/marketdata/v1/marketdata_pb.d.ts +1 -1
  47. package/dist/gen/marketoverview/v1/marketoverview_pb.d.ts +1 -1
  48. package/dist/gen/notifications/v1/notifications_pb.d.ts +1 -1
  49. package/dist/gen/orderbook/v1/orderbook_pb.d.ts +29 -80
  50. package/dist/gen/orderbook/v1/orderbook_pb.d.ts.map +1 -1
  51. package/dist/gen/orderbook/v1/orderbook_pb.js +3 -77
  52. package/dist/gen/orderbook/v1/orderbook_pb.js.map +1 -1
  53. package/dist/gen/orders/v1/orders_pb.d.ts +127 -72
  54. package/dist/gen/orders/v1/orders_pb.d.ts.map +1 -1
  55. package/dist/gen/orders/v1/orders_pb.js +37 -19
  56. package/dist/gen/orders/v1/orders_pb.js.map +1 -1
  57. package/dist/gen/orders/v1/orders_read_pb.d.ts +31 -13
  58. package/dist/gen/orders/v1/orders_read_pb.d.ts.map +1 -1
  59. package/dist/gen/orders/v1/orders_read_pb.js.map +1 -1
  60. package/dist/gen/polyester/ratelimit/v1/types_pb.d.ts +1 -1
  61. package/dist/gen/polyester/type/v1/u128_pb.d.ts +1 -1
  62. package/dist/gen/privatews/v1/private_ws_pb.d.ts +1 -1
  63. package/dist/gen/ratelimit/v1/ratelimit_pb.d.ts +1 -1
  64. package/dist/gen/rewards/v1/rewards_pb.d.ts +1 -1
  65. package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.d.ts +88 -61
  66. package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.d.ts.map +1 -1
  67. package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.js +1 -1
  68. package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.js.map +1 -1
  69. package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts +15 -12
  70. package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts.map +1 -1
  71. package/dist/gen/swap/quickswap/v1/quickswap_pb.js +8 -4
  72. package/dist/gen/swap/quickswap/v1/quickswap_pb.js.map +1 -1
  73. package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.d.ts +46 -43
  74. package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.d.ts.map +1 -1
  75. package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.js +10 -10
  76. package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.js.map +1 -1
  77. package/dist/gen/swap/v1/swap_pb.d.ts +1 -1
  78. package/dist/gen/system/v1/system_pb.d.ts +1 -1
  79. package/dist/gen/tradews/v1/trade_ws_pb.d.ts +1 -1
  80. package/dist/gen/transfer/v1/dust_conversion_pb.d.ts +1 -1
  81. package/dist/gen/transfer/v1/internal_transfer_pb.d.ts +3 -2
  82. package/dist/gen/transfer/v1/internal_transfer_pb.d.ts.map +1 -1
  83. package/dist/gen/transfer/v1/internal_transfer_pb.js +2 -1
  84. package/dist/gen/transfer/v1/internal_transfer_pb.js.map +1 -1
  85. package/dist/gen/triggers/v1/triggers_pb.d.ts +66 -50
  86. package/dist/gen/triggers/v1/triggers_pb.d.ts.map +1 -1
  87. package/dist/gen/triggers/v1/triggers_pb.js.map +1 -1
  88. package/dist/gen/vip/v1/vip_pb.d.ts +1 -1
  89. package/dist/index.js +1 -1
  90. package/dist/realtime/snapshot-then-stream.js +1 -1
  91. package/dist/server-core.js +3 -3
  92. package/dist/services/accounts/accounts.js +1 -1
  93. package/dist/services/accounts/accounts.schemas.js +1 -1
  94. package/dist/services/address-book/address-book.js +1 -1
  95. package/dist/services/api-keys/api-keys.js +1 -1
  96. package/dist/services/api-keys/api-keys.schemas.js +1 -1
  97. package/dist/services/assistant/assistant-events.schemas.d.ts +28 -28
  98. package/dist/services/assistant/assistant.js +1 -1
  99. package/dist/services/assistant/assistant.schemas.d.ts +1 -1
  100. package/dist/services/assistant/assistant.schemas.js +1 -1
  101. package/dist/services/auth/account-signer-auth.js +2 -2
  102. package/dist/services/auth/auth.js +1 -1
  103. package/dist/services/auth/profile/profile.js +2 -2
  104. package/dist/services/auto-withdraw/auto-withdraw.js +1 -1
  105. package/dist/services/auto-withdraw/auto-withdraw.schemas.d.ts +19 -19
  106. package/dist/services/auto-withdraw/auto-withdraw.schemas.js +1 -1
  107. package/dist/services/balances/balances.js +1 -1
  108. package/dist/services/candles/candles.js +2 -2
  109. package/dist/services/chain-analytics/chain-analytics.js +1 -1
  110. package/dist/services/changelog/changelog.js +1 -1
  111. package/dist/services/changelog/changelog.schemas.d.ts +38 -38
  112. package/dist/services/checkpoints/checkpoints.js +1 -1
  113. package/dist/services/claims/claims.js +1 -1
  114. package/dist/services/claims/claims.schemas.js +1 -1
  115. package/dist/services/deposit/deposit.js +1 -1
  116. package/dist/services/dust-conversion/dust-conversion.js +1 -1
  117. package/dist/services/dust-conversion/dust-conversion.schemas.d.ts +8 -8
  118. package/dist/services/dust-conversion/dust-conversion.schemas.js +1 -1
  119. package/dist/services/fees/fees.js +1 -1
  120. package/dist/services/guard-signer/guard-signer.js +1 -1
  121. package/dist/services/guard-signer/guard-signer.schemas.js +1 -1
  122. package/dist/services/heatmap/heatmap.js +2 -2
  123. package/dist/services/heatmap/heatmap.schemas.d.ts +4 -4
  124. package/dist/services/internal-transfers/internal-transfers.js +1 -1
  125. package/dist/services/internal-transfers/internal-transfers.schemas.d.ts +12 -12
  126. package/dist/services/lifecycle/lifecycle.js +3 -3
  127. package/dist/services/lifecycle/lifecycle.schemas.d.ts +42 -42
  128. package/dist/services/lifecycle/lifecycle.schemas.js +2 -2
  129. package/dist/services/market-data/market-data.js +3 -3
  130. package/dist/services/market-overview/market-overview.js +2 -2
  131. package/dist/services/market-overview/market-overview.schemas.js +1 -1
  132. package/dist/services/notifications/notifications.js +1 -1
  133. package/dist/services/orderbook/orderbook.codecs.js +2 -42
  134. package/dist/services/orderbook/orderbook.codecs.js.map +1 -1
  135. package/dist/services/orderbook/orderbook.d.ts +3 -1
  136. package/dist/services/orderbook/orderbook.d.ts.map +1 -1
  137. package/dist/services/orderbook/orderbook.js +19 -12
  138. package/dist/services/orderbook/orderbook.js.map +1 -1
  139. package/dist/services/orderbook/orderbook.schemas.d.ts +12 -11
  140. package/dist/services/orderbook/orderbook.schemas.d.ts.map +1 -1
  141. package/dist/services/orderbook/orderbook.schemas.js +10 -12
  142. package/dist/services/orderbook/orderbook.schemas.js.map +1 -1
  143. package/dist/services/orders/order-errors.schemas.d.ts +2 -2
  144. package/dist/services/orders/order-errors.schemas.js +1 -1
  145. package/dist/services/orders/orders-batch.schemas.d.ts +47 -47
  146. package/dist/services/orders/orders-batch.schemas.js +2 -2
  147. package/dist/services/orders/orders-input.schemas.d.ts +6 -6
  148. package/dist/services/orders/orders-input.schemas.js +2 -2
  149. package/dist/services/orders/orders-modify.schemas.js +2 -2
  150. package/dist/services/orders/orders-output.schemas.d.ts +14 -14
  151. package/dist/services/orders/orders-risk.schemas.js +3 -3
  152. package/dist/services/orders/orders.js +2 -2
  153. package/dist/services/policies/api-key-policies/api-key-policies.js +1 -1
  154. package/dist/services/policies/shared.codecs.js +1 -1
  155. package/dist/services/policies/subaccount-policies/subaccount-policies.js +2 -2
  156. package/dist/services/price-alerts/price-alerts.js +1 -1
  157. package/dist/services/price-alerts/price-alerts.schemas.d.ts +10 -10
  158. package/dist/services/rate-limits/rate-limits.js +1 -1
  159. package/dist/services/rewards/rewards.js +1 -1
  160. package/dist/services/rewards/rewards.schemas.d.ts +4 -4
  161. package/dist/services/social-verification/social-verification.js +1 -1
  162. package/dist/services/social-verification/social-verification.schemas.js +1 -1
  163. package/dist/services/statement-exports/statement-exports.js +1 -1
  164. package/dist/services/statement-exports/statement-exports.schemas.d.ts +6 -6
  165. package/dist/services/subaccounts/subaccounts.js +3 -3
  166. package/dist/services/subaccounts/subaccounts.schemas.d.ts +5 -5
  167. package/dist/services/system/system.js +1 -1
  168. package/dist/services/system/system.schemas.d.ts +13 -13
  169. package/dist/services/trades/trades.js +2 -2
  170. package/dist/services/trades/trades.schemas.d.ts +1 -1
  171. package/dist/services/trading-withdraws/trading-withdraws.js +1 -1
  172. package/dist/services/trading-withdraws/trading-withdraws.schemas.js +1 -1
  173. package/dist/services/trading-withdraws/wallet-message.js +1 -1
  174. package/dist/services/transfers/transfers.js +2 -2
  175. package/dist/services/triggers/trigger-child-order.schemas.js +3 -3
  176. package/dist/services/triggers/trigger-input.schemas.d.ts +2 -2
  177. package/dist/services/triggers/trigger-input.schemas.js +2 -2
  178. package/dist/services/triggers/triggers-output.schemas.d.ts +38 -38
  179. package/dist/services/triggers/triggers.js +2 -2
  180. package/dist/services/vip/vip.js +1 -1
  181. package/dist/services/vip/vip.schemas.js +1 -1
  182. package/dist/services/zipper/zipper.js +1 -1
  183. package/dist/services/zipper/zipper.schemas.js +1 -1
  184. package/dist/shared/error-details/alerts.js +1 -1
  185. package/dist/shared/error-details/assistant.js +1 -1
  186. package/dist/shared/error-details/auth.js +1 -1
  187. package/dist/shared/error-details/claims.js +1 -1
  188. package/dist/shared/error-details/internal-transfer.js +1 -1
  189. package/dist/shared/error-details/ledger.js +1 -1
  190. package/dist/shared/error-details/market-overview.js +1 -1
  191. package/dist/shared/error-details/notifications.js +1 -1
  192. package/dist/shared/error-details/orders.js +1 -1
  193. package/dist/shared/error-details/profile.js +1 -1
  194. package/dist/shared/error-details/rate-limit.js +1 -1
  195. package/dist/shared/error-details/withdraw.js +1 -1
  196. package/dist/shared/rate-limit.schemas.js +1 -1
  197. package/dist/utils/cookies.js +1 -1
  198. package/dist/wired-services.js +18 -18
  199. package/package.json +1 -1
@@ -1,9 +1,9 @@
1
1
  import { AccountCode, TransferCode } from "../../ledger/v1/catalog_pb.js";
2
2
  import { U128 } from "../../polyester/type/v1/u128_pb.js";
3
3
  import { BatchReplaceAdmissionStatus, ErrorCode, FeeAsset, ModifyActionTaken, OrderType, SelfTradePreventionMode, Side, StopLossPolicy, TakeProfitPolicy, TimeInForce, TrailingStopPolicy } from "./orders_pb.js";
4
+ import { Message } from "@bufbuild/protobuf";
4
5
  import { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
5
6
  import { Timestamp } from "@bufbuild/protobuf/wkt";
6
- import { Message } from "@bufbuild/protobuf";
7
7
  declare namespace orders_read_pb_d_exports {
8
8
  export { AttachedRisk, AttachedRiskLegState, AttachedRiskLegStateSchema, AttachedRiskLegState_Status, AttachedRiskLegState_StatusSchema, AttachedRiskSchema, AttachedRiskStopLoss, AttachedRiskStopLossSchema, AttachedRiskTakeProfit, AttachedRiskTakeProfitSchema, AttachedRiskTrailingStop, AttachedRiskTrailingStopSchema, BatchReplacePhase, BatchReplacePhaseSchema, BatchReplaceStatusItem, BatchReplaceStatusItemSchema, CancelReason, CancelReasonSchema, GetBatchReplaceStatusRequest, GetBatchReplaceStatusRequestSchema, GetBatchReplaceStatusResponse, GetBatchReplaceStatusResponseSchema, GetOpenOrdersRequest, GetOpenOrdersRequestSchema, GetOpenOrdersResponse, GetOpenOrdersResponseSchema, GetOrderHistoryRequest, GetOrderHistoryRequestSchema, GetOrderHistoryResponse, GetOrderHistoryResponseSchema, GetOrderRequest, GetOrderRequestSchema, GetOrderResponse, GetOrderResponseSchema, GetUserTradesRequest, GetUserTradesRequestSchema, GetUserTradesResponse, GetUserTradesResponseSchema, Order, OrderFeeTotal, OrderFeeTotalSchema, OrderLineage, OrderLineageSchema, OrderOrigin, OrderOriginSchema, OrderOriginScope, OrderOriginScopeSchema, OrderSchema, OrderStatus, OrderStatusSchema, OrderTransfer, OrderTransferSchema, OrderTriggerType, OrderTriggerTypeSchema, OrdersReadService, UserTrade, UserTradeBatch, UserTradeBatchSchema, UserTradeSchema, file_orders_v1_orders_read };
9
9
  }
@@ -518,7 +518,15 @@ type Order = Message<"orders.v1.Order"> & {
518
518
  */
519
519
  feeTotal?: OrderFeeTotal | undefined;
520
520
  /**
521
- * Limit price in quote units scaled by 1e9. Zero for MARKET orders.
521
+ * Price in quote units scaled by 1e9. For a LIMIT order, its limit price.
522
+ * For a MARKET order, whatever placed it, its protection price: the worst
523
+ * price it may fill at, a BUY at or below it and a SELL at or above it. It
524
+ * is the order's reference price moved by its maximum slippage, or by the
525
+ * pair's default market slippage for its side (200 basis points if none is
526
+ * configured), on the pair's tick grid. A stop-loss's, take-profit's or
527
+ * trailing stop's market order takes the price that fired it as its
528
+ * reference; a buy stop's is never above the protection price at its
529
+ * trigger price.
522
530
  *
523
531
  * @generated from field: int64 price_ticks = 15;
524
532
  */
@@ -574,8 +582,10 @@ type Order = Message<"orders.v1.Order"> & {
574
582
  */
575
583
  marketClientRefPriceTicks: bigint;
576
584
  /**
577
- * Non-negative MARKET maximum absolute price delta in Q9 execution-price ticks
578
- * (1 tick = 1e-9 quote units). Zero means no absolute cap is configured.
585
+ * MARKET maximum absolute price delta the order carries, in Q9
586
+ * execution-price ticks (1 tick = 1e-9 quote units). Positive when the order
587
+ * set this cap; zero when it did not, for example because it set
588
+ * market_max_slippage_bps instead.
579
589
  *
580
590
  * @generated from field: int64 market_max_slippage_ticks = 24;
581
591
  */
@@ -842,7 +852,8 @@ type GetOpenOrdersRequest = Message<"orders.v1.GetOpenOrdersRequest"> & {
842
852
  */
843
853
  subaccountId?: bigint | undefined;
844
854
  /**
845
- * Optional filter by symbol_id values. Empty means all symbols.
855
+ * Optional filter by symbol_id values: at most 100 distinct positive IDs.
856
+ * Empty means all symbols.
846
857
  *
847
858
  * @generated from field: repeated uint32 symbol_id = 2;
848
859
  */
@@ -862,7 +873,7 @@ type GetOpenOrdersRequest = Message<"orders.v1.GetOpenOrdersRequest"> & {
862
873
  /**
863
874
  * Opaque keyset cursor from a previous response. The cursor is exclusive and
864
875
  * bound to the authenticated account, sub-account scope, filters, and sort
865
- * order.
876
+ * order. At most 512 characters.
866
877
  *
867
878
  * @generated from field: string page_token = 11;
868
879
  */
@@ -931,7 +942,8 @@ type GetOrderHistoryRequest = Message<"orders.v1.GetOrderHistoryRequest"> & {
931
942
  */
932
943
  subaccountId?: bigint | undefined;
933
944
  /**
934
- * Optional filter by symbol_id values. Empty means all symbols.
945
+ * Optional filter by symbol_id values: at most 100 distinct positive IDs.
946
+ * Empty means all symbols.
935
947
  *
936
948
  * @generated from field: repeated uint32 symbol_id = 2;
937
949
  */
@@ -956,7 +968,8 @@ type GetOrderHistoryRequest = Message<"orders.v1.GetOrderHistoryRequest"> & {
956
968
  startTsNs?: bigint | undefined;
957
969
  /**
958
970
  * Inclusive end of the time range, in nanoseconds since epoch (UTC).
959
- * Omit for no upper bound; an explicit zero returns an empty page.
971
+ * Omit for no upper bound; an explicit zero returns an empty page. Any
972
+ * other value must not be earlier than start_ts_ns when both are set.
960
973
  *
961
974
  * @generated from field: optional uint64 end_ts_ns = 11;
962
975
  */
@@ -970,7 +983,7 @@ type GetOrderHistoryRequest = Message<"orders.v1.GetOrderHistoryRequest"> & {
970
983
  /**
971
984
  * Opaque keyset cursor from a previous response. The cursor is exclusive and
972
985
  * bound to the authenticated account, sub-account scope, filters, time range,
973
- * and sort order.
986
+ * and sort order. At most 512 characters.
974
987
  *
975
988
  * @generated from field: string page_token = 13;
976
989
  */
@@ -1041,7 +1054,7 @@ type GetUserTradesRequest = Message<"orders.v1.GetUserTradesRequest"> & {
1041
1054
  */
1042
1055
  subaccountId?: bigint | undefined;
1043
1056
  /**
1044
- * Optional filter by symbol_id.
1057
+ * Optional filter by symbol_id. Required with after_match_id.
1045
1058
  *
1046
1059
  * @generated from field: uint32 symbol_id = 2;
1047
1060
  */
@@ -1060,7 +1073,8 @@ type GetUserTradesRequest = Message<"orders.v1.GetUserTradesRequest"> & {
1060
1073
  startTsNs?: bigint | undefined;
1061
1074
  /**
1062
1075
  * Inclusive end of the time range, in nanoseconds since epoch (UTC).
1063
- * Omit for no upper bound; an explicit zero returns an empty page.
1076
+ * Omit for no upper bound; an explicit zero returns an empty page. Any
1077
+ * other value must not be earlier than start_ts_ns when both are set.
1064
1078
  *
1065
1079
  * @generated from field: optional uint64 end_ts_ns = 11;
1066
1080
  */
@@ -1074,7 +1088,7 @@ type GetUserTradesRequest = Message<"orders.v1.GetUserTradesRequest"> & {
1074
1088
  /**
1075
1089
  * Opaque keyset cursor from a previous response. The cursor is exclusive and
1076
1090
  * bound to the authenticated account, sub-account scope, filters, time range,
1077
- * and sort order.
1091
+ * and sort order. At most 512 characters.
1078
1092
  *
1079
1093
  * @generated from field: string page_token = 13;
1080
1094
  */
@@ -1083,6 +1097,7 @@ type GetUserTradesRequest = Message<"orders.v1.GetUserTradesRequest"> & {
1083
1097
  * Return only durable fills whose per-symbol match ID is greater than this
1084
1098
  * value. Subscribe to the execution WebSocket before calling this method and
1085
1099
  * de-duplicate overlapping results by (symbol_id, match_id, order_id).
1100
+ * Must be positive and requires symbol_id, because match IDs are per symbol.
1086
1101
  *
1087
1102
  * @generated from field: optional uint64 after_match_id = 14;
1088
1103
  */
@@ -1114,7 +1129,7 @@ type GetUserTradesRequest = Message<"orders.v1.GetUserTradesRequest"> & {
1114
1129
  value?: undefined;
1115
1130
  };
1116
1131
  /**
1117
- * Inclusive generation ceiling; requires lineage_id.
1132
+ * Positive inclusive generation ceiling; requires lineage_id.
1118
1133
  * Does not freeze an actively filling generation.
1119
1134
  *
1120
1135
  * @generated from field: optional uint32 through_generation = 17;
@@ -1194,6 +1209,8 @@ type GetOrderRequest = Message<"orders.v1.GetOrderRequest"> & {
1194
1209
  } | {
1195
1210
  /**
1196
1211
  * Client order ID. When provided, server resolves latest matching order for the account.
1212
+ * 1 to 36 ASCII characters using letters, digits, period, underscore,
1213
+ * colon, slash, or hyphen.
1197
1214
  *
1198
1215
  * @generated from field: string client_order_id = 3;
1199
1216
  */
@@ -1231,6 +1248,7 @@ type GetOrderRequest = Message<"orders.v1.GetOrderRequest"> & {
1231
1248
  /**
1232
1249
  * Execution cursor from this order's previous response. Use order_id rather
1233
1250
  * than a reused client_order_id to keep the requested generation stable.
1251
+ * At most 512 characters.
1234
1252
  *
1235
1253
  * @generated from field: string page_token = 14;
1236
1254
  */
@@ -1 +1 @@
1
- {"version":3,"file":"orders_read_pb.d.ts","names":[],"sources":["../../../../src/gen/orders/v1/orders_read_pb.ts"],"mappings":";;;;;;;;;;;;cAoBa,4BAA4B;;;;;;;;;;;;KAc7B,cAAc;;;;;;EAMxB,OAAO;;;;;;;EAQP,aAAa;;;;;;EAOb;;;;;;EAOA;;;;;;EAOA;;;;;;cAOW,mBAAmB,WAAW;;;;;;KAQ/B,uBAAuB;;;;;;EAMjC,QAAQ;;;;;;EAOR;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;cAOW,4BAA4B,WAAW;;;;;;aAQxC;;;;;;EAMV;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;cAMW,mCAAmC,QAAQ;;;;;;KA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;;;;cAMW,oBAAoB,QAAQ;;;;;;aAQ7B;;;;;;EAMV;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;cAMW,yBAAyB,QAAQ;;;;;;aAQlC;;;;;;EAMV;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;cAMW,wBAAwB,QAAQ;;;;;;aAQjC;;;;;;EAMV;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;cAMW,wBAAwB,QAAQ;;;;cAMhC,mBAAmB;;;;;;;;;;EAU9B;IACE;IACA,cAAc;IACd,eAAe;;;;;;;;;;;EAWjB;IACE;IACA,cAAc;IACd,eAAe;;;;;;;;;EASjB;IACE;IACA,cAAc;IACd,eAAe;;;;;;;;;EASjB;IACE;IACA,cAAc;IACd,eAAe;;;;;;;;;EASjB;IACE;IACA,cAAc;IACd,eAAe"}
@@ -1 +1 @@
1
- {"version":3,"file":"orders_read_pb.js","names":[],"sources":["../../../../src/gen/orders/v1/orders_read_pb.ts"],"sourcesContent":["// @generated by protoc-gen-es v2.13.0 with parameter \"target=ts,import_extension=js\"\n// @generated from file orders/v1/orders_read.proto (package orders.v1, syntax proto3)\n/* eslint-disable */\n\nimport type { GenEnum, GenFile, GenMessage, GenService } from \"@bufbuild/protobuf/codegenv2\";\nimport { enumDesc, fileDesc, messageDesc, serviceDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport type { Timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_google_protobuf_timestamp } from \"@bufbuild/protobuf/wkt\";\nimport type { AccountCode, TransferCode } from \"../../ledger/v1/catalog_pb.js\";\nimport { file_ledger_v1_catalog } from \"../../ledger/v1/catalog_pb.js\";\nimport type { BatchReplaceAdmissionStatus, ErrorCode, FeeAsset, ModifyActionTaken, OrderType, SelfTradePreventionMode, Side, StopLossPolicy, TakeProfitPolicy, TimeInForce, TrailingStopPolicy } from \"./orders_pb.js\";\nimport { file_orders_v1_orders } from \"./orders_pb.js\";\nimport { file_polyester_api_options } from \"../../polyester/api/options_pb.js\";\nimport type { U128 } from \"../../polyester/type/v1/u128_pb.js\";\nimport { file_polyester_type_v1_u128 } from \"../../polyester/type/v1/u128_pb.js\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file orders/v1/orders_read.proto.\n */\nexport const file_orders_v1_orders_read: GenFile = /*@__PURE__*/\n fileDesc(\"ChtvcmRlcnMvdjEvb3JkZXJzX3JlYWQucHJvdG8SCW9yZGVycy52MSLdAQoLT3JkZXJPcmlnaW4SLAoFc2NvcGUYASABKA4yGy5vcmRlcnMudjEuT3JkZXJPcmlnaW5TY29wZUIAEjMKDHRyaWdnZXJfdHlwZRgCIAEoDjIbLm9yZGVycy52MS5PcmRlclRyaWdnZXJUeXBlQgASFwoKdHJpZ2dlcl9pZBgDIAEoBkgAiAEBEhwKD3BhcmVudF9vcmRlcl9pZBgEIAEoBkgBiAEBEhEKCWNoaWxkX3NlcRgFIAEoDUINCgtfdHJpZ2dlcl9pZEISChBfcGFyZW50X29yZGVyX2lkIuYCChRBdHRhY2hlZFJpc2tMZWdTdGF0ZRI4CgZzdGF0dXMYASABKA4yJi5vcmRlcnMudjEuQXR0YWNoZWRSaXNrTGVnU3RhdGUuU3RhdHVzQgASEwoLYXJtZWRfdHNfbnMYAiABKAQSFgoOdGVybWluYWxfdHNfbnMYAyABKAQSFwoKdHJpZ2dlcl9pZBgEIAEoBkgAiAEBEhsKDmNoaWxkX29yZGVyX2lkGAUgASgGSAGIAQEijgEKBlN0YXR1cxIWChJTVEFUVVNfVU5TUEVDSUZJRUQQABISCg5OT1RfQ09ORklHVVJFRBABEgsKB0NSRUFURUQQAhIJCgVBUk1FRBADEgsKB1JVTk5JTkcQBBINCglDT01QTEVURUQQBRIMCghDQU5DRUxFRBAGEgoKBkZBSUxFRBAHEgoKBlBBVVNFRBAIQg0KC190cmlnZ2VyX2lkQhEKD19jaGlsZF9vcmRlcl9p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b25zZSIAEkUKCEdldE9yZGVyEhoub3JkZXJzLnYxLkdldE9yZGVyUmVxdWVzdBobLm9yZGVycy52MS5HZXRPcmRlclJlc3BvbnNlIgASbAoVR2V0QmF0Y2hSZXBsYWNlU3RhdHVzEicub3JkZXJzLnYxLkdldEJhdGNoUmVwbGFjZVN0YXR1c1JlcXVlc3QaKC5vcmRlcnMudjEuR2V0QmF0Y2hSZXBsYWNlU3RhdHVzUmVzcG9uc2UiABoAQkBaPmdpdGh1Yi5jb20vRmFicmljLUxhYnMvcG9seWVzdGVyLXNkay1nby9nZW4vb3JkZXJzL3YxO29yZGVyc3YxYgZwcm90bzM=\", [file_google_protobuf_timestamp, file_ledger_v1_catalog, file_orders_v1_orders, file_polyester_api_options, file_polyester_type_v1_u128]);\n\n/**\n * OrderOrigin explains why an order exists and where it came from.\n *\n * Population rules:\n * - direct/manual orders: scope=DIRECT; trigger fields unset/unspecified.\n * - attached children: scope=ATTACHED_RISK; parent_order_id is set.\n * - standalone trigger children: scope=STANDALONE_TRIGGER.\n * - child_seq is set for multi-child strategies (for example TWAP/LADDER).\n *\n * @generated from message orders.v1.OrderOrigin\n */\nexport type OrderOrigin = Message<\"orders.v1.OrderOrigin\"> & {\n /**\n * Broad class describing how the order was created.\n *\n * @generated from field: orders.v1.OrderOriginScope scope = 1;\n */\n scope: OrderOriginScope;\n\n /**\n * Trigger strategy that created this order. Not set for direct orders; JSON\n * and REST responses then omit it.\n *\n * @generated from field: orders.v1.OrderTriggerType trigger_type = 2;\n */\n triggerType: OrderTriggerType;\n\n /**\n * Trigger identifier when the order was created by a trigger.\n *\n * @generated from field: optional fixed64 trigger_id = 3;\n */\n triggerId?: bigint | undefined;\n\n /**\n * Parent order ID for attached-risk child orders.\n *\n * @generated from field: optional fixed64 parent_order_id = 4;\n */\n parentOrderId?: bigint | undefined;\n\n /**\n * Child sequence number for multi-child trigger strategies. Zero when not applicable.\n *\n * @generated from field: uint32 child_seq = 5;\n */\n childSeq: number;\n};\n\n/**\n * Describes the message orders.v1.OrderOrigin.\n * Use `create(OrderOriginSchema)` to create a new message.\n */\nexport const OrderOriginSchema: GenMessage<OrderOrigin> = /*@__PURE__*/\n messageDesc(file_orders_v1_orders_read, 0);\n\n/**\n * AttachedRiskLegState provides runtime linkage/state for one attached-risk leg.\n *\n * @generated from message orders.v1.AttachedRiskLegState\n */\nexport type AttachedRiskLegState = Message<\"orders.v1.AttachedRiskLegState\"> & {\n /**\n * Current runtime lifecycle status for this attached-risk leg.\n *\n * @generated from field: orders.v1.AttachedRiskLegState.Status status = 1;\n */\n status: AttachedRiskLegState_Status;\n\n /**\n * Time the leg was armed, in nanoseconds since epoch (UTC). Zero if not armed.\n *\n * @generated from field: uint64 armed_ts_ns = 2;\n */\n armedTsNs: bigint;\n\n /**\n * Time the leg reached a terminal state, in nanoseconds since epoch (UTC). Zero if not terminal.\n *\n * @generated from field: uint64 terminal_ts_ns = 3;\n */\n terminalTsNs: bigint;\n\n /**\n * Trigger identifier for this attached-risk leg.\n *\n * @generated from field: optional fixed64 trigger_id = 4;\n */\n triggerId?: bigint | undefined;\n\n /**\n * Child order ID created by this leg after it fires.\n *\n * @generated from field: optional fixed64 child_order_id = 5;\n */\n childOrderId?: bigint | undefined;\n};\n\n/**\n * Describes the message orders.v1.AttachedRiskLegState.\n * Use `create(AttachedRiskLegStateSchema)` to create a new message.\n */\nexport const AttachedRiskLegStateSchema: GenMessage<AttachedRiskLegState> = /*@__PURE__*/\n messageDesc(file_orders_v1_orders_read, 1);\n\n/**\n * Runtime lifecycle for an attached-risk trigger leg.\n *\n * @generated from enum orders.v1.AttachedRiskLegState.Status\n */\nexport enum AttachedRiskLegState_Status {\n /**\n * Attached-risk leg status was not provided.\n *\n * @generated from enum value: STATUS_UNSPECIFIED = 0;\n */\n STATUS_UNSPECIFIED = 0,\n\n /**\n * No leg configured on the parent order.\n *\n * @generated from enum value: NOT_CONFIGURED = 1;\n */\n NOT_CONFIGURED = 1,\n\n /**\n * Trigger persisted, waiting for admission/arming.\n *\n * @generated from enum value: CREATED = 2;\n */\n CREATED = 2,\n\n /**\n * Trigger is actively armed.\n *\n * @generated from enum value: ARMED = 3;\n */\n ARMED = 3,\n\n /**\n * Trigger is executing runtime work (for example multi-step workflows).\n *\n * @generated from enum value: RUNNING = 4;\n */\n RUNNING = 4,\n\n /**\n * Trigger finished successfully.\n *\n * @generated from enum value: COMPLETED = 5;\n */\n COMPLETED = 5,\n\n /**\n * Trigger was canceled.\n *\n * @generated from enum value: CANCELED = 6;\n */\n CANCELED = 6,\n\n /**\n * Trigger failed.\n *\n * @generated from enum value: FAILED = 7;\n */\n FAILED = 7,\n\n /**\n * Trigger is paused.\n *\n * @generated from enum value: PAUSED = 8;\n */\n PAUSED = 8,\n}\n\n/**\n * Describes the enum orders.v1.AttachedRiskLegState.Status.\n */\nexport const AttachedRiskLegState_StatusSchema: GenEnum<AttachedRiskLegState_Status> = /*@__PURE__*/\n enumDesc(file_orders_v1_orders_read, 1, 0);\n\n/**\n * AttachedRiskTakeProfit carries both take-profit config and runtime state.\n *\n * @generated from message orders.v1.AttachedRiskTakeProfit\n */\nexport type AttachedRiskTakeProfit = Message<\"orders.v1.AttachedRiskTakeProfit\"> & {\n /**\n * Take-profit policy configured on the parent order.\n *\n * @generated from field: orders.v1.TakeProfitPolicy policy = 1;\n */\n policy?: TakeProfitPolicy | undefined;\n\n /**\n * Runtime state for the take-profit leg.\n *\n * @generated from field: orders.v1.AttachedRiskLegState state = 2;\n */\n state?: AttachedRiskLegState | undefined;\n};\n\n/**\n * Describes the message orders.v1.AttachedRiskTakeProfit.\n * Use `create(AttachedRiskTakeProfitSchema)` to create a new message.\n */\nexport const AttachedRiskTakeProfitSchema: GenMessage<AttachedRiskTakeProfit> = /*@__PURE__*/\n messageDesc(file_orders_v1_orders_read, 2);\n\n/**\n * AttachedRiskStopLoss carries both stop-loss config and runtime state.\n *\n * @generated from message orders.v1.AttachedRiskStopLoss\n */\nexport type AttachedRiskStopLoss = Message<\"orders.v1.AttachedRiskStopLoss\"> & {\n /**\n * Stop-loss policy configured on the parent order.\n *\n * @generated from field: orders.v1.StopLossPolicy policy = 1;\n */\n policy?: StopLossPolicy | undefined;\n\n /**\n * Runtime state for the stop-loss leg.\n *\n * @generated from field: orders.v1.AttachedRiskLegState state = 2;\n */\n state?: AttachedRiskLegState | undefined;\n};\n\n/**\n * Describes the message orders.v1.AttachedRiskStopLoss.\n * Use `create(AttachedRiskStopLossSchema)` to create a new message.\n */\nexport const AttachedRiskStopLossSchema: GenMessage<AttachedRiskStopLoss> = /*@__PURE__*/\n messageDesc(file_orders_v1_orders_read, 3);\n\n/**\n * AttachedRiskTrailingStop carries both trailing-stop config and runtime state.\n *\n * @generated from message orders.v1.AttachedRiskTrailingStop\n */\nexport type AttachedRiskTrailingStop = Message<\"orders.v1.AttachedRiskTrailingStop\"> & {\n /**\n * Trailing-stop policy configured on the parent order.\n *\n * @generated from field: orders.v1.TrailingStopPolicy policy = 1;\n */\n policy?: TrailingStopPolicy | undefined;\n\n /**\n * Runtime state for the trailing-stop leg.\n *\n * @generated from field: orders.v1.AttachedRiskLegState state = 2;\n */\n state?: AttachedRiskLegState | undefined;\n};\n\n/**\n * Describes the message orders.v1.AttachedRiskTrailingStop.\n * Use `create(AttachedRiskTrailingStopSchema)` to create a new message.\n */\nexport const AttachedRiskTrailingStopSchema: GenMessage<AttachedRiskTrailingStop> = /*@__PURE__*/\n messageDesc(file_orders_v1_orders_read, 4);\n\n/**\n * AttachedRisk is the single parent-side view for attached-risk configuration\n * and runtime status.\n *\n * @generated from message orders.v1.AttachedRisk\n */\nexport type AttachedRisk = Message<\"orders.v1.AttachedRisk\"> & {\n /**\n * Take-profit leg, if configured or if state exists.\n *\n * @generated from field: orders.v1.AttachedRiskTakeProfit take_profit = 1;\n */\n takeProfit?: AttachedRiskTakeProfit | undefined;\n\n /**\n * Stop-loss leg, if configured or if state exists.\n *\n * @generated from field: orders.v1.AttachedRiskStopLoss stop_loss = 2;\n */\n stopLoss?: AttachedRiskStopLoss | undefined;\n\n /**\n * Trailing-stop leg, if configured or if state exists.\n *\n * @generated from field: orders.v1.AttachedRiskTrailingStop trailing_stop = 3;\n */\n trailingStop?: AttachedRiskTrailingStop | undefined;\n\n /**\n * True while the parent's legs were placed with oco and both the\n * take-profit and a stop leg (stop-loss or trailing stop) are present.\n * False once either leg is removed. A leg that ended, including one\n * canceled with TRIGGER_CANCEL_REASON_OCO, stays present.\n *\n * @generated from field: bool oco = 4;\n */\n oco: boolean;\n};\n\n/**\n * Describes the message orders.v1.AttachedRisk.\n * Use `create(AttachedRiskSchema)` to create a new message.\n */\nexport const AttachedRiskSchema: GenMessage<AttachedRisk> = /*@__PURE__*/\n messageDesc(file_orders_v1_orders_read, 5);\n\n/**\n * OrderLineage identifies a logical order and one of its accepted generations.\n *\n * @generated from message orders.v1.OrderLineage\n */\nexport type OrderLineage = Message<\"orders.v1.OrderLineage\"> & {\n /**\n * Stable logical-order ID: the first generation's public order ID.\n * Replace preserves this ID; an independent new order starts a new lineage.\n *\n * @generated from field: fixed64 id = 1;\n */\n id: bigint;\n\n /**\n * One-based replacement generation, distinct from per-order state version.\n *\n * @generated from field: uint32 generation = 2;\n */\n generation: number;\n};\n\n/**\n * Describes the message orders.v1.OrderLineage.\n * Use `create(OrderLineageSchema)` to create a new message.\n */\nexport const OrderLineageSchema: GenMessage<OrderLineage> = /*@__PURE__*/\n messageDesc(file_orders_v1_orders_read, 6);\n\n/**\n * OrderFeeTotal is the total fee of an order's fills, net of rebates, as\n * settled. A fill's fee is recorded shortly after the fill executes, so the\n * total can trail the fills the order shows: qty_scaled says which fills it\n * covers.\n *\n * @generated from message orders.v1.OrderFeeTotal\n */\nexport type OrderFeeTotal = Message<\"orders.v1.OrderFeeTotal\"> & {\n /**\n * Net fee magnitude in fixed 18-decimal units of the order's fee_asset:\n * the fees of the covered fills less their rebates. Zero when they charged\n * no fee.\n *\n * @generated from field: polyester.type.v1.U128 amount_e18 = 1;\n */\n amountE18?: U128 | undefined;\n\n /**\n * True when the covered fills' rebates exceed their fees, so the amount\n * was credited to the account rather than charged.\n *\n * @generated from field: bool is_rebate = 2;\n */\n isRebate: boolean;\n\n /**\n * Executed quantity of the fills the total covers, scaled by the pair's\n * base_quantity_scale from GetSpotConfig. Equal to the order's\n * cum_qty_scaled once every fill's fee is recorded. While a fill is still\n * being recorded the two differ, and a later read of the order includes\n * it.\n *\n * @generated from field: int64 qty_scaled = 3;\n */\n qtyScaled: bigint;\n};\n\n/**\n * Describes the message orders.v1.OrderFeeTotal.\n * Use `create(OrderFeeTotalSchema)` to create a new message.\n */\nexport const OrderFeeTotalSchema: GenMessage<OrderFeeTotal> = /*@__PURE__*/\n messageDesc(file_orders_v1_orders_read, 7);\n\n/**\n * Order is the Connect-facing order view with compact binary fields.\n *\n * @generated from message orders.v1.Order\n */\nexport type Order = Message<\"orders.v1.Order\"> & {\n /**\n * Public order identifier as fixed64.\n *\n * @generated from field: fixed64 order_id = 1;\n */\n orderId: bigint;\n\n /**\n * Trading symbol numeric identifier.\n *\n * @generated from field: uint32 symbol_id = 3;\n */\n symbolId: number;\n\n /**\n * Client-provided, account-scoped identifier for correlation, lookup, and\n * cancellation. Empty when none was supplied.\n *\n * @generated from field: string client_order_id = 4;\n */\n clientOrderId: string;\n\n /**\n * Order side.\n *\n * @generated from field: orders.v1.Side side = 5;\n */\n side: Side;\n\n /**\n * Current order lifecycle status.\n *\n * @generated from field: orders.v1.OrderStatus status = 6;\n */\n status: OrderStatus;\n\n /**\n * Order type.\n *\n * @generated from field: orders.v1.OrderType order_type = 7;\n */\n orderType: OrderType;\n\n /**\n * Time-in-force policy.\n *\n * @generated from field: orders.v1.TimeInForce time_in_force = 8;\n */\n timeInForce: TimeInForce;\n\n /**\n * Self-trade prevention mode.\n *\n * @generated from field: orders.v1.SelfTradePreventionMode self_trade_prevention_mode = 9;\n */\n selfTradePreventionMode: SelfTradePreventionMode;\n\n /**\n * Fee asset selected for fills.\n *\n * @generated from field: orders.v1.FeeAsset fee_asset = 10;\n */\n feeAsset: FeeAsset;\n\n /**\n * True if the order was submitted as post-only (maker-only).\n *\n * @generated from field: bool post_only = 11;\n */\n postOnly: boolean;\n\n /**\n * Current accepted total order quantity, updated by successful modifies,\n * scaled by the pair's base_quantity_scale from GetSpotConfig for symbol_id.\n *\n * @generated from field: int64 orig_qty_scaled = 12;\n */\n origQtyScaled: bigint;\n\n /**\n * Cumulative filled quantity across the lineage through this generation,\n * scaled by the pair's base_quantity_scale from GetSpotConfig for symbol_id.\n *\n * @generated from field: int64 cum_qty_scaled = 13;\n */\n cumQtyScaled: bigint;\n\n /**\n * Cumulative filled base quantity inherited from predecessors when this\n * replacement was accepted, scaled by the pair's base_quantity_scale from\n * GetSpotConfig for symbol_id. Zero for the original order and immutable\n * within a generation. cum_qty_scaled minus this value is the quantity\n * executed by this generation, not the quantity new to a client session.\n *\n * @generated from field: int64 inherited_cum_qty_scaled = 33;\n */\n inheritedCumQtyScaled: bigint;\n\n /**\n * Remaining working quantity scaled by the pair's base_quantity_scale from\n * GetSpotConfig for symbol_id. Zero for terminal orders.\n *\n * @generated from field: int64 leaves_qty_scaled = 20;\n */\n leavesQtyScaled: bigint;\n\n /**\n * Iceberg display quantity the order was placed with, scaled by the pair's\n * base_quantity_scale from GetSpotConfig for symbol_id: the most of the\n * order the order book shows at once. Zero for a plain order. A replace\n * keeps it while the new quantity is above it; a replace to the display or\n * below it is a plain order, zero here.\n *\n * @generated from field: int64 display_qty_scaled = 39;\n */\n displayQtyScaled: bigint;\n\n /**\n * Part of leaves_qty_scaled an iceberg order keeps hidden from the order\n * book, scaled by the pair's base_quantity_scale from GetSpotConfig for\n * symbol_id. The order book shows leaves_qty_scaled minus this quantity.\n * Zero for a plain order and for terminal orders.\n *\n * @generated from field: int64 hidden_qty_scaled = 40;\n */\n hiddenQtyScaled: bigint;\n\n /**\n * Average execution price across the lineage through this generation,\n * in quote units scaled by 1e9, rounded down. Zero if no fills.\n * avg_price_e18 carries the exact average.\n *\n * @generated from field: int64 avg_price_ticks = 14;\n */\n avgPriceTicks: bigint;\n\n /**\n * Average execution price across the lineage through this generation, in\n * quote units scaled by 1e18: the exact executed quote amount divided by\n * cum_qty_scaled, rounded half to even at the 18th decimal. Unset if no\n * fills.\n *\n * @generated from field: polyester.type.v1.U128 avg_price_e18 = 36;\n */\n avgPriceE18?: U128 | undefined;\n\n /**\n * Exact quote amount of the fills across the lineage through this\n * generation, before fees: the sum over the fills of their quantity,\n * scaled as cum_qty_scaled, times their price in quote units scaled by\n * 1e9. It is in quote units scaled by 10^(9 + base_quantity_scale), with\n * the pair's base_quantity_scale from GetSpotConfig for symbol_id; REST\n * shows it in quote units. avg_price_e18 is this amount over\n * cum_qty_scaled. Unset if no fills. A fill settles its quote rounded down\n * to 18 decimal places, which is this amount exactly unless\n * base_quantity_scale is above 9.\n *\n * For a BUY sized by a quote amount (submitted_max_quote_debit_scaled),\n * the quote the order used is this amount plus fee_total's amount_e18\n * when fee_asset is QUOTE, or minus it when fee_total's is_rebate is true,\n * since a rebate is credited; it is this amount alone when fee_asset is\n * BASE, whose fee is taken from the base received. What it left unspent is\n * submitted_max_quote_debit_scaled less the quote it used.\n *\n * For a SELL sized by a quote proceeds target\n * (submitted_quote_proceeds_scaled), this amount is the proceeds it\n * received before fees, never above the target; the quote it was credited\n * is this amount less fee_total's amount_e18, or plus it when fee_total's\n * is_rebate is true. What it did not receive is\n * submitted_quote_proceeds_scaled less this amount.\n *\n * @generated from field: polyester.type.v1.U128 cum_notional = 37;\n */\n cumNotional?: U128 | undefined;\n\n /**\n * Total fee of the fills across the lineage through this generation, net\n * of rebates, in the order's fee asset. Order history reads and\n * single-order reads that include execution history (the default) carry\n * it. It can trail the order's fills: its quantity shows which fills it\n * covers. Open-order reads, single-order reads without execution history\n * and private stream order updates leave it unset.\n *\n * @generated from field: orders.v1.OrderFeeTotal fee_total = 38;\n */\n feeTotal?: OrderFeeTotal | undefined;\n\n /**\n * Limit price in quote units scaled by 1e9. Zero for MARKET orders.\n *\n * @generated from field: int64 price_ticks = 15;\n */\n priceTicks: bigint;\n\n /**\n * Creation timestamp in nanoseconds since epoch (UTC).\n *\n * @generated from field: uint64 created_ts_ns = 16;\n */\n createdTsNs: bigint;\n\n /**\n * Terminal timestamp in nanoseconds since epoch (UTC). Zero for open orders.\n *\n * @generated from field: uint64 terminal_ts_ns = 17;\n */\n terminalTsNs: bigint;\n\n /**\n * For a REJECTED order, why it was refused: the same error code the Orders\n * API returns for the same refusal. Not set for every other status; JSON and\n * REST responses then omit it.\n *\n * @generated from field: orders.v1.ErrorCode reject_reason = 34;\n */\n rejectReason: ErrorCode;\n\n /**\n * For a CANCELED order, why it ended. Not set for every other status; JSON\n * and REST responses then omit it.\n *\n * @generated from field: orders.v1.CancelReason cancel_reason = 35;\n */\n cancelReason: CancelReason;\n\n /**\n * Attached risk controls + runtime state on the parent order.\n * Empty when no attached risk exists. Order reads include it only when the\n * request asks for it (include_attached_risk, include_attached_risk_state):\n * an omission on request, never a removal. The private WebSocket always\n * carries it in full, as a read asking for both does.\n *\n * @generated from field: orders.v1.AttachedRisk attached_risk = 21;\n */\n attachedRisk?: AttachedRisk | undefined;\n\n /**\n * Runtime lineage metadata (why the order exists and what generated it).\n *\n * @generated from field: orders.v1.OrderOrigin origin = 22;\n */\n origin?: OrderOrigin | undefined;\n\n /**\n * Optional client-side reference price used for MARKET slippage protection,\n * in quote units scaled by 1e9.\n *\n * @generated from field: int64 market_client_ref_price_ticks = 23;\n */\n marketClientRefPriceTicks: bigint;\n\n /**\n * Non-negative MARKET maximum absolute price delta in Q9 execution-price ticks\n * (1 tick = 1e-9 quote units). Zero means no absolute cap is configured.\n *\n * @generated from field: int64 market_max_slippage_ticks = 24;\n */\n marketMaxSlippageTicks: bigint;\n\n /**\n * Optional MARKET max slippage in basis points (1 bp = 0.01%).\n *\n * @generated from field: int32 market_max_slippage_bps = 25;\n */\n marketMaxSlippageBps: number;\n\n /**\n * Per-order state version: 0 while the order is accepted but not yet on\n * the book (status PENDING), then 1 from its first book state and higher\n * for every later published execution-state change. Higher values identify\n * newer execution state. Fee totals and requested enrichments are not covered\n * by this version and may differ between responses with the same version.\n *\n * @generated from field: uint32 version = 26;\n */\n version: number;\n\n /**\n * Batch-replace identity that admitted this order, retained after it ends.\n * Also set for batch-replaced trigger-generated orders. Zero when this order\n * was not admitted by a batch replacement; a later batch replacing this order\n * does not change its admission identity.\n *\n * @generated from field: fixed64 batch_request_id = 27;\n */\n batchRequestId: bigint;\n\n /**\n * Submitted hard all-in quote debit limit, scaled by the pair's\n * quote_quantity_scale from GetSpotConfig. Present only when that sizing\n * method was submitted.\n *\n * @generated from field: optional int64 submitted_max_quote_debit_scaled = 28;\n */\n submittedMaxQuoteDebitScaled?: bigint | undefined;\n\n /**\n * Submitted quote proceeds target, scaled by the pair's\n * quote_quantity_scale from GetSpotConfig. Present only when that sizing\n * method was submitted.\n *\n * @generated from field: optional int64 submitted_quote_proceeds_scaled = 41;\n */\n submittedQuoteProceedsScaled?: bigint | undefined;\n\n /**\n * Logical-order identity and requested generation. Always populated by order reads.\n *\n * @generated from field: orders.v1.OrderLineage lineage = 31;\n */\n lineage?: OrderLineage | undefined;\n\n /**\n * Exact UTC expiry time for GTD orders, within the supported signed\n * Unix-nanosecond range from 1677-09-21T00:12:43.145224193Z through\n * 2262-04-11T23:47:16.854775807Z. Omitted for all other time-in-force policies.\n * The order cannot execute when the current time equals this value.\n *\n * @generated from field: google.protobuf.Timestamp expire_at = 32;\n */\n expireAt?: Timestamp | undefined;\n};\n\n/**\n * Describes the message orders.v1.Order.\n * Use `create(OrderSchema)` to create a new message.\n */\nexport const OrderSchema: GenMessage<Order> = /*@__PURE__*/\n messageDesc(file_orders_v1_orders_read, 8);\n\n/**\n * UserTrade is the Connect-facing per-user trade fill view.\n *\n * @generated from message orders.v1.UserTrade\n */\nexport type UserTrade = Message<\"orders.v1.UserTrade\"> & {\n /**\n * Trading symbol numeric identifier.\n *\n * @generated from field: uint32 symbol_id = 2;\n */\n symbolId: number;\n\n /**\n * Match identifier (monotonic per symbol).\n *\n * @generated from field: uint64 match_id = 3;\n */\n matchId: bigint;\n\n /**\n * Order identifier as fixed64.\n *\n * @generated from field: fixed64 order_id = 4;\n */\n orderId: bigint;\n\n /**\n * Fill side.\n *\n * @generated from field: orders.v1.Side side = 5;\n */\n side: Side;\n\n /**\n * True if this fill was maker-side.\n *\n * @generated from field: bool is_maker = 6;\n */\n isMaker: boolean;\n\n /**\n * Execution price in quote units scaled by 1e9.\n *\n * @generated from field: int64 price_ticks = 7;\n */\n priceTicks: bigint;\n\n /**\n * Executed quantity scaled by the pair's base_quantity_scale from\n * GetSpotConfig for symbol_id.\n *\n * @generated from field: int64 qty_scaled = 8;\n */\n qtyScaled: bigint;\n\n /**\n * Exact fee magnitude in fixed 18-decimal units of fee_asset.\n *\n * @generated from field: polyester.type.v1.U128 fee_amount_e18 = 9;\n */\n feeAmountE18?: U128 | undefined;\n\n /**\n * Fee asset charged or credited for this fill.\n *\n * @generated from field: orders.v1.FeeAsset fee_asset = 10;\n */\n feeAsset: FeeAsset;\n\n /**\n * Exact referral share magnitude in fixed 18-decimal units of fee_asset.\n *\n * @generated from field: polyester.type.v1.U128 referral_share_amount_e18 = 12;\n */\n referralShareAmountE18?: U128 | undefined;\n\n /**\n * Execution timestamp in nanoseconds since epoch.\n *\n * @generated from field: uint64 ts_ns = 13;\n */\n tsNs: bigint;\n\n /**\n * Whether this fill earned a rebate instead of paying a fee.\n *\n * @generated from field: bool fee_is_rebate = 14;\n */\n feeIsRebate: boolean;\n\n /**\n * Logical-order identity and the generation that executed this fill.\n * Always populated by execution reads; order_id retains its original identity.\n *\n * @generated from field: orders.v1.OrderLineage lineage = 17;\n */\n lineage?: OrderLineage | undefined;\n};\n\n/**\n * Describes the message orders.v1.UserTrade.\n * Use `create(UserTradeSchema)` to create a new message.\n */\nexport const UserTradeSchema: GenMessage<UserTrade> = /*@__PURE__*/\n messageDesc(file_orders_v1_orders_read, 9);\n\n/**\n * UserTradeBatch is one realtime publication on an account's trade stream:\n * every fill queued for the stream when it was sent, at most 256 and at most\n * 64 KiB. Fills of one trading symbol arrive in execution order; fills of\n * different symbols have no defined order relative to each other.\n *\n * (match_id, order_id) identifies a fill; order_id tells apart the two fills\n * of a trade between two orders of the same account. Apply fills in array\n * order and in publication order; a fill whose identity was already received\n * replaces the earlier copy. When the subscription reports that missed\n * publications could not be recovered, reload recent fills over REST.\n *\n * @generated from message orders.v1.UserTradeBatch\n */\nexport type UserTradeBatch = Message<\"orders.v1.UserTradeBatch\"> & {\n /**\n * Fills, oldest first per trading symbol. At least one fill.\n *\n * @generated from field: repeated orders.v1.UserTrade events = 1;\n */\n events: UserTrade[];\n};\n\n/**\n * Describes the message orders.v1.UserTradeBatch.\n * Use `create(UserTradeBatchSchema)` to create a new message.\n */\nexport const UserTradeBatchSchema: GenMessage<UserTradeBatch> = /*@__PURE__*/\n messageDesc(file_orders_v1_orders_read, 10);\n\n/**\n * OrderTransfer is the Connect-facing minimal per-leg transfer view.\n *\n * @generated from message orders.v1.OrderTransfer\n */\nexport type OrderTransfer = Message<\"orders.v1.OrderTransfer\"> & {\n /**\n * Match identifier that linked this transfer to an execution, scoped by symbol_id.\n *\n * @generated from field: uint64 match_id = 1;\n */\n matchId: bigint;\n\n /**\n * Market of the execution; together with match_id identifies its match.\n *\n * @generated from field: uint32 symbol_id = 10;\n */\n symbolId: number;\n\n /**\n * Asset identifier for the transferred asset.\n *\n * @generated from field: uint32 asset_id = 2;\n */\n assetId: number;\n\n /**\n * Transfer amount at fixed 18-decimal ledger scale.\n *\n * @generated from field: polyester.type.v1.U128 amount_e18 = 3;\n */\n amountE18?: U128 | undefined;\n\n /**\n * True when the transfer debits the account; false when it credits the account.\n *\n * @generated from field: bool is_debit = 5;\n */\n isDebit: boolean;\n\n /**\n * Product reason for this transfer leg.\n *\n * @generated from field: ledger.v1.TransferCode transfer_code = 6;\n */\n transferCode: TransferCode;\n\n /**\n * Account bucket affected by this transfer leg.\n *\n * @generated from field: ledger.v1.AccountCode account_code = 7;\n */\n accountCode: AccountCode;\n\n /**\n * Transfer timestamp in nanoseconds since epoch (UTC).\n *\n * @generated from field: uint64 ts_ns = 8;\n */\n tsNs: bigint;\n\n /**\n * Transfer transaction identifier.\n *\n * @generated from field: string tx_id = 9;\n */\n txId: string;\n};\n\n/**\n * Describes the message orders.v1.OrderTransfer.\n * Use `create(OrderTransferSchema)` to create a new message.\n */\nexport const OrderTransferSchema: GenMessage<OrderTransfer> = /*@__PURE__*/\n messageDesc(file_orders_v1_orders_read, 11);\n\n/**\n * GetOpenOrdersRequest lists currently non-terminal orders for an account.\n *\n * @generated from message orders.v1.GetOpenOrdersRequest\n */\nexport type GetOpenOrdersRequest = Message<\"orders.v1.GetOpenOrdersRequest\"> & {\n /**\n * Optional public subaccount ID. When omitted, subaccount-scoped API keys\n * use their bound subaccount; other callers use their authenticated root\n * account.\n *\n * @generated from field: optional fixed64 subaccount_id = 1;\n */\n subaccountId?: bigint | undefined;\n\n /**\n * Optional filter by symbol_id values. Empty means all symbols.\n *\n * @generated from field: repeated uint32 symbol_id = 2;\n */\n symbolId: number[];\n\n /**\n * Optional side filter.\n *\n * @generated from field: orders.v1.Side side = 3;\n */\n side: Side;\n\n /**\n * Max number of orders to return (1-1000, default 100).\n *\n * @generated from field: optional uint32 limit = 10;\n */\n limit?: number | undefined;\n\n /**\n * Opaque keyset cursor from a previous response. The cursor is exclusive and\n * bound to the authenticated account, sub-account scope, filters, and sort\n * order.\n *\n * @generated from field: string page_token = 11;\n */\n pageToken: string;\n\n /**\n * Include attached-risk policy details in each order (defaults to false when unset).\n *\n * @generated from field: optional bool include_attached_risk = 12;\n */\n includeAttachedRisk?: boolean | undefined;\n\n /**\n * Include attached-risk state details in each order (defaults to false when unset).\n *\n * @generated from field: optional bool include_attached_risk_state = 13;\n */\n includeAttachedRiskState?: boolean | undefined;\n\n /**\n * Optional trigger identifier. When set, returns only child orders created by\n * that trigger.\n *\n * @generated from field: optional fixed64 trigger_id = 14;\n */\n triggerId?: bigint | undefined;\n};\n\n/**\n * Describes the message orders.v1.GetOpenOrdersRequest.\n * Use `create(GetOpenOrdersRequestSchema)` to create a new message.\n */\nexport const GetOpenOrdersRequestSchema: GenMessage<GetOpenOrdersRequest> = /*@__PURE__*/\n messageDesc(file_orders_v1_orders_read, 12);\n\n/**\n * GetOpenOrdersResponse returns open orders and an optional next-page cursor.\n *\n * @generated from message orders.v1.GetOpenOrdersResponse\n */\nexport type GetOpenOrdersResponse = Message<\"orders.v1.GetOpenOrdersResponse\"> & {\n /**\n * Open orders ordered newest-first.\n *\n * @generated from field: repeated orders.v1.Order orders = 1;\n */\n orders: Order[];\n\n /**\n * Opaque cursor for the next page. Empty when no more results exist.\n *\n * @generated from field: string next_page_token = 2;\n */\n nextPageToken: string;\n};\n\n/**\n * Describes the message orders.v1.GetOpenOrdersResponse.\n * Use `create(GetOpenOrdersResponseSchema)` to create a new message.\n */\nexport const GetOpenOrdersResponseSchema: GenMessage<GetOpenOrdersResponse> = /*@__PURE__*/\n messageDesc(file_orders_v1_orders_read, 13);\n\n/**\n * GetOrderHistoryRequest lists terminal orders for an account.\n *\n * @generated from message orders.v1.GetOrderHistoryRequest\n */\nexport type GetOrderHistoryRequest = Message<\"orders.v1.GetOrderHistoryRequest\"> & {\n /**\n * Optional public subaccount ID. When omitted, subaccount-scoped API keys\n * use their bound subaccount; other callers use their authenticated root\n * account.\n *\n * @generated from field: optional fixed64 subaccount_id = 1;\n */\n subaccountId?: bigint | undefined;\n\n /**\n * Optional filter by symbol_id values. Empty means all symbols.\n *\n * @generated from field: repeated uint32 symbol_id = 2;\n */\n symbolId: number[];\n\n /**\n * Optional side filter.\n *\n * @generated from field: orders.v1.Side side = 3;\n */\n side: Side;\n\n /**\n * Optional status filter.\n *\n * @generated from field: orders.v1.OrderStatus status = 4;\n */\n status: OrderStatus;\n\n /**\n * Inclusive start of the time range, in nanoseconds since epoch (UTC).\n *\n * @generated from field: optional uint64 start_ts_ns = 10;\n */\n startTsNs?: bigint | undefined;\n\n /**\n * Inclusive end of the time range, in nanoseconds since epoch (UTC).\n * Omit for no upper bound; an explicit zero returns an empty page.\n *\n * @generated from field: optional uint64 end_ts_ns = 11;\n */\n endTsNs?: bigint | undefined;\n\n /**\n * Max number of orders to return (1-1000, default 100).\n *\n * @generated from field: optional uint32 limit = 12;\n */\n limit?: number | undefined;\n\n /**\n * Opaque keyset cursor from a previous response. The cursor is exclusive and\n * bound to the authenticated account, sub-account scope, filters, time range,\n * and sort order.\n *\n * @generated from field: string page_token = 13;\n */\n pageToken: string;\n\n /**\n * Include attached-risk policy details in each order (defaults to false when unset).\n *\n * @generated from field: optional bool include_attached_risk = 14;\n */\n includeAttachedRisk?: boolean | undefined;\n\n /**\n * Include attached-risk state details in each order (defaults to false when unset).\n *\n * @generated from field: optional bool include_attached_risk_state = 15;\n */\n includeAttachedRiskState?: boolean | undefined;\n\n /**\n * Optional trigger identifier. When set, returns only child orders created by\n * that trigger.\n *\n * @generated from field: optional fixed64 trigger_id = 16;\n */\n triggerId?: bigint | undefined;\n};\n\n/**\n * Describes the message orders.v1.GetOrderHistoryRequest.\n * Use `create(GetOrderHistoryRequestSchema)` to create a new message.\n */\nexport const GetOrderHistoryRequestSchema: GenMessage<GetOrderHistoryRequest> = /*@__PURE__*/\n messageDesc(file_orders_v1_orders_read, 14);\n\n/**\n * GetOrderHistoryResponse returns historical orders and an optional next-page cursor.\n *\n * @generated from message orders.v1.GetOrderHistoryResponse\n */\nexport type GetOrderHistoryResponse = Message<\"orders.v1.GetOrderHistoryResponse\"> & {\n /**\n * Historical orders ordered newest-first.\n *\n * @generated from field: repeated orders.v1.Order orders = 1;\n */\n orders: Order[];\n\n /**\n * Opaque cursor for the next page. A page may hold fewer orders than\n * requested, or none; continue while this token is non-empty. Empty when no\n * more results exist.\n *\n * @generated from field: string next_page_token = 2;\n */\n nextPageToken: string;\n};\n\n/**\n * Describes the message orders.v1.GetOrderHistoryResponse.\n * Use `create(GetOrderHistoryResponseSchema)` to create a new message.\n */\nexport const GetOrderHistoryResponseSchema: GenMessage<GetOrderHistoryResponse> = /*@__PURE__*/\n messageDesc(file_orders_v1_orders_read, 15);\n\n/**\n * GetUserTradesRequest lists trade fills for an account.\n *\n * @generated from message orders.v1.GetUserTradesRequest\n */\nexport type GetUserTradesRequest = Message<\"orders.v1.GetUserTradesRequest\"> & {\n /**\n * Optional public subaccount ID. When omitted, subaccount-scoped API keys\n * use their bound subaccount; other callers use their authenticated root\n * account.\n *\n * @generated from field: optional fixed64 subaccount_id = 1;\n */\n subaccountId?: bigint | undefined;\n\n /**\n * Optional filter by symbol_id.\n *\n * @generated from field: uint32 symbol_id = 2;\n */\n symbolId: number;\n\n /**\n * Optional side filter.\n *\n * @generated from field: orders.v1.Side side = 3;\n */\n side: Side;\n\n /**\n * Inclusive start of the time range, in nanoseconds since epoch (UTC).\n *\n * @generated from field: optional uint64 start_ts_ns = 10;\n */\n startTsNs?: bigint | undefined;\n\n /**\n * Inclusive end of the time range, in nanoseconds since epoch (UTC).\n * Omit for no upper bound; an explicit zero returns an empty page.\n *\n * @generated from field: optional uint64 end_ts_ns = 11;\n */\n endTsNs?: bigint | undefined;\n\n /**\n * Max number of trades to return (1-1000, default 100).\n *\n * @generated from field: optional uint32 limit = 12;\n */\n limit?: number | undefined;\n\n /**\n * Opaque keyset cursor from a previous response. The cursor is exclusive and\n * bound to the authenticated account, sub-account scope, filters, time range,\n * and sort order.\n *\n * @generated from field: string page_token = 13;\n */\n pageToken: string;\n\n /**\n * Return only durable fills whose per-symbol match ID is greater than this\n * value. Subscribe to the execution WebSocket before calling this method and\n * de-duplicate overlapping results by (symbol_id, match_id, order_id).\n *\n * @generated from field: optional uint64 after_match_id = 14;\n */\n afterMatchId?: bigint | undefined;\n\n /**\n * Optional execution scope. Omitting it returns all matching account fills.\n * order_id and lineage_id are mutually exclusive.\n *\n * @generated from oneof orders.v1.GetUserTradesRequest.execution_scope\n */\n executionScope: {\n /**\n * Exactly this physical order's executions; never includes predecessors.\n *\n * @generated from field: fixed64 order_id = 15;\n */\n value: bigint;\n case: \"orderId\";\n } | {\n /**\n * Executions across this logical order's accepted generations.\n *\n * @generated from field: fixed64 lineage_id = 16;\n */\n value: bigint;\n case: \"lineageId\";\n } | { case: undefined; value?: undefined };\n\n /**\n * Inclusive generation ceiling; requires lineage_id.\n * Does not freeze an actively filling generation.\n *\n * @generated from field: optional uint32 through_generation = 17;\n */\n throughGeneration?: number | undefined;\n\n /**\n * Include account settlement legs linked to matches on this page.\n * Legs may repeat across pages when two fills share a match; deduplicate by tx_id.\n *\n * @generated from field: bool include_transfers = 18;\n */\n includeTransfers: boolean;\n};\n\n/**\n * Describes the message orders.v1.GetUserTradesRequest.\n * Use `create(GetUserTradesRequestSchema)` to create a new message.\n */\nexport const GetUserTradesRequestSchema: GenMessage<GetUserTradesRequest> = /*@__PURE__*/\n messageDesc(file_orders_v1_orders_read, 16);\n\n/**\n * GetUserTradesResponse returns user trade fills and an optional next-page cursor.\n *\n * @generated from message orders.v1.GetUserTradesResponse\n */\nexport type GetUserTradesResponse = Message<\"orders.v1.GetUserTradesResponse\"> & {\n /**\n * Trades ordered by timestamp, symbol, match and physical order, descending.\n * Projection is eventual: an empty page is not proof of order-state reconciliation.\n *\n * @generated from field: repeated orders.v1.UserTrade trades = 1;\n */\n trades: UserTrade[];\n\n /**\n * Opaque cursor for the next page. Empty when no more results exist.\n *\n * @generated from field: string next_page_token = 2;\n */\n nextPageToken: string;\n\n /**\n * Settlement legs for matches represented on this page, when requested.\n *\n * @generated from field: repeated orders.v1.OrderTransfer transfers = 3;\n */\n transfers: OrderTransfer[];\n};\n\n/**\n * Describes the message orders.v1.GetUserTradesResponse.\n * Use `create(GetUserTradesResponseSchema)` to create a new message.\n */\nexport const GetUserTradesResponseSchema: GenMessage<GetUserTradesResponse> = /*@__PURE__*/\n messageDesc(file_orders_v1_orders_read, 17);\n\n/**\n * GetOrderRequest retrieves one physical order and a bounded page of its lineage executions.\n *\n * @generated from message orders.v1.GetOrderRequest\n */\nexport type GetOrderRequest = Message<\"orders.v1.GetOrderRequest\"> & {\n /**\n * Optional public subaccount ID. When omitted, subaccount-scoped API keys\n * use their bound subaccount; other callers use their authenticated root\n * account.\n *\n * @generated from field: optional fixed64 subaccount_id = 1;\n */\n subaccountId?: bigint | undefined;\n\n /**\n * Order lookup key. Exactly one identifier is required.\n *\n * @generated from oneof orders.v1.GetOrderRequest.key\n */\n key: {\n /**\n * Public order ID (base58-encoded fixed64 on REST).\n *\n * @generated from field: fixed64 order_id = 2;\n */\n value: bigint;\n case: \"orderId\";\n } | {\n /**\n * Client order ID. When provided, server resolves latest matching order for the account.\n *\n * @generated from field: string client_order_id = 3;\n */\n value: string;\n case: \"clientOrderId\";\n } | { case: undefined; value?: undefined };\n\n /**\n * Include attached-risk policy details in response.order (defaults to false when unset).\n *\n * @generated from field: optional bool include_attached_risk = 10;\n */\n includeAttachedRisk?: boolean | undefined;\n\n /**\n * Include attached-risk state details in response.order (defaults to false when unset).\n *\n * @generated from field: optional bool include_attached_risk_state = 11;\n */\n includeAttachedRiskState?: boolean | undefined;\n\n /**\n * Include a page of lineage trades and their settlement transfers (default true).\n * Set false for state-only polling; limit and page_token must then be omitted.\n *\n * @generated from field: optional bool include_execution_history = 12;\n */\n includeExecutionHistory?: boolean | undefined;\n\n /**\n * Maximum executions to return (1-1000, default 100).\n *\n * @generated from field: optional uint32 limit = 13;\n */\n limit?: number | undefined;\n\n /**\n * Execution cursor from this order's previous response. Use order_id rather\n * than a reused client_order_id to keep the requested generation stable.\n *\n * @generated from field: string page_token = 14;\n */\n pageToken: string;\n};\n\n/**\n * Describes the message orders.v1.GetOrderRequest.\n * Use `create(GetOrderRequestSchema)` to create a new message.\n */\nexport const GetOrderRequestSchema: GenMessage<GetOrderRequest> = /*@__PURE__*/\n messageDesc(file_orders_v1_orders_read, 18);\n\n/**\n * GetOrderResponse returns order details and a bounded execution page.\n * The order shows a fill as soon as it executes; its trades are recorded\n * shortly after. executions_complete says whether the trades already account\n * for every execution the order shows. Transfers are eventually consistent and\n * can trail the trades they settle.\n *\n * @generated from message orders.v1.GetOrderResponse\n */\nexport type GetOrderResponse = Message<\"orders.v1.GetOrderResponse\"> & {\n /**\n * Requested order, if found.\n *\n * @generated from field: orders.v1.Order order = 1;\n */\n order?: Order | undefined;\n\n /**\n * Lineage executions through the requested generation, newest first, retaining\n * original executing order IDs. Omitted when execution history is disabled.\n *\n * @generated from field: repeated orders.v1.UserTrade trades = 2;\n */\n trades: UserTrade[];\n\n /**\n * Account settlement legs for matches on this page. Deduplicate by tx_id when\n * multiple execution pages contain legs of the same match.\n *\n * @generated from field: repeated orders.v1.OrderTransfer transfers = 3;\n */\n transfers: OrderTransfer[];\n\n /**\n * Cursor for the next execution page. Empty when no further rows are visible;\n * this is not a settlement or order-state reconciliation watermark.\n *\n * @generated from field: string next_page_token = 6;\n */\n nextPageToken: string;\n\n /**\n * True when the order's trades through its generation, across every page,\n * add up exactly to its cum_qty_scaled. False while a recent execution is\n * still being recorded: trades then lists the executions recorded so far,\n * and a later read returns the rest. Always false when execution history is\n * not included.\n *\n * @generated from field: bool executions_complete = 7;\n */\n executionsComplete: boolean;\n};\n\n/**\n * Describes the message orders.v1.GetOrderResponse.\n * Use `create(GetOrderResponseSchema)` to create a new message.\n */\nexport const GetOrderResponseSchema: GenMessage<GetOrderResponse> = /*@__PURE__*/\n messageDesc(file_orders_v1_orders_read, 19);\n\n/**\n * GetBatchReplaceStatusRequest retrieves one accepted batch by server identity.\n * A batch's status is retained for 60 seconds from its acceptance, the same\n * time-limited window in which an identical retry replays its admission. It\n * is readable as soon as BatchReplaceOrders returns; each item's execution\n * phase then advances asynchronously. UNAVAILABLE means the status cannot be\n * established yet: retry the same request within the window. NOT_FOUND means\n * the account has no retained batch with this identity: none was accepted for\n * it, or the window ended. NOT_FOUND never proves that a replacement was\n * rejected. After the window, reconcile the individual orders, and never\n * submit an accepted batch again because its status is not found.\n *\n * @generated from message orders.v1.GetBatchReplaceStatusRequest\n */\nexport type GetBatchReplaceStatusRequest = Message<\"orders.v1.GetBatchReplaceStatusRequest\"> & {\n /**\n * Optional public subaccount ID. When omitted, subaccount-scoped API keys\n * use their bound subaccount; other callers use their authenticated root\n * account.\n *\n * @generated from field: optional fixed64 subaccount_id = 1;\n */\n subaccountId?: bigint | undefined;\n\n /**\n * Server-issued batch identity from BatchReplaceOrders.\n *\n * @generated from field: fixed64 batch_request_id = 2;\n */\n batchRequestId: bigint;\n};\n\n/**\n * Describes the message orders.v1.GetBatchReplaceStatusRequest.\n * Use `create(GetBatchReplaceStatusRequestSchema)` to create a new message.\n */\nexport const GetBatchReplaceStatusRequestSchema: GenMessage<GetBatchReplaceStatusRequest> = /*@__PURE__*/\n messageDesc(file_orders_v1_orders_read, 20);\n\n/**\n * BatchReplaceStatusItem is the index-stable execution status for one replacement.\n *\n * @generated from message orders.v1.BatchReplaceStatusItem\n */\nexport type BatchReplaceStatusItem = Message<\"orders.v1.BatchReplaceStatusItem\"> & {\n /**\n * Zero-based item index from the write request.\n *\n * @generated from field: uint32 item_index = 1;\n */\n itemIndex: number;\n\n /**\n * Current recoverable phase.\n *\n * @generated from field: orders.v1.BatchReplacePhase phase = 2;\n */\n phase: BatchReplacePhase;\n\n /**\n * Original order targeted by the replacement.\n *\n * @generated from field: fixed64 old_order_id = 3;\n */\n oldOrderId: bigint;\n\n /**\n * Assigned successor order ID. Zero for an amended item or rejection before assignment.\n *\n * @generated from field: fixed64 replacement_order_id = 4;\n */\n replacementOrderId: bigint;\n\n /**\n * Current successor status, or the amended order's status, when available.\n *\n * @generated from field: orders.v1.OrderStatus order_status = 5;\n */\n orderStatus: OrderStatus;\n\n /**\n * Stable rejection or terminal error code. Empty when none.\n *\n * @generated from field: string code = 6;\n */\n code: string;\n\n /**\n * Latest status timestamp in nanoseconds since epoch. For an item refused\n * after its admission, this is when the refusal was recorded, or a later\n * time at which the service recovered and observed it, so two reads may\n * show different times for the same refusal. Do not use it to identify the\n * refusal.\n *\n * @generated from field: uint64 updated_ts_ns = 7;\n */\n updatedTsNs: bigint;\n\n /**\n * REPLACED admits a successor. AMENDED keeps the order under old_order_id with\n * no successor, and order_status describes it. Unspecified for rejected items.\n *\n * @generated from field: orders.v1.ModifyActionTaken action_taken = 8;\n */\n actionTaken: ModifyActionTaken;\n};\n\n/**\n * Describes the message orders.v1.BatchReplaceStatusItem.\n * Use `create(BatchReplaceStatusItemSchema)` to create a new message.\n */\nexport const BatchReplaceStatusItemSchema: GenMessage<BatchReplaceStatusItem> = /*@__PURE__*/\n messageDesc(file_orders_v1_orders_read, 21);\n\n/**\n * GetBatchReplaceStatusResponse returns a batch's admission and each item's\n * current execution phase.\n *\n * @generated from message orders.v1.GetBatchReplaceStatusResponse\n */\nexport type GetBatchReplaceStatusResponse = Message<\"orders.v1.GetBatchReplaceStatusResponse\"> & {\n /**\n * Server-issued batch identity.\n *\n * @generated from field: fixed64 batch_request_id = 1;\n */\n batchRequestId: bigint;\n\n /**\n * Aggregate admission status returned by the write receipt.\n *\n * @generated from field: orders.v1.BatchReplaceAdmissionStatus admission_status = 2;\n */\n admissionStatus: BatchReplaceAdmissionStatus;\n\n /**\n * Per-item statuses in request order.\n *\n * @generated from field: repeated orders.v1.BatchReplaceStatusItem items = 3;\n */\n items: BatchReplaceStatusItem[];\n\n /**\n * Number of admitted items.\n *\n * @generated from field: uint32 accepted_count = 4;\n */\n acceptedCount: number;\n\n /**\n * Number of rejected items.\n *\n * @generated from field: uint32 rejected_count = 5;\n */\n rejectedCount: number;\n\n /**\n * Server acceptance timestamp in nanoseconds since epoch.\n *\n * @generated from field: uint64 accepted_ts_ns = 6;\n */\n acceptedTsNs: bigint;\n\n /**\n * Latest batch status timestamp in nanoseconds since epoch: the latest of\n * its acceptance and its items' update times, so it can show a recovery\n * time as an item's can.\n *\n * @generated from field: uint64 updated_ts_ns = 7;\n */\n updatedTsNs: bigint;\n};\n\n/**\n * Describes the message orders.v1.GetBatchReplaceStatusResponse.\n * Use `create(GetBatchReplaceStatusResponseSchema)` to create a new message.\n */\nexport const GetBatchReplaceStatusResponseSchema: GenMessage<GetBatchReplaceStatusResponse> = /*@__PURE__*/\n messageDesc(file_orders_v1_orders_read, 22);\n\n/**\n * OrderStatus describes the order's execution lifecycle state on read surfaces.\n * CreateOrder acknowledges admission without returning execution status.\n *\n * @generated from enum orders.v1.OrderStatus\n */\nexport enum OrderStatus {\n /**\n * Order status was not provided.\n *\n * @generated from enum value: ORDER_STATUS_UNSPECIFIED = 0;\n */\n ORDER_STATUS_UNSPECIFIED = 0,\n\n /**\n * Accepted and submitted for execution, but not yet confirmed as working.\n *\n * @generated from enum value: PENDING = 1;\n */\n PENDING = 1,\n\n /**\n * Cancel requested; may still be working until cancel is confirmed.\n *\n * @generated from enum value: PENDING_CANCEL = 2;\n */\n PENDING_CANCEL = 2,\n\n /**\n * Accepted and actively working (resting and/or matching).\n *\n * @generated from enum value: WORKING = 3;\n */\n WORKING = 3,\n\n /**\n * Fully filled (no remaining quantity). A buy sized by a quote amount\n * (max_quote_debit_scaled) is fully filled once it has spent that amount:\n * what is left of it buys no further quantity step at the next price the\n * order could fill at. Its quantity is then what it bought. A sell sized by\n * a quote proceeds target (quote_proceeds_scaled) is fully filled once\n * what is left of that target sells no further quantity step at the next\n * price the order could fill at. Its quantity is then what it sold.\n *\n * @generated from enum value: FILLED = 4;\n */\n FILLED = 4,\n\n /**\n * Canceled and no longer working.\n *\n * @generated from enum value: CANCELED = 5;\n */\n CANCELED = 5,\n\n /**\n * Rejected and never entered the working state.\n *\n * @generated from enum value: REJECTED = 6;\n */\n REJECTED = 6,\n}\n\n/**\n * Describes the enum orders.v1.OrderStatus.\n */\nexport const OrderStatusSchema: GenEnum<OrderStatus> = /*@__PURE__*/\n enumDesc(file_orders_v1_orders_read, 0);\n\n/**\n * CancelReason is why a CANCELED order ended. A cancel is no error: a\n * refused order is REJECTED and names its refusal with an ErrorCode instead.\n * Fills before the cancel stand, and the order's remaining reserved funds are\n * released.\n *\n * @generated from enum orders.v1.CancelReason\n */\nexport enum CancelReason {\n /**\n * The order is not canceled.\n *\n * @generated from enum value: CANCEL_REASON_UNSPECIFIED = 0;\n */\n UNSPECIFIED = 0,\n\n /**\n * A cancel the account sent: a cancel, a batch cancel or a cancel-all.\n *\n * @generated from enum value: CANCEL_REASON_USER_REQUEST = 1;\n */\n USER_REQUEST = 1,\n\n /**\n * The unfilled remainder of an immediate-or-cancel order. A buy sized by a\n * quote amount (max_quote_debit_scaled) that spends that amount, or a sell\n * sized by a quote proceeds target (quote_proceeds_scaled) that receives\n * it, ends FILLED instead.\n *\n * @generated from enum value: CANCEL_REASON_IOC_REMAINDER = 2;\n */\n IOC_REMAINDER = 2,\n\n /**\n * The unfilled remainder of a market order: the book ran out, the next\n * price was past the order's protection price, or the order reached the\n * market's maximum order quantity. A market buy sized by a quote amount\n * (max_quote_debit_scaled) that spends that amount, so that what is left\n * buys no further quantity step, ends FILLED instead, as does a market sell\n * sized by a quote proceeds target (quote_proceeds_scaled) once what is\n * left of the target sells no further quantity step.\n *\n * @generated from enum value: CANCEL_REASON_MARKET_REMAINDER = 3;\n */\n MARKET_REMAINDER = 3,\n\n /**\n * Self-trade prevention canceled this resting order when an incoming order\n * belonging to the same root account, including another subaccount of that\n * root, would have matched it.\n *\n * @generated from enum value: CANCEL_REASON_STP_EXPIRE_MAKER = 4;\n */\n STP_EXPIRE_MAKER = 4,\n\n /**\n * Self-trade prevention canceled this incoming order instead of matching a\n * resting order belonging to the same root account, including another\n * subaccount of that root.\n *\n * @generated from enum value: CANCEL_REASON_STP_EXPIRE_TAKER = 5;\n */\n STP_EXPIRE_TAKER = 5,\n\n /**\n * Self-trade prevention canceled both this order and the order belonging to\n * the same root account, including another subaccount of that root, that it\n * would have matched.\n *\n * @generated from enum value: CANCEL_REASON_STP_EXPIRE_BOTH = 6;\n */\n STP_EXPIRE_BOTH = 6,\n\n /**\n * A replace ended this order and created its successor.\n *\n * @generated from enum value: CANCEL_REASON_REPLACED = 7;\n */\n REPLACED = 7,\n\n /**\n * A good-till-date order reached its expiry time.\n *\n * @generated from enum value: CANCEL_REASON_GTD_EXPIRED = 8;\n */\n GTD_EXPIRED = 8,\n\n /**\n * An amend or replace set the order's total quantity at or below its filled\n * quantity, so the order ended at its filled quantity.\n *\n * @generated from enum value: CANCEL_REASON_QTY_AT_OR_BELOW_FILLED = 9;\n */\n QTY_AT_OR_BELOW_FILLED = 9,\n\n /**\n * The market was disabled: the exchange canceled its resting orders.\n *\n * @generated from enum value: CANCEL_REASON_PAIR_DRAIN = 10;\n */\n PAIR_DRAIN = 10,\n\n /**\n * The market refused one of the order's attached take-profit, stop-loss or\n * trailing-stop legs, so the order's remainder and its other legs were\n * canceled.\n *\n * @generated from enum value: CANCEL_REASON_ATTACHED_RISK_REFUSED = 11;\n */\n ATTACHED_RISK_REFUSED = 11,\n\n /**\n * The account's cancel-all-after timer reached its deadline without a\n * heartbeat.\n *\n * @generated from enum value: CANCEL_REASON_CANCEL_ALL_AFTER = 12;\n */\n CANCEL_ALL_AFTER = 12,\n\n /**\n * Canceled by the exchange while it recovered the account. Place new orders\n * once the account trades again.\n *\n * @generated from enum value: CANCEL_REASON_ACCOUNT_REPAIR = 13;\n */\n ACCOUNT_REPAIR = 13,\n\n /**\n * A TWAP slice its TWAP canceled at the next slice's due time; its unfilled\n * remainder moves to the TWAP's later slices.\n *\n * @generated from enum value: CANCEL_REASON_TWAP_ROLLOVER = 14;\n */\n TWAP_ROLLOVER = 14,\n\n /**\n * An order a trigger placed, such as a TWAP slice, a ladder level, a stop's\n * child or an attached leg's exit, canceled because its trigger ended or\n * another leg took over the exit.\n *\n * @generated from enum value: CANCEL_REASON_STRATEGY_CANCEL = 15;\n */\n STRATEGY_CANCEL = 15,\n\n /**\n * The exchange canceled the order for a reason it does not name.\n *\n * @generated from enum value: CANCEL_REASON_SYSTEM = 16;\n */\n SYSTEM = 16,\n\n /**\n * The market was halted: the exchange canceled every open order of the\n * market. Fills before the cancel stand. The market refuses new orders until\n * it trades again.\n *\n * @generated from enum value: CANCEL_REASON_MARKET_HALTED = 17;\n */\n MARKET_HALTED = 17,\n\n /**\n * The order's attached take-profit, stop-loss or trailing stop fired while\n * the order still rested: the exchange canceled the order's unfilled\n * remainder before placing the attached order, so the two never trade with\n * each other. Fills before the cancel stand.\n *\n * @generated from enum value: CANCEL_REASON_ATTACHED_EXIT_FIRED = 18;\n */\n ATTACHED_EXIT_FIRED = 18,\n\n /**\n * Self-trade prevention mode DECREMENT reduced this order to its filled\n * quantity: an incoming order met a resting order belonging to the same\n * root account, including another subaccount of that root, both were\n * reduced by the quantity that would have traded, with no trade, and this\n * order had no quantity left. Fills before the cancel stand.\n *\n * @generated from enum value: CANCEL_REASON_STP_DECREMENT = 19;\n */\n STP_DECREMENT = 19,\n\n /**\n * The market's price band stopped the order: it filled up to the band's\n * limit price, and its unfilled remainder was canceled rather than trade\n * beyond the band. Fills before the cancel stand.\n *\n * @generated from enum value: CANCEL_REASON_PRICE_BAND = 20;\n */\n PRICE_BAND = 20,\n\n /**\n * Cancel-on-disconnect canceled the order: the trading WebSocket\n * connections of the account that opted in to cancel-on-disconnect all\n * closed, and no session of the account opted in again before each one's\n * grace period passed. An order the account's own cancel-all-after timer\n * canceled reads CANCEL_REASON_CANCEL_ALL_AFTER instead. Fills before the\n * cancel stand.\n *\n * @generated from enum value: CANCEL_REASON_CANCEL_ON_DISCONNECT = 21;\n */\n CANCEL_ON_DISCONNECT = 21,\n}\n\n/**\n * Describes the enum orders.v1.CancelReason.\n */\nexport const CancelReasonSchema: GenEnum<CancelReason> = /*@__PURE__*/\n enumDesc(file_orders_v1_orders_read, 1);\n\n/**\n * BatchReplacePhase is the recoverable execution phase for one replacement.\n *\n * @generated from enum orders.v1.BatchReplacePhase\n */\nexport enum BatchReplacePhase {\n /**\n * Phase is unavailable.\n *\n * @generated from enum value: BATCH_REPLACE_PHASE_UNSPECIFIED = 0;\n */\n UNSPECIFIED = 0,\n\n /**\n * The operation was admitted and handed to execution, amended items included.\n *\n * @generated from enum value: BATCH_REPLACE_PHASE_ADMITTED = 1;\n */\n ADMITTED = 1,\n\n /**\n * The successor order, or the amended order, is active.\n *\n * @generated from enum value: BATCH_REPLACE_PHASE_WORKING = 2;\n */\n WORKING = 2,\n\n /**\n * The replacement was rejected.\n *\n * @generated from enum value: BATCH_REPLACE_PHASE_REJECTED = 3;\n */\n REJECTED = 3,\n\n /**\n * The successor, or the amended order, reached a terminal state.\n *\n * @generated from enum value: BATCH_REPLACE_PHASE_TERMINAL = 4;\n */\n TERMINAL = 4,\n}\n\n/**\n * Describes the enum orders.v1.BatchReplacePhase.\n */\nexport const BatchReplacePhaseSchema: GenEnum<BatchReplacePhase> = /*@__PURE__*/\n enumDesc(file_orders_v1_orders_read, 2);\n\n/**\n * OrderOriginScope captures broad origin classes for an order.\n *\n * @generated from enum orders.v1.OrderOriginScope\n */\nexport enum OrderOriginScope {\n /**\n * Order origin scope was not provided.\n *\n * @generated from enum value: ORDER_ORIGIN_SCOPE_UNSPECIFIED = 0;\n */\n ORDER_ORIGIN_SCOPE_UNSPECIFIED = 0,\n\n /**\n * User/manual order (non-trigger path).\n *\n * @generated from enum value: DIRECT = 1;\n */\n DIRECT = 1,\n\n /**\n * Child generated by attached TP/SL/Trailing risk on a parent order.\n *\n * @generated from enum value: ATTACHED_RISK = 2;\n */\n ATTACHED_RISK = 2,\n\n /**\n * Child generated by a standalone trigger (STOP/TWAP/LADDER...).\n *\n * @generated from enum value: STANDALONE_TRIGGER = 3;\n */\n STANDALONE_TRIGGER = 3,\n\n /**\n * System-managed automation, such as liquidation or account-protection actions.\n *\n * @generated from enum value: SYSTEM = 4;\n */\n SYSTEM = 4,\n}\n\n/**\n * Describes the enum orders.v1.OrderOriginScope.\n */\nexport const OrderOriginScopeSchema: GenEnum<OrderOriginScope> = /*@__PURE__*/\n enumDesc(file_orders_v1_orders_read, 3);\n\n/**\n * OrderTriggerType captures the trigger strategy that generated the order.\n *\n * @generated from enum orders.v1.OrderTriggerType\n */\nexport enum OrderTriggerType {\n /**\n * Trigger type was not provided or the order was not generated by a trigger.\n *\n * @generated from enum value: ORDER_TRIGGER_TYPE_UNSPECIFIED = 0;\n */\n ORDER_TRIGGER_TYPE_UNSPECIFIED = 0,\n\n /**\n * Order was generated by a stop-loss trigger.\n *\n * @generated from enum value: STOP_LOSS = 1;\n */\n STOP_LOSS = 1,\n\n /**\n * Order was generated by a take-profit trigger.\n *\n * @generated from enum value: TAKE_PROFIT = 2;\n */\n TAKE_PROFIT = 2,\n\n /**\n * Order was generated by a trailing-stop trigger.\n *\n * @generated from enum value: TRAILING_STOP = 3;\n */\n TRAILING_STOP = 3,\n\n /**\n * Order was generated by a time-weighted execution trigger.\n *\n * @generated from enum value: TWAP = 4;\n */\n TWAP = 4,\n\n /**\n * Order was generated by a ladder execution trigger.\n *\n * @generated from enum value: LADDER = 5;\n */\n LADDER = 5,\n}\n\n/**\n * Describes the enum orders.v1.OrderTriggerType.\n */\nexport const OrderTriggerTypeSchema: GenEnum<OrderTriggerType> = /*@__PURE__*/\n enumDesc(file_orders_v1_orders_read, 4);\n\n/**\n * @generated from service orders.v1.OrdersReadService\n */\nexport const OrdersReadService: GenService<{\n /**\n * Retrieve non-terminal orders for an account.\n * Supports optional subaccount, trigger, symbol, and side filters with cursor pagination.\n * While the current state of an order in scope is temporarily unavailable, the call\n * fails with a retryable UNAVAILABLE rather than omitting the order or returning a\n * stale state; retry the same request.\n *\n * @generated from rpc orders.v1.OrdersReadService.GetOpenOrders\n */\n getOpenOrders: {\n methodKind: \"unary\";\n input: typeof GetOpenOrdersRequestSchema;\n output: typeof GetOpenOrdersResponseSchema;\n },\n /**\n * Retrieve terminal order history for an account.\n * Supports optional subaccount, trigger, symbol, side, status, and time-range filters with cursor pagination.\n * While the current state of an order on the page is temporarily unavailable, the call\n * fails with a retryable UNAVAILABLE rather than returning a stale state; retry the\n * same request.\n *\n * @generated from rpc orders.v1.OrdersReadService.GetOrderHistory\n */\n getOrderHistory: {\n methodKind: \"unary\";\n input: typeof GetOrderHistoryRequestSchema;\n output: typeof GetOrderHistoryResponseSchema;\n },\n /**\n * Retrieve per-user trade fills for an account.\n * Supports exact physical-order or logical-lineage scope, an inclusive generation\n * cutoff, and subaccount, symbol, side and time filters with cursor pagination.\n *\n * @generated from rpc orders.v1.OrdersReadService.GetUserTrades\n */\n getUserTrades: {\n methodKind: \"unary\";\n input: typeof GetUserTradesRequestSchema;\n output: typeof GetUserTradesResponseSchema;\n },\n /**\n * Retrieve order state and a bounded page of its lineage executions by order or client order ID.\n * Use GetUserTrades for paginated execution history and optional settlement legs.\n * Recent accepted orders may wait briefly for read availability; retry UNAVAILABLE with the same lookup key.\n *\n * @generated from rpc orders.v1.OrdersReadService.GetOrder\n */\n getOrder: {\n methodKind: \"unary\";\n input: typeof GetOrderRequestSchema;\n output: typeof GetOrderResponseSchema;\n },\n /**\n * Retrieve the execution status of one accepted batch replacement, retained\n * for 60 seconds from its acceptance. Retry UNAVAILABLE with the same\n * request; NOT_FOUND means no retained batch, never a rejected replacement.\n *\n * @generated from rpc orders.v1.OrdersReadService.GetBatchReplaceStatus\n */\n getBatchReplaceStatus: {\n methodKind: \"unary\";\n input: typeof GetBatchReplaceStatusRequestSchema;\n output: typeof GetBatchReplaceStatusResponseSchema;\n },\n}> = /*@__PURE__*/\n serviceDesc(file_orders_v1_orders_read, 0);\n\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoBA,MAAa,6BACX,uBAAS,wmVAAwmV;CAAC;CAAgC;CAAwB;CAAuB;CAA4B;AAA2B,CAAC;;;;;AAuD3vV,MAAa,oBACX,0BAAY,4BAA4B,CAAC;;;;;AAgD3C,MAAa,6BACX,0BAAY,4BAA4B,CAAC;;;;;;AAO3C,IAAY,8BAAL,yBAAA,6BAAA;;;;;;CAML,4BAAA,4BAAA,wBAAA,KAAA;;;;;;CAOA,4BAAA,4BAAA,oBAAA,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"sources":["../../../../src/gen/orders/v1/orders_read_pb.ts"],"sourcesContent":["// @generated by protoc-gen-es v2.13.0 with parameter \"target=ts,import_extension=js\"\n// @generated from file orders/v1/orders_read.proto (package orders.v1, syntax proto3)\n/* eslint-disable */\n\nimport type { GenEnum, GenFile, GenMessage, GenService } from \"@bufbuild/protobuf/codegenv2\";\nimport { enumDesc, fileDesc, messageDesc, serviceDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport type { Timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_google_protobuf_timestamp } from \"@bufbuild/protobuf/wkt\";\nimport type { AccountCode, TransferCode } from \"../../ledger/v1/catalog_pb.js\";\nimport { file_ledger_v1_catalog } from \"../../ledger/v1/catalog_pb.js\";\nimport type { BatchReplaceAdmissionStatus, ErrorCode, FeeAsset, ModifyActionTaken, OrderType, SelfTradePreventionMode, Side, StopLossPolicy, TakeProfitPolicy, TimeInForce, TrailingStopPolicy } from \"./orders_pb.js\";\nimport { file_orders_v1_orders } from \"./orders_pb.js\";\nimport { file_polyester_api_options } from \"../../polyester/api/options_pb.js\";\nimport type { U128 } from \"../../polyester/type/v1/u128_pb.js\";\nimport { file_polyester_type_v1_u128 } from \"../../polyester/type/v1/u128_pb.js\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file orders/v1/orders_read.proto.\n */\nexport const file_orders_v1_orders_read: GenFile = /*@__PURE__*/\n fileDesc(\"ChtvcmRlcnMvdjEvb3JkZXJzX3JlYWQucHJvdG8SCW9yZGVycy52MSLdAQoLT3JkZXJPcmlnaW4SLAoFc2NvcGUYASABKA4yGy5vcmRlcnMudjEuT3JkZXJPcmlnaW5TY29wZUIAEjMKDHRyaWdnZXJfdHlwZRgCIAEoDjIbLm9yZGVycy52MS5PcmRlclRyaWdnZXJUeXBlQgASFwoKdHJpZ2dlcl9pZBgDIAEoBkgAiAEBEhwKD3BhcmVudF9vcmRlcl9pZBgEIAEoBkgBiAEBEhEKCWNoaWxkX3NlcRg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HlwZRIiCh5PUkRFUl9UUklHR0VSX1RZUEVfVU5TUEVDSUZJRUQQABINCglTVE9QX0xPU1MQARIPCgtUQUtFX1BST0ZJVBACEhEKDVRSQUlMSU5HX1NUT1AQAxIICgRUV0FQEAQSCgoGTEFEREVSEAUy0gMKEU9yZGVyc1JlYWRTZXJ2aWNlElQKDUdldE9wZW5PcmRlcnMSHy5vcmRlcnMudjEuR2V0T3Blbk9yZGVyc1JlcXVlc3QaIC5vcmRlcnMudjEuR2V0T3Blbk9yZGVyc1Jlc3BvbnNlIgASWgoPR2V0T3JkZXJIaXN0b3J5EiEub3JkZXJzLnYxLkdldE9yZGVySGlzdG9yeVJlcXVlc3QaIi5vcmRlcnMudjEuR2V0T3JkZXJIaXN0b3J5UmVzcG9uc2UiABJUCg1HZXRVc2VyVHJhZGVzEh8ub3JkZXJzLnYxLkdldFVzZXJUcmFkZXNSZXF1ZXN0GiAub3JkZXJzLnYxLkdldFVzZXJUcmFkZXNSZXNwb25zZSIAEkUKCEdldE9yZGVyEhoub3JkZXJzLnYxLkdldE9yZGVyUmVxdWVzdBobLm9yZGVycy52MS5HZXRPcmRlclJlc3BvbnNlIgASbAoVR2V0QmF0Y2hSZXBsYWNlU3RhdHVzEicub3JkZXJzLnYxLkdldEJhdGNoUmVwbGFjZVN0YXR1c1JlcXVlc3QaKC5vcmRlcnMudjEuR2V0QmF0Y2hSZXBsYWNlU3RhdHVzUmVzcG9uc2UiABoAQkBaPmdpdGh1Yi5jb20vRmFicmljLUxhYnMvcG9seWVzdGVyLXNkay1nby9nZW4vb3JkZXJzL3YxO29yZGVyc3YxYgZwcm90bzM=\", [file_google_protobuf_timestamp, file_ledger_v1_catalog, file_orders_v1_orders, file_polyester_api_options, file_polyester_type_v1_u128]);\n\n/**\n * OrderOrigin explains why an order exists and where it came from.\n *\n * Population rules:\n * - direct/manual orders: scope=DIRECT; trigger fields unset/unspecified.\n * - attached children: scope=ATTACHED_RISK; parent_order_id is set.\n * - standalone trigger children: scope=STANDALONE_TRIGGER.\n * - child_seq is set for multi-child strategies (for example TWAP/LADDER).\n *\n * @generated from message orders.v1.OrderOrigin\n */\nexport type OrderOrigin = Message<\"orders.v1.OrderOrigin\"> & {\n /**\n * Broad class describing how the order was created.\n *\n * @generated from field: orders.v1.OrderOriginScope scope = 1;\n */\n scope: OrderOriginScope;\n\n /**\n * Trigger strategy that created this order. Not set for direct orders; JSON\n * and REST responses then omit it.\n *\n * @generated from field: orders.v1.OrderTriggerType trigger_type = 2;\n */\n triggerType: OrderTriggerType;\n\n /**\n * Trigger identifier when the order was created by a trigger.\n *\n * @generated from field: optional fixed64 trigger_id = 3;\n */\n triggerId?: bigint | undefined;\n\n /**\n * Parent order ID for attached-risk child orders.\n *\n * @generated from field: optional fixed64 parent_order_id = 4;\n */\n parentOrderId?: bigint | undefined;\n\n /**\n * Child sequence number for multi-child trigger strategies. Zero when not applicable.\n *\n * @generated from field: uint32 child_seq = 5;\n */\n childSeq: number;\n};\n\n/**\n * Describes the message orders.v1.OrderOrigin.\n * Use `create(OrderOriginSchema)` to create a new message.\n */\nexport const OrderOriginSchema: GenMessage<OrderOrigin> = /*@__PURE__*/\n messageDesc(file_orders_v1_orders_read, 0);\n\n/**\n * AttachedRiskLegState provides runtime linkage/state for one attached-risk leg.\n *\n * @generated from message orders.v1.AttachedRiskLegState\n */\nexport type AttachedRiskLegState = Message<\"orders.v1.AttachedRiskLegState\"> & {\n /**\n * Current runtime lifecycle status for this attached-risk leg.\n *\n * @generated from field: orders.v1.AttachedRiskLegState.Status status = 1;\n */\n status: AttachedRiskLegState_Status;\n\n /**\n * Time the leg was armed, in nanoseconds since epoch (UTC). Zero if not armed.\n *\n * @generated from field: uint64 armed_ts_ns = 2;\n */\n armedTsNs: bigint;\n\n /**\n * Time the leg reached a terminal state, in nanoseconds since epoch (UTC). Zero if not terminal.\n *\n * @generated from field: uint64 terminal_ts_ns = 3;\n */\n terminalTsNs: bigint;\n\n /**\n * Trigger identifier for this attached-risk leg.\n *\n * @generated from field: optional fixed64 trigger_id = 4;\n */\n triggerId?: bigint | undefined;\n\n /**\n * Child order ID created by this leg after it fires.\n *\n * @generated from field: optional fixed64 child_order_id = 5;\n */\n childOrderId?: bigint | undefined;\n};\n\n/**\n * Describes the message orders.v1.AttachedRiskLegState.\n * Use `create(AttachedRiskLegStateSchema)` to create a new message.\n */\nexport const AttachedRiskLegStateSchema: GenMessage<AttachedRiskLegState> = /*@__PURE__*/\n messageDesc(file_orders_v1_orders_read, 1);\n\n/**\n * Runtime lifecycle for an attached-risk trigger leg.\n *\n * @generated from enum orders.v1.AttachedRiskLegState.Status\n */\nexport enum AttachedRiskLegState_Status {\n /**\n * Attached-risk leg status was not provided.\n *\n * @generated from enum value: STATUS_UNSPECIFIED = 0;\n */\n STATUS_UNSPECIFIED = 0,\n\n /**\n * No leg configured on the parent order.\n *\n * @generated from enum value: NOT_CONFIGURED = 1;\n */\n NOT_CONFIGURED = 1,\n\n /**\n * Trigger persisted, waiting for admission/arming.\n *\n * @generated from enum value: CREATED = 2;\n */\n CREATED = 2,\n\n /**\n * Trigger is actively armed.\n *\n * @generated from enum value: ARMED = 3;\n */\n ARMED = 3,\n\n /**\n * Trigger is executing runtime work (for example multi-step workflows).\n *\n * @generated from enum value: RUNNING = 4;\n */\n RUNNING = 4,\n\n /**\n * Trigger finished successfully.\n *\n * @generated from enum value: COMPLETED = 5;\n */\n COMPLETED = 5,\n\n /**\n * Trigger was canceled.\n *\n * @generated from enum value: CANCELED = 6;\n */\n CANCELED = 6,\n\n /**\n * Trigger failed.\n *\n * @generated from enum value: FAILED = 7;\n */\n FAILED = 7,\n\n /**\n * Trigger is paused.\n *\n * @generated from enum value: PAUSED = 8;\n */\n PAUSED = 8,\n}\n\n/**\n * Describes the enum orders.v1.AttachedRiskLegState.Status.\n */\nexport const AttachedRiskLegState_StatusSchema: GenEnum<AttachedRiskLegState_Status> = /*@__PURE__*/\n enumDesc(file_orders_v1_orders_read, 1, 0);\n\n/**\n * AttachedRiskTakeProfit carries both take-profit config and runtime state.\n *\n * @generated from message orders.v1.AttachedRiskTakeProfit\n */\nexport type AttachedRiskTakeProfit = Message<\"orders.v1.AttachedRiskTakeProfit\"> & {\n /**\n * Take-profit policy configured on the parent order.\n *\n * @generated from field: orders.v1.TakeProfitPolicy policy = 1;\n */\n policy?: TakeProfitPolicy | undefined;\n\n /**\n * Runtime state for the take-profit leg.\n *\n * @generated from field: orders.v1.AttachedRiskLegState state = 2;\n */\n state?: AttachedRiskLegState | undefined;\n};\n\n/**\n * Describes the message orders.v1.AttachedRiskTakeProfit.\n * Use `create(AttachedRiskTakeProfitSchema)` to create a new message.\n */\nexport const AttachedRiskTakeProfitSchema: GenMessage<AttachedRiskTakeProfit> = /*@__PURE__*/\n messageDesc(file_orders_v1_orders_read, 2);\n\n/**\n * AttachedRiskStopLoss carries both stop-loss config and runtime state.\n *\n * @generated from message orders.v1.AttachedRiskStopLoss\n */\nexport type AttachedRiskStopLoss = Message<\"orders.v1.AttachedRiskStopLoss\"> & {\n /**\n * Stop-loss policy configured on the parent order.\n *\n * @generated from field: orders.v1.StopLossPolicy policy = 1;\n */\n policy?: StopLossPolicy | undefined;\n\n /**\n * Runtime state for the stop-loss leg.\n *\n * @generated from field: orders.v1.AttachedRiskLegState state = 2;\n */\n state?: AttachedRiskLegState | undefined;\n};\n\n/**\n * Describes the message orders.v1.AttachedRiskStopLoss.\n * Use `create(AttachedRiskStopLossSchema)` to create a new message.\n */\nexport const AttachedRiskStopLossSchema: GenMessage<AttachedRiskStopLoss> = /*@__PURE__*/\n messageDesc(file_orders_v1_orders_read, 3);\n\n/**\n * AttachedRiskTrailingStop carries both trailing-stop config and runtime state.\n *\n * @generated from message orders.v1.AttachedRiskTrailingStop\n */\nexport type AttachedRiskTrailingStop = Message<\"orders.v1.AttachedRiskTrailingStop\"> & {\n /**\n * Trailing-stop policy configured on the parent order.\n *\n * @generated from field: orders.v1.TrailingStopPolicy policy = 1;\n */\n policy?: TrailingStopPolicy | undefined;\n\n /**\n * Runtime state for the trailing-stop leg.\n *\n * @generated from field: orders.v1.AttachedRiskLegState state = 2;\n */\n state?: AttachedRiskLegState | undefined;\n};\n\n/**\n * Describes the message orders.v1.AttachedRiskTrailingStop.\n * Use `create(AttachedRiskTrailingStopSchema)` to create a new message.\n */\nexport const AttachedRiskTrailingStopSchema: GenMessage<AttachedRiskTrailingStop> = /*@__PURE__*/\n messageDesc(file_orders_v1_orders_read, 4);\n\n/**\n * AttachedRisk is the single parent-side view for attached-risk configuration\n * and runtime status.\n *\n * @generated from message orders.v1.AttachedRisk\n */\nexport type AttachedRisk = Message<\"orders.v1.AttachedRisk\"> & {\n /**\n * Take-profit leg, if configured or if state exists.\n *\n * @generated from field: orders.v1.AttachedRiskTakeProfit take_profit = 1;\n */\n takeProfit?: AttachedRiskTakeProfit | undefined;\n\n /**\n * Stop-loss leg, if configured or if state exists.\n *\n * @generated from field: orders.v1.AttachedRiskStopLoss stop_loss = 2;\n */\n stopLoss?: AttachedRiskStopLoss | undefined;\n\n /**\n * Trailing-stop leg, if configured or if state exists.\n *\n * @generated from field: orders.v1.AttachedRiskTrailingStop trailing_stop = 3;\n */\n trailingStop?: AttachedRiskTrailingStop | undefined;\n\n /**\n * True while the parent's legs were placed with oco and both the\n * take-profit and a stop leg (stop-loss or trailing stop) are present.\n * False once either leg is removed. A leg that ended, including one\n * canceled with TRIGGER_CANCEL_REASON_OCO, stays present.\n *\n * @generated from field: bool oco = 4;\n */\n oco: boolean;\n};\n\n/**\n * Describes the message orders.v1.AttachedRisk.\n * Use `create(AttachedRiskSchema)` to create a new message.\n */\nexport const AttachedRiskSchema: GenMessage<AttachedRisk> = /*@__PURE__*/\n messageDesc(file_orders_v1_orders_read, 5);\n\n/**\n * OrderLineage identifies a logical order and one of its accepted generations.\n *\n * @generated from message orders.v1.OrderLineage\n */\nexport type OrderLineage = Message<\"orders.v1.OrderLineage\"> & {\n /**\n * Stable logical-order ID: the first generation's public order ID.\n * Replace preserves this ID; an independent new order starts a new lineage.\n *\n * @generated from field: fixed64 id = 1;\n */\n id: bigint;\n\n /**\n * One-based replacement generation, distinct from per-order state version.\n *\n * @generated from field: uint32 generation = 2;\n */\n generation: number;\n};\n\n/**\n * Describes the message orders.v1.OrderLineage.\n * Use `create(OrderLineageSchema)` to create a new message.\n */\nexport const OrderLineageSchema: GenMessage<OrderLineage> = /*@__PURE__*/\n messageDesc(file_orders_v1_orders_read, 6);\n\n/**\n * OrderFeeTotal is the total fee of an order's fills, net of rebates, as\n * settled. A fill's fee is recorded shortly after the fill executes, so the\n * total can trail the fills the order shows: qty_scaled says which fills it\n * covers.\n *\n * @generated from message orders.v1.OrderFeeTotal\n */\nexport type OrderFeeTotal = Message<\"orders.v1.OrderFeeTotal\"> & {\n /**\n * Net fee magnitude in fixed 18-decimal units of the order's fee_asset:\n * the fees of the covered fills less their rebates. Zero when they charged\n * no fee.\n *\n * @generated from field: polyester.type.v1.U128 amount_e18 = 1;\n */\n amountE18?: U128 | undefined;\n\n /**\n * True when the covered fills' rebates exceed their fees, so the amount\n * was credited to the account rather than charged.\n *\n * @generated from field: bool is_rebate = 2;\n */\n isRebate: boolean;\n\n /**\n * Executed quantity of the fills the total covers, scaled by the pair's\n * base_quantity_scale from GetSpotConfig. Equal to the order's\n * cum_qty_scaled once every fill's fee is recorded. While a fill is still\n * being recorded the two differ, and a later read of the order includes\n * it.\n *\n * @generated from field: int64 qty_scaled = 3;\n */\n qtyScaled: bigint;\n};\n\n/**\n * Describes the message orders.v1.OrderFeeTotal.\n * Use `create(OrderFeeTotalSchema)` to create a new message.\n */\nexport const OrderFeeTotalSchema: GenMessage<OrderFeeTotal> = /*@__PURE__*/\n messageDesc(file_orders_v1_orders_read, 7);\n\n/**\n * Order is the Connect-facing order view with compact binary fields.\n *\n * @generated from message orders.v1.Order\n */\nexport type Order = Message<\"orders.v1.Order\"> & {\n /**\n * Public order identifier as fixed64.\n *\n * @generated from field: fixed64 order_id = 1;\n */\n orderId: bigint;\n\n /**\n * Trading symbol numeric identifier.\n *\n * @generated from field: uint32 symbol_id = 3;\n */\n symbolId: number;\n\n /**\n * Client-provided, account-scoped identifier for correlation, lookup, and\n * cancellation. Empty when none was supplied.\n *\n * @generated from field: string client_order_id = 4;\n */\n clientOrderId: string;\n\n /**\n * Order side.\n *\n * @generated from field: orders.v1.Side side = 5;\n */\n side: Side;\n\n /**\n * Current order lifecycle status.\n *\n * @generated from field: orders.v1.OrderStatus status = 6;\n */\n status: OrderStatus;\n\n /**\n * Order type.\n *\n * @generated from field: orders.v1.OrderType order_type = 7;\n */\n orderType: OrderType;\n\n /**\n * Time-in-force policy.\n *\n * @generated from field: orders.v1.TimeInForce time_in_force = 8;\n */\n timeInForce: TimeInForce;\n\n /**\n * Self-trade prevention mode.\n *\n * @generated from field: orders.v1.SelfTradePreventionMode self_trade_prevention_mode = 9;\n */\n selfTradePreventionMode: SelfTradePreventionMode;\n\n /**\n * Fee asset selected for fills.\n *\n * @generated from field: orders.v1.FeeAsset fee_asset = 10;\n */\n feeAsset: FeeAsset;\n\n /**\n * True if the order was submitted as post-only (maker-only).\n *\n * @generated from field: bool post_only = 11;\n */\n postOnly: boolean;\n\n /**\n * Current accepted total order quantity, updated by successful modifies,\n * scaled by the pair's base_quantity_scale from GetSpotConfig for symbol_id.\n *\n * @generated from field: int64 orig_qty_scaled = 12;\n */\n origQtyScaled: bigint;\n\n /**\n * Cumulative filled quantity across the lineage through this generation,\n * scaled by the pair's base_quantity_scale from GetSpotConfig for symbol_id.\n *\n * @generated from field: int64 cum_qty_scaled = 13;\n */\n cumQtyScaled: bigint;\n\n /**\n * Cumulative filled base quantity inherited from predecessors when this\n * replacement was accepted, scaled by the pair's base_quantity_scale from\n * GetSpotConfig for symbol_id. Zero for the original order and immutable\n * within a generation. cum_qty_scaled minus this value is the quantity\n * executed by this generation, not the quantity new to a client session.\n *\n * @generated from field: int64 inherited_cum_qty_scaled = 33;\n */\n inheritedCumQtyScaled: bigint;\n\n /**\n * Remaining working quantity scaled by the pair's base_quantity_scale from\n * GetSpotConfig for symbol_id. Zero for terminal orders.\n *\n * @generated from field: int64 leaves_qty_scaled = 20;\n */\n leavesQtyScaled: bigint;\n\n /**\n * Iceberg display quantity the order was placed with, scaled by the pair's\n * base_quantity_scale from GetSpotConfig for symbol_id: the most of the\n * order the order book shows at once. Zero for a plain order. A replace\n * keeps it while the new quantity is above it; a replace to the display or\n * below it is a plain order, zero here.\n *\n * @generated from field: int64 display_qty_scaled = 39;\n */\n displayQtyScaled: bigint;\n\n /**\n * Part of leaves_qty_scaled an iceberg order keeps hidden from the order\n * book, scaled by the pair's base_quantity_scale from GetSpotConfig for\n * symbol_id. The order book shows leaves_qty_scaled minus this quantity.\n * Zero for a plain order and for terminal orders.\n *\n * @generated from field: int64 hidden_qty_scaled = 40;\n */\n hiddenQtyScaled: bigint;\n\n /**\n * Average execution price across the lineage through this generation,\n * in quote units scaled by 1e9, rounded down. Zero if no fills.\n * avg_price_e18 carries the exact average.\n *\n * @generated from field: int64 avg_price_ticks = 14;\n */\n avgPriceTicks: bigint;\n\n /**\n * Average execution price across the lineage through this generation, in\n * quote units scaled by 1e18: the exact executed quote amount divided by\n * cum_qty_scaled, rounded half to even at the 18th decimal. Unset if no\n * fills.\n *\n * @generated from field: polyester.type.v1.U128 avg_price_e18 = 36;\n */\n avgPriceE18?: U128 | undefined;\n\n /**\n * Exact quote amount of the fills across the lineage through this\n * generation, before fees: the sum over the fills of their quantity,\n * scaled as cum_qty_scaled, times their price in quote units scaled by\n * 1e9. It is in quote units scaled by 10^(9 + base_quantity_scale), with\n * the pair's base_quantity_scale from GetSpotConfig for symbol_id; REST\n * shows it in quote units. avg_price_e18 is this amount over\n * cum_qty_scaled. Unset if no fills. A fill settles its quote rounded down\n * to 18 decimal places, which is this amount exactly unless\n * base_quantity_scale is above 9.\n *\n * For a BUY sized by a quote amount (submitted_max_quote_debit_scaled),\n * the quote the order used is this amount plus fee_total's amount_e18\n * when fee_asset is QUOTE, or minus it when fee_total's is_rebate is true,\n * since a rebate is credited; it is this amount alone when fee_asset is\n * BASE, whose fee is taken from the base received. What it left unspent is\n * submitted_max_quote_debit_scaled less the quote it used.\n *\n * For a SELL sized by a quote proceeds target\n * (submitted_quote_proceeds_scaled), this amount is the proceeds it\n * received before fees, never above the target; the quote it was credited\n * is this amount less fee_total's amount_e18, or plus it when fee_total's\n * is_rebate is true. What it did not receive is\n * submitted_quote_proceeds_scaled less this amount.\n *\n * @generated from field: polyester.type.v1.U128 cum_notional = 37;\n */\n cumNotional?: U128 | undefined;\n\n /**\n * Total fee of the fills across the lineage through this generation, net\n * of rebates, in the order's fee asset. Order history reads and\n * single-order reads that include execution history (the default) carry\n * it. It can trail the order's fills: its quantity shows which fills it\n * covers. Open-order reads, single-order reads without execution history\n * and private stream order updates leave it unset.\n *\n * @generated from field: orders.v1.OrderFeeTotal fee_total = 38;\n */\n feeTotal?: OrderFeeTotal | undefined;\n\n /**\n * Price in quote units scaled by 1e9. For a LIMIT order, its limit price.\n * For a MARKET order, whatever placed it, its protection price: the worst\n * price it may fill at, a BUY at or below it and a SELL at or above it. It\n * is the order's reference price moved by its maximum slippage, or by the\n * pair's default market slippage for its side (200 basis points if none is\n * configured), on the pair's tick grid. A stop-loss's, take-profit's or\n * trailing stop's market order takes the price that fired it as its\n * reference; a buy stop's is never above the protection price at its\n * trigger price.\n *\n * @generated from field: int64 price_ticks = 15;\n */\n priceTicks: bigint;\n\n /**\n * Creation timestamp in nanoseconds since epoch (UTC).\n *\n * @generated from field: uint64 created_ts_ns = 16;\n */\n createdTsNs: bigint;\n\n /**\n * Terminal timestamp in nanoseconds since epoch (UTC). Zero for open orders.\n *\n * @generated from field: uint64 terminal_ts_ns = 17;\n */\n terminalTsNs: bigint;\n\n /**\n * For a REJECTED order, why it was refused: the same error code the Orders\n * API returns for the same refusal. Not set for every other status; JSON and\n * REST responses then omit it.\n *\n * @generated from field: orders.v1.ErrorCode reject_reason = 34;\n */\n rejectReason: ErrorCode;\n\n /**\n * For a CANCELED order, why it ended. Not set for every other status; JSON\n * and REST responses then omit it.\n *\n * @generated from field: orders.v1.CancelReason cancel_reason = 35;\n */\n cancelReason: CancelReason;\n\n /**\n * Attached risk controls + runtime state on the parent order.\n * Empty when no attached risk exists. Order reads include it only when the\n * request asks for it (include_attached_risk, include_attached_risk_state):\n * an omission on request, never a removal. The private WebSocket always\n * carries it in full, as a read asking for both does.\n *\n * @generated from field: orders.v1.AttachedRisk attached_risk = 21;\n */\n attachedRisk?: AttachedRisk | undefined;\n\n /**\n * Runtime lineage metadata (why the order exists and what generated it).\n *\n * @generated from field: orders.v1.OrderOrigin origin = 22;\n */\n origin?: OrderOrigin | undefined;\n\n /**\n * Optional client-side reference price used for MARKET slippage protection,\n * in quote units scaled by 1e9.\n *\n * @generated from field: int64 market_client_ref_price_ticks = 23;\n */\n marketClientRefPriceTicks: bigint;\n\n /**\n * MARKET maximum absolute price delta the order carries, in Q9\n * execution-price ticks (1 tick = 1e-9 quote units). Positive when the order\n * set this cap; zero when it did not, for example because it set\n * market_max_slippage_bps instead.\n *\n * @generated from field: int64 market_max_slippage_ticks = 24;\n */\n marketMaxSlippageTicks: bigint;\n\n /**\n * Optional MARKET max slippage in basis points (1 bp = 0.01%).\n *\n * @generated from field: int32 market_max_slippage_bps = 25;\n */\n marketMaxSlippageBps: number;\n\n /**\n * Per-order state version: 0 while the order is accepted but not yet on\n * the book (status PENDING), then 1 from its first book state and higher\n * for every later published execution-state change. Higher values identify\n * newer execution state. Fee totals and requested enrichments are not covered\n * by this version and may differ between responses with the same version.\n *\n * @generated from field: uint32 version = 26;\n */\n version: number;\n\n /**\n * Batch-replace identity that admitted this order, retained after it ends.\n * Also set for batch-replaced trigger-generated orders. Zero when this order\n * was not admitted by a batch replacement; a later batch replacing this order\n * does not change its admission identity.\n *\n * @generated from field: fixed64 batch_request_id = 27;\n */\n batchRequestId: bigint;\n\n /**\n * Submitted hard all-in quote debit limit, scaled by the pair's\n * quote_quantity_scale from GetSpotConfig. Present only when that sizing\n * method was submitted.\n *\n * @generated from field: optional int64 submitted_max_quote_debit_scaled = 28;\n */\n submittedMaxQuoteDebitScaled?: bigint | undefined;\n\n /**\n * Submitted quote proceeds target, scaled by the pair's\n * quote_quantity_scale from GetSpotConfig. Present only when that sizing\n * method was submitted.\n *\n * @generated from field: optional int64 submitted_quote_proceeds_scaled = 41;\n */\n submittedQuoteProceedsScaled?: bigint | undefined;\n\n /**\n * Logical-order identity and requested generation. Always populated by order reads.\n *\n * @generated from field: orders.v1.OrderLineage lineage = 31;\n */\n lineage?: OrderLineage | undefined;\n\n /**\n * Exact UTC expiry time for GTD orders, within the supported signed\n * Unix-nanosecond range from 1677-09-21T00:12:43.145224193Z through\n * 2262-04-11T23:47:16.854775807Z. Omitted for all other time-in-force policies.\n * The order cannot execute when the current time equals this value.\n *\n * @generated from field: google.protobuf.Timestamp expire_at = 32;\n */\n expireAt?: Timestamp | undefined;\n};\n\n/**\n * Describes the message orders.v1.Order.\n * Use `create(OrderSchema)` to create a new message.\n */\nexport const OrderSchema: GenMessage<Order> = /*@__PURE__*/\n messageDesc(file_orders_v1_orders_read, 8);\n\n/**\n * UserTrade is the Connect-facing per-user trade fill view.\n *\n * @generated from message orders.v1.UserTrade\n */\nexport type UserTrade = Message<\"orders.v1.UserTrade\"> & {\n /**\n * Trading symbol numeric identifier.\n *\n * @generated from field: uint32 symbol_id = 2;\n */\n symbolId: number;\n\n /**\n * Match identifier (monotonic per symbol).\n *\n * @generated from field: uint64 match_id = 3;\n */\n matchId: bigint;\n\n /**\n * Order identifier as fixed64.\n *\n * @generated from field: fixed64 order_id = 4;\n */\n orderId: bigint;\n\n /**\n * Fill side.\n *\n * @generated from field: orders.v1.Side side = 5;\n */\n side: Side;\n\n /**\n * True if this fill was maker-side.\n *\n * @generated from field: bool is_maker = 6;\n */\n isMaker: boolean;\n\n /**\n * Execution price in quote units scaled by 1e9.\n *\n * @generated from field: int64 price_ticks = 7;\n */\n priceTicks: bigint;\n\n /**\n * Executed quantity scaled by the pair's base_quantity_scale from\n * GetSpotConfig for symbol_id.\n *\n * @generated from field: int64 qty_scaled = 8;\n */\n qtyScaled: bigint;\n\n /**\n * Exact fee magnitude in fixed 18-decimal units of fee_asset.\n *\n * @generated from field: polyester.type.v1.U128 fee_amount_e18 = 9;\n */\n feeAmountE18?: U128 | undefined;\n\n /**\n * Fee asset charged or credited for this fill.\n *\n * @generated from field: orders.v1.FeeAsset fee_asset = 10;\n */\n feeAsset: FeeAsset;\n\n /**\n * Exact referral share magnitude in fixed 18-decimal units of fee_asset.\n *\n * @generated from field: polyester.type.v1.U128 referral_share_amount_e18 = 12;\n */\n referralShareAmountE18?: U128 | undefined;\n\n /**\n * Execution timestamp in nanoseconds since epoch.\n *\n * @generated from field: uint64 ts_ns = 13;\n */\n tsNs: bigint;\n\n /**\n * Whether this fill earned a rebate instead of paying a fee.\n *\n * @generated from field: bool fee_is_rebate = 14;\n */\n feeIsRebate: boolean;\n\n /**\n * Logical-order identity and the generation that executed this fill.\n * Always populated by execution reads; order_id retains its original identity.\n *\n * @generated from field: orders.v1.OrderLineage lineage = 17;\n */\n lineage?: OrderLineage | undefined;\n};\n\n/**\n * Describes the message orders.v1.UserTrade.\n * Use `create(UserTradeSchema)` to create a new message.\n */\nexport const UserTradeSchema: GenMessage<UserTrade> = /*@__PURE__*/\n messageDesc(file_orders_v1_orders_read, 9);\n\n/**\n * UserTradeBatch is one realtime publication on an account's trade stream:\n * every fill queued for the stream when it was sent, at most 256 and at most\n * 64 KiB. Fills of one trading symbol arrive in execution order; fills of\n * different symbols have no defined order relative to each other.\n *\n * (match_id, order_id) identifies a fill; order_id tells apart the two fills\n * of a trade between two orders of the same account. Apply fills in array\n * order and in publication order; a fill whose identity was already received\n * replaces the earlier copy. When the subscription reports that missed\n * publications could not be recovered, reload recent fills over REST.\n *\n * @generated from message orders.v1.UserTradeBatch\n */\nexport type UserTradeBatch = Message<\"orders.v1.UserTradeBatch\"> & {\n /**\n * Fills, oldest first per trading symbol. At least one fill.\n *\n * @generated from field: repeated orders.v1.UserTrade events = 1;\n */\n events: UserTrade[];\n};\n\n/**\n * Describes the message orders.v1.UserTradeBatch.\n * Use `create(UserTradeBatchSchema)` to create a new message.\n */\nexport const UserTradeBatchSchema: GenMessage<UserTradeBatch> = /*@__PURE__*/\n messageDesc(file_orders_v1_orders_read, 10);\n\n/**\n * OrderTransfer is the Connect-facing minimal per-leg transfer view.\n *\n * @generated from message orders.v1.OrderTransfer\n */\nexport type OrderTransfer = Message<\"orders.v1.OrderTransfer\"> & {\n /**\n * Match identifier that linked this transfer to an execution, scoped by symbol_id.\n *\n * @generated from field: uint64 match_id = 1;\n */\n matchId: bigint;\n\n /**\n * Market of the execution; together with match_id identifies its match.\n *\n * @generated from field: uint32 symbol_id = 10;\n */\n symbolId: number;\n\n /**\n * Asset identifier for the transferred asset.\n *\n * @generated from field: uint32 asset_id = 2;\n */\n assetId: number;\n\n /**\n * Transfer amount at fixed 18-decimal ledger scale.\n *\n * @generated from field: polyester.type.v1.U128 amount_e18 = 3;\n */\n amountE18?: U128 | undefined;\n\n /**\n * True when the transfer debits the account; false when it credits the account.\n *\n * @generated from field: bool is_debit = 5;\n */\n isDebit: boolean;\n\n /**\n * Product reason for this transfer leg.\n *\n * @generated from field: ledger.v1.TransferCode transfer_code = 6;\n */\n transferCode: TransferCode;\n\n /**\n * Account bucket affected by this transfer leg.\n *\n * @generated from field: ledger.v1.AccountCode account_code = 7;\n */\n accountCode: AccountCode;\n\n /**\n * Transfer timestamp in nanoseconds since epoch (UTC).\n *\n * @generated from field: uint64 ts_ns = 8;\n */\n tsNs: bigint;\n\n /**\n * Transfer transaction identifier.\n *\n * @generated from field: string tx_id = 9;\n */\n txId: string;\n};\n\n/**\n * Describes the message orders.v1.OrderTransfer.\n * Use `create(OrderTransferSchema)` to create a new message.\n */\nexport const OrderTransferSchema: GenMessage<OrderTransfer> = /*@__PURE__*/\n messageDesc(file_orders_v1_orders_read, 11);\n\n/**\n * GetOpenOrdersRequest lists currently non-terminal orders for an account.\n *\n * @generated from message orders.v1.GetOpenOrdersRequest\n */\nexport type GetOpenOrdersRequest = Message<\"orders.v1.GetOpenOrdersRequest\"> & {\n /**\n * Optional public subaccount ID. When omitted, subaccount-scoped API keys\n * use their bound subaccount; other callers use their authenticated root\n * account.\n *\n * @generated from field: optional fixed64 subaccount_id = 1;\n */\n subaccountId?: bigint | undefined;\n\n /**\n * Optional filter by symbol_id values: at most 100 distinct positive IDs.\n * Empty means all symbols.\n *\n * @generated from field: repeated uint32 symbol_id = 2;\n */\n symbolId: number[];\n\n /**\n * Optional side filter.\n *\n * @generated from field: orders.v1.Side side = 3;\n */\n side: Side;\n\n /**\n * Max number of orders to return (1-1000, default 100).\n *\n * @generated from field: optional uint32 limit = 10;\n */\n limit?: number | undefined;\n\n /**\n * Opaque keyset cursor from a previous response. The cursor is exclusive and\n * bound to the authenticated account, sub-account scope, filters, and sort\n * order. At most 512 characters.\n *\n * @generated from field: string page_token = 11;\n */\n pageToken: string;\n\n /**\n * Include attached-risk policy details in each order (defaults to false when unset).\n *\n * @generated from field: optional bool include_attached_risk = 12;\n */\n includeAttachedRisk?: boolean | undefined;\n\n /**\n * Include attached-risk state details in each order (defaults to false when unset).\n *\n * @generated from field: optional bool include_attached_risk_state = 13;\n */\n includeAttachedRiskState?: boolean | undefined;\n\n /**\n * Optional trigger identifier. When set, returns only child orders created by\n * that trigger.\n *\n * @generated from field: optional fixed64 trigger_id = 14;\n */\n triggerId?: bigint | undefined;\n};\n\n/**\n * Describes the message orders.v1.GetOpenOrdersRequest.\n * Use `create(GetOpenOrdersRequestSchema)` to create a new message.\n */\nexport const GetOpenOrdersRequestSchema: GenMessage<GetOpenOrdersRequest> = /*@__PURE__*/\n messageDesc(file_orders_v1_orders_read, 12);\n\n/**\n * GetOpenOrdersResponse returns open orders and an optional next-page cursor.\n *\n * @generated from message orders.v1.GetOpenOrdersResponse\n */\nexport type GetOpenOrdersResponse = Message<\"orders.v1.GetOpenOrdersResponse\"> & {\n /**\n * Open orders ordered newest-first.\n *\n * @generated from field: repeated orders.v1.Order orders = 1;\n */\n orders: Order[];\n\n /**\n * Opaque cursor for the next page. Empty when no more results exist.\n *\n * @generated from field: string next_page_token = 2;\n */\n nextPageToken: string;\n};\n\n/**\n * Describes the message orders.v1.GetOpenOrdersResponse.\n * Use `create(GetOpenOrdersResponseSchema)` to create a new message.\n */\nexport const GetOpenOrdersResponseSchema: GenMessage<GetOpenOrdersResponse> = /*@__PURE__*/\n messageDesc(file_orders_v1_orders_read, 13);\n\n/**\n * GetOrderHistoryRequest lists terminal orders for an account.\n *\n * @generated from message orders.v1.GetOrderHistoryRequest\n */\nexport type GetOrderHistoryRequest = Message<\"orders.v1.GetOrderHistoryRequest\"> & {\n /**\n * Optional public subaccount ID. When omitted, subaccount-scoped API keys\n * use their bound subaccount; other callers use their authenticated root\n * account.\n *\n * @generated from field: optional fixed64 subaccount_id = 1;\n */\n subaccountId?: bigint | undefined;\n\n /**\n * Optional filter by symbol_id values: at most 100 distinct positive IDs.\n * Empty means all symbols.\n *\n * @generated from field: repeated uint32 symbol_id = 2;\n */\n symbolId: number[];\n\n /**\n * Optional side filter.\n *\n * @generated from field: orders.v1.Side side = 3;\n */\n side: Side;\n\n /**\n * Optional status filter.\n *\n * @generated from field: orders.v1.OrderStatus status = 4;\n */\n status: OrderStatus;\n\n /**\n * Inclusive start of the time range, in nanoseconds since epoch (UTC).\n *\n * @generated from field: optional uint64 start_ts_ns = 10;\n */\n startTsNs?: bigint | undefined;\n\n /**\n * Inclusive end of the time range, in nanoseconds since epoch (UTC).\n * Omit for no upper bound; an explicit zero returns an empty page. Any\n * other value must not be earlier than start_ts_ns when both are set.\n *\n * @generated from field: optional uint64 end_ts_ns = 11;\n */\n endTsNs?: bigint | undefined;\n\n /**\n * Max number of orders to return (1-1000, default 100).\n *\n * @generated from field: optional uint32 limit = 12;\n */\n limit?: number | undefined;\n\n /**\n * Opaque keyset cursor from a previous response. The cursor is exclusive and\n * bound to the authenticated account, sub-account scope, filters, time range,\n * and sort order. At most 512 characters.\n *\n * @generated from field: string page_token = 13;\n */\n pageToken: string;\n\n /**\n * Include attached-risk policy details in each order (defaults to false when unset).\n *\n * @generated from field: optional bool include_attached_risk = 14;\n */\n includeAttachedRisk?: boolean | undefined;\n\n /**\n * Include attached-risk state details in each order (defaults to false when unset).\n *\n * @generated from field: optional bool include_attached_risk_state = 15;\n */\n includeAttachedRiskState?: boolean | undefined;\n\n /**\n * Optional trigger identifier. When set, returns only child orders created by\n * that trigger.\n *\n * @generated from field: optional fixed64 trigger_id = 16;\n */\n triggerId?: bigint | undefined;\n};\n\n/**\n * Describes the message orders.v1.GetOrderHistoryRequest.\n * Use `create(GetOrderHistoryRequestSchema)` to create a new message.\n */\nexport const GetOrderHistoryRequestSchema: GenMessage<GetOrderHistoryRequest> = /*@__PURE__*/\n messageDesc(file_orders_v1_orders_read, 14);\n\n/**\n * GetOrderHistoryResponse returns historical orders and an optional next-page cursor.\n *\n * @generated from message orders.v1.GetOrderHistoryResponse\n */\nexport type GetOrderHistoryResponse = Message<\"orders.v1.GetOrderHistoryResponse\"> & {\n /**\n * Historical orders ordered newest-first.\n *\n * @generated from field: repeated orders.v1.Order orders = 1;\n */\n orders: Order[];\n\n /**\n * Opaque cursor for the next page. A page may hold fewer orders than\n * requested, or none; continue while this token is non-empty. Empty when no\n * more results exist.\n *\n * @generated from field: string next_page_token = 2;\n */\n nextPageToken: string;\n};\n\n/**\n * Describes the message orders.v1.GetOrderHistoryResponse.\n * Use `create(GetOrderHistoryResponseSchema)` to create a new message.\n */\nexport const GetOrderHistoryResponseSchema: GenMessage<GetOrderHistoryResponse> = /*@__PURE__*/\n messageDesc(file_orders_v1_orders_read, 15);\n\n/**\n * GetUserTradesRequest lists trade fills for an account.\n *\n * @generated from message orders.v1.GetUserTradesRequest\n */\nexport type GetUserTradesRequest = Message<\"orders.v1.GetUserTradesRequest\"> & {\n /**\n * Optional public subaccount ID. When omitted, subaccount-scoped API keys\n * use their bound subaccount; other callers use their authenticated root\n * account.\n *\n * @generated from field: optional fixed64 subaccount_id = 1;\n */\n subaccountId?: bigint | undefined;\n\n /**\n * Optional filter by symbol_id. Required with after_match_id.\n *\n * @generated from field: uint32 symbol_id = 2;\n */\n symbolId: number;\n\n /**\n * Optional side filter.\n *\n * @generated from field: orders.v1.Side side = 3;\n */\n side: Side;\n\n /**\n * Inclusive start of the time range, in nanoseconds since epoch (UTC).\n *\n * @generated from field: optional uint64 start_ts_ns = 10;\n */\n startTsNs?: bigint | undefined;\n\n /**\n * Inclusive end of the time range, in nanoseconds since epoch (UTC).\n * Omit for no upper bound; an explicit zero returns an empty page. Any\n * other value must not be earlier than start_ts_ns when both are set.\n *\n * @generated from field: optional uint64 end_ts_ns = 11;\n */\n endTsNs?: bigint | undefined;\n\n /**\n * Max number of trades to return (1-1000, default 100).\n *\n * @generated from field: optional uint32 limit = 12;\n */\n limit?: number | undefined;\n\n /**\n * Opaque keyset cursor from a previous response. The cursor is exclusive and\n * bound to the authenticated account, sub-account scope, filters, time range,\n * and sort order. At most 512 characters.\n *\n * @generated from field: string page_token = 13;\n */\n pageToken: string;\n\n /**\n * Return only durable fills whose per-symbol match ID is greater than this\n * value. Subscribe to the execution WebSocket before calling this method and\n * de-duplicate overlapping results by (symbol_id, match_id, order_id).\n * Must be positive and requires symbol_id, because match IDs are per symbol.\n *\n * @generated from field: optional uint64 after_match_id = 14;\n */\n afterMatchId?: bigint | undefined;\n\n /**\n * Optional execution scope. Omitting it returns all matching account fills.\n * order_id and lineage_id are mutually exclusive.\n *\n * @generated from oneof orders.v1.GetUserTradesRequest.execution_scope\n */\n executionScope: {\n /**\n * Exactly this physical order's executions; never includes predecessors.\n *\n * @generated from field: fixed64 order_id = 15;\n */\n value: bigint;\n case: \"orderId\";\n } | {\n /**\n * Executions across this logical order's accepted generations.\n *\n * @generated from field: fixed64 lineage_id = 16;\n */\n value: bigint;\n case: \"lineageId\";\n } | { case: undefined; value?: undefined };\n\n /**\n * Positive inclusive generation ceiling; requires lineage_id.\n * Does not freeze an actively filling generation.\n *\n * @generated from field: optional uint32 through_generation = 17;\n */\n throughGeneration?: number | undefined;\n\n /**\n * Include account settlement legs linked to matches on this page.\n * Legs may repeat across pages when two fills share a match; deduplicate by tx_id.\n *\n * @generated from field: bool include_transfers = 18;\n */\n includeTransfers: boolean;\n};\n\n/**\n * Describes the message orders.v1.GetUserTradesRequest.\n * Use `create(GetUserTradesRequestSchema)` to create a new message.\n */\nexport const GetUserTradesRequestSchema: GenMessage<GetUserTradesRequest> = /*@__PURE__*/\n messageDesc(file_orders_v1_orders_read, 16);\n\n/**\n * GetUserTradesResponse returns user trade fills and an optional next-page cursor.\n *\n * @generated from message orders.v1.GetUserTradesResponse\n */\nexport type GetUserTradesResponse = Message<\"orders.v1.GetUserTradesResponse\"> & {\n /**\n * Trades ordered by timestamp, symbol, match and physical order, descending.\n * Projection is eventual: an empty page is not proof of order-state reconciliation.\n *\n * @generated from field: repeated orders.v1.UserTrade trades = 1;\n */\n trades: UserTrade[];\n\n /**\n * Opaque cursor for the next page. Empty when no more results exist.\n *\n * @generated from field: string next_page_token = 2;\n */\n nextPageToken: string;\n\n /**\n * Settlement legs for matches represented on this page, when requested.\n *\n * @generated from field: repeated orders.v1.OrderTransfer transfers = 3;\n */\n transfers: OrderTransfer[];\n};\n\n/**\n * Describes the message orders.v1.GetUserTradesResponse.\n * Use `create(GetUserTradesResponseSchema)` to create a new message.\n */\nexport const GetUserTradesResponseSchema: GenMessage<GetUserTradesResponse> = /*@__PURE__*/\n messageDesc(file_orders_v1_orders_read, 17);\n\n/**\n * GetOrderRequest retrieves one physical order and a bounded page of its lineage executions.\n *\n * @generated from message orders.v1.GetOrderRequest\n */\nexport type GetOrderRequest = Message<\"orders.v1.GetOrderRequest\"> & {\n /**\n * Optional public subaccount ID. When omitted, subaccount-scoped API keys\n * use their bound subaccount; other callers use their authenticated root\n * account.\n *\n * @generated from field: optional fixed64 subaccount_id = 1;\n */\n subaccountId?: bigint | undefined;\n\n /**\n * Order lookup key. Exactly one identifier is required.\n *\n * @generated from oneof orders.v1.GetOrderRequest.key\n */\n key: {\n /**\n * Public order ID (base58-encoded fixed64 on REST).\n *\n * @generated from field: fixed64 order_id = 2;\n */\n value: bigint;\n case: \"orderId\";\n } | {\n /**\n * Client order ID. When provided, server resolves latest matching order for the account.\n * 1 to 36 ASCII characters using letters, digits, period, underscore,\n * colon, slash, or hyphen.\n *\n * @generated from field: string client_order_id = 3;\n */\n value: string;\n case: \"clientOrderId\";\n } | { case: undefined; value?: undefined };\n\n /**\n * Include attached-risk policy details in response.order (defaults to false when unset).\n *\n * @generated from field: optional bool include_attached_risk = 10;\n */\n includeAttachedRisk?: boolean | undefined;\n\n /**\n * Include attached-risk state details in response.order (defaults to false when unset).\n *\n * @generated from field: optional bool include_attached_risk_state = 11;\n */\n includeAttachedRiskState?: boolean | undefined;\n\n /**\n * Include a page of lineage trades and their settlement transfers (default true).\n * Set false for state-only polling; limit and page_token must then be omitted.\n *\n * @generated from field: optional bool include_execution_history = 12;\n */\n includeExecutionHistory?: boolean | undefined;\n\n /**\n * Maximum executions to return (1-1000, default 100).\n *\n * @generated from field: optional uint32 limit = 13;\n */\n limit?: number | undefined;\n\n /**\n * Execution cursor from this order's previous response. Use order_id rather\n * than a reused client_order_id to keep the requested generation stable.\n * At most 512 characters.\n *\n * @generated from field: string page_token = 14;\n */\n pageToken: string;\n};\n\n/**\n * Describes the message orders.v1.GetOrderRequest.\n * Use `create(GetOrderRequestSchema)` to create a new message.\n */\nexport const GetOrderRequestSchema: GenMessage<GetOrderRequest> = /*@__PURE__*/\n messageDesc(file_orders_v1_orders_read, 18);\n\n/**\n * GetOrderResponse returns order details and a bounded execution page.\n * The order shows a fill as soon as it executes; its trades are recorded\n * shortly after. executions_complete says whether the trades already account\n * for every execution the order shows. Transfers are eventually consistent and\n * can trail the trades they settle.\n *\n * @generated from message orders.v1.GetOrderResponse\n */\nexport type GetOrderResponse = Message<\"orders.v1.GetOrderResponse\"> & {\n /**\n * Requested order, if found.\n *\n * @generated from field: orders.v1.Order order = 1;\n */\n order?: Order | undefined;\n\n /**\n * Lineage executions through the requested generation, newest first, retaining\n * original executing order IDs. Omitted when execution history is disabled.\n *\n * @generated from field: repeated orders.v1.UserTrade trades = 2;\n */\n trades: UserTrade[];\n\n /**\n * Account settlement legs for matches on this page. Deduplicate by tx_id when\n * multiple execution pages contain legs of the same match.\n *\n * @generated from field: repeated orders.v1.OrderTransfer transfers = 3;\n */\n transfers: OrderTransfer[];\n\n /**\n * Cursor for the next execution page. Empty when no further rows are visible;\n * this is not a settlement or order-state reconciliation watermark.\n *\n * @generated from field: string next_page_token = 6;\n */\n nextPageToken: string;\n\n /**\n * True when the order's trades through its generation, across every page,\n * add up exactly to its cum_qty_scaled. False while a recent execution is\n * still being recorded: trades then lists the executions recorded so far,\n * and a later read returns the rest. Always false when execution history is\n * not included.\n *\n * @generated from field: bool executions_complete = 7;\n */\n executionsComplete: boolean;\n};\n\n/**\n * Describes the message orders.v1.GetOrderResponse.\n * Use `create(GetOrderResponseSchema)` to create a new message.\n */\nexport const GetOrderResponseSchema: GenMessage<GetOrderResponse> = /*@__PURE__*/\n messageDesc(file_orders_v1_orders_read, 19);\n\n/**\n * GetBatchReplaceStatusRequest retrieves one accepted batch by server identity.\n * A batch's status is retained for 60 seconds from its acceptance, the same\n * time-limited window in which an identical retry replays its admission. It\n * is readable as soon as BatchReplaceOrders returns; each item's execution\n * phase then advances asynchronously. UNAVAILABLE means the status cannot be\n * established yet: retry the same request within the window. NOT_FOUND means\n * the account has no retained batch with this identity: none was accepted for\n * it, or the window ended. NOT_FOUND never proves that a replacement was\n * rejected. After the window, reconcile the individual orders, and never\n * submit an accepted batch again because its status is not found.\n *\n * @generated from message orders.v1.GetBatchReplaceStatusRequest\n */\nexport type GetBatchReplaceStatusRequest = Message<\"orders.v1.GetBatchReplaceStatusRequest\"> & {\n /**\n * Optional public subaccount ID. When omitted, subaccount-scoped API keys\n * use their bound subaccount; other callers use their authenticated root\n * account.\n *\n * @generated from field: optional fixed64 subaccount_id = 1;\n */\n subaccountId?: bigint | undefined;\n\n /**\n * Server-issued batch identity from BatchReplaceOrders.\n *\n * @generated from field: fixed64 batch_request_id = 2;\n */\n batchRequestId: bigint;\n};\n\n/**\n * Describes the message orders.v1.GetBatchReplaceStatusRequest.\n * Use `create(GetBatchReplaceStatusRequestSchema)` to create a new message.\n */\nexport const GetBatchReplaceStatusRequestSchema: GenMessage<GetBatchReplaceStatusRequest> = /*@__PURE__*/\n messageDesc(file_orders_v1_orders_read, 20);\n\n/**\n * BatchReplaceStatusItem is the index-stable execution status for one replacement.\n *\n * @generated from message orders.v1.BatchReplaceStatusItem\n */\nexport type BatchReplaceStatusItem = Message<\"orders.v1.BatchReplaceStatusItem\"> & {\n /**\n * Zero-based item index from the write request.\n *\n * @generated from field: uint32 item_index = 1;\n */\n itemIndex: number;\n\n /**\n * Current recoverable phase.\n *\n * @generated from field: orders.v1.BatchReplacePhase phase = 2;\n */\n phase: BatchReplacePhase;\n\n /**\n * Original order targeted by the replacement.\n *\n * @generated from field: fixed64 old_order_id = 3;\n */\n oldOrderId: bigint;\n\n /**\n * Assigned successor order ID. Zero for an amended item or rejection before assignment.\n *\n * @generated from field: fixed64 replacement_order_id = 4;\n */\n replacementOrderId: bigint;\n\n /**\n * Current successor status, or the amended order's status, when available.\n *\n * @generated from field: orders.v1.OrderStatus order_status = 5;\n */\n orderStatus: OrderStatus;\n\n /**\n * Stable rejection or terminal error code. Empty when none.\n *\n * @generated from field: string code = 6;\n */\n code: string;\n\n /**\n * Latest status timestamp in nanoseconds since epoch. For an item refused\n * after its admission, this is when the refusal was recorded, or a later\n * time at which the service recovered and observed it, so two reads may\n * show different times for the same refusal. Do not use it to identify the\n * refusal.\n *\n * @generated from field: uint64 updated_ts_ns = 7;\n */\n updatedTsNs: bigint;\n\n /**\n * REPLACED admits a successor. AMENDED keeps the order under old_order_id with\n * no successor, and order_status describes it. Unspecified for rejected items.\n *\n * @generated from field: orders.v1.ModifyActionTaken action_taken = 8;\n */\n actionTaken: ModifyActionTaken;\n};\n\n/**\n * Describes the message orders.v1.BatchReplaceStatusItem.\n * Use `create(BatchReplaceStatusItemSchema)` to create a new message.\n */\nexport const BatchReplaceStatusItemSchema: GenMessage<BatchReplaceStatusItem> = /*@__PURE__*/\n messageDesc(file_orders_v1_orders_read, 21);\n\n/**\n * GetBatchReplaceStatusResponse returns a batch's admission and each item's\n * current execution phase.\n *\n * @generated from message orders.v1.GetBatchReplaceStatusResponse\n */\nexport type GetBatchReplaceStatusResponse = Message<\"orders.v1.GetBatchReplaceStatusResponse\"> & {\n /**\n * Server-issued batch identity.\n *\n * @generated from field: fixed64 batch_request_id = 1;\n */\n batchRequestId: bigint;\n\n /**\n * Aggregate admission status returned by the write receipt.\n *\n * @generated from field: orders.v1.BatchReplaceAdmissionStatus admission_status = 2;\n */\n admissionStatus: BatchReplaceAdmissionStatus;\n\n /**\n * Per-item statuses in request order.\n *\n * @generated from field: repeated orders.v1.BatchReplaceStatusItem items = 3;\n */\n items: BatchReplaceStatusItem[];\n\n /**\n * Number of admitted items.\n *\n * @generated from field: uint32 accepted_count = 4;\n */\n acceptedCount: number;\n\n /**\n * Number of rejected items.\n *\n * @generated from field: uint32 rejected_count = 5;\n */\n rejectedCount: number;\n\n /**\n * Server acceptance timestamp in nanoseconds since epoch.\n *\n * @generated from field: uint64 accepted_ts_ns = 6;\n */\n acceptedTsNs: bigint;\n\n /**\n * Latest batch status timestamp in nanoseconds since epoch: the latest of\n * its acceptance and its items' update times, so it can show a recovery\n * time as an item's can.\n *\n * @generated from field: uint64 updated_ts_ns = 7;\n */\n updatedTsNs: bigint;\n};\n\n/**\n * Describes the message orders.v1.GetBatchReplaceStatusResponse.\n * Use `create(GetBatchReplaceStatusResponseSchema)` to create a new message.\n */\nexport const GetBatchReplaceStatusResponseSchema: GenMessage<GetBatchReplaceStatusResponse> = /*@__PURE__*/\n messageDesc(file_orders_v1_orders_read, 22);\n\n/**\n * OrderStatus describes the order's execution lifecycle state on read surfaces.\n * CreateOrder acknowledges admission without returning execution status.\n *\n * @generated from enum orders.v1.OrderStatus\n */\nexport enum OrderStatus {\n /**\n * Order status was not provided.\n *\n * @generated from enum value: ORDER_STATUS_UNSPECIFIED = 0;\n */\n ORDER_STATUS_UNSPECIFIED = 0,\n\n /**\n * Accepted and submitted for execution, but not yet confirmed as working.\n *\n * @generated from enum value: PENDING = 1;\n */\n PENDING = 1,\n\n /**\n * Cancel requested; may still be working until cancel is confirmed.\n *\n * @generated from enum value: PENDING_CANCEL = 2;\n */\n PENDING_CANCEL = 2,\n\n /**\n * Accepted and actively working (resting and/or matching).\n *\n * @generated from enum value: WORKING = 3;\n */\n WORKING = 3,\n\n /**\n * Fully filled (no remaining quantity). A buy sized by a quote amount\n * (max_quote_debit_scaled) is fully filled once it has spent that amount:\n * what is left of it buys no further quantity step at the next price the\n * order could fill at. Its quantity is then what it bought. A sell sized by\n * a quote proceeds target (quote_proceeds_scaled) is fully filled once\n * what is left of that target sells no further quantity step at the next\n * price the order could fill at. Its quantity is then what it sold.\n *\n * @generated from enum value: FILLED = 4;\n */\n FILLED = 4,\n\n /**\n * Canceled and no longer working.\n *\n * @generated from enum value: CANCELED = 5;\n */\n CANCELED = 5,\n\n /**\n * Rejected and never entered the working state.\n *\n * @generated from enum value: REJECTED = 6;\n */\n REJECTED = 6,\n}\n\n/**\n * Describes the enum orders.v1.OrderStatus.\n */\nexport const OrderStatusSchema: GenEnum<OrderStatus> = /*@__PURE__*/\n enumDesc(file_orders_v1_orders_read, 0);\n\n/**\n * CancelReason is why a CANCELED order ended. A cancel is no error: a\n * refused order is REJECTED and names its refusal with an ErrorCode instead.\n * Fills before the cancel stand, and the order's remaining reserved funds are\n * released.\n *\n * @generated from enum orders.v1.CancelReason\n */\nexport enum CancelReason {\n /**\n * The order is not canceled.\n *\n * @generated from enum value: CANCEL_REASON_UNSPECIFIED = 0;\n */\n UNSPECIFIED = 0,\n\n /**\n * A cancel the account sent: a cancel, a batch cancel or a cancel-all.\n *\n * @generated from enum value: CANCEL_REASON_USER_REQUEST = 1;\n */\n USER_REQUEST = 1,\n\n /**\n * The unfilled remainder of an immediate-or-cancel order. A buy sized by a\n * quote amount (max_quote_debit_scaled) that spends that amount, or a sell\n * sized by a quote proceeds target (quote_proceeds_scaled) that receives\n * it, ends FILLED instead.\n *\n * @generated from enum value: CANCEL_REASON_IOC_REMAINDER = 2;\n */\n IOC_REMAINDER = 2,\n\n /**\n * The unfilled remainder of a market order: the book ran out, the next\n * price was past the order's protection price, or the order reached the\n * market's maximum order quantity. A market buy sized by a quote amount\n * (max_quote_debit_scaled) that spends that amount, so that what is left\n * buys no further quantity step, ends FILLED instead, as does a market sell\n * sized by a quote proceeds target (quote_proceeds_scaled) once what is\n * left of the target sells no further quantity step.\n *\n * @generated from enum value: CANCEL_REASON_MARKET_REMAINDER = 3;\n */\n MARKET_REMAINDER = 3,\n\n /**\n * Self-trade prevention canceled this resting order when an incoming order\n * belonging to the same root account, including another subaccount of that\n * root, would have matched it.\n *\n * @generated from enum value: CANCEL_REASON_STP_EXPIRE_MAKER = 4;\n */\n STP_EXPIRE_MAKER = 4,\n\n /**\n * Self-trade prevention canceled this incoming order instead of matching a\n * resting order belonging to the same root account, including another\n * subaccount of that root.\n *\n * @generated from enum value: CANCEL_REASON_STP_EXPIRE_TAKER = 5;\n */\n STP_EXPIRE_TAKER = 5,\n\n /**\n * Self-trade prevention canceled both this order and the order belonging to\n * the same root account, including another subaccount of that root, that it\n * would have matched.\n *\n * @generated from enum value: CANCEL_REASON_STP_EXPIRE_BOTH = 6;\n */\n STP_EXPIRE_BOTH = 6,\n\n /**\n * A replace ended this order and created its successor.\n *\n * @generated from enum value: CANCEL_REASON_REPLACED = 7;\n */\n REPLACED = 7,\n\n /**\n * A good-till-date order reached its expiry time.\n *\n * @generated from enum value: CANCEL_REASON_GTD_EXPIRED = 8;\n */\n GTD_EXPIRED = 8,\n\n /**\n * An amend or replace set the order's total quantity at or below its filled\n * quantity, so the order ended at its filled quantity.\n *\n * @generated from enum value: CANCEL_REASON_QTY_AT_OR_BELOW_FILLED = 9;\n */\n QTY_AT_OR_BELOW_FILLED = 9,\n\n /**\n * The market was disabled: the exchange canceled its resting orders.\n *\n * @generated from enum value: CANCEL_REASON_PAIR_DRAIN = 10;\n */\n PAIR_DRAIN = 10,\n\n /**\n * The market refused one of the order's attached take-profit, stop-loss or\n * trailing-stop legs, so the order's remainder and its other legs were\n * canceled.\n *\n * @generated from enum value: CANCEL_REASON_ATTACHED_RISK_REFUSED = 11;\n */\n ATTACHED_RISK_REFUSED = 11,\n\n /**\n * The account's cancel-all-after timer reached its deadline without a\n * heartbeat.\n *\n * @generated from enum value: CANCEL_REASON_CANCEL_ALL_AFTER = 12;\n */\n CANCEL_ALL_AFTER = 12,\n\n /**\n * Canceled by the exchange while it recovered the account. Place new orders\n * once the account trades again.\n *\n * @generated from enum value: CANCEL_REASON_ACCOUNT_REPAIR = 13;\n */\n ACCOUNT_REPAIR = 13,\n\n /**\n * A TWAP slice its TWAP canceled at the next slice's due time; its unfilled\n * remainder moves to the TWAP's later slices.\n *\n * @generated from enum value: CANCEL_REASON_TWAP_ROLLOVER = 14;\n */\n TWAP_ROLLOVER = 14,\n\n /**\n * An order a trigger placed, such as a TWAP slice, a ladder level, a stop's\n * child or an attached leg's exit, canceled because its trigger ended or\n * another leg took over the exit.\n *\n * @generated from enum value: CANCEL_REASON_STRATEGY_CANCEL = 15;\n */\n STRATEGY_CANCEL = 15,\n\n /**\n * The exchange canceled the order for a reason it does not name.\n *\n * @generated from enum value: CANCEL_REASON_SYSTEM = 16;\n */\n SYSTEM = 16,\n\n /**\n * The market was halted: the exchange canceled every open order of the\n * market. Fills before the cancel stand. The market refuses new orders until\n * it trades again.\n *\n * @generated from enum value: CANCEL_REASON_MARKET_HALTED = 17;\n */\n MARKET_HALTED = 17,\n\n /**\n * The order's attached take-profit, stop-loss or trailing stop fired while\n * the order still rested: the exchange canceled the order's unfilled\n * remainder before placing the attached order, so the two never trade with\n * each other. Fills before the cancel stand.\n *\n * @generated from enum value: CANCEL_REASON_ATTACHED_EXIT_FIRED = 18;\n */\n ATTACHED_EXIT_FIRED = 18,\n\n /**\n * Self-trade prevention mode DECREMENT reduced this order to its filled\n * quantity: an incoming order met a resting order belonging to the same\n * root account, including another subaccount of that root, both were\n * reduced by the quantity that would have traded, with no trade, and this\n * order had no quantity left. Fills before the cancel stand.\n *\n * @generated from enum value: CANCEL_REASON_STP_DECREMENT = 19;\n */\n STP_DECREMENT = 19,\n\n /**\n * The market's price band stopped the order: it filled up to the band's\n * limit price, and its unfilled remainder was canceled rather than trade\n * beyond the band. Fills before the cancel stand.\n *\n * @generated from enum value: CANCEL_REASON_PRICE_BAND = 20;\n */\n PRICE_BAND = 20,\n\n /**\n * Cancel-on-disconnect canceled the order: the trading WebSocket\n * connections of the account that opted in to cancel-on-disconnect all\n * closed, and no session of the account opted in again before each one's\n * grace period passed. An order the account's own cancel-all-after timer\n * canceled reads CANCEL_REASON_CANCEL_ALL_AFTER instead. Fills before the\n * cancel stand.\n *\n * @generated from enum value: CANCEL_REASON_CANCEL_ON_DISCONNECT = 21;\n */\n CANCEL_ON_DISCONNECT = 21,\n}\n\n/**\n * Describes the enum orders.v1.CancelReason.\n */\nexport const CancelReasonSchema: GenEnum<CancelReason> = /*@__PURE__*/\n enumDesc(file_orders_v1_orders_read, 1);\n\n/**\n * BatchReplacePhase is the recoverable execution phase for one replacement.\n *\n * @generated from enum orders.v1.BatchReplacePhase\n */\nexport enum BatchReplacePhase {\n /**\n * Phase is unavailable.\n *\n * @generated from enum value: BATCH_REPLACE_PHASE_UNSPECIFIED = 0;\n */\n UNSPECIFIED = 0,\n\n /**\n * The operation was admitted and handed to execution, amended items included.\n *\n * @generated from enum value: BATCH_REPLACE_PHASE_ADMITTED = 1;\n */\n ADMITTED = 1,\n\n /**\n * The successor order, or the amended order, is active.\n *\n * @generated from enum value: BATCH_REPLACE_PHASE_WORKING = 2;\n */\n WORKING = 2,\n\n /**\n * The replacement was rejected.\n *\n * @generated from enum value: BATCH_REPLACE_PHASE_REJECTED = 3;\n */\n REJECTED = 3,\n\n /**\n * The successor, or the amended order, reached a terminal state.\n *\n * @generated from enum value: BATCH_REPLACE_PHASE_TERMINAL = 4;\n */\n TERMINAL = 4,\n}\n\n/**\n * Describes the enum orders.v1.BatchReplacePhase.\n */\nexport const BatchReplacePhaseSchema: GenEnum<BatchReplacePhase> = /*@__PURE__*/\n enumDesc(file_orders_v1_orders_read, 2);\n\n/**\n * OrderOriginScope captures broad origin classes for an order.\n *\n * @generated from enum orders.v1.OrderOriginScope\n */\nexport enum OrderOriginScope {\n /**\n * Order origin scope was not provided.\n *\n * @generated from enum value: ORDER_ORIGIN_SCOPE_UNSPECIFIED = 0;\n */\n ORDER_ORIGIN_SCOPE_UNSPECIFIED = 0,\n\n /**\n * User/manual order (non-trigger path).\n *\n * @generated from enum value: DIRECT = 1;\n */\n DIRECT = 1,\n\n /**\n * Child generated by attached TP/SL/Trailing risk on a parent order.\n *\n * @generated from enum value: ATTACHED_RISK = 2;\n */\n ATTACHED_RISK = 2,\n\n /**\n * Child generated by a standalone trigger (STOP/TWAP/LADDER...).\n *\n * @generated from enum value: STANDALONE_TRIGGER = 3;\n */\n STANDALONE_TRIGGER = 3,\n\n /**\n * System-managed automation, such as liquidation or account-protection actions.\n *\n * @generated from enum value: SYSTEM = 4;\n */\n SYSTEM = 4,\n}\n\n/**\n * Describes the enum orders.v1.OrderOriginScope.\n */\nexport const OrderOriginScopeSchema: GenEnum<OrderOriginScope> = /*@__PURE__*/\n enumDesc(file_orders_v1_orders_read, 3);\n\n/**\n * OrderTriggerType captures the trigger strategy that generated the order.\n *\n * @generated from enum orders.v1.OrderTriggerType\n */\nexport enum OrderTriggerType {\n /**\n * Trigger type was not provided or the order was not generated by a trigger.\n *\n * @generated from enum value: ORDER_TRIGGER_TYPE_UNSPECIFIED = 0;\n */\n ORDER_TRIGGER_TYPE_UNSPECIFIED = 0,\n\n /**\n * Order was generated by a stop-loss trigger.\n *\n * @generated from enum value: STOP_LOSS = 1;\n */\n STOP_LOSS = 1,\n\n /**\n * Order was generated by a take-profit trigger.\n *\n * @generated from enum value: TAKE_PROFIT = 2;\n */\n TAKE_PROFIT = 2,\n\n /**\n * Order was generated by a trailing-stop trigger.\n *\n * @generated from enum value: TRAILING_STOP = 3;\n */\n TRAILING_STOP = 3,\n\n /**\n * Order was generated by a time-weighted execution trigger.\n *\n * @generated from enum value: TWAP = 4;\n */\n TWAP = 4,\n\n /**\n * Order was generated by a ladder execution trigger.\n *\n * @generated from enum value: LADDER = 5;\n */\n LADDER = 5,\n}\n\n/**\n * Describes the enum orders.v1.OrderTriggerType.\n */\nexport const OrderTriggerTypeSchema: GenEnum<OrderTriggerType> = /*@__PURE__*/\n enumDesc(file_orders_v1_orders_read, 4);\n\n/**\n * @generated from service orders.v1.OrdersReadService\n */\nexport const OrdersReadService: GenService<{\n /**\n * Retrieve non-terminal orders for an account.\n * Supports optional subaccount, trigger, symbol, and side filters with cursor pagination.\n * While the current state of an order in scope is temporarily unavailable, the call\n * fails with a retryable UNAVAILABLE rather than omitting the order or returning a\n * stale state; retry the same request.\n *\n * @generated from rpc orders.v1.OrdersReadService.GetOpenOrders\n */\n getOpenOrders: {\n methodKind: \"unary\";\n input: typeof GetOpenOrdersRequestSchema;\n output: typeof GetOpenOrdersResponseSchema;\n },\n /**\n * Retrieve terminal order history for an account.\n * Supports optional subaccount, trigger, symbol, side, status, and time-range filters with cursor pagination.\n * While the current state of an order on the page is temporarily unavailable, the call\n * fails with a retryable UNAVAILABLE rather than returning a stale state; retry the\n * same request.\n *\n * @generated from rpc orders.v1.OrdersReadService.GetOrderHistory\n */\n getOrderHistory: {\n methodKind: \"unary\";\n input: typeof GetOrderHistoryRequestSchema;\n output: typeof GetOrderHistoryResponseSchema;\n },\n /**\n * Retrieve per-user trade fills for an account.\n * Supports exact physical-order or logical-lineage scope, an inclusive generation\n * cutoff, and subaccount, symbol, side and time filters with cursor pagination.\n *\n * @generated from rpc orders.v1.OrdersReadService.GetUserTrades\n */\n getUserTrades: {\n methodKind: \"unary\";\n input: typeof GetUserTradesRequestSchema;\n output: typeof GetUserTradesResponseSchema;\n },\n /**\n * Retrieve order state and a bounded page of its lineage executions by order or client order ID.\n * Use GetUserTrades for paginated execution history and optional settlement legs.\n * Recent accepted orders may wait briefly for read availability; retry UNAVAILABLE with the same lookup key.\n *\n * @generated from rpc orders.v1.OrdersReadService.GetOrder\n */\n getOrder: {\n methodKind: \"unary\";\n input: typeof GetOrderRequestSchema;\n output: typeof GetOrderResponseSchema;\n },\n /**\n * Retrieve the execution status of one accepted batch replacement, retained\n * for 60 seconds from its acceptance. Retry UNAVAILABLE with the same\n * request; NOT_FOUND means no retained batch, never a rejected replacement.\n *\n * @generated from rpc orders.v1.OrdersReadService.GetBatchReplaceStatus\n */\n getBatchReplaceStatus: {\n methodKind: \"unary\";\n input: typeof GetBatchReplaceStatusRequestSchema;\n output: typeof GetBatchReplaceStatusResponseSchema;\n },\n}> = /*@__PURE__*/\n serviceDesc(file_orders_v1_orders_read, 0);\n\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoBA,MAAa,6BACX,uBAAS,wmVAAwmV;CAAC;CAAgC;CAAwB;CAAuB;CAA4B;AAA2B,CAAC;;;;;AAuD3vV,MAAa,oBACX,0BAAY,4BAA4B,CAAC;;;;;AAgD3C,MAAa,6BACX,0BAAY,4BAA4B,CAAC;;;;;;AAO3C,IAAY,8BAAL,yBAAA,6BAAA;;;;;;CAML,4BAAA,4BAAA,wBAAA,KAAA;;;;;;CAOA,4BAAA,4BAAA,oBAAA,KAAA;;;;;;CAOA,4BAAA,4BAAA,aAAA,KAAA;;;;;;CAOA,4BAAA,4BAAA,WAAA,KAAA;;;;;;CAOA,4BAAA,4BAAA,aAAA,KAAA;;;;;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AA,MAAA;;AACF,EAAA,CAAA,CAAA;;;;AAKA,MAAa,qBACX,uBAAS,4BAA4B,CAAC;;;;;;AAOxC,IAAY,oBAAL,yBAAA,mBAAA;;;;;;CAML,kBAAA,kBAAA,iBAAA,KAAA;;;;;;CAOA,kBAAA,kBAAA,cAAA,KAAA;;;;;;CAOA,kBAAA,kBAAA,aAAA,KAAA;;;;;;CAOA,kBAAA,kBAAA,cAAA,KAAA;;;;;;CAOA,kBAAA,kBAAA,cAAA,KAAA;;AACF,EAAA,CAAA,CAAA;;;;AAKA,MAAa,0BACX,uBAAS,4BAA4B,CAAC;;;;;;AAOxC,IAAY,mBAAL,yBAAA,kBAAA;;;;;;CAML,iBAAA,iBAAA,oCAAA,KAAA;;;;;;CAOA,iBAAA,iBAAA,YAAA,KAAA;;;;;;CAOA,iBAAA,iBAAA,mBAAA,KAAA;;;;;;CAOA,iBAAA,iBAAA,wBAAA,KAAA;;;;;;CAOA,iBAAA,iBAAA,YAAA,KAAA;;AACF,EAAA,CAAA,CAAA;;;;AAKA,MAAa,yBACX,uBAAS,4BAA4B,CAAC;;;;;;AAOxC,IAAY,mBAAL,yBAAA,kBAAA;;;;;;CAML,iBAAA,iBAAA,oCAAA,KAAA;;;;;;CAOA,iBAAA,iBAAA,eAAA,KAAA;;;;;;CAOA,iBAAA,iBAAA,iBAAA,KAAA;;;;;;CAOA,iBAAA,iBAAA,mBAAA,KAAA;;;;;;CAOA,iBAAA,iBAAA,UAAA,KAAA;;;;;;CAOA,iBAAA,iBAAA,YAAA,KAAA;;AACF,EAAA,CAAA,CAAA;;;;AAKA,MAAa,yBACX,uBAAS,4BAA4B,CAAC;;;;AAKxC,MAAa,oBAkEX,0BAAY,4BAA4B,CAAC"}
@@ -1,5 +1,5 @@
1
- import { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
1
  import { Message } from "@bufbuild/protobuf";
2
+ import { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
3
3
  declare namespace types_pb_d_exports {
4
4
  export { FailureReason, FailureReasonSchema, LimiterScope, LimiterScopeSchema, PolicyClass, PolicyClassSchema, RateLimitDetail, RateLimitDetailSchema, RefillModel, RefillModelSchema, file_polyester_ratelimit_v1_types };
5
5
  }
@@ -1,5 +1,5 @@
1
- import { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
1
  import { Message } from "@bufbuild/protobuf";
2
+ import { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
3
3
  declare namespace u128_pb_d_exports {
4
4
  export { U128, U128Schema, file_polyester_type_v1_u128 };
5
5
  }
@@ -1,7 +1,7 @@
1
1
  import { ErrorCode } from "../../orders/v1/orders_pb.js";
2
2
  import { CancelReason, Order } from "../../orders/v1/orders_read_pb.js";
3
- import { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
4
3
  import { Message } from "@bufbuild/protobuf";
4
+ import { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
5
5
  declare namespace private_ws_pb_d_exports {
6
6
  export { Auth, AuthSchema, Authenticated, AuthenticatedSchema, Available, AvailableSchema, Channel, ChannelSchema, ClientMessage, ClientMessageSchema, CommandOutcome, CommandOutcomeSchema, CommandOutcome_Kind, CommandOutcome_KindSchema, Covered, CoveredSchema, Fill, FillSchema, Fill_Role, Fill_RoleSchema, Heartbeat, HeartbeatSchema, OrderEvent, OrderEventSchema, OrderEvent_Kind, OrderEvent_KindSchema, Ping, PingSchema, Pong, PongSchema, Ready, ReadySchema, RequestError, RequestErrorSchema, RequestError_Code, RequestError_CodeSchema, ResyncRequired, ResyncRequiredSchema, ResyncRequired_Reason, ResyncRequired_ReasonSchema, ServerMessage, ServerMessageSchema, SnapshotBegin, SnapshotBeginSchema, SnapshotEnd, SnapshotEndSchema, SnapshotPage, SnapshotPageSchema, Subscribe, SubscribeExpiring, SubscribeExpiringSchema, SubscribeRefresh, SubscribeRefreshSchema, SubscribeRefreshed, SubscribeRefreshedSchema, SubscribeSchema, Subscribed, SubscribedSchema, Sync, SyncSchema, Synced, SyncedSchema, TokenExpiring, TokenExpiringSchema, Unavailable, UnavailableReason, UnavailableReasonSchema, UnavailableSchema, Unit, UnitEvent, UnitEventSchema, UnitSchema, Unsubscribe, UnsubscribeSchema, Unsubscribed, UnsubscribedSchema, Unsubscribed_Reason, Unsubscribed_ReasonSchema, file_privatews_v1_private_ws };
7
7
  }