@polyester/sdk 0.31.0 → 0.32.0-devnet-20261102134326

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 (378) hide show
  1. package/CHANGELOG.md +116 -0
  2. package/README.md +7 -0
  3. package/dist/browser-core.d.ts.map +1 -1
  4. package/dist/browser-core.js.map +1 -1
  5. package/dist/catalogs/market-data-catalog.d.ts +2 -0
  6. package/dist/catalogs/market-data-catalog.d.ts.map +1 -1
  7. package/dist/catalogs/market-data-catalog.js +1 -0
  8. package/dist/catalogs/market-data-catalog.js.map +1 -1
  9. package/dist/catalogs/snapshot-validation.js +6 -0
  10. package/dist/catalogs/snapshot-validation.js.map +1 -1
  11. package/dist/client.d.ts +2 -2
  12. package/dist/client.js +2 -2
  13. package/dist/client.js.map +1 -1
  14. package/dist/core-client.d.ts.map +1 -1
  15. package/dist/core-client.js +1 -0
  16. package/dist/core-client.js.map +1 -1
  17. package/dist/gen/auth/v1/api_keys_pb.d.ts +6 -3
  18. package/dist/gen/auth/v1/api_keys_pb.d.ts.map +1 -1
  19. package/dist/gen/auth/v1/api_keys_pb.js.map +1 -1
  20. package/dist/gen/auth/v1/auth_pb.d.ts +16 -2
  21. package/dist/gen/auth/v1/auth_pb.d.ts.map +1 -1
  22. package/dist/gen/auth/v1/auth_pb.js +16 -2
  23. package/dist/gen/auth/v1/auth_pb.js.map +1 -1
  24. package/dist/gen/auth/v1/policies_pb.d.ts +26 -2
  25. package/dist/gen/auth/v1/policies_pb.d.ts.map +1 -1
  26. package/dist/gen/auth/v1/policies_pb.js +26 -2
  27. package/dist/gen/auth/v1/policies_pb.js.map +1 -1
  28. package/dist/gen/auth/v1/subaccounts_pb.d.ts +41 -17
  29. package/dist/gen/auth/v1/subaccounts_pb.d.ts.map +1 -1
  30. package/dist/gen/auth/v1/subaccounts_pb.js +20 -3
  31. package/dist/gen/auth/v1/subaccounts_pb.js.map +1 -1
  32. package/dist/gen/chain/analytics/v1/analytics_read_pb.d.ts.map +1 -1
  33. package/dist/gen/chain/analytics/v1/analytics_read_pb.js +2 -1
  34. package/dist/gen/chain/analytics/v1/analytics_read_pb.js.map +1 -1
  35. package/dist/gen/chain/deposit/v1/deposit_pb.d.ts +10 -6
  36. package/dist/gen/chain/deposit/v1/deposit_pb.d.ts.map +1 -1
  37. package/dist/gen/chain/deposit/v1/deposit_pb.js +2 -1
  38. package/dist/gen/chain/deposit/v1/deposit_pb.js.map +1 -1
  39. package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.d.ts +32 -2
  40. package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.d.ts.map +1 -1
  41. package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.js +2 -2
  42. package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.js.map +1 -1
  43. package/dist/gen/chain/lifecycle/v1/types_pb.d.ts +19 -3
  44. package/dist/gen/chain/lifecycle/v1/types_pb.d.ts.map +1 -1
  45. package/dist/gen/chain/lifecycle/v1/types_pb.js +18 -2
  46. package/dist/gen/chain/lifecycle/v1/types_pb.js.map +1 -1
  47. package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.d.ts +840 -0
  48. package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.d.ts.map +1 -0
  49. package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.js +351 -0
  50. package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.js.map +1 -0
  51. package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts +22 -2
  52. package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts.map +1 -1
  53. package/dist/gen/chain/withdraw/v1/withdraw_pb.js +17 -1
  54. package/dist/gen/chain/withdraw/v1/withdraw_pb.js.map +1 -1
  55. package/dist/gen/chain/zipper/v1/reason_pb.d.ts +14 -0
  56. package/dist/gen/chain/zipper/v1/reason_pb.d.ts.map +1 -1
  57. package/dist/gen/chain/zipper/v1/reason_pb.js +15 -1
  58. package/dist/gen/chain/zipper/v1/reason_pb.js.map +1 -1
  59. package/dist/gen/checkpoints/v1/checkpoints_pb.d.ts +1134 -0
  60. package/dist/gen/checkpoints/v1/checkpoints_pb.d.ts.map +1 -0
  61. package/dist/gen/checkpoints/v1/checkpoints_pb.js +327 -0
  62. package/dist/gen/checkpoints/v1/checkpoints_pb.js.map +1 -0
  63. package/dist/gen/claims/v1/claims_pb.d.ts +61 -4
  64. package/dist/gen/claims/v1/claims_pb.d.ts.map +1 -1
  65. package/dist/gen/claims/v1/claims_pb.js +26 -1
  66. package/dist/gen/claims/v1/claims_pb.js.map +1 -1
  67. package/dist/gen/fees/v1/fees_pb.d.ts.map +1 -1
  68. package/dist/gen/fees/v1/fees_pb.js +2 -1
  69. package/dist/gen/fees/v1/fees_pb.js.map +1 -1
  70. package/dist/gen/index.d.ts +7 -5
  71. package/dist/gen/index.js +12 -10
  72. package/dist/gen/ledger/read/v1/ledger_read_pb.d.ts +45 -3
  73. package/dist/gen/ledger/read/v1/ledger_read_pb.d.ts.map +1 -1
  74. package/dist/gen/ledger/read/v1/ledger_read_pb.js +19 -7
  75. package/dist/gen/ledger/read/v1/ledger_read_pb.js.map +1 -1
  76. package/dist/gen/marketdata/v1/marketdata_pb.d.ts +248 -27
  77. package/dist/gen/marketdata/v1/marketdata_pb.d.ts.map +1 -1
  78. package/dist/gen/marketdata/v1/marketdata_pb.js +73 -20
  79. package/dist/gen/marketdata/v1/marketdata_pb.js.map +1 -1
  80. package/dist/gen/marketoverview/v1/marketoverview_pb.d.ts +2 -1
  81. package/dist/gen/marketoverview/v1/marketoverview_pb.d.ts.map +1 -1
  82. package/dist/gen/marketoverview/v1/marketoverview_pb.js.map +1 -1
  83. package/dist/gen/orderbook/v1/orderbook_pb.d.ts +16 -4
  84. package/dist/gen/orderbook/v1/orderbook_pb.d.ts.map +1 -1
  85. package/dist/gen/orderbook/v1/orderbook_pb.js +1 -1
  86. package/dist/gen/orderbook/v1/orderbook_pb.js.map +1 -1
  87. package/dist/gen/orders/v1/orders_pb.d.ts +1222 -63
  88. package/dist/gen/orders/v1/orders_pb.d.ts.map +1 -1
  89. package/dist/gen/orders/v1/orders_pb.js +971 -44
  90. package/dist/gen/orders/v1/orders_pb.js.map +1 -1
  91. package/dist/gen/orders/v1/orders_read_pb.d.ts +214 -25
  92. package/dist/gen/orders/v1/orders_read_pb.d.ts.map +1 -1
  93. package/dist/gen/orders/v1/orders_read_pb.js +159 -20
  94. package/dist/gen/orders/v1/orders_read_pb.js.map +1 -1
  95. package/dist/gen/polyester/api/options_pb.d.ts +8 -1
  96. package/dist/gen/polyester/api/options_pb.d.ts.map +1 -1
  97. package/dist/gen/polyester/api/options_pb.js +8 -1
  98. package/dist/gen/polyester/api/options_pb.js.map +1 -1
  99. package/dist/gen/privatews/v1/private_ws_pb.d.ts +1419 -0
  100. package/dist/gen/privatews/v1/private_ws_pb.d.ts.map +1 -0
  101. package/dist/gen/privatews/v1/private_ws_pb.js +551 -0
  102. package/dist/gen/privatews/v1/private_ws_pb.js.map +1 -0
  103. package/dist/gen/ratelimit/v1/ratelimit_pb.d.ts +1 -0
  104. package/dist/gen/ratelimit/v1/ratelimit_pb.d.ts.map +1 -1
  105. package/dist/gen/ratelimit/v1/ratelimit_pb.js +1 -1
  106. package/dist/gen/ratelimit/v1/ratelimit_pb.js.map +1 -1
  107. package/dist/gen/rewards/v1/rewards_pb.d.ts +6 -0
  108. package/dist/gen/rewards/v1/rewards_pb.d.ts.map +1 -1
  109. package/dist/gen/rewards/v1/rewards_pb.js +1 -1
  110. package/dist/gen/rewards/v1/rewards_pb.js.map +1 -1
  111. package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.d.ts +2108 -0
  112. package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.d.ts.map +1 -0
  113. package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.js +522 -0
  114. package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.js.map +1 -0
  115. package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts +2296 -0
  116. package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts.map +1 -0
  117. package/dist/gen/swap/quickswap/v1/quickswap_pb.js +1014 -0
  118. package/dist/gen/swap/quickswap/v1/quickswap_pb.js.map +1 -0
  119. package/dist/gen/swap/v1/swap_pb.d.ts +958 -0
  120. package/dist/gen/swap/v1/swap_pb.d.ts.map +1 -0
  121. package/dist/gen/swap/v1/swap_pb.js +434 -0
  122. package/dist/gen/swap/v1/swap_pb.js.map +1 -0
  123. package/dist/gen/tradews/v1/trade_ws_pb.d.ts +68 -3
  124. package/dist/gen/tradews/v1/trade_ws_pb.d.ts.map +1 -1
  125. package/dist/gen/tradews/v1/trade_ws_pb.js +1 -1
  126. package/dist/gen/tradews/v1/trade_ws_pb.js.map +1 -1
  127. package/dist/gen/triggers/v1/triggers_pb.d.ts +612 -33
  128. package/dist/gen/triggers/v1/triggers_pb.d.ts.map +1 -1
  129. package/dist/gen/triggers/v1/triggers_pb.js +437 -20
  130. package/dist/gen/triggers/v1/triggers_pb.js.map +1 -1
  131. package/dist/gen/vip/v1/vip_pb.d.ts +95 -7
  132. package/dist/gen/vip/v1/vip_pb.d.ts.map +1 -1
  133. package/dist/gen/vip/v1/vip_pb.js +53 -5
  134. package/dist/gen/vip/v1/vip_pb.js.map +1 -1
  135. package/dist/index.d.ts +9 -7
  136. package/dist/index.js +2 -2
  137. package/dist/realtime/client.d.ts +3 -0
  138. package/dist/realtime/client.d.ts.map +1 -1
  139. package/dist/realtime/client.js +76 -24
  140. package/dist/realtime/client.js.map +1 -1
  141. package/dist/realtime/index.d.ts +2 -1
  142. package/dist/realtime/private-orders.d.ts +38 -0
  143. package/dist/realtime/private-orders.d.ts.map +1 -0
  144. package/dist/realtime/private-orders.js +594 -0
  145. package/dist/realtime/private-orders.js.map +1 -0
  146. package/dist/realtime/ready-gated-subscription.js +10 -4
  147. package/dist/realtime/ready-gated-subscription.js.map +1 -1
  148. package/dist/realtime/types.d.ts +3 -0
  149. package/dist/realtime/types.d.ts.map +1 -1
  150. package/dist/services/auth/account-signer-auth.d.ts +5 -3
  151. package/dist/services/auth/account-signer-auth.d.ts.map +1 -1
  152. package/dist/services/auth/account-signer-auth.js +21 -3
  153. package/dist/services/auth/account-signer-auth.js.map +1 -1
  154. package/dist/services/auth/profile/profile.schemas.js +1 -1
  155. package/dist/services/balances/balances.js +1 -1
  156. package/dist/services/balances/balances.schemas.d.ts +3 -3
  157. package/dist/services/candles/candles.codecs.js +15 -0
  158. package/dist/services/candles/candles.codecs.js.map +1 -1
  159. package/dist/services/candles/candles.schemas.d.ts +13 -13
  160. package/dist/services/checkpoints/checkpoints.codecs.d.ts +8 -0
  161. package/dist/services/checkpoints/checkpoints.codecs.d.ts.map +1 -0
  162. package/dist/services/checkpoints/checkpoints.codecs.js +36 -0
  163. package/dist/services/checkpoints/checkpoints.codecs.js.map +1 -0
  164. package/dist/services/checkpoints/checkpoints.d.ts +22 -0
  165. package/dist/services/checkpoints/checkpoints.d.ts.map +1 -0
  166. package/dist/services/checkpoints/checkpoints.js +31 -0
  167. package/dist/services/checkpoints/checkpoints.js.map +1 -0
  168. package/dist/services/checkpoints/checkpoints.schemas.d.ts +437 -0
  169. package/dist/services/checkpoints/checkpoints.schemas.d.ts.map +1 -0
  170. package/dist/services/checkpoints/checkpoints.schemas.js +176 -0
  171. package/dist/services/checkpoints/checkpoints.schemas.js.map +1 -0
  172. package/dist/services/checkpoints/checkpoints.types.d.ts +3 -0
  173. package/dist/services/checkpoints/service.d.ts +8 -0
  174. package/dist/services/checkpoints/service.d.ts.map +1 -0
  175. package/dist/services/checkpoints/service.js +9 -0
  176. package/dist/services/checkpoints/service.js.map +1 -0
  177. package/dist/services/claims/claims.codecs.d.ts +1 -1
  178. package/dist/services/claims/claims.codecs.d.ts.map +1 -1
  179. package/dist/services/claims/claims.codecs.js +2 -1
  180. package/dist/services/claims/claims.codecs.js.map +1 -1
  181. package/dist/services/claims/claims.d.ts +13 -5
  182. package/dist/services/claims/claims.d.ts.map +1 -1
  183. package/dist/services/claims/claims.js +15 -6
  184. package/dist/services/claims/claims.js.map +1 -1
  185. package/dist/services/claims/claims.schemas.d.ts +13 -3
  186. package/dist/services/claims/claims.schemas.d.ts.map +1 -1
  187. package/dist/services/claims/claims.schemas.js +10 -4
  188. package/dist/services/claims/claims.schemas.js.map +1 -1
  189. package/dist/services/claims/claims.types.d.ts +2 -2
  190. package/dist/services/heatmap/heatmap.schemas.d.ts +13 -13
  191. package/dist/services/lifecycle/lifecycle.codecs.d.ts +1 -1
  192. package/dist/services/lifecycle/lifecycle.codecs.d.ts.map +1 -1
  193. package/dist/services/lifecycle/lifecycle.codecs.js +4 -2
  194. package/dist/services/lifecycle/lifecycle.codecs.js.map +1 -1
  195. package/dist/services/lifecycle/lifecycle.schemas.d.ts +185 -135
  196. package/dist/services/lifecycle/lifecycle.schemas.d.ts.map +1 -1
  197. package/dist/services/lifecycle/lifecycle.schemas.js +7 -1
  198. package/dist/services/lifecycle/lifecycle.schemas.js.map +1 -1
  199. package/dist/services/market-data/market-data.codecs.js +2 -1
  200. package/dist/services/market-data/market-data.codecs.js.map +1 -1
  201. package/dist/services/market-data/market-data.d.ts +10 -1
  202. package/dist/services/market-data/market-data.d.ts.map +1 -1
  203. package/dist/services/market-data/market-data.js +21 -9
  204. package/dist/services/market-data/market-data.js.map +1 -1
  205. package/dist/services/market-data/market-data.schemas.d.ts +29 -2
  206. package/dist/services/market-data/market-data.schemas.d.ts.map +1 -1
  207. package/dist/services/market-data/market-data.schemas.js +53 -4
  208. package/dist/services/market-data/market-data.schemas.js.map +1 -1
  209. package/dist/services/market-data/market-data.types.d.ts +2 -2
  210. package/dist/services/market-overview/market-overview.schemas.d.ts +3 -3
  211. package/dist/services/orderbook/orderbook.d.ts +2 -1
  212. package/dist/services/orderbook/orderbook.d.ts.map +1 -1
  213. package/dist/services/orderbook/orderbook.js +17 -2
  214. package/dist/services/orderbook/orderbook.js.map +1 -1
  215. package/dist/services/orderbook/orderbook.schemas.d.ts +5 -1
  216. package/dist/services/orderbook/orderbook.schemas.d.ts.map +1 -1
  217. package/dist/services/orderbook/orderbook.schemas.js +2 -0
  218. package/dist/services/orderbook/orderbook.schemas.js.map +1 -1
  219. package/dist/services/orders/order-enums.codecs.js +7 -1
  220. package/dist/services/orders/order-enums.codecs.js.map +1 -1
  221. package/dist/services/orders/order-errors.schemas.d.ts +4 -2
  222. package/dist/services/orders/order-errors.schemas.d.ts.map +1 -1
  223. package/dist/services/orders/order-errors.schemas.js +4 -1
  224. package/dist/services/orders/order-errors.schemas.js.map +1 -1
  225. package/dist/services/orders/orders-batch.schemas.d.ts +375 -54
  226. package/dist/services/orders/orders-batch.schemas.d.ts.map +1 -1
  227. package/dist/services/orders/orders-batch.schemas.js +12 -2
  228. package/dist/services/orders/orders-batch.schemas.js.map +1 -1
  229. package/dist/services/orders/orders-input.schemas.d.ts +551 -9
  230. package/dist/services/orders/orders-input.schemas.d.ts.map +1 -1
  231. package/dist/services/orders/orders-input.schemas.js +23 -5
  232. package/dist/services/orders/orders-input.schemas.js.map +1 -1
  233. package/dist/services/orders/orders-modify.schemas.d.ts +106 -1
  234. package/dist/services/orders/orders-modify.schemas.d.ts.map +1 -1
  235. package/dist/services/orders/orders-modify.schemas.js +1 -1
  236. package/dist/services/orders/orders-output.schemas.d.ts +80 -61
  237. package/dist/services/orders/orders-output.schemas.d.ts.map +1 -1
  238. package/dist/services/orders/orders-output.schemas.js +15 -22
  239. package/dist/services/orders/orders-output.schemas.js.map +1 -1
  240. package/dist/services/orders/orders-risk.schemas.d.ts +69 -1
  241. package/dist/services/orders/orders-risk.schemas.d.ts.map +1 -1
  242. package/dist/services/orders/orders-risk.schemas.js +21 -11
  243. package/dist/services/orders/orders-risk.schemas.js.map +1 -1
  244. package/dist/services/orders/orders.codecs.js +26 -2
  245. package/dist/services/orders/orders.codecs.js.map +1 -1
  246. package/dist/services/orders/orders.d.ts +31 -5
  247. package/dist/services/orders/orders.d.ts.map +1 -1
  248. package/dist/services/orders/orders.js +53 -15
  249. package/dist/services/orders/orders.js.map +1 -1
  250. package/dist/services/policies/api-key-policies/api-key-policies.schemas.d.ts +15 -15
  251. package/dist/services/policies/shared.codecs.js +8 -2
  252. package/dist/services/policies/shared.codecs.js.map +1 -1
  253. package/dist/services/policies/shared.d.ts +1 -1
  254. package/dist/services/policies/shared.d.ts.map +1 -1
  255. package/dist/services/policies/shared.js +4 -1
  256. package/dist/services/policies/shared.js.map +1 -1
  257. package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.d.ts +9 -9
  258. package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.js +1 -1
  259. package/dist/services/subaccounts/subaccounts.codecs.js +4 -1
  260. package/dist/services/subaccounts/subaccounts.codecs.js.map +1 -1
  261. package/dist/services/subaccounts/subaccounts.d.ts +1 -1
  262. package/dist/services/subaccounts/subaccounts.d.ts.map +1 -1
  263. package/dist/services/subaccounts/subaccounts.js +1 -2
  264. package/dist/services/subaccounts/subaccounts.js.map +1 -1
  265. package/dist/services/subaccounts/subaccounts.schemas.d.ts +10 -10
  266. package/dist/services/trades/trades.d.ts +2 -0
  267. package/dist/services/trades/trades.d.ts.map +1 -1
  268. package/dist/services/trades/trades.js +6 -6
  269. package/dist/services/trades/trades.js.map +1 -1
  270. package/dist/services/trades/trades.schemas.d.ts +2 -2
  271. package/dist/services/trades/trades.schemas.js +1 -1
  272. package/dist/services/trading-withdraws/trading-withdraws.d.ts +9 -5
  273. package/dist/services/trading-withdraws/trading-withdraws.d.ts.map +1 -1
  274. package/dist/services/trading-withdraws/trading-withdraws.js +45 -26
  275. package/dist/services/trading-withdraws/trading-withdraws.js.map +1 -1
  276. package/dist/services/trading-withdraws/trading-withdraws.schemas.d.ts +12 -0
  277. package/dist/services/trading-withdraws/trading-withdraws.schemas.d.ts.map +1 -1
  278. package/dist/services/trading-withdraws/trading-withdraws.schemas.js +26 -6
  279. package/dist/services/trading-withdraws/trading-withdraws.schemas.js.map +1 -1
  280. package/dist/services/trailing-oneof-inputs.js +6 -1
  281. package/dist/services/trailing-oneof-inputs.js.map +1 -1
  282. package/dist/services/transfers/transfers.d.ts +2 -0
  283. package/dist/services/transfers/transfers.d.ts.map +1 -1
  284. package/dist/services/transfers/transfers.js +6 -11
  285. package/dist/services/transfers/transfers.js.map +1 -1
  286. package/dist/services/transfers/transfers.schemas.d.ts +4 -1
  287. package/dist/services/transfers/transfers.schemas.d.ts.map +1 -1
  288. package/dist/services/transfers/transfers.schemas.js +3 -1
  289. package/dist/services/transfers/transfers.schemas.js.map +1 -1
  290. package/dist/services/triggers/trigger-child-order.schemas.js +23 -18
  291. package/dist/services/triggers/trigger-child-order.schemas.js.map +1 -1
  292. package/dist/services/triggers/trigger-input.schemas.d.ts +291 -28
  293. package/dist/services/triggers/trigger-input.schemas.d.ts.map +1 -1
  294. package/dist/services/triggers/trigger-input.schemas.js +38 -22
  295. package/dist/services/triggers/trigger-input.schemas.js.map +1 -1
  296. package/dist/services/triggers/triggers-output.schemas.d.ts +183 -59
  297. package/dist/services/triggers/triggers-output.schemas.d.ts.map +1 -1
  298. package/dist/services/triggers/triggers-output.schemas.js +28 -20
  299. package/dist/services/triggers/triggers-output.schemas.js.map +1 -1
  300. package/dist/services/triggers/triggers.codecs.js +66 -3
  301. package/dist/services/triggers/triggers.codecs.js.map +1 -1
  302. package/dist/services/triggers/triggers.d.ts +6 -2
  303. package/dist/services/triggers/triggers.d.ts.map +1 -1
  304. package/dist/services/triggers/triggers.js +10 -8
  305. package/dist/services/triggers/triggers.js.map +1 -1
  306. package/dist/services/vip/vip.js +1 -1
  307. package/dist/services/vip/vip.schemas.d.ts +23 -1
  308. package/dist/services/vip/vip.schemas.d.ts.map +1 -1
  309. package/dist/services/vip/vip.schemas.js +20 -2
  310. package/dist/services/vip/vip.schemas.js.map +1 -1
  311. package/dist/services/vip/vip.types.d.ts +2 -2
  312. package/dist/shared/catalog-config.d.ts +14 -2
  313. package/dist/shared/catalog-config.d.ts.map +1 -1
  314. package/dist/shared/catalog-config.js +2 -1
  315. package/dist/shared/catalog-config.js.map +1 -1
  316. package/dist/shared/connect-error-mapping.d.ts +3 -0
  317. package/dist/shared/connect-error-mapping.d.ts.map +1 -1
  318. package/dist/shared/connect-error-mapping.js +45 -6
  319. package/dist/shared/connect-error-mapping.js.map +1 -1
  320. package/dist/shared/errors.d.ts +79 -6
  321. package/dist/shared/errors.d.ts.map +1 -1
  322. package/dist/shared/errors.js +92 -4
  323. package/dist/shared/errors.js.map +1 -1
  324. package/dist/shared/rate-limit.schemas.d.ts +1 -1
  325. package/dist/shared/request-options.d.ts +7 -0
  326. package/dist/shared/request-options.d.ts.map +1 -1
  327. package/dist/shared/request-options.js +6 -1
  328. package/dist/shared/request-options.js.map +1 -1
  329. package/dist/shared/schemas.js +1 -1
  330. package/dist/shared/subscription-errors.js +12 -1
  331. package/dist/shared/subscription-errors.js.map +1 -1
  332. package/dist/shared/transports.d.ts.map +1 -1
  333. package/dist/shared/transports.js +9 -2
  334. package/dist/shared/transports.js.map +1 -1
  335. package/dist/shared/wire-bounds.js +3 -1
  336. package/dist/shared/wire-bounds.js.map +1 -1
  337. package/dist/smart-account/index.d.ts +2 -1
  338. package/dist/smart-account/index.js +2 -1
  339. package/dist/smart-account/smart-account.d.ts +5 -4
  340. package/dist/smart-account/smart-account.d.ts.map +1 -1
  341. package/dist/smart-account/smart-account.js +37 -8
  342. package/dist/smart-account/smart-account.js.map +1 -1
  343. package/dist/utils/numbers.js +4 -1
  344. package/dist/utils/numbers.js.map +1 -1
  345. package/dist/wired-services.js +5 -5
  346. package/dist/wired-services.js.map +1 -1
  347. package/package.json +9 -4
  348. package/dist/gen/collab/v1/whiteboard_pb.d.ts +0 -829
  349. package/dist/gen/collab/v1/whiteboard_pb.d.ts.map +0 -1
  350. package/dist/gen/collab/v1/whiteboard_pb.js +0 -250
  351. package/dist/gen/collab/v1/whiteboard_pb.js.map +0 -1
  352. package/dist/gen/layout/v1/layout_pb.d.ts +0 -1289
  353. package/dist/gen/layout/v1/layout_pb.d.ts.map +0 -1
  354. package/dist/gen/layout/v1/layout_pb.js +0 -313
  355. package/dist/gen/layout/v1/layout_pb.js.map +0 -1
  356. package/dist/gen/polychart/events/v1/polychart_events_pb.d.ts +0 -192
  357. package/dist/gen/polychart/events/v1/polychart_events_pb.d.ts.map +0 -1
  358. package/dist/gen/polychart/events/v1/polychart_events_pb.js +0 -57
  359. package/dist/gen/polychart/events/v1/polychart_events_pb.js.map +0 -1
  360. package/dist/gen/polychart/v1/polychart_pb.d.ts +0 -1208
  361. package/dist/gen/polychart/v1/polychart_pb.d.ts.map +0 -1
  362. package/dist/gen/polychart/v1/polychart_pb.js +0 -244
  363. package/dist/gen/polychart/v1/polychart_pb.js.map +0 -1
  364. package/dist/services/whiteboard/service.d.ts +0 -8
  365. package/dist/services/whiteboard/service.d.ts.map +0 -1
  366. package/dist/services/whiteboard/service.js +0 -9
  367. package/dist/services/whiteboard/service.js.map +0 -1
  368. package/dist/services/whiteboard/whiteboard.codecs.js +0 -55
  369. package/dist/services/whiteboard/whiteboard.codecs.js.map +0 -1
  370. package/dist/services/whiteboard/whiteboard.d.ts +0 -42
  371. package/dist/services/whiteboard/whiteboard.d.ts.map +0 -1
  372. package/dist/services/whiteboard/whiteboard.js +0 -76
  373. package/dist/services/whiteboard/whiteboard.js.map +0 -1
  374. package/dist/services/whiteboard/whiteboard.schemas.d.ts +0 -771
  375. package/dist/services/whiteboard/whiteboard.schemas.d.ts.map +0 -1
  376. package/dist/services/whiteboard/whiteboard.schemas.js +0 -132
  377. package/dist/services/whiteboard/whiteboard.schemas.js.map +0 -1
  378. package/dist/services/whiteboard/whiteboard.types.d.ts +0 -2
@@ -3,7 +3,7 @@ import { Message } from "@bufbuild/protobuf";
3
3
  import { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
4
4
  import { Timestamp } from "@bufbuild/protobuf/wkt";
5
5
  declare namespace orders_pb_d_exports {
6
- export { BatchCancelItem, BatchCancelItemSchema, BatchCancelOrdersRequest, BatchCancelOrdersRequestSchema, BatchCancelOrdersResponse, BatchCancelOrdersResponseSchema, BatchCancelResultItem, BatchCancelResultItemSchema, BatchCancelResultItem_Status, BatchCancelResultItem_StatusSchema, BatchCreateAccepted, BatchCreateAcceptedSchema, BatchCreateOrdersRequest, BatchCreateOrdersRequestSchema, BatchCreateOrdersResponse, BatchCreateOrdersResponseSchema, BatchCreateRejected, BatchCreateRejectedSchema, BatchCreateResultItem, BatchCreateResultItemSchema, BatchReplaceAdmissionItem, BatchReplaceAdmissionItemSchema, BatchReplaceAdmissionStatus, BatchReplaceAdmissionStatusSchema, BatchReplaceItemAdmissionStatus, BatchReplaceItemAdmissionStatusSchema, BatchReplaceOrderItem, BatchReplaceOrderItemSchema, BatchReplaceOrdersRequest, BatchReplaceOrdersRequestSchema, BatchReplaceOrdersResponse, BatchReplaceOrdersResponseSchema, CancelAllAfterRequest, CancelAllAfterRequestSchema, CancelAllAfterResponse, CancelAllAfterResponseSchema, CancelAllAfterResponse_Status, CancelAllAfterResponse_StatusSchema, CancelAllOrdersRequest, CancelAllOrdersRequestSchema, CancelAllOrdersResponse, CancelAllOrdersResponseSchema, CancelAllOrdersResponse_Status, CancelAllOrdersResponse_StatusSchema, CancelOrderRequest, CancelOrderRequestSchema, CancelOrderResponse, CancelOrderResponseSchema, CancelOrderResponse_Status, CancelOrderResponse_StatusSchema, CreateOrderRequest, CreateOrderRequestSchema, CreateOrderResponse, CreateOrderResponseSchema, ErrorCode, ErrorCodeSchema, ErrorDetail, ErrorDetailSchema, FeeAsset, FeeAssetSchema, FieldViolation, FieldViolationSchema, LimitFok, LimitFokSchema, LimitGtc, LimitGtcSchema, LimitGtd, LimitGtdSchema, LimitIoc, LimitIocSchema, MarketIoc, MarketIocSchema, ModifyActionTaken, ModifyActionTakenSchema, ModifyBehavior, ModifyBehaviorSchema, ModifyOrderRequest, ModifyOrderRequestSchema, ModifyOrderResponse, ModifyOrderResponseSchema, OrderIntent, OrderIntentSchema, OrderType, OrderTypeSchema, OrdersService, PreviewOrderRequest, PreviewOrderRequestSchema, PreviewOrderResponse, PreviewOrderResponseSchema, RiskExecution, RiskExecutionSchema, RiskLimitGtc, RiskLimitGtcSchema, RiskMarketIoc, RiskMarketIocSchema, RiskPolicy, RiskPolicySchema, SelfTradePreventionMode, SelfTradePreventionModeSchema, Side, SideSchema, StopLossPolicy, StopLossPolicySchema, TakeProfitPolicy, TakeProfitPolicySchema, TimeInForce, TimeInForceSchema, TrailingStopPolicy, TrailingStopPolicySchema, TriggerDirection, TriggerDirectionSchema, TriggerPriceSource, TriggerPriceSourceSchema, file_orders_v1_orders };
6
+ export { BatchCancelItem, BatchCancelItemSchema, BatchCancelOrdersRequest, BatchCancelOrdersRequestSchema, BatchCancelOrdersResponse, BatchCancelOrdersResponseSchema, BatchCancelResultItem, BatchCancelResultItemSchema, BatchCancelResultItem_Status, BatchCancelResultItem_StatusSchema, BatchCreateAccepted, BatchCreateAcceptedSchema, BatchCreateOrdersRequest, BatchCreateOrdersRequestSchema, BatchCreateOrdersResponse, BatchCreateOrdersResponseSchema, BatchCreateRejected, BatchCreateRejectedSchema, BatchCreateResultItem, BatchCreateResultItemSchema, BatchReplaceAdmissionItem, BatchReplaceAdmissionItemSchema, BatchReplaceAdmissionStatus, BatchReplaceAdmissionStatusSchema, BatchReplaceItemAdmissionStatus, BatchReplaceItemAdmissionStatusSchema, BatchReplaceOrderItem, BatchReplaceOrderItemSchema, BatchReplaceOrdersRequest, BatchReplaceOrdersRequestSchema, BatchReplaceOrdersResponse, BatchReplaceOrdersResponseSchema, CancelAllAfterRequest, CancelAllAfterRequestSchema, CancelAllAfterResponse, CancelAllAfterResponseSchema, CancelAllAfterResponse_Status, CancelAllAfterResponse_StatusSchema, CancelAllOrdersRequest, CancelAllOrdersRequestSchema, CancelAllOrdersResponse, CancelAllOrdersResponseSchema, CancelAllOrdersResponse_ListingStatus, CancelAllOrdersResponse_ListingStatusSchema, CancelAllOrdersResponse_Status, CancelAllOrdersResponse_StatusSchema, CancelOrderRequest, CancelOrderRequestSchema, CancelOrderResponse, CancelOrderResponseSchema, CancelOrderResponse_Status, CancelOrderResponse_StatusSchema, CancelledOrder, CancelledOrderSchema, CreateOrderRequest, CreateOrderRequestSchema, CreateOrderResponse, CreateOrderResponseSchema, DeadManSwitchScope, DeadManSwitchScopeSchema, ErrorCode, ErrorCodeSchema, ErrorDetail, ErrorDetailSchema, FeeAsset, FeeAssetSchema, FieldViolation, FieldViolationSchema, LimitFok, LimitFokSchema, LimitGtc, LimitGtcSchema, LimitGtd, LimitGtdSchema, LimitIoc, LimitIocSchema, MarketIoc, MarketIocSchema, ModifyActionTaken, ModifyActionTakenSchema, ModifyBehavior, ModifyBehaviorSchema, ModifyOrderRequest, ModifyOrderRequestSchema, ModifyOrderResponse, ModifyOrderResponseSchema, OrderIntent, OrderIntentSchema, OrderType, OrderTypeSchema, OrdersService, PreviewOrderRequest, PreviewOrderRequestSchema, PreviewOrderResponse, PreviewOrderResponseSchema, RiskExecution, RiskExecutionSchema, RiskLimitGtc, RiskLimitGtcSchema, RiskMarketIoc, RiskMarketIocSchema, RiskPolicy, RiskPolicySchema, SelfTradePreventionMode, SelfTradePreventionModeSchema, Side, SideSchema, StopLossPolicy, StopLossPolicySchema, TakeProfitPolicy, TakeProfitPolicySchema, TimeInForce, TimeInForceSchema, TrailingStopPolicy, TrailingStopPolicySchema, TriggerDirection, TriggerDirectionSchema, TriggerPriceSource, TriggerPriceSourceSchema, file_orders_v1_orders };
7
7
  }
8
8
  /**
9
9
  * Describes the file orders/v1/orders.proto.
@@ -262,7 +262,8 @@ type OrderIntent = Message<"orders.v1.OrderIntent"> & {
262
262
  */
263
263
  feeAsset: FeeAsset;
264
264
  /**
265
- * Self-trade prevention mode. Defaults to EXPIRE_MAKER if unspecified.
265
+ * Self-trade prevention mode against orders of the same root account,
266
+ * including all its subaccounts. Defaults to EXPIRE_MAKER if unspecified.
266
267
  *
267
268
  * @generated from field: orders.v1.SelfTradePreventionMode self_trade_prevention_mode = 22;
268
269
  */
@@ -285,6 +286,9 @@ declare const OrderIntentSchema: GenMessage<OrderIntent>;
285
286
  * after an ambiguous transport timeout. Supply client_order_id to reconcile
286
287
  * through GetOrder; without it, a lost acknowledgement may leave the outcome
287
288
  * unknown. An immediate lookup miss does not prove that admission failed.
289
+ * A create sent but not confirmed in time fails with
290
+ * ORDER_CREATE_OUTCOME_UNKNOWN: the order may have been accepted, so read it
291
+ * back before retrying. UNAVAILABLE means the order was not accepted.
288
292
  *
289
293
  * @generated from message orders.v1.CreateOrderRequest
290
294
  */
@@ -407,6 +411,7 @@ declare const PreviewOrderRequestSchema: GenMessage<PreviewOrderRequest>;
407
411
  /**
408
412
  * PreviewOrderResponse reports whether an order is currently admissible and
409
413
  * returns any sizing and price-protection values resolved during evaluation.
414
+ * Quote debit and fees are not returned.
410
415
  * The result is advisory: account, market, and policy inputs may change, and
411
416
  * CreateOrder always evaluates the intent again.
412
417
  *
@@ -428,15 +433,18 @@ type PreviewOrderResponse = Message<"orders.v1.PreviewOrderResponse"> & {
428
433
  */
429
434
  rejection?: ErrorDetail | undefined;
430
435
  /**
431
- * Gross base quantity resolved for execution, scaled by the pair's
432
- * base_quantity_scale from GetSpotConfig. Present when sizing was resolved.
436
+ * Gross base quantity resolved for execution. REST returns resolvedBaseQty as
437
+ * a decimal string in base asset units, for example "0.005". Protobuf uses the
438
+ * pair's base_quantity_scale from GetSpotConfig. Present when sizing was resolved.
433
439
  *
434
440
  * @generated from field: optional int64 resolved_base_qty_scaled = 3;
435
441
  */
436
442
  resolvedBaseQtyScaled?: bigint | undefined;
437
443
  /**
438
- * Protective execution boundary in quote units scaled by 1e9. This is not an
439
- * expected fill price. Present when price protection was resolved.
444
+ * Protective execution boundary. REST returns protectedPriceBound as a decimal
445
+ * string in quote asset units per base asset unit, for example "2751.6".
446
+ * Protobuf uses quote units scaled by 1e9. This is not an expected fill price.
447
+ * Present when price protection was resolved.
440
448
  *
441
449
  * @generated from field: optional int64 protected_price_bound_ticks = 4;
442
450
  */
@@ -483,7 +491,9 @@ type CancelOrderRequest = Message<"orders.v1.CancelOrderRequest"> & {
483
491
  value?: undefined;
484
492
  };
485
493
  /**
486
- * Optional symbol_id for routing; when omitted, resolved from order directory.
494
+ * Optional trading symbol numeric identifier. When set, it must match the
495
+ * order's symbol, or the order is reported unknown (ERROR_CODE_ORDER_UNKNOWN)
496
+ * and nothing is canceled. When omitted, the order's own symbol is used.
487
497
  *
488
498
  * @generated from field: uint32 symbol_id = 3;
489
499
  */
@@ -614,6 +624,15 @@ type ErrorDetail = Message<"orders.v1.ErrorDetail"> & {
614
624
  * @generated from field: polyester.ratelimit.v1.RateLimitDetail rate_limit = 3;
615
625
  */
616
626
  rateLimit?: RateLimitDetail | undefined;
627
+ /**
628
+ * Public order ID holding this account's client order ID when a create is
629
+ * rejected with CONFLICT_DUPLICATE_CLIENT_ORDER_ID. Present only when an
630
+ * existing holder is known; omitted for duplicates rejected within the same
631
+ * batch before an order is assigned. Use GetOrder to obtain its current state.
632
+ *
633
+ * @generated from field: optional fixed64 existing_order_id = 4;
634
+ */
635
+ existingOrderId?: bigint | undefined;
617
636
  };
618
637
  /**
619
638
  * Describes the message orders.v1.ErrorDetail.
@@ -688,8 +707,9 @@ type RiskExecution = Message<"orders.v1.RiskExecution"> & {
688
707
  */
689
708
  declare const RiskExecutionSchema: GenMessage<RiskExecution>;
690
709
  /**
691
- * TakeProfitPolicy defines a take-profit attached to an order. It evaluates
692
- * last trade price, arms after the parent fills, and submits the selected child.
710
+ * TakeProfitPolicy defines a take-profit attached to an order. It watches the
711
+ * last traded price or the index price (trigger_price_source), arms after the
712
+ * parent fills, and submits the selected child.
693
713
  *
694
714
  * @generated from message orders.v1.TakeProfitPolicy
695
715
  */
@@ -706,6 +726,18 @@ type TakeProfitPolicy = Message<"orders.v1.TakeProfitPolicy"> & {
706
726
  * @generated from field: orders.v1.RiskExecution child = 2;
707
727
  */
708
728
  child?: RiskExecution | undefined;
729
+ /**
730
+ * Price the take-profit watches. Unspecified or LAST_PRICE watches the last
731
+ * traded price. INDEX_PRICE watches the market's index price; on a market
732
+ * without an index price the order is rejected with terminal reason
733
+ * INDEX_PRICE_UNAVAILABLE before any fill, and a modify that adds such a leg
734
+ * is refused with ERROR_CODE_TRIGGER_PRICE_SOURCE_UNSUPPORTED, leaving the
735
+ * order and its legs unchanged. MARK_PRICE is not supported. A modify naming
736
+ * another source replaces the leg.
737
+ *
738
+ * @generated from field: orders.v1.TriggerPriceSource trigger_price_source = 3;
739
+ */
740
+ triggerPriceSource: TriggerPriceSource;
709
741
  };
710
742
  /**
711
743
  * Describes the message orders.v1.TakeProfitPolicy.
@@ -713,8 +745,9 @@ type TakeProfitPolicy = Message<"orders.v1.TakeProfitPolicy"> & {
713
745
  */
714
746
  declare const TakeProfitPolicySchema: GenMessage<TakeProfitPolicy>;
715
747
  /**
716
- * StopLossPolicy defines a stop-loss attached to an order. It evaluates last
717
- * trade price, arms after the parent fills, and submits the selected child.
748
+ * StopLossPolicy defines a stop-loss attached to an order. It watches the last
749
+ * traded price or the index price (trigger_price_source), arms after the
750
+ * parent fills, and submits the selected child.
718
751
  *
719
752
  * @generated from message orders.v1.StopLossPolicy
720
753
  */
@@ -731,6 +764,18 @@ type StopLossPolicy = Message<"orders.v1.StopLossPolicy"> & {
731
764
  * @generated from field: orders.v1.RiskExecution child = 2;
732
765
  */
733
766
  child?: RiskExecution | undefined;
767
+ /**
768
+ * Price the stop-loss watches. Unspecified or LAST_PRICE watches the last
769
+ * traded price. INDEX_PRICE watches the market's index price; on a market
770
+ * without an index price the order is rejected with terminal reason
771
+ * INDEX_PRICE_UNAVAILABLE before any fill, and a modify that adds such a leg
772
+ * is refused with ERROR_CODE_TRIGGER_PRICE_SOURCE_UNSUPPORTED, leaving the
773
+ * order and its legs unchanged. MARK_PRICE is not supported. A modify naming
774
+ * another source replaces the leg.
775
+ *
776
+ * @generated from field: orders.v1.TriggerPriceSource trigger_price_source = 3;
777
+ */
778
+ triggerPriceSource: TriggerPriceSource;
734
779
  };
735
780
  /**
736
781
  * Describes the message orders.v1.StopLossPolicy.
@@ -789,7 +834,10 @@ type TrailingStopPolicy = Message<"orders.v1.TrailingStopPolicy"> & {
789
834
  case: "maxSlippageTicks";
790
835
  } | {
791
836
  /**
792
- * Maximum allowed slippage in basis points (1 bp = 0.01%).
837
+ * Maximum allowed slippage in basis points (1 bp = 0.01%), from 1 to 9999
838
+ * whichever side the exit trades. An order whose trailing stop sets 10000
839
+ * is rejected with ERROR_CODE_MAX_SLIPPAGE_INVALID, because a 100% cap
840
+ * would leave an exit that sells no positive price to sell at.
793
841
  *
794
842
  * @generated from field: int32 max_slippage_bps = 7;
795
843
  */
@@ -807,6 +855,30 @@ type TrailingStopPolicy = Message<"orders.v1.TrailingStopPolicy"> & {
807
855
  * @generated from field: int64 activation_price_ticks = 3;
808
856
  */
809
857
  activationPriceTicks: bigint;
858
+ /**
859
+ * Price the trailing stop watches and trails: its peak or trough, activation
860
+ * and fire all follow this price. Unspecified or LAST_PRICE watches the last
861
+ * traded price. INDEX_PRICE watches the market's index price; on a market
862
+ * without an index price the order is rejected with terminal reason
863
+ * INDEX_PRICE_UNAVAILABLE before any fill, and a modify that adds such a leg
864
+ * is refused with ERROR_CODE_TRIGGER_PRICE_SOURCE_UNSUPPORTED, leaving the
865
+ * order and its legs unchanged. MARK_PRICE is not supported. A modify naming
866
+ * another source replaces the leg.
867
+ *
868
+ * @generated from field: orders.v1.TriggerPriceSource trigger_price_source = 8;
869
+ */
870
+ triggerPriceSource: TriggerPriceSource;
871
+ /**
872
+ * Maximum price of a trailing stop that buys back, in quote units scaled by
873
+ * 1e9: the most its exit pays per unit, at which the quote it may spend is
874
+ * reserved with the exit's fee. Required when the parent order sells, so
875
+ * the trailing stop buys; must be unset when the parent order buys. A rise
876
+ * that fires above it still fires, and the exit fills only at or below it.
877
+ * Changing it with ModifyOrder replaces the leg.
878
+ *
879
+ * @generated from field: int64 limit_price_ticks = 4;
880
+ */
881
+ limitPriceTicks: bigint;
810
882
  };
811
883
  /**
812
884
  * Describes the message orders.v1.TrailingStopPolicy.
@@ -814,10 +886,39 @@ type TrailingStopPolicy = Message<"orders.v1.TrailingStopPolicy"> & {
814
886
  */
815
887
  declare const TrailingStopPolicySchema: GenMessage<TrailingStopPolicy>;
816
888
  /**
817
- * RiskPolicy defines optional risk controls (TP/SL/TrailingStop) attached to an
818
- * order. These arm after the parent order fills and fire when conditions are
819
- * met. If the parent order is canceled before any fill, attached risk controls
820
- * are discarded.
889
+ * RiskPolicy defines optional risk controls (take-profit, stop-loss or
890
+ * trailing stop) attached to an order. The legs protect the parent order's
891
+ * filled position: they arm as the parent fills and follow its later fills.
892
+ *
893
+ * The legs of one parent share that position, whether or not oco is set, and
894
+ * only one exit works at a time. The first leg whose condition is met submits
895
+ * an exit for the whole remaining position, rounded down to the pair's step
896
+ * size; a remainder below one step stays in the balance. If another leg's
897
+ * condition is met while that exit works, the working exit is canceled; once
898
+ * it ends, that leg is checked again against the latest price it watches and,
899
+ * if its condition still holds, exits what remains. After an exit ends, the legs keep
900
+ * protecting whatever position remains, unless you canceled the exit: canceling
901
+ * a leg's exit order, alone or with a cancel-all, ends that leg, and with oco
902
+ * set the other leg too.
903
+ *
904
+ * The legs end once the parent order is terminal and no position they can
905
+ * exit remains: the leg whose exit ended last completes, and the others are
906
+ * canceled with TRIGGER_CANCEL_REASON_OCO. If the parent order ends without a
907
+ * fill, the legs are canceled with
908
+ * TRIGGER_CANCEL_REASON_PARENT_CANCELED_NO_FILL. If no exit ran and the
909
+ * parent's whole fill is below one step, the legs fail.
910
+ *
911
+ * The legs reserve what their exits would sell or spend, once for both legs:
912
+ * the base a sell exit sells, as each parent fill settles, and the quote a
913
+ * buy-back may spend at its legs' highest maximum price. A buy-back is
914
+ * reserved from the order's creation for the part of that cost the sale
915
+ * itself may not return, so an order whose balance cannot cover it is
916
+ * rejected with ERROR_CODE_INSUFFICIENT_FUNDS. The reserve shows in the
917
+ * balance's reserved amount, and an exit uses it when it is submitted. While
918
+ * the legs protect a position, orders and withdrawals that would use the
919
+ * reserved funds are rejected with ERROR_CODE_INSUFFICIENT_FUNDS: reduce or
920
+ * cancel the legs first. What the legs no longer need is released as they
921
+ * change and in full when they end.
821
922
  *
822
923
  * @generated from message orders.v1.RiskPolicy
823
924
  */
@@ -854,9 +955,17 @@ type RiskPolicy = Message<"orders.v1.RiskPolicy"> & {
854
955
  value?: undefined;
855
956
  };
856
957
  /**
857
- * If true, take-profit and the configured stop leg (stop-loss or trailing-stop)
858
- * form an OCO pair: when one fires, the other is canceled.
859
- * Default is false (no mutual cancellation).
958
+ * If true, the take-profit and the configured stop leg (stop-loss or
959
+ * trailing stop) are linked and shown as one-cancels-the-other. Requires a
960
+ * take-profit and exactly one stop leg. The legs of every parent share one
961
+ * position and end together as described on RiskPolicy, so this setting
962
+ * does not change when exits are submitted. It decides what canceling an
963
+ * exit order ends: with oco set, canceling one leg's exit ends both legs;
964
+ * without it, only that leg ends and the other keeps protecting the
965
+ * remaining position. Changing only this setting with ModifyOrder keeps
966
+ * the existing legs, with their IDs, arming and a trailing stop's tracked
967
+ * peak; changing a leg's terms, such as its trigger price, limit price or
968
+ * trailing distance, still replaces that leg. Default is false.
860
969
  *
861
970
  * @generated from field: bool oco = 4;
862
971
  */
@@ -912,8 +1021,36 @@ type CancelAllOrdersRequest = Message<"orders.v1.CancelAllOrdersRequest"> & {
912
1021
  * Use `create(CancelAllOrdersRequestSchema)` to create a new message.
913
1022
  */
914
1023
  declare const CancelAllOrdersRequestSchema: GenMessage<CancelAllOrdersRequest>;
1024
+ /**
1025
+ * CancelledOrder identifies one order whose cancellation a cancel-all
1026
+ * requested.
1027
+ *
1028
+ * @generated from message orders.v1.CancelledOrder
1029
+ */
1030
+ type CancelledOrder = Message<"orders.v1.CancelledOrder"> & {
1031
+ /**
1032
+ * Order ID.
1033
+ *
1034
+ * @generated from field: fixed64 order_id = 1;
1035
+ */
1036
+ orderId: bigint;
1037
+ /**
1038
+ * The order's client order ID; empty when the order has none.
1039
+ *
1040
+ * @generated from field: string client_order_id = 2;
1041
+ */
1042
+ clientOrderId: string;
1043
+ };
1044
+ /**
1045
+ * Describes the message orders.v1.CancelledOrder.
1046
+ * Use `create(CancelledOrderSchema)` to create a new message.
1047
+ */
1048
+ declare const CancelledOrderSchema: GenMessage<CancelledOrder>;
915
1049
  /**
916
1050
  * CancelAllOrdersResponse returns the result of a cancel-all operation.
1051
+ * The response confirms that cancellation was requested for every matching
1052
+ * order; each order's final state is reported on the order update stream and
1053
+ * read paths.
917
1054
  *
918
1055
  * @generated from message orders.v1.CancelAllOrdersResponse
919
1056
  */
@@ -925,19 +1062,27 @@ type CancelAllOrdersResponse = Message<"orders.v1.CancelAllOrdersResponse"> & {
925
1062
  */
926
1063
  status: CancelAllOrdersResponse_Status;
927
1064
  /**
928
- * Number of orders that matched the filter.
1065
+ * Number of open orders that matched the filter when the request was
1066
+ * accepted, including orders whose cancellation was already in progress.
1067
+ * Orders placed after acceptance are not counted. Unless `dry_run` is set,
1068
+ * equals `submitted_cancels` plus `failed_cancels`.
929
1069
  *
930
1070
  * @generated from field: uint32 matched_orders = 2;
931
1071
  */
932
1072
  matchedOrders: number;
933
1073
  /**
934
- * Number of cancel requests submitted for processing.
1074
+ * Number of matched orders submitted for cancellation, including orders
1075
+ * whose cancellation was already in progress. Each moves to `CANCELED`
1076
+ * asynchronously after the response. Zero when `dry_run` is set.
935
1077
  *
936
1078
  * @generated from field: uint32 submitted_cancels = 3;
937
1079
  */
938
1080
  submittedCancels: number;
939
1081
  /**
940
- * Number of cancels that could not be submitted (already canceled, etc.).
1082
+ * Number of matched orders that could not be submitted for cancellation
1083
+ * because the cancel-all could not be recorded for their symbol. This
1084
+ * request does not cancel them; send a new cancel-all with a new
1085
+ * `request_id` if they are still open. Zero when `dry_run` is set.
941
1086
  *
942
1087
  * @generated from field: uint32 failed_cancels = 4;
943
1088
  */
@@ -954,6 +1099,41 @@ type CancelAllOrdersResponse = Message<"orders.v1.CancelAllOrdersResponse"> & {
954
1099
  * @generated from field: uint64 ts_ns = 6;
955
1100
  */
956
1101
  tsNs: bigint;
1102
+ /**
1103
+ * Orders whose cancellation was requested, oldest first (the order in
1104
+ * which they were created), at most 200. When more orders were canceled,
1105
+ * these are the 200 oldest and `truncated` is true; the order update stream
1106
+ * and read paths report every one. Empty when `dry_run` is set. Retrying
1107
+ * with the same `request_id` and criteria within 120 seconds returns the
1108
+ * original status, counts and timestamp, an empty list, and
1109
+ * `listing_status = NOT_RETAINED_READ_OPEN_ORDERS`. It requests no new
1110
+ * cancellations. Read open orders for current state and use order updates
1111
+ * for final outcomes.
1112
+ *
1113
+ * @generated from field: repeated orders.v1.CancelledOrder cancelled_orders = 7;
1114
+ */
1115
+ cancelledOrders: CancelledOrder[];
1116
+ /**
1117
+ * Number of orders whose cancellation was requested, including those not
1118
+ * listed in `cancelled_orders`. Equals `submitted_cancels`. Zero when
1119
+ * `dry_run` is set.
1120
+ *
1121
+ * @generated from field: uint32 total_cancelled = 8;
1122
+ */
1123
+ totalCancelled: number;
1124
+ /**
1125
+ * True when more orders were canceled than `cancelled_orders` lists.
1126
+ *
1127
+ * @generated from field: bool truncated = 9;
1128
+ */
1129
+ truncated: boolean;
1130
+ /**
1131
+ * Availability of the historical listing. An empty retry listing does not
1132
+ * change the original counts or mean that no cancellations were requested.
1133
+ *
1134
+ * @generated from field: orders.v1.CancelAllOrdersResponse.ListingStatus listing_status = 10;
1135
+ */
1136
+ listingStatus: CancelAllOrdersResponse_ListingStatus;
957
1137
  };
958
1138
  /**
959
1139
  * Describes the message orders.v1.CancelAllOrdersResponse.
@@ -989,6 +1169,37 @@ declare enum CancelAllOrdersResponse_Status {
989
1169
  * Describes the enum orders.v1.CancelAllOrdersResponse.Status.
990
1170
  */
991
1171
  declare const CancelAllOrdersResponse_StatusSchema: GenEnum<CancelAllOrdersResponse_Status>;
1172
+ /**
1173
+ * Availability of the order listing, separate from the submission outcome.
1174
+ *
1175
+ * @generated from enum orders.v1.CancelAllOrdersResponse.ListingStatus
1176
+ */
1177
+ declare enum CancelAllOrdersResponse_ListingStatus {
1178
+ /**
1179
+ * Listing availability was not provided.
1180
+ *
1181
+ * @generated from enum value: LISTING_UNSPECIFIED = 0;
1182
+ */
1183
+ LISTING_UNSPECIFIED = 0,
1184
+ /**
1185
+ * The initial response includes its listing, possibly empty, up to 200 orders.
1186
+ *
1187
+ * @generated from enum value: INCLUDED = 1;
1188
+ */
1189
+ INCLUDED = 1,
1190
+ /**
1191
+ * A retry returns its original outcome and counts without the historical
1192
+ * listing. Read open orders for current state and use order updates for
1193
+ * final outcomes. No new cancellations are requested by the retry.
1194
+ *
1195
+ * @generated from enum value: NOT_RETAINED_READ_OPEN_ORDERS = 2;
1196
+ */
1197
+ NOT_RETAINED_READ_OPEN_ORDERS = 2
1198
+ }
1199
+ /**
1200
+ * Describes the enum orders.v1.CancelAllOrdersResponse.ListingStatus.
1201
+ */
1202
+ declare const CancelAllOrdersResponse_ListingStatusSchema: GenEnum<CancelAllOrdersResponse_ListingStatus>;
992
1203
  /**
993
1204
  * CancelAllAfterRequest arms/disables a dead-man switch for automatic cancel-all.
994
1205
  *
@@ -1034,6 +1245,39 @@ type CancelAllAfterRequest = Message<"orders.v1.CancelAllAfterRequest"> & {
1034
1245
  * Use `create(CancelAllAfterRequestSchema)` to create a new message.
1035
1246
  */
1036
1247
  declare const CancelAllAfterRequestSchema: GenMessage<CancelAllAfterRequest>;
1248
+ /**
1249
+ * DeadManSwitchScope describes the recorded scope of an armed dead-man switch.
1250
+ * Expiry cancels working orders in this scope, including working child orders.
1251
+ * Waiting triggers remain active and may create further orders.
1252
+ *
1253
+ * @generated from message orders.v1.DeadManSwitchScope
1254
+ */
1255
+ type DeadManSwitchScope = Message<"orders.v1.DeadManSwitchScope"> & {
1256
+ /**
1257
+ * Public ID of the account or sub-account whose orders are canceled.
1258
+ *
1259
+ * @generated from field: fixed64 account_id = 1;
1260
+ */
1261
+ accountId: bigint;
1262
+ /**
1263
+ * Symbol ID whose orders are canceled. Zero or omitted means all symbols.
1264
+ *
1265
+ * @generated from field: uint32 symbol_id = 2;
1266
+ */
1267
+ symbolId: number;
1268
+ /**
1269
+ * Order side that is canceled. Not set means both sides; JSON and REST
1270
+ * responses then omit it.
1271
+ *
1272
+ * @generated from field: orders.v1.Side side = 3;
1273
+ */
1274
+ side: Side;
1275
+ };
1276
+ /**
1277
+ * Describes the message orders.v1.DeadManSwitchScope.
1278
+ * Use `create(DeadManSwitchScopeSchema)` to create a new message.
1279
+ */
1280
+ declare const DeadManSwitchScopeSchema: GenMessage<DeadManSwitchScope>;
1037
1281
  /**
1038
1282
  * CancelAllAfterResponse returns dead-man switch arming/disable status.
1039
1283
  *
@@ -1070,6 +1314,14 @@ type CancelAllAfterResponse = Message<"orders.v1.CancelAllAfterResponse"> & {
1070
1314
  * @generated from field: uint64 ts_ns = 5;
1071
1315
  */
1072
1316
  tsNs: bigint;
1317
+ /**
1318
+ * Recorded scope after arming or refreshing. Absent when disabled.
1319
+ * Describes the current armed switch only. Cancellations already in progress
1320
+ * are unaffected by a later refresh or disable.
1321
+ *
1322
+ * @generated from field: orders.v1.DeadManSwitchScope effective_scope = 6;
1323
+ */
1324
+ effectiveScope?: DeadManSwitchScope | undefined;
1073
1325
  };
1074
1326
  /**
1075
1327
  * Describes the message orders.v1.CancelAllAfterResponse.
@@ -1230,9 +1482,13 @@ type BatchCreateOrdersRequest = Message<"orders.v1.BatchCreateOrdersRequest"> &
1230
1482
  subaccountId?: bigint | undefined;
1231
1483
  /**
1232
1484
  * Required account-scoped idempotency key for the entire ordered batch.
1233
- * Reusing it with the same payload within 15 minutes replays the original
1234
- * per-item results and timestamp. Reusing it with a different payload during
1235
- * that window returns CONFLICT_IDEMPOTENCY_KEY_REUSE.
1485
+ * Reusing it with the same payload within 15 minutes returns each decided
1486
+ * item's original result and result time, and retries the items still
1487
+ * unresolved, never admitting an already admitted item again. Reusing it
1488
+ * with a different payload during that window returns
1489
+ * CONFLICT_IDEMPOTENCY_KEY_REUSE. After 15 minutes the ID is free: a repeat
1490
+ * is a new request and can place its orders again, so read the items back
1491
+ * instead of repeating an older batch.
1236
1492
  *
1237
1493
  * @generated from field: string request_id = 2;
1238
1494
  */
@@ -1331,7 +1587,8 @@ type ModifyOrderRequest = Message<"orders.v1.ModifyOrderRequest"> & {
1331
1587
  value?: undefined;
1332
1588
  };
1333
1589
  /**
1334
- * Idempotency key (required).
1590
+ * Idempotency key (required). Outstanding modifications retain this key;
1591
+ * identical retries replay the final result for 60 seconds after the answer.
1335
1592
  *
1336
1593
  * @generated from field: string request_id = 4;
1337
1594
  */
@@ -1351,7 +1608,10 @@ type ModifyOrderRequest = Message<"orders.v1.ModifyOrderRequest"> & {
1351
1608
  */
1352
1609
  newQtyScaled?: bigint | undefined;
1353
1610
  /**
1354
- * Replacement attached-risk policy for the order.
1611
+ * Replacement attached-risk policy for the order. The order's change and its
1612
+ * take-profit, stop-loss and trailing legs apply together: either all of
1613
+ * them change, or the whole modify is refused and the order and its legs
1614
+ * stay as they were.
1355
1615
  *
1356
1616
  * @generated from field: orders.v1.RiskPolicy new_attached_risk = 7;
1357
1617
  */
@@ -1449,7 +1709,14 @@ type ModifyOrderResponse = Message<"orders.v1.ModifyOrderResponse"> & {
1449
1709
  */
1450
1710
  declare const ModifyOrderResponseSchema: GenMessage<ModifyOrderResponse>;
1451
1711
  /**
1452
- * BatchReplaceOrderItem identifies one replacement inside a quote-refresh batch.
1712
+ * BatchReplaceOrderItem identifies one order to modify inside a quote-refresh
1713
+ * batch. Each item follows ModifyOrder's default AMEND_OR_REPLACE rule: an item
1714
+ * that keeps the order's price (new_price_ticks unset or equal to it), does not
1715
+ * raise its total quantity and keeps its client order ID amends the order in
1716
+ * place, under the same order ID and with its queue priority kept. A new
1717
+ * price, a larger total quantity or a new client order ID replaces it with a
1718
+ * successor order under a new order ID, with its queue priority reset. To
1719
+ * force a replacement, use ModifyOrder with REPLACE_ONLY.
1453
1720
  *
1454
1721
  * @generated from message orders.v1.BatchReplaceOrderItem
1455
1722
  */
@@ -1497,7 +1764,8 @@ type BatchReplaceOrderItem = Message<"orders.v1.BatchReplaceOrderItem"> & {
1497
1764
  */
1498
1765
  newAttachedRisk?: RiskPolicy | undefined;
1499
1766
  /**
1500
- * Optional new client order id when replace path is taken.
1767
+ * Optional client order ID for the successor. A value other than the order's
1768
+ * client order ID makes the item a replacement.
1501
1769
  *
1502
1770
  * @generated from field: string new_client_order_id = 6;
1503
1771
  */
@@ -1527,19 +1795,22 @@ type BatchReplaceAdmissionItem = Message<"orders.v1.BatchReplaceAdmissionItem">
1527
1795
  */
1528
1796
  status: BatchReplaceItemAdmissionStatus;
1529
1797
  /**
1530
- * Original order targeted by the replacement.
1798
+ * Original order targeted by the replacement: the requested order ID, or the
1799
+ * order the requested client order ID names. Rejected items keep it too. Unset
1800
+ * only when the requested client order ID names no order.
1531
1801
  *
1532
1802
  * @generated from field: fixed64 old_order_id = 3;
1533
1803
  */
1534
1804
  oldOrderId: bigint;
1535
1805
  /**
1536
- * Assigned successor order ID. Zero for cancel-only outcomes or rejection before assignment.
1806
+ * Assigned successor order ID, for a REPLACED item only. Unset for an AMENDED
1807
+ * item, whose order keeps old_order_id, and for rejected items.
1537
1808
  *
1538
1809
  * @generated from field: fixed64 replacement_order_id = 4;
1539
1810
  */
1540
1811
  replacementOrderId: bigint;
1541
1812
  /**
1542
- * Client order ID assigned to the successor when available.
1813
+ * Client order ID assigned to the successor, for a REPLACED item only.
1543
1814
  *
1544
1815
  * @generated from field: string client_order_id = 5;
1545
1816
  */
@@ -1557,9 +1828,12 @@ type BatchReplaceAdmissionItem = Message<"orders.v1.BatchReplaceAdmissionItem">
1557
1828
  */
1558
1829
  error?: ErrorDetail | undefined;
1559
1830
  /**
1560
- * REPLACED admits a successor. AMENDED cancels the original order's remaining quantity
1561
- * without a successor; keep tracking old_order_id until its terminal state is confirmed.
1562
- * Unspecified for rejected items.
1831
+ * REPLACED admits a successor under replacement_order_id, with queue priority
1832
+ * reset. AMENDED keeps the order under old_order_id with no successor: the
1833
+ * order is amended in place and keeps its queue priority, or, when the new
1834
+ * total quantity is at or below its filled quantity, ends at its filled
1835
+ * quantity. Keep tracking old_order_id for an AMENDED item. Not set for
1836
+ * rejected items; JSON and REST responses then omit it.
1563
1837
  *
1564
1838
  * @generated from field: orders.v1.ModifyActionTaken action_taken = 8;
1565
1839
  */
@@ -1571,7 +1845,10 @@ type BatchReplaceAdmissionItem = Message<"orders.v1.BatchReplaceAdmissionItem">
1571
1845
  */
1572
1846
  declare const BatchReplaceAdmissionItemSchema: GenMessage<BatchReplaceAdmissionItem>;
1573
1847
  /**
1574
- * BatchReplaceOrdersRequest replaces same-symbol orders as one quote refresh.
1848
+ * BatchReplaceOrdersRequest modifies same-symbol orders as one quote refresh:
1849
+ * each item is amended in place or replaced as ModifyOrder decides by default.
1850
+ * Identical retries replay the admission result for 60 seconds from acceptance;
1851
+ * a different payload under the same key conflicts. Use a fresh key for a new batch.
1575
1852
  *
1576
1853
  * @generated from message orders.v1.BatchReplaceOrdersRequest
1577
1854
  */
@@ -1583,7 +1860,8 @@ type BatchReplaceOrdersRequest = Message<"orders.v1.BatchReplaceOrdersRequest">
1583
1860
  */
1584
1861
  subaccountId?: bigint | undefined;
1585
1862
  /**
1586
- * Trading symbol shared by every replacement.
1863
+ * Trading symbol shared by every replacement. An item whose order is on
1864
+ * another symbol is refused alone as an unknown order.
1587
1865
  *
1588
1866
  * @generated from field: uint32 symbol_id = 2;
1589
1867
  */
@@ -1679,7 +1957,9 @@ type BatchCancelItem = Message<"orders.v1.BatchCancelItem"> & {
1679
1957
  */
1680
1958
  clientOrderId: string;
1681
1959
  /**
1682
- * Optional symbol routing hint.
1960
+ * Optional trading symbol numeric identifier. When set, it must match the
1961
+ * order's symbol, or the item is refused as an unknown order. When omitted,
1962
+ * the order's own symbol is used.
1683
1963
  *
1684
1964
  * @generated from field: uint32 symbol_id = 3;
1685
1965
  */
@@ -1963,8 +2243,10 @@ declare enum FeeAsset {
1963
2243
  */
1964
2244
  declare const FeeAssetSchema: GenEnum<FeeAsset>;
1965
2245
  /**
1966
- * SelfTradePreventionMode controls which orders expire when they would trade
1967
- * against another order from the same account.
2246
+ * SelfTradePreventionMode controls which orders expire when an order would
2247
+ * trade against another order of the same root account, including all its
2248
+ * subaccounts: two subaccounts of one root never trade with each other. The
2249
+ * incoming order's mode decides which orders expire.
1968
2250
  *
1969
2251
  * @generated from enum orders.v1.SelfTradePreventionMode
1970
2252
  */
@@ -2061,7 +2343,11 @@ declare enum ErrorCode {
2061
2343
  */
2062
2344
  QTY_STEP_SIZE = 8,
2063
2345
  /**
2064
- * Client order ID is already in use for a different active order.
2346
+ * Client order ID is already in use on this account, by an open order or by
2347
+ * an order that ended recently; an ended order keeps its client order ID
2348
+ * reserved for at least 60 seconds. Reuse returns this code even with the
2349
+ * same payload. Use GetOrder to reconcile, then retry with a new client
2350
+ * order ID.
2065
2351
  *
2066
2352
  * @generated from enum value: ERROR_CODE_CONFLICT_DUPLICATE_CLIENT_ORDER_ID = 9;
2067
2353
  */
@@ -2324,7 +2610,7 @@ declare enum ErrorCode {
2324
2610
  */
2325
2611
  FOK_INSUFFICIENT_LIQUIDITY = 63,
2326
2612
  /**
2327
- * Client order ID points to an order that already reached terminal state.
2613
+ * The order has already ended (filled, canceled or expired).
2328
2614
  *
2329
2615
  * @generated from enum value: ERROR_CODE_ORDER_ALREADY_TERMINAL = 64;
2330
2616
  */
@@ -2355,12 +2641,6 @@ declare enum ErrorCode {
2355
2641
  * @generated from enum value: ERROR_CODE_TRIGGER_NOT_FOUND = 43;
2356
2642
  */
2357
2643
  TRIGGER_NOT_FOUND = 43,
2358
- /**
2359
- * Trigger cannot be canceled in current state.
2360
- *
2361
- * @generated from enum value: ERROR_CODE_TRIGGER_CANCEL_REJECTED = 44;
2362
- */
2363
- TRIGGER_CANCEL_REJECTED = 44,
2364
2644
  /**
2365
2645
  * Trigger status does not allow requested lifecycle operation.
2366
2646
  *
@@ -2374,13 +2654,19 @@ declare enum ErrorCode {
2374
2654
  */
2375
2655
  TRIGGER_NOT_MODIFIABLE = 46,
2376
2656
  /**
2377
- * Duplicate client trigger ID was reused with a different trigger payload.
2657
+ * Client trigger ID is already used, either by a trigger with a different
2658
+ * payload or by an earlier create that failed or was rolled back. List
2659
+ * triggers to reconcile by client trigger ID, then retry with a new client
2660
+ * trigger ID.
2378
2661
  *
2379
2662
  * @generated from enum value: ERROR_CODE_CONFLICT_DUPLICATE_CLIENT_TRIGGER_ID = 47;
2380
2663
  */
2381
2664
  CONFLICT_DUPLICATE_CLIENT_TRIGGER_ID = 47,
2382
2665
  /**
2383
- * Trailing-stop max slippage (ticks or bps) is invalid.
2666
+ * Max slippage (ticks or bps) is out of range or leaves no valid execution
2667
+ * price bound. Applies to market orders and to standalone and attached
2668
+ * trailing stops, on create and on modify; for example, a 10000 bps cap on a
2669
+ * market order or trailing stop that sells.
2384
2670
  *
2385
2671
  * @generated from enum value: ERROR_CODE_MAX_SLIPPAGE_INVALID = 48;
2386
2672
  */
@@ -2398,7 +2684,10 @@ declare enum ErrorCode {
2398
2684
  */
2399
2685
  VALIDATION_ERROR = 66,
2400
2686
  /**
2401
- * This edge is at its bounded concurrent BatchReplace admission capacity.
2687
+ * The account already has its maximum order requests in flight; nothing was
2688
+ * admitted. ConnectRPC returns RESOURCE_EXHAUSTED (HTTP 429); REST returns
2689
+ * HTTP 503. No Retry-After or RateLimit-* headers are supplied. Retry after
2690
+ * one of the outstanding requests completes.
2402
2691
  *
2403
2692
  * @generated from enum value: ERROR_CODE_OVERLOADED = 67;
2404
2693
  */
@@ -2438,16 +2727,879 @@ declare enum ErrorCode {
2438
2727
  *
2439
2728
  * @generated from enum value: ERROR_CODE_CANCEL_REQUEST_EXPIRED = 73;
2440
2729
  */
2441
- CANCEL_REQUEST_EXPIRED = 73
2730
+ CANCEL_REQUEST_EXPIRED = 73,
2731
+ /**
2732
+ * Quantity is above the pair maximum: the market-order maximum for MARKET
2733
+ * orders, the limit-order maximum otherwise (base units).
2734
+ *
2735
+ * @generated from enum value: ERROR_CODE_MAX_QTY = 74;
2736
+ */
2737
+ MAX_QTY = 74,
2738
+ /**
2739
+ * Order notional is above the pair maximum (quote units). A stricter
2740
+ * sub-account policy cap returns POLICY_MAX_NOTIONAL instead.
2741
+ *
2742
+ * @generated from enum value: ERROR_CODE_MAX_NOTIONAL = 75;
2743
+ */
2744
+ MAX_NOTIONAL = 75,
2745
+ /**
2746
+ * The replacement total quantity is at or below the order's filled
2747
+ * quantity: the order ended at its filled quantity and no replacement order
2748
+ * was created.
2749
+ *
2750
+ * @generated from enum value: ERROR_CODE_QTY_AT_OR_BELOW_FILLED = 76;
2751
+ */
2752
+ QTY_AT_OR_BELOW_FILLED = 76,
2753
+ /**
2754
+ * The trading gateway that took the request is misconfigured for the order
2755
+ * service behind it. An operator must correct it; retrying does not help.
2756
+ *
2757
+ * @generated from enum value: ERROR_CODE_GATEWAY_MISCONFIGURED = 77;
2758
+ */
2759
+ GATEWAY_MISCONFIGURED = 77,
2760
+ /**
2761
+ * The order identifier or the replacement order identifier is not valid.
2762
+ *
2763
+ * @generated from enum value: ERROR_CODE_INVALID_ORDER_ID = 80;
2764
+ */
2765
+ INVALID_ORDER_ID = 80,
2766
+ /**
2767
+ * The quantity of a trigger's child order or a ladder order can't be raised
2768
+ * above its planned quantity. Nothing changed.
2769
+ *
2770
+ * @generated from enum value: ERROR_CODE_CHILD_QTY_RAISE_NOT_ALLOWED = 81;
2771
+ */
2772
+ CHILD_QTY_RAISE_NOT_ALLOWED = 81,
2773
+ /**
2774
+ * Attached take-profit, stop-loss or trailing legs can't be applied here:
2775
+ * this market takes none, an attached trailing stop isn't offered yet, or
2776
+ * the modify changes them together with the order's price, quantity, client
2777
+ * order ID or a replace. Nothing changed.
2778
+ *
2779
+ * @generated from enum value: ERROR_CODE_ATTACHED_RISK_NOT_SUPPORTED = 82;
2780
+ */
2781
+ ATTACHED_RISK_NOT_SUPPORTED = 82,
2782
+ /**
2783
+ * The account has too many filled or ended orders whose settlement has not
2784
+ * completed yet. Nothing changed; the request is accepted again once settlement
2785
+ * catches up.
2786
+ *
2787
+ * @generated from enum value: ERROR_CODE_SETTLEMENT_BACKLOGGED = 84;
2788
+ */
2789
+ SETTLEMENT_BACKLOGGED = 84,
2790
+ /**
2791
+ * The order would take the total quantity resting at its price past the
2792
+ * most a price level can hold, even if some quantity still fits. Nothing
2793
+ * changed: a new order was not placed, a modified order keeps resting as it
2794
+ * was, and the other orders at that price are unchanged. Another price or a
2795
+ * smaller quantity, or the same order once less quantity rests at that
2796
+ * price, is accepted.
2797
+ *
2798
+ * @generated from enum value: ERROR_CODE_PRICE_LEVEL_QUANTITY_LIMIT = 127;
2799
+ */
2800
+ PRICE_LEVEL_QUANTITY_LIMIT = 127,
2801
+ /**
2802
+ * The market order carried no client reference price, and the pair's reference
2803
+ * quote (top of book) was older than its freshness bound when the order was
2804
+ * admitted.
2805
+ *
2806
+ * @generated from enum value: ERROR_CODE_MARKET_QUOTE_STALE = 200;
2807
+ */
2808
+ MARKET_QUOTE_STALE = 200,
2809
+ /**
2810
+ * The market order carried no client reference price, and the pair's reference
2811
+ * quote could not be used to price it, for example because it postdated the
2812
+ * order or carried an invalid price.
2813
+ *
2814
+ * @generated from enum value: ERROR_CODE_MARKET_QUOTE_UNHEALTHY = 201;
2815
+ */
2816
+ MARKET_QUOTE_UNHEALTHY = 201,
2817
+ /**
2818
+ * The time in force, or its expiry time, is not accepted for this order or for
2819
+ * a trigger's child order type.
2820
+ *
2821
+ * @generated from enum value: ERROR_CODE_INVALID_TIME_IN_FORCE = 202;
2822
+ */
2823
+ INVALID_TIME_IN_FORCE = 202,
2824
+ /**
2825
+ * The request carried QuickSwap terms that the account or market does not
2826
+ * accept.
2827
+ *
2828
+ * @generated from enum value: ERROR_CODE_QUICKSWAP_NOT_PERMITTED = 203;
2829
+ */
2830
+ QUICKSWAP_NOT_PERMITTED = 203,
2831
+ /**
2832
+ * The order identifier assigned to the request is already in use by another
2833
+ * order of the market. Nothing changed.
2834
+ *
2835
+ * @generated from enum value: ERROR_CODE_DUPLICATE_ORDER_ID = 204;
2836
+ */
2837
+ DUPLICATE_ORDER_ID = 204,
2838
+ /**
2839
+ * The account has reached its maximum number of open orders across all markets.
2840
+ * A stricter sub-account policy cap returns POLICY_MAX_OPEN_ORDERS instead.
2841
+ *
2842
+ * @generated from enum value: ERROR_CODE_MAX_OPEN_ORDERS_TOTAL = 205;
2843
+ */
2844
+ MAX_OPEN_ORDERS_TOTAL = 205,
2845
+ /**
2846
+ * The self-trade prevention mode is not one the venue accepts for this order.
2847
+ *
2848
+ * @generated from enum value: ERROR_CODE_STP_MODE_NOT_ALLOWED = 206;
2849
+ */
2850
+ STP_MODE_NOT_ALLOWED = 206,
2851
+ /**
2852
+ * The trading pair is busy with the account's earlier requests, so this one was
2853
+ * not admitted and nothing was reserved. Retry shortly.
2854
+ *
2855
+ * @generated from enum value: ERROR_CODE_PAIR_BACKLOGGED = 207;
2856
+ */
2857
+ PAIR_BACKLOGGED = 207,
2858
+ /**
2859
+ * The order book of the market holds its maximum number of distinct price
2860
+ * levels, so an order at a new price cannot rest. Nothing changed.
2861
+ *
2862
+ * @generated from enum value: ERROR_CODE_PRICE_LEVELS_EXHAUSTED = 208;
2863
+ */
2864
+ PRICE_LEVELS_EXHAUSTED = 208,
2865
+ /**
2866
+ * The account reserves its maximum number of client order IDs, including those
2867
+ * of recently ended orders. Retry once they expire, or send the request without
2868
+ * a client order ID.
2869
+ *
2870
+ * @generated from enum value: ERROR_CODE_CLIENT_ORDER_IDS_EXHAUSTED = 209;
2871
+ */
2872
+ CLIENT_ORDER_IDS_EXHAUSTED = 209,
2873
+ /**
2874
+ * The order identifier is held by a different, earlier order, so the request
2875
+ * was not applied. Nothing changed.
2876
+ *
2877
+ * @generated from enum value: ERROR_CODE_ORDER_ID_CONFLICT = 210;
2878
+ */
2879
+ ORDER_ID_CONFLICT = 210,
2880
+ /**
2881
+ * The order side, or a trigger's child order side, is not a known side.
2882
+ *
2883
+ * @generated from enum value: ERROR_CODE_INVALID_SIDE = 211;
2884
+ */
2885
+ INVALID_SIDE = 211,
2886
+ /**
2887
+ * The order type, or a trigger's child order type, is not a known order type.
2888
+ *
2889
+ * @generated from enum value: ERROR_CODE_INVALID_ORDER_TYPE = 212;
2890
+ */
2891
+ INVALID_ORDER_TYPE = 212,
2892
+ /**
2893
+ * The self-trade prevention mode is not a known mode.
2894
+ *
2895
+ * @generated from enum value: ERROR_CODE_INVALID_STP_MODE = 213;
2896
+ */
2897
+ INVALID_STP_MODE = 213,
2898
+ /**
2899
+ * An order flag is unknown, or not accepted with this order type or time in
2900
+ * force, or on a trigger's child order.
2901
+ *
2902
+ * @generated from enum value: ERROR_CODE_INVALID_ORDER_FLAGS = 214;
2903
+ */
2904
+ INVALID_ORDER_FLAGS = 214,
2905
+ /**
2906
+ * Another item of the same batch was invalid, so this item was not applied
2907
+ * either. Nothing in the batch changed.
2908
+ *
2909
+ * @generated from enum value: ERROR_CODE_BATCH_OTHER_ITEM_INVALID = 215;
2910
+ */
2911
+ BATCH_OTHER_ITEM_INVALID = 215,
2912
+ /**
2913
+ * The replacement order identifier equals the identifier of the order it
2914
+ * replaces.
2915
+ *
2916
+ * @generated from enum value: ERROR_CODE_REPLACE_ONTO_OWN_ID = 216;
2917
+ */
2918
+ REPLACE_ONTO_OWN_ID = 216,
2919
+ /**
2920
+ * The client order ID is longer than 36 bytes or otherwise not valid.
2921
+ *
2922
+ * @generated from enum value: ERROR_CODE_INVALID_CLIENT_ORDER_ID = 217;
2923
+ */
2924
+ INVALID_CLIENT_ORDER_ID = 217,
2925
+ /**
2926
+ * The account used every order identifier available to it in this market.
2927
+ * Retrying does not help; contact support.
2928
+ *
2929
+ * @generated from enum value: ERROR_CODE_ORDER_SEQUENCE_EXHAUSTED = 218;
2930
+ */
2931
+ ORDER_SEQUENCE_EXHAUSTED = 218,
2932
+ /**
2933
+ * The order handling mode is not a known or accepted mode.
2934
+ *
2935
+ * @generated from enum value: ERROR_CODE_INVALID_HANDLING_MODE = 219;
2936
+ */
2937
+ INVALID_HANDLING_MODE = 219,
2938
+ /**
2939
+ * The fees that apply to the order cannot be determined right now, so it was
2940
+ * not admitted. Retry later.
2941
+ *
2942
+ * @generated from enum value: ERROR_CODE_FEE_SCHEDULE_UNAVAILABLE = 220;
2943
+ */
2944
+ FEE_SCHEDULE_UNAVAILABLE = 220,
2945
+ /**
2946
+ * The account's trading policy cannot be evaluated right now, so the order was
2947
+ * not admitted. Retry later.
2948
+ *
2949
+ * @generated from enum value: ERROR_CODE_POLICY_UNAVAILABLE = 221;
2950
+ */
2951
+ POLICY_UNAVAILABLE = 221,
2952
+ /**
2953
+ * The cancel-all-after timeout is neither 0, which disarms it, nor between 10
2954
+ * and 120 seconds.
2955
+ *
2956
+ * @generated from enum value: ERROR_CODE_CANCEL_ALL_AFTER_TIMEOUT_INVALID = 222;
2957
+ */
2958
+ CANCEL_ALL_AFTER_TIMEOUT_INVALID = 222,
2959
+ /**
2960
+ * The cancel-all request named more than 100 symbols.
2961
+ *
2962
+ * @generated from enum value: ERROR_CODE_CANCEL_SCOPE_TOO_LARGE = 223;
2963
+ */
2964
+ CANCEL_SCOPE_TOO_LARGE = 223,
2965
+ /**
2966
+ * No usable rate-limit policy applies to the account right now, so the request
2967
+ * was refused rather than admitted unlimited. Retry later.
2968
+ *
2969
+ * @generated from enum value: ERROR_CODE_RATE_LIMIT_POLICY_UNAVAILABLE = 224;
2970
+ */
2971
+ RATE_LIMIT_POLICY_UNAVAILABLE = 224,
2972
+ /**
2973
+ * The venue-wide admission rate that the account shares with other accounts is
2974
+ * exhausted. The account's own limit was not reached; retry shortly.
2975
+ *
2976
+ * @generated from enum value: ERROR_CODE_SYSTEM_RATE_LIMITED = 225;
2977
+ */
2978
+ SYSTEM_RATE_LIMITED = 225,
2979
+ /**
2980
+ * An earlier amend or replace of the order has not completed yet. Retry once it
2981
+ * completes.
2982
+ *
2983
+ * @generated from enum value: ERROR_CODE_ORDER_MODIFY_IN_PROGRESS = 226;
2984
+ */
2985
+ ORDER_MODIFY_IN_PROGRESS = 226,
2986
+ /**
2987
+ * The order, or the replace that created it, has not been placed on the book
2988
+ * yet, so it cannot be modified. Retry shortly.
2989
+ *
2990
+ * @generated from enum value: ERROR_CODE_ORDER_PLACEMENT_PENDING = 227;
2991
+ */
2992
+ ORDER_PLACEMENT_PENDING = 227,
2993
+ /**
2994
+ * The modify behavior is not a known behavior.
2995
+ *
2996
+ * @generated from enum value: ERROR_CODE_INVALID_MODIFY_BEHAVIOR = 228;
2997
+ */
2998
+ INVALID_MODIFY_BEHAVIOR = 228,
2999
+ /**
3000
+ * No longer returned: each BatchReplaceOrders item follows ModifyOrder's
3001
+ * default amend-or-replace rule. The value stays reserved.
3002
+ *
3003
+ * @generated from enum value: ERROR_CODE_BATCH_REPLACE_ONLY_REQUIRED = 229;
3004
+ */
3005
+ BATCH_REPLACE_ONLY_REQUIRED = 229,
3006
+ /**
3007
+ * An item of the batch modify named no symbol, or another symbol than the
3008
+ * batch's first item, so the batch was refused.
3009
+ *
3010
+ * @generated from enum value: ERROR_CODE_BATCH_SINGLE_SYMBOL_REQUIRED = 230;
3011
+ */
3012
+ BATCH_SINGLE_SYMBOL_REQUIRED = 230,
3013
+ /**
3014
+ * The account keeps its maximum number of recent modify or batch requests for
3015
+ * duplicate detection. Retry once earlier ones expire.
3016
+ *
3017
+ * @generated from enum value: ERROR_CODE_REQUEST_RECEIPTS_EXHAUSTED = 231;
3018
+ */
3019
+ REQUEST_RECEIPTS_EXHAUSTED = 231,
3020
+ /**
3021
+ * The cancel-all or cancel-all-after request carried an intent identifier of
3022
+ * zero.
3023
+ *
3024
+ * @generated from enum value: ERROR_CODE_INTENT_ID_INVALID = 232;
3025
+ */
3026
+ INTENT_ID_INVALID = 232,
3027
+ /**
3028
+ * The cancel-all request's dry-run flag was neither 0 nor 1.
3029
+ *
3030
+ * @generated from enum value: ERROR_CODE_DRY_RUN_INVALID = 233;
3031
+ */
3032
+ DRY_RUN_INVALID = 233,
3033
+ /**
3034
+ * A cancel-all-after is already due to fire, and the re-arm's scope does not
3035
+ * cover every symbol of the pending one.
3036
+ *
3037
+ * @generated from enum value: ERROR_CODE_CANCEL_ALL_AFTER_SCOPE_CONFLICT = 234;
3038
+ */
3039
+ CANCEL_ALL_AFTER_SCOPE_CONFLICT = 234,
3040
+ /**
3041
+ * The venue holds its maximum number of account access records, so an account
3042
+ * trading this market for the first time cannot be admitted. Retry later.
3043
+ *
3044
+ * @generated from enum value: ERROR_CODE_NEW_ACCOUNT_CAPACITY_REACHED = 235;
3045
+ */
3046
+ NEW_ACCOUNT_CAPACITY_REACHED = 235,
3047
+ /**
3048
+ * The modify patched the trigger's child limit price or price mode, which the
3049
+ * trigger does not accept.
3050
+ *
3051
+ * @generated from enum value: ERROR_CODE_TRIGGER_CHILD_PRICE_NOT_MODIFIABLE = 236;
3052
+ */
3053
+ TRIGGER_CHILD_PRICE_NOT_MODIFIABLE = 236,
3054
+ /**
3055
+ * The trigger reached its last modification. Nothing changed; cancel it and
3056
+ * create a new trigger instead.
3057
+ *
3058
+ * @generated from enum value: ERROR_CODE_TRIGGER_GENERATIONS_EXHAUSTED = 237;
3059
+ */
3060
+ TRIGGER_GENERATIONS_EXHAUSTED = 237,
3061
+ /**
3062
+ * The account has its maximum number of trigger changes whose outcome is still
3063
+ * pending. Retry shortly.
3064
+ *
3065
+ * @generated from enum value: ERROR_CODE_TRIGGER_CONTROL_SHARE_EXHAUSTED = 238;
3066
+ */
3067
+ TRIGGER_CONTROL_SHARE_EXHAUSTED = 238,
3068
+ /**
3069
+ * The venue's capacity for pending trigger changes is exhausted across
3070
+ * accounts. Retry shortly.
3071
+ *
3072
+ * @generated from enum value: ERROR_CODE_TRIGGER_CONTROLS_BUSY = 239;
3073
+ */
3074
+ TRIGGER_CONTROLS_BUSY = 239,
3075
+ /**
3076
+ * The trigger type is valid but not supported on this venue yet.
3077
+ *
3078
+ * @generated from enum value: ERROR_CODE_TRIGGER_TYPE_NOT_SUPPORTED = 240;
3079
+ */
3080
+ TRIGGER_TYPE_NOT_SUPPORTED = 240,
3081
+ /**
3082
+ * The trigger type is not a known type.
3083
+ *
3084
+ * @generated from enum value: ERROR_CODE_INVALID_TRIGGER_TYPE = 241;
3085
+ */
3086
+ INVALID_TRIGGER_TYPE = 241,
3087
+ /**
3088
+ * The trigger direction is neither ABOVE nor BELOW.
3089
+ *
3090
+ * @generated from enum value: ERROR_CODE_TRIGGER_DIRECTION_INVALID = 242;
3091
+ */
3092
+ TRIGGER_DIRECTION_INVALID = 242,
3093
+ /**
3094
+ * The trigger's child order quantity is not positive.
3095
+ *
3096
+ * @generated from enum value: ERROR_CODE_TRIGGER_QTY_INVALID = 243;
3097
+ */
3098
+ TRIGGER_QTY_INVALID = 243,
3099
+ /**
3100
+ * A buy trailing stop's child order is not a LIMIT order with a maximum
3101
+ * price; its funds are reserved at that price.
3102
+ *
3103
+ * @generated from enum value: ERROR_CODE_TRIGGER_BUY_REQUIRES_LIMIT = 244;
3104
+ */
3105
+ TRIGGER_BUY_REQUIRES_LIMIT = 244,
3106
+ /**
3107
+ * The account's trading route is not configured for triggers, so the trigger
3108
+ * was not admitted. Contact support if it persists.
3109
+ *
3110
+ * @generated from enum value: ERROR_CODE_ACCOUNT_ROUTING_INVALID = 245;
3111
+ */
3112
+ ACCOUNT_ROUTING_INVALID = 245,
3113
+ /**
3114
+ * The account has its maximum number of live and recently ended triggers.
3115
+ *
3116
+ * @generated from enum value: ERROR_CODE_TRIGGER_LIMIT_EXCEEDED = 246;
3117
+ */
3118
+ TRIGGER_LIMIT_EXCEEDED = 246,
3119
+ /**
3120
+ * An earlier change of the trigger has not completed yet. Retry once it
3121
+ * completes.
3122
+ *
3123
+ * @generated from enum value: ERROR_CODE_TRIGGER_CONTROL_IN_PROGRESS = 247;
3124
+ */
3125
+ TRIGGER_CONTROL_IN_PROGRESS = 247,
3126
+ /**
3127
+ * The trigger modify named no field to change.
3128
+ *
3129
+ * @generated from enum value: ERROR_CODE_TRIGGER_PATCH_EMPTY = 248;
3130
+ */
3131
+ TRIGGER_PATCH_EMPTY = 248,
3132
+ /**
3133
+ * The client trigger ID is empty, longer than 36 bytes or otherwise not valid.
3134
+ *
3135
+ * @generated from enum value: ERROR_CODE_CLIENT_TRIGGER_ID_INVALID = 249;
3136
+ */
3137
+ CLIENT_TRIGGER_ID_INVALID = 249,
3138
+ /**
3139
+ * The trailing trigger's activation price is not positive or not on the pair's
3140
+ * tick.
3141
+ *
3142
+ * @generated from enum value: ERROR_CODE_TRIGGER_ACTIVATION_PRICE_INVALID = 250;
3143
+ */
3144
+ TRIGGER_ACTIVATION_PRICE_INVALID = 250,
3145
+ /**
3146
+ * The trigger's slippage bound in ticks is not valid for its child order.
3147
+ *
3148
+ * @generated from enum value: ERROR_CODE_SLIPPAGE_TICKS_INVALID = 251;
3149
+ */
3150
+ SLIPPAGE_TICKS_INVALID = 251,
3151
+ /**
3152
+ * The trigger's slippage bound in basis points is not valid for its child
3153
+ * order.
3154
+ *
3155
+ * @generated from enum value: ERROR_CODE_SLIPPAGE_BPS_INVALID = 252;
3156
+ */
3157
+ SLIPPAGE_BPS_INVALID = 252,
3158
+ /**
3159
+ * The trigger change was not confirmed within its time bound. Its outcome is
3160
+ * unknown and it may still apply; read the trigger before retrying.
3161
+ *
3162
+ * @generated from enum value: ERROR_CODE_TRIGGER_CONTROL_OUTCOME_UNKNOWN = 253;
3163
+ */
3164
+ TRIGGER_CONTROL_OUTCOME_UNKNOWN = 253,
3165
+ /**
3166
+ * The venue holds its maximum number of triggers across accounts right now.
3167
+ * Retry later.
3168
+ *
3169
+ * @generated from enum value: ERROR_CODE_TRIGGER_CAPACITY_REACHED = 254;
3170
+ */
3171
+ TRIGGER_CAPACITY_REACHED = 254,
3172
+ /**
3173
+ * The venue's capacity for fund reservations is exhausted right now, so the
3174
+ * trigger's child order could not be reserved. Retry later.
3175
+ *
3176
+ * @generated from enum value: ERROR_CODE_RESERVATION_CAPACITY_REACHED = 255;
3177
+ */
3178
+ RESERVATION_CAPACITY_REACHED = 255,
3179
+ /**
3180
+ * The venue's capacity for reserved client order IDs is exhausted right now, so
3181
+ * the trigger's child order could not reserve one. Retry later.
3182
+ *
3183
+ * @generated from enum value: ERROR_CODE_CLIENT_ORDER_ID_CAPACITY_REACHED = 256;
3184
+ */
3185
+ CLIENT_ORDER_ID_CAPACITY_REACHED = 256,
3186
+ /**
3187
+ * The account's open orders and triggers hold its maximum number of fund
3188
+ * reservations.
3189
+ *
3190
+ * @generated from enum value: ERROR_CODE_ACCOUNT_RESERVATION_LIMIT_REACHED = 257;
3191
+ */
3192
+ ACCOUNT_RESERVATION_LIMIT_REACHED = 257,
3193
+ /**
3194
+ * The requested trigger operation is not a known operation.
3195
+ *
3196
+ * @generated from enum value: ERROR_CODE_INVALID_TRIGGER_CONTROL = 258;
3197
+ */
3198
+ INVALID_TRIGGER_CONTROL = 258,
3199
+ /**
3200
+ * A trigger operation other than modify carried field changes.
3201
+ *
3202
+ * @generated from enum value: ERROR_CODE_TRIGGER_PATCH_NOT_ALLOWED = 259;
3203
+ */
3204
+ TRIGGER_PATCH_NOT_ALLOWED = 259,
3205
+ /**
3206
+ * The trigger modify named a field that is not known.
3207
+ *
3208
+ * @generated from enum value: ERROR_CODE_TRIGGER_PATCH_FIELD_UNKNOWN = 260;
3209
+ */
3210
+ TRIGGER_PATCH_FIELD_UNKNOWN = 260,
3211
+ /**
3212
+ * The trigger modify carried a value for a field its change mask does not name.
3213
+ *
3214
+ * @generated from enum value: ERROR_CODE_TRIGGER_PATCH_VALUE_UNMASKED = 261;
3215
+ */
3216
+ TRIGGER_PATCH_VALUE_UNMASKED = 261,
3217
+ /**
3218
+ * The trigger modify's price mode is not a known mode.
3219
+ *
3220
+ * @generated from enum value: ERROR_CODE_TRIGGER_PATCH_PRICE_MODE_INVALID = 262;
3221
+ */
3222
+ TRIGGER_PATCH_PRICE_MODE_INVALID = 262,
3223
+ /**
3224
+ * New orders, changes and trigger orders on this account are suspended until
3225
+ * a balance issue is resolved; cancels still work. Nothing changed.
3226
+ *
3227
+ * @generated from enum value: ERROR_CODE_ACCOUNT_ORDERS_SUSPENDED = 263;
3228
+ */
3229
+ ACCOUNT_ORDERS_SUSPENDED = 263,
3230
+ /**
3231
+ * A trailing stop's side is not supported. Trailing stops accept either
3232
+ * side, so this code is not currently returned.
3233
+ *
3234
+ * @generated from enum value: ERROR_CODE_TRAILING_SIDE_NOT_SUPPORTED = 264;
3235
+ */
3236
+ TRAILING_SIDE_NOT_SUPPORTED = 264,
3237
+ /**
3238
+ * A trailing stop that sells must have a MARKET child order.
3239
+ *
3240
+ * @generated from enum value: ERROR_CODE_TRAILING_CHILD_NOT_MARKET = 265;
3241
+ */
3242
+ TRAILING_CHILD_NOT_MARKET = 265,
3243
+ /**
3244
+ * The TWAP duration is shorter than 1 second or longer than about 292 years,
3245
+ * the longest the venue's clock represents.
3246
+ *
3247
+ * @generated from enum value: ERROR_CODE_TWAP_DURATION_INVALID = 266;
3248
+ */
3249
+ TWAP_DURATION_INVALID = 266,
3250
+ /**
3251
+ * The TWAP sets a slippage bound, but its slices are LIMIT orders, which take
3252
+ * none.
3253
+ *
3254
+ * @generated from enum value: ERROR_CODE_LIMIT_CHILD_SLIPPAGE_SET = 267;
3255
+ */
3256
+ LIMIT_CHILD_SLIPPAGE_SET = 267,
3257
+ /**
3258
+ * The slippage bound is given both in ticks and in basis points; give only one.
3259
+ *
3260
+ * @generated from enum value: ERROR_CODE_SLIPPAGE_BOUNDS_CONFLICT = 268;
3261
+ */
3262
+ SLIPPAGE_BOUNDS_CONFLICT = 268,
3263
+ /**
3264
+ * The TWAP slice interval is shorter than 100 milliseconds or longer than its
3265
+ * duration.
3266
+ *
3267
+ * @generated from enum value: ERROR_CODE_TWAP_INTERVAL_INVALID = 269;
3268
+ */
3269
+ TWAP_INTERVAL_INVALID = 269,
3270
+ /**
3271
+ * One of the ladder's orders can't be placed, so the ladder was not created.
3272
+ * Nothing changed.
3273
+ *
3274
+ * @generated from enum value: ERROR_CODE_LADDER_LEVEL_REJECTED = 270;
3275
+ */
3276
+ LADDER_LEVEL_REJECTED = 270,
3277
+ /**
3278
+ * The ladder's price range is too narrow to place its orders at least one
3279
+ * price tick apart.
3280
+ *
3281
+ * @generated from enum value: ERROR_CODE_LADDER_RANGE_TOO_NARROW = 271;
3282
+ */
3283
+ LADDER_RANGE_TOO_NARROW = 271,
3284
+ /**
3285
+ * A ladder places from 2 to 100 orders.
3286
+ *
3287
+ * @generated from enum value: ERROR_CODE_LADDER_LEVELS_INVALID = 272;
3288
+ */
3289
+ LADDER_LEVELS_INVALID = 272,
3290
+ /**
3291
+ * This market's order limits aren't set yet, so it can't take new orders.
3292
+ *
3293
+ * @generated from enum value: ERROR_CODE_ORDER_LIMITS_UNAVAILABLE = 273;
3294
+ */
3295
+ ORDER_LIMITS_UNAVAILABLE = 273,
3296
+ /**
3297
+ * This market is in an auction call and takes only limit orders that rest
3298
+ * without crossing the book; market, immediate-or-cancel and fill-or-kill
3299
+ * orders are refused. Nothing changed.
3300
+ *
3301
+ * @generated from enum value: ERROR_CODE_ORDER_TYPE_NOT_ALLOWED_IN_AUCTION = 274;
3302
+ */
3303
+ ORDER_TYPE_NOT_ALLOWED_IN_AUCTION = 274,
3304
+ /**
3305
+ * This market is in an auction call; new post-only orders are refused.
3306
+ * Nothing changed.
3307
+ *
3308
+ * @generated from enum value: ERROR_CODE_POST_ONLY_NOT_ALLOWED_IN_AUCTION = 275;
3309
+ */
3310
+ POST_ONLY_NOT_ALLOWED_IN_AUCTION = 275,
3311
+ /**
3312
+ * The request's QuickSwap fee details are incomplete: a fee schedule needs a
3313
+ * broker, and a broker or broker fee terms need a fee schedule.
3314
+ *
3315
+ * @generated from enum value: ERROR_CODE_QUICKSWAP_FEE_DETAILS_INCOMPLETE = 276;
3316
+ */
3317
+ QUICKSWAP_FEE_DETAILS_INCOMPLETE = 276,
3318
+ /**
3319
+ * The requested QuickSwap fee schedule doesn't price this market.
3320
+ *
3321
+ * @generated from enum value: ERROR_CODE_QUICKSWAP_MARKET_NOT_PRICED = 277;
3322
+ */
3323
+ QUICKSWAP_MARKET_NOT_PRICED = 277,
3324
+ /**
3325
+ * The broker fee terms belong to another broker.
3326
+ *
3327
+ * @generated from enum value: ERROR_CODE_QUICKSWAP_BROKER_FEE_TERMS_MISMATCH = 278;
3328
+ */
3329
+ QUICKSWAP_BROKER_FEE_TERMS_MISMATCH = 278,
3330
+ /**
3331
+ * A QuickSwap fee would be paid into the account placing the order.
3332
+ *
3333
+ * @generated from enum value: ERROR_CODE_QUICKSWAP_FEE_RECIPIENT_IS_PAYER = 279;
3334
+ */
3335
+ QUICKSWAP_FEE_RECIPIENT_IS_PAYER = 279,
3336
+ /**
3337
+ * The broker fee terms aren't available yet; retry shortly.
3338
+ *
3339
+ * @generated from enum value: ERROR_CODE_QUICKSWAP_BROKER_FEE_TERMS_UNAVAILABLE = 280;
3340
+ */
3341
+ QUICKSWAP_BROKER_FEE_TERMS_UNAVAILABLE = 280,
3342
+ /**
3343
+ * The broker's fee account isn't available yet; retry shortly.
3344
+ *
3345
+ * @generated from enum value: ERROR_CODE_QUICKSWAP_BROKER_ACCOUNT_UNAVAILABLE = 281;
3346
+ */
3347
+ QUICKSWAP_BROKER_ACCOUNT_UNAVAILABLE = 281,
3348
+ /**
3349
+ * The QuickSwap account is not ready yet; no order was placed. Retry shortly.
3350
+ *
3351
+ * @generated from enum value: ERROR_CODE_QUICKSWAP_ACCOUNT_OWNER_UNKNOWN = 301;
3352
+ */
3353
+ QUICKSWAP_ACCOUNT_OWNER_UNKNOWN = 301,
3354
+ /**
3355
+ * QuickSwap isn't enabled for this account's trading.
3356
+ *
3357
+ * @generated from enum value: ERROR_CODE_QUICKSWAP_DISABLED = 282;
3358
+ */
3359
+ QUICKSWAP_DISABLED = 282,
3360
+ /**
3361
+ * QuickSwap orders can't carry take-profit or stop-loss legs.
3362
+ *
3363
+ * @generated from enum value: ERROR_CODE_QUICKSWAP_ATTACHED_RISK_NOT_ALLOWED = 283;
3364
+ */
3365
+ QUICKSWAP_ATTACHED_RISK_NOT_ALLOWED = 283,
3366
+ /**
3367
+ * QuickSwap orders can't be amended or replaced.
3368
+ *
3369
+ * @generated from enum value: ERROR_CODE_QUICKSWAP_ORDER_NOT_MODIFIABLE = 284;
3370
+ */
3371
+ QUICKSWAP_ORDER_NOT_MODIFIABLE = 284,
3372
+ /**
3373
+ * The QuickSwap fees together would exceed the order's value.
3374
+ *
3375
+ * @generated from enum value: ERROR_CODE_QUICKSWAP_FEE_TOTAL_TOO_HIGH = 285;
3376
+ */
3377
+ QUICKSWAP_FEE_TOTAL_TOO_HIGH = 285,
3378
+ /**
3379
+ * The broker fee terms are invalid and can't be used.
3380
+ *
3381
+ * @generated from enum value: ERROR_CODE_QUICKSWAP_BROKER_FEE_TERMS_INVALID = 286;
3382
+ */
3383
+ QUICKSWAP_BROKER_FEE_TERMS_INVALID = 286,
3384
+ /**
3385
+ * The broker's QuickSwap setup is invalid and can't be used.
3386
+ *
3387
+ * @generated from enum value: ERROR_CODE_QUICKSWAP_BROKER_INVALID = 287;
3388
+ */
3389
+ QUICKSWAP_BROKER_INVALID = 287,
3390
+ /**
3391
+ * The QuickSwap fee schedule is invalid and can't be used.
3392
+ *
3393
+ * @generated from enum value: ERROR_CODE_QUICKSWAP_FEE_SCHEDULE_INVALID = 288;
3394
+ */
3395
+ QUICKSWAP_FEE_SCHEDULE_INVALID = 288,
3396
+ /**
3397
+ * The QuickSwap fee for this market is invalid and can't be used.
3398
+ *
3399
+ * @generated from enum value: ERROR_CODE_QUICKSWAP_MARKET_FEE_INVALID = 289;
3400
+ */
3401
+ QUICKSWAP_MARKET_FEE_INVALID = 289,
3402
+ /**
3403
+ * QuickSwap's setup is invalid, so QuickSwap orders can't be placed.
3404
+ *
3405
+ * @generated from enum value: ERROR_CODE_QUICKSWAP_SETUP_INVALID = 290;
3406
+ */
3407
+ QUICKSWAP_SETUP_INVALID = 290,
3408
+ /**
3409
+ * QuickSwap's capacity for fee settings is reached; this order can't be
3410
+ * placed.
3411
+ *
3412
+ * @generated from enum value: ERROR_CODE_QUICKSWAP_CAPACITY_REACHED = 291;
3413
+ */
3414
+ QUICKSWAP_CAPACITY_REACHED = 291,
3415
+ /**
3416
+ * An exit order placed by one of the order's attached take-profit or stop
3417
+ * legs is still working, so the order's attached legs can't be added,
3418
+ * edited, paused or resumed now; removing a leg is still accepted. Nothing
3419
+ * changed; retry once the exit completes.
3420
+ *
3421
+ * @generated from enum value: ERROR_CODE_ATTACHED_EXIT_WORKING = 292;
3422
+ */
3423
+ ATTACHED_EXIT_WORKING = 292,
3424
+ /**
3425
+ * The account already has the most triggers one account may have on this
3426
+ * market, attached take-profit, stop-loss and trailing legs included.
3427
+ * Nothing changed; retry once one of them ends.
3428
+ *
3429
+ * @generated from enum value: ERROR_CODE_MARKET_TRIGGER_LIMIT_EXCEEDED = 293;
3430
+ */
3431
+ MARKET_TRIGGER_LIMIT_EXCEEDED = 293,
3432
+ /**
3433
+ * The account already has the most TWAP orders one account may have on
3434
+ * this market. Nothing changed; retry once one of them ends.
3435
+ *
3436
+ * @generated from enum value: ERROR_CODE_MARKET_TWAP_LIMIT_EXCEEDED = 294;
3437
+ */
3438
+ MARKET_TWAP_LIMIT_EXCEEDED = 294,
3439
+ /**
3440
+ * The account already has the most ladder orders one account may have on
3441
+ * this market. Nothing changed; retry once one of them ends.
3442
+ *
3443
+ * @generated from enum value: ERROR_CODE_MARKET_LADDER_LIMIT_EXCEEDED = 295;
3444
+ */
3445
+ MARKET_LADDER_LIMIT_EXCEEDED = 295,
3446
+ /**
3447
+ * The new quantity of a TWAP order's slice would leave more than the TWAP's
3448
+ * remaining quantity. Nothing changed; a slice can be raised up to what the
3449
+ * TWAP still has to execute.
3450
+ *
3451
+ * @generated from enum value: ERROR_CODE_CHILD_QTY_EXCEEDS_REMAINING = 296;
3452
+ */
3453
+ CHILD_QTY_EXCEEDS_REMAINING = 296,
3454
+ /**
3455
+ * The order cancellation was sent but not confirmed in time. Its outcome is
3456
+ * unknown and it may still apply; read the order before retrying. For a batch
3457
+ * cancellation, every item's outcome is unknown; read them back. For a cancel
3458
+ * all, some or all of the matching orders may be canceled; read open orders.
3459
+ * For a cancel all after heartbeat, the switch may or may not have been armed,
3460
+ * refreshed or disabled; send the heartbeat again.
3461
+ *
3462
+ * @generated from enum value: ERROR_CODE_ORDER_CANCEL_OUTCOME_UNKNOWN = 297;
3463
+ */
3464
+ ORDER_CANCEL_OUTCOME_UNKNOWN = 297,
3465
+ /**
3466
+ * The order modification was sent but not confirmed in time. Its outcome is
3467
+ * unknown and it may still apply; read the order before retrying. For a batch
3468
+ * replacement, every item's outcome is unknown; read them back.
3469
+ *
3470
+ * @generated from enum value: ERROR_CODE_ORDER_MODIFY_OUTCOME_UNKNOWN = 298;
3471
+ */
3472
+ ORDER_MODIFY_OUTCOME_UNKNOWN = 298,
3473
+ /**
3474
+ * This order is being canceled while the account's balances are brought back
3475
+ * in line, so it can't be changed. Nothing changed; cancels still work, and
3476
+ * the account's other orders can still be changed.
3477
+ *
3478
+ * @generated from enum value: ERROR_CODE_ORDER_REPAIRING = 299;
3479
+ */
3480
+ ORDER_REPAIRING = 299,
3481
+ /**
3482
+ * This account's orders are being canceled while its balances are brought
3483
+ * back in line, so new orders, changes and trigger orders are paused for a
3484
+ * short time. Nothing changed; cancels still work. Try again shortly.
3485
+ *
3486
+ * @generated from enum value: ERROR_CODE_ACCOUNT_REPAIRING = 300;
3487
+ */
3488
+ ACCOUNT_REPAIRING = 300,
3489
+ /**
3490
+ * The new trigger price of a stop-loss or take-profit is already reached by
3491
+ * the price the trigger watches (at or past it), so the trigger would fire at
3492
+ * once and send its order. Nothing changed; the trigger keeps its previous
3493
+ * trigger price. Returned by ModifyTrigger, and by an order modify that moves
3494
+ * an attached take-profit or stop-loss of an order with a fill. Choose a
3495
+ * trigger price the market has not reached.
3496
+ *
3497
+ * @generated from enum value: ERROR_CODE_TRIGGER_WOULD_TRIGGER_IMMEDIATELY = 302;
3498
+ */
3499
+ TRIGGER_WOULD_TRIGGER_IMMEDIATELY = 302,
3500
+ /**
3501
+ * The order was sent but not confirmed in time. Its outcome is unknown and
3502
+ * it may have been accepted; read the order by its client order ID, or read
3503
+ * open orders, before retrying. For a batch create, every item's outcome is
3504
+ * unknown; read them back, or repeat the batch with the same request ID and
3505
+ * payload within 15 minutes, which returns decided items' original results
3506
+ * and retries the rest without admitting any item twice.
3507
+ *
3508
+ * @generated from enum value: ERROR_CODE_ORDER_CREATE_OUTCOME_UNKNOWN = 303;
3509
+ */
3510
+ ORDER_CREATE_OUTCOME_UNKNOWN = 303,
3511
+ /**
3512
+ * The trigger was sent but not confirmed in time. Its outcome is unknown and
3513
+ * it may have been created; read the triggers for its client trigger ID
3514
+ * before retrying.
3515
+ *
3516
+ * @generated from enum value: ERROR_CODE_TRIGGER_CREATE_OUTCOME_UNKNOWN = 304;
3517
+ */
3518
+ TRIGGER_CREATE_OUTCOME_UNKNOWN = 304,
3519
+ /**
3520
+ * The request names a listed trading pair other than the trigger's own, so
3521
+ * it was refused. Nothing changed; name the trigger's own pair, or omit the
3522
+ * symbol. A pair that is not listed is ERROR_CODE_UNKNOWN_SYMBOL.
3523
+ *
3524
+ * @generated from enum value: ERROR_CODE_TRIGGER_SYMBOL_MISMATCH = 305;
3525
+ */
3526
+ TRIGGER_SYMBOL_MISMATCH = 305,
3527
+ /**
3528
+ * The account has reached its maximum number of resting orders in this
3529
+ * market. Good-till-cancelled and good-till-date orders count until they
3530
+ * end; immediate-or-cancel, fill-or-kill and market orders never count, and
3531
+ * a replace keeps its order's place. Nothing changed; cancel a resting order
3532
+ * in this market first.
3533
+ *
3534
+ * @generated from enum value: ERROR_CODE_MAX_OPEN_ORDERS_PER_PAIR = 306;
3535
+ */
3536
+ MAX_OPEN_ORDERS_PER_PAIR = 306,
3537
+ /**
3538
+ * The order already carries every attached leg it may hold, so another
3539
+ * attached leg was refused. Legs being cancelled count until they end:
3540
+ * retry once they have ended.
3541
+ *
3542
+ * @generated from enum value: ERROR_CODE_ATTACHED_LEGS_EXCEEDED = 86;
3543
+ */
3544
+ ATTACHED_LEGS_EXCEEDED = 86,
3545
+ /**
3546
+ * The trigger's fee asset was not valid.
3547
+ *
3548
+ * @generated from enum value: ERROR_CODE_FEE_ASSET_INVALID = 87;
3549
+ */
3550
+ FEE_ASSET_INVALID = 87,
3551
+ /**
3552
+ * The trigger's maximum fee rate was not valid.
3553
+ *
3554
+ * @generated from enum value: ERROR_CODE_FEE_CEILING_INVALID = 88;
3555
+ */
3556
+ FEE_CEILING_INVALID = 88,
3557
+ /**
3558
+ * The trigger set a field that must be left unset.
3559
+ *
3560
+ * @generated from enum value: ERROR_CODE_UNSUPPORTED_FIELD_SET = 89;
3561
+ */
3562
+ UNSUPPORTED_FIELD_SET = 89,
3563
+ /**
3564
+ * The trigger could not fire again.
3565
+ *
3566
+ * @generated from enum value: ERROR_CODE_TRIGGER_FIRE_LIMIT_REACHED = 90;
3567
+ */
3568
+ TRIGGER_FIRE_LIMIT_REACHED = 90,
3569
+ /**
3570
+ * The trigger's condition flags were not valid.
3571
+ *
3572
+ * @generated from enum value: ERROR_CODE_CONDITION_FLAGS_INVALID = 91;
3573
+ */
3574
+ CONDITION_FLAGS_INVALID = 91,
3575
+ /**
3576
+ * The trigger set a condition parameter its condition does not take.
3577
+ *
3578
+ * @generated from enum value: ERROR_CODE_CONDITION_PARAMETER_SET = 92;
3579
+ */
3580
+ CONDITION_PARAMETER_SET = 92,
3581
+ /**
3582
+ * The market had no room for another TWAP order.
3583
+ *
3584
+ * @generated from enum value: ERROR_CODE_TWAP_CAPACITY_REACHED = 93;
3585
+ */
3586
+ TWAP_CAPACITY_REACHED = 93,
3587
+ /**
3588
+ * The trigger's child order did not match the order the trigger requested,
3589
+ * so the trigger failed and the child order was canceled.
3590
+ *
3591
+ * @generated from enum value: ERROR_CODE_CHILD_ORDER_INCONSISTENT = 94;
3592
+ */
3593
+ CHILD_ORDER_INCONSISTENT = 94
2442
3594
  }
2443
3595
  /**
2444
3596
  * Describes the enum orders.v1.ErrorCode.
2445
3597
  */
2446
3598
  declare const ErrorCodeSchema: GenEnum<ErrorCode>;
2447
3599
  /**
2448
- * TriggerPriceSource defines which price feed to use for trigger evaluation.
2449
- * v1 supports LAST_PRICE only; INDEX_PRICE and MARK_PRICE are reserved for
2450
- * future.
3600
+ * TriggerPriceSource defines which price a trigger watches. Standalone
3601
+ * stop-loss, take-profit and trailing-stop triggers watch LAST_PRICE unless
3602
+ * INDEX_PRICE is requested; MARK_PRICE is not supported on spot markets.
2451
3603
  *
2452
3604
  * @generated from enum orders.v1.TriggerPriceSource
2453
3605
  */
@@ -2459,19 +3611,22 @@ declare enum TriggerPriceSource {
2459
3611
  */
2460
3612
  TRIGGER_PRICE_SOURCE_UNSPECIFIED = 0,
2461
3613
  /**
2462
- * Last traded price (default for spot).
3614
+ * Last traded price on the market (default for spot).
2463
3615
  *
2464
3616
  * @generated from enum value: LAST_PRICE = 1;
2465
3617
  */
2466
3618
  LAST_PRICE = 1,
2467
3619
  /**
2468
- * Index price aggregated from external exchanges (future).
3620
+ * The market's index price, aggregated from external exchanges. A trigger
3621
+ * that watches it acts only on a current index value: while the index is
3622
+ * stale or unavailable the trigger stays armed and waits, and never fires on
3623
+ * an outdated value.
2469
3624
  *
2470
3625
  * @generated from enum value: INDEX_PRICE = 2;
2471
3626
  */
2472
3627
  INDEX_PRICE = 2,
2473
3628
  /**
2474
- * Mark price for perpetuals (future).
3629
+ * Mark price for perpetuals; not supported on spot markets.
2475
3630
  *
2476
3631
  * @generated from enum value: MARK_PRICE = 3;
2477
3632
  */
@@ -2591,7 +3746,7 @@ declare enum BatchReplaceAdmissionStatus {
2591
3746
  */
2592
3747
  UNSPECIFIED = 0,
2593
3748
  /**
2594
- * Every requested operation was admitted, including cancel-only outcomes.
3749
+ * Every requested operation was admitted, amended items included.
2595
3750
  *
2596
3751
  * @generated from enum value: BATCH_REPLACE_ADMISSION_STATUS_ADMITTED = 1;
2597
3752
  */
@@ -2626,7 +3781,8 @@ declare enum BatchReplaceItemAdmissionStatus {
2626
3781
  */
2627
3782
  UNSPECIFIED = 0,
2628
3783
  /**
2629
- * The operation was admitted and handed to execution. Check action_taken for cancel-only outcomes.
3784
+ * The operation was admitted and handed to execution. action_taken tells whether
3785
+ * the order was amended under its own order ID or replaced by a successor.
2630
3786
  *
2631
3787
  * @generated from enum value: BATCH_REPLACE_ITEM_ADMISSION_STATUS_ADMITTED = 1;
2632
3788
  */
@@ -2683,7 +3839,9 @@ declare const OrdersService: GenService<{
2683
3839
  };
2684
3840
  /**
2685
3841
  * Cancels all matching open orders for an account (kill switch).
2686
- * Evaluates matching orders from a consistent snapshot at request start.
3842
+ * Evaluates matching orders from a consistent snapshot at request start and
3843
+ * requests cancellation of every one, however many match. The response
3844
+ * lists up to 200 of them, oldest first, with the total count.
2687
3845
  * Final state is confirmed via the order update stream or read path.
2688
3846
  *
2689
3847
  * @generated from rpc orders.v1.OrdersService.CancelAllOrders
@@ -2725,7 +3883,8 @@ declare const OrdersService: GenService<{
2725
3883
  output: typeof ModifyOrderResponseSchema;
2726
3884
  };
2727
3885
  /**
2728
- * Replaces same-symbol orders and returns after authoritative admission.
3886
+ * Amends or replaces same-symbol orders and returns after authoritative
3887
+ * admission.
2729
3888
  *
2730
3889
  * @generated from rpc orders.v1.OrdersService.BatchReplaceOrders
2731
3890
  */
@@ -2748,5 +3907,5 @@ declare const OrdersService: GenService<{
2748
3907
  };
2749
3908
  }>;
2750
3909
  //#endregion
2751
- export { BatchCancelItem, BatchCancelItemSchema, BatchCancelOrdersRequest, BatchCancelOrdersRequestSchema, BatchCancelOrdersResponse, BatchCancelOrdersResponseSchema, BatchCancelResultItem, BatchCancelResultItemSchema, BatchCancelResultItem_Status, BatchCancelResultItem_StatusSchema, BatchCreateAccepted, BatchCreateAcceptedSchema, BatchCreateOrdersRequest, BatchCreateOrdersRequestSchema, BatchCreateOrdersResponse, BatchCreateOrdersResponseSchema, BatchCreateRejected, BatchCreateRejectedSchema, BatchCreateResultItem, BatchCreateResultItemSchema, BatchReplaceAdmissionItem, BatchReplaceAdmissionItemSchema, BatchReplaceAdmissionStatus, BatchReplaceAdmissionStatusSchema, BatchReplaceItemAdmissionStatus, BatchReplaceItemAdmissionStatusSchema, BatchReplaceOrderItem, BatchReplaceOrderItemSchema, BatchReplaceOrdersRequest, BatchReplaceOrdersRequestSchema, BatchReplaceOrdersResponse, BatchReplaceOrdersResponseSchema, CancelAllAfterRequest, CancelAllAfterRequestSchema, CancelAllAfterResponse, CancelAllAfterResponseSchema, CancelAllAfterResponse_Status, CancelAllAfterResponse_StatusSchema, CancelAllOrdersRequest, CancelAllOrdersRequestSchema, CancelAllOrdersResponse, CancelAllOrdersResponseSchema, CancelAllOrdersResponse_Status, CancelAllOrdersResponse_StatusSchema, CancelOrderRequest, CancelOrderRequestSchema, CancelOrderResponse, CancelOrderResponseSchema, CancelOrderResponse_Status, CancelOrderResponse_StatusSchema, CreateOrderRequest, CreateOrderRequestSchema, CreateOrderResponse, CreateOrderResponseSchema, ErrorCode, ErrorCodeSchema, ErrorDetail, ErrorDetailSchema, FeeAsset, FeeAssetSchema, FieldViolation, FieldViolationSchema, LimitFok, LimitFokSchema, LimitGtc, LimitGtcSchema, LimitGtd, LimitGtdSchema, LimitIoc, LimitIocSchema, MarketIoc, MarketIocSchema, ModifyActionTaken, ModifyActionTakenSchema, ModifyBehavior, ModifyBehaviorSchema, ModifyOrderRequest, ModifyOrderRequestSchema, ModifyOrderResponse, ModifyOrderResponseSchema, OrderIntent, OrderIntentSchema, OrderType, OrderTypeSchema, OrdersService, PreviewOrderRequest, PreviewOrderRequestSchema, PreviewOrderResponse, PreviewOrderResponseSchema, RiskExecution, RiskExecutionSchema, RiskLimitGtc, RiskLimitGtcSchema, RiskMarketIoc, RiskMarketIocSchema, RiskPolicy, RiskPolicySchema, SelfTradePreventionMode, SelfTradePreventionModeSchema, Side, SideSchema, StopLossPolicy, StopLossPolicySchema, TakeProfitPolicy, TakeProfitPolicySchema, TimeInForce, TimeInForceSchema, TrailingStopPolicy, TrailingStopPolicySchema, TriggerDirection, TriggerDirectionSchema, TriggerPriceSource, TriggerPriceSourceSchema, file_orders_v1_orders, orders_pb_d_exports };
3910
+ export { BatchCancelItem, BatchCancelItemSchema, BatchCancelOrdersRequest, BatchCancelOrdersRequestSchema, BatchCancelOrdersResponse, BatchCancelOrdersResponseSchema, BatchCancelResultItem, BatchCancelResultItemSchema, BatchCancelResultItem_Status, BatchCancelResultItem_StatusSchema, BatchCreateAccepted, BatchCreateAcceptedSchema, BatchCreateOrdersRequest, BatchCreateOrdersRequestSchema, BatchCreateOrdersResponse, BatchCreateOrdersResponseSchema, BatchCreateRejected, BatchCreateRejectedSchema, BatchCreateResultItem, BatchCreateResultItemSchema, BatchReplaceAdmissionItem, BatchReplaceAdmissionItemSchema, BatchReplaceAdmissionStatus, BatchReplaceAdmissionStatusSchema, BatchReplaceItemAdmissionStatus, BatchReplaceItemAdmissionStatusSchema, BatchReplaceOrderItem, BatchReplaceOrderItemSchema, BatchReplaceOrdersRequest, BatchReplaceOrdersRequestSchema, BatchReplaceOrdersResponse, BatchReplaceOrdersResponseSchema, CancelAllAfterRequest, CancelAllAfterRequestSchema, CancelAllAfterResponse, CancelAllAfterResponseSchema, CancelAllAfterResponse_Status, CancelAllAfterResponse_StatusSchema, CancelAllOrdersRequest, CancelAllOrdersRequestSchema, CancelAllOrdersResponse, CancelAllOrdersResponseSchema, CancelAllOrdersResponse_ListingStatus, CancelAllOrdersResponse_ListingStatusSchema, CancelAllOrdersResponse_Status, CancelAllOrdersResponse_StatusSchema, CancelOrderRequest, CancelOrderRequestSchema, CancelOrderResponse, CancelOrderResponseSchema, CancelOrderResponse_Status, CancelOrderResponse_StatusSchema, CancelledOrder, CancelledOrderSchema, CreateOrderRequest, CreateOrderRequestSchema, CreateOrderResponse, CreateOrderResponseSchema, DeadManSwitchScope, DeadManSwitchScopeSchema, ErrorCode, ErrorCodeSchema, ErrorDetail, ErrorDetailSchema, FeeAsset, FeeAssetSchema, FieldViolation, FieldViolationSchema, LimitFok, LimitFokSchema, LimitGtc, LimitGtcSchema, LimitGtd, LimitGtdSchema, LimitIoc, LimitIocSchema, MarketIoc, MarketIocSchema, ModifyActionTaken, ModifyActionTakenSchema, ModifyBehavior, ModifyBehaviorSchema, ModifyOrderRequest, ModifyOrderRequestSchema, ModifyOrderResponse, ModifyOrderResponseSchema, OrderIntent, OrderIntentSchema, OrderType, OrderTypeSchema, OrdersService, PreviewOrderRequest, PreviewOrderRequestSchema, PreviewOrderResponse, PreviewOrderResponseSchema, RiskExecution, RiskExecutionSchema, RiskLimitGtc, RiskLimitGtcSchema, RiskMarketIoc, RiskMarketIocSchema, RiskPolicy, RiskPolicySchema, SelfTradePreventionMode, SelfTradePreventionModeSchema, Side, SideSchema, StopLossPolicy, StopLossPolicySchema, TakeProfitPolicy, TakeProfitPolicySchema, TimeInForce, TimeInForceSchema, TrailingStopPolicy, TrailingStopPolicySchema, TriggerDirection, TriggerDirectionSchema, TriggerPriceSource, TriggerPriceSourceSchema, file_orders_v1_orders, orders_pb_d_exports };
2752
3911
  //# sourceMappingURL=orders_pb.d.ts.map