@polyester/sdk 0.31.0 → 0.32.0-devnet-20261101180406

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 (373) hide show
  1. package/CHANGELOG.md +114 -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 +9 -2
  21. package/dist/gen/auth/v1/auth_pb.d.ts.map +1 -1
  22. package/dist/gen/auth/v1/auth_pb.js +9 -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 +20 -14
  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 +1121 -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 +38 -2
  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 +13 -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 +1164 -53
  88. package/dist/gen/orders/v1/orders_pb.d.ts.map +1 -1
  89. package/dist/gen/orders/v1/orders_pb.js +959 -42
  90. package/dist/gen/orders/v1/orders_pb.js.map +1 -1
  91. package/dist/gen/orders/v1/orders_read_pb.d.ts +205 -17
  92. package/dist/gen/orders/v1/orders_read_pb.d.ts.map +1 -1
  93. package/dist/gen/orders/v1/orders_read_pb.js +156 -17
  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/swap/quickswap/v1/quickswap_broker_pb.d.ts +2108 -0
  108. package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.d.ts.map +1 -0
  109. package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.js +522 -0
  110. package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.js.map +1 -0
  111. package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts +2296 -0
  112. package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts.map +1 -0
  113. package/dist/gen/swap/quickswap/v1/quickswap_pb.js +1014 -0
  114. package/dist/gen/swap/quickswap/v1/quickswap_pb.js.map +1 -0
  115. package/dist/gen/swap/v1/swap_pb.d.ts +945 -0
  116. package/dist/gen/swap/v1/swap_pb.d.ts.map +1 -0
  117. package/dist/gen/swap/v1/swap_pb.js +426 -0
  118. package/dist/gen/swap/v1/swap_pb.js.map +1 -0
  119. package/dist/gen/tradews/v1/trade_ws_pb.d.ts +67 -3
  120. package/dist/gen/tradews/v1/trade_ws_pb.d.ts.map +1 -1
  121. package/dist/gen/tradews/v1/trade_ws_pb.js +1 -1
  122. package/dist/gen/tradews/v1/trade_ws_pb.js.map +1 -1
  123. package/dist/gen/triggers/v1/triggers_pb.d.ts +587 -29
  124. package/dist/gen/triggers/v1/triggers_pb.d.ts.map +1 -1
  125. package/dist/gen/triggers/v1/triggers_pb.js +420 -19
  126. package/dist/gen/triggers/v1/triggers_pb.js.map +1 -1
  127. package/dist/gen/vip/v1/vip_pb.d.ts +95 -7
  128. package/dist/gen/vip/v1/vip_pb.d.ts.map +1 -1
  129. package/dist/gen/vip/v1/vip_pb.js +53 -5
  130. package/dist/gen/vip/v1/vip_pb.js.map +1 -1
  131. package/dist/index.d.ts +9 -7
  132. package/dist/index.js +2 -2
  133. package/dist/realtime/client.d.ts +3 -0
  134. package/dist/realtime/client.d.ts.map +1 -1
  135. package/dist/realtime/client.js +76 -24
  136. package/dist/realtime/client.js.map +1 -1
  137. package/dist/realtime/index.d.ts +2 -1
  138. package/dist/realtime/private-orders.d.ts +38 -0
  139. package/dist/realtime/private-orders.d.ts.map +1 -0
  140. package/dist/realtime/private-orders.js +594 -0
  141. package/dist/realtime/private-orders.js.map +1 -0
  142. package/dist/realtime/ready-gated-subscription.js +10 -4
  143. package/dist/realtime/ready-gated-subscription.js.map +1 -1
  144. package/dist/realtime/types.d.ts +3 -0
  145. package/dist/realtime/types.d.ts.map +1 -1
  146. package/dist/services/auth/account-signer-auth.d.ts +5 -3
  147. package/dist/services/auth/account-signer-auth.d.ts.map +1 -1
  148. package/dist/services/auth/account-signer-auth.js +21 -3
  149. package/dist/services/auth/account-signer-auth.js.map +1 -1
  150. package/dist/services/auth/profile/profile.schemas.js +1 -1
  151. package/dist/services/balances/balances.js +1 -1
  152. package/dist/services/candles/candles.codecs.js +15 -0
  153. package/dist/services/candles/candles.codecs.js.map +1 -1
  154. package/dist/services/candles/candles.schemas.d.ts +13 -13
  155. package/dist/services/checkpoints/checkpoints.codecs.d.ts +8 -0
  156. package/dist/services/checkpoints/checkpoints.codecs.d.ts.map +1 -0
  157. package/dist/services/checkpoints/checkpoints.codecs.js +36 -0
  158. package/dist/services/checkpoints/checkpoints.codecs.js.map +1 -0
  159. package/dist/services/checkpoints/checkpoints.d.ts +22 -0
  160. package/dist/services/checkpoints/checkpoints.d.ts.map +1 -0
  161. package/dist/services/checkpoints/checkpoints.js +31 -0
  162. package/dist/services/checkpoints/checkpoints.js.map +1 -0
  163. package/dist/services/checkpoints/checkpoints.schemas.d.ts +437 -0
  164. package/dist/services/checkpoints/checkpoints.schemas.d.ts.map +1 -0
  165. package/dist/services/checkpoints/checkpoints.schemas.js +176 -0
  166. package/dist/services/checkpoints/checkpoints.schemas.js.map +1 -0
  167. package/dist/services/checkpoints/checkpoints.types.d.ts +3 -0
  168. package/dist/services/checkpoints/service.d.ts +8 -0
  169. package/dist/services/checkpoints/service.d.ts.map +1 -0
  170. package/dist/services/checkpoints/service.js +9 -0
  171. package/dist/services/checkpoints/service.js.map +1 -0
  172. package/dist/services/claims/claims.codecs.d.ts +1 -1
  173. package/dist/services/claims/claims.codecs.d.ts.map +1 -1
  174. package/dist/services/claims/claims.codecs.js +2 -1
  175. package/dist/services/claims/claims.codecs.js.map +1 -1
  176. package/dist/services/claims/claims.d.ts +13 -5
  177. package/dist/services/claims/claims.d.ts.map +1 -1
  178. package/dist/services/claims/claims.js +15 -6
  179. package/dist/services/claims/claims.js.map +1 -1
  180. package/dist/services/claims/claims.schemas.d.ts +13 -3
  181. package/dist/services/claims/claims.schemas.d.ts.map +1 -1
  182. package/dist/services/claims/claims.schemas.js +10 -4
  183. package/dist/services/claims/claims.schemas.js.map +1 -1
  184. package/dist/services/claims/claims.types.d.ts +2 -2
  185. package/dist/services/heatmap/heatmap.schemas.d.ts +4 -4
  186. package/dist/services/lifecycle/lifecycle.codecs.d.ts +1 -1
  187. package/dist/services/lifecycle/lifecycle.codecs.d.ts.map +1 -1
  188. package/dist/services/lifecycle/lifecycle.codecs.js +4 -2
  189. package/dist/services/lifecycle/lifecycle.codecs.js.map +1 -1
  190. package/dist/services/lifecycle/lifecycle.schemas.d.ts +131 -81
  191. package/dist/services/lifecycle/lifecycle.schemas.d.ts.map +1 -1
  192. package/dist/services/lifecycle/lifecycle.schemas.js +7 -1
  193. package/dist/services/lifecycle/lifecycle.schemas.js.map +1 -1
  194. package/dist/services/market-data/market-data.codecs.js +2 -1
  195. package/dist/services/market-data/market-data.codecs.js.map +1 -1
  196. package/dist/services/market-data/market-data.d.ts +10 -1
  197. package/dist/services/market-data/market-data.d.ts.map +1 -1
  198. package/dist/services/market-data/market-data.js +21 -9
  199. package/dist/services/market-data/market-data.js.map +1 -1
  200. package/dist/services/market-data/market-data.schemas.d.ts +29 -2
  201. package/dist/services/market-data/market-data.schemas.d.ts.map +1 -1
  202. package/dist/services/market-data/market-data.schemas.js +53 -4
  203. package/dist/services/market-data/market-data.schemas.js.map +1 -1
  204. package/dist/services/market-data/market-data.types.d.ts +2 -2
  205. package/dist/services/market-overview/market-overview.schemas.d.ts +3 -3
  206. package/dist/services/orderbook/orderbook.d.ts +2 -1
  207. package/dist/services/orderbook/orderbook.d.ts.map +1 -1
  208. package/dist/services/orderbook/orderbook.js +17 -2
  209. package/dist/services/orderbook/orderbook.js.map +1 -1
  210. package/dist/services/orderbook/orderbook.schemas.d.ts +5 -1
  211. package/dist/services/orderbook/orderbook.schemas.d.ts.map +1 -1
  212. package/dist/services/orderbook/orderbook.schemas.js +2 -0
  213. package/dist/services/orderbook/orderbook.schemas.js.map +1 -1
  214. package/dist/services/orders/order-enums.codecs.js +7 -1
  215. package/dist/services/orders/order-enums.codecs.js.map +1 -1
  216. package/dist/services/orders/order-errors.schemas.d.ts +4 -2
  217. package/dist/services/orders/order-errors.schemas.d.ts.map +1 -1
  218. package/dist/services/orders/order-errors.schemas.js +4 -1
  219. package/dist/services/orders/order-errors.schemas.js.map +1 -1
  220. package/dist/services/orders/orders-batch.schemas.d.ts +375 -54
  221. package/dist/services/orders/orders-batch.schemas.d.ts.map +1 -1
  222. package/dist/services/orders/orders-batch.schemas.js +12 -2
  223. package/dist/services/orders/orders-batch.schemas.js.map +1 -1
  224. package/dist/services/orders/orders-input.schemas.d.ts +551 -9
  225. package/dist/services/orders/orders-input.schemas.d.ts.map +1 -1
  226. package/dist/services/orders/orders-input.schemas.js +23 -5
  227. package/dist/services/orders/orders-input.schemas.js.map +1 -1
  228. package/dist/services/orders/orders-modify.schemas.d.ts +106 -1
  229. package/dist/services/orders/orders-modify.schemas.d.ts.map +1 -1
  230. package/dist/services/orders/orders-modify.schemas.js +1 -1
  231. package/dist/services/orders/orders-output.schemas.d.ts +78 -59
  232. package/dist/services/orders/orders-output.schemas.d.ts.map +1 -1
  233. package/dist/services/orders/orders-output.schemas.js +15 -22
  234. package/dist/services/orders/orders-output.schemas.js.map +1 -1
  235. package/dist/services/orders/orders-risk.schemas.d.ts +69 -1
  236. package/dist/services/orders/orders-risk.schemas.d.ts.map +1 -1
  237. package/dist/services/orders/orders-risk.schemas.js +21 -11
  238. package/dist/services/orders/orders-risk.schemas.js.map +1 -1
  239. package/dist/services/orders/orders.codecs.js +26 -2
  240. package/dist/services/orders/orders.codecs.js.map +1 -1
  241. package/dist/services/orders/orders.d.ts +31 -5
  242. package/dist/services/orders/orders.d.ts.map +1 -1
  243. package/dist/services/orders/orders.js +53 -15
  244. package/dist/services/orders/orders.js.map +1 -1
  245. package/dist/services/policies/api-key-policies/api-key-policies.schemas.d.ts +15 -15
  246. package/dist/services/policies/shared.codecs.js +8 -2
  247. package/dist/services/policies/shared.codecs.js.map +1 -1
  248. package/dist/services/policies/shared.d.ts +1 -1
  249. package/dist/services/policies/shared.d.ts.map +1 -1
  250. package/dist/services/policies/shared.js +4 -1
  251. package/dist/services/policies/shared.js.map +1 -1
  252. package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.d.ts +9 -9
  253. package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.js +1 -1
  254. package/dist/services/subaccounts/subaccounts.codecs.js +4 -1
  255. package/dist/services/subaccounts/subaccounts.codecs.js.map +1 -1
  256. package/dist/services/subaccounts/subaccounts.d.ts +1 -1
  257. package/dist/services/subaccounts/subaccounts.d.ts.map +1 -1
  258. package/dist/services/subaccounts/subaccounts.js +1 -2
  259. package/dist/services/subaccounts/subaccounts.js.map +1 -1
  260. package/dist/services/subaccounts/subaccounts.schemas.d.ts +9 -9
  261. package/dist/services/trades/trades.d.ts +2 -0
  262. package/dist/services/trades/trades.d.ts.map +1 -1
  263. package/dist/services/trades/trades.js +6 -6
  264. package/dist/services/trades/trades.js.map +1 -1
  265. package/dist/services/trades/trades.schemas.d.ts +2 -2
  266. package/dist/services/trades/trades.schemas.js +1 -1
  267. package/dist/services/trading-withdraws/trading-withdraws.d.ts +9 -5
  268. package/dist/services/trading-withdraws/trading-withdraws.d.ts.map +1 -1
  269. package/dist/services/trading-withdraws/trading-withdraws.js +45 -26
  270. package/dist/services/trading-withdraws/trading-withdraws.js.map +1 -1
  271. package/dist/services/trading-withdraws/trading-withdraws.schemas.d.ts +12 -0
  272. package/dist/services/trading-withdraws/trading-withdraws.schemas.d.ts.map +1 -1
  273. package/dist/services/trading-withdraws/trading-withdraws.schemas.js +26 -6
  274. package/dist/services/trading-withdraws/trading-withdraws.schemas.js.map +1 -1
  275. package/dist/services/trailing-oneof-inputs.js +6 -1
  276. package/dist/services/trailing-oneof-inputs.js.map +1 -1
  277. package/dist/services/transfers/transfers.d.ts +2 -0
  278. package/dist/services/transfers/transfers.d.ts.map +1 -1
  279. package/dist/services/transfers/transfers.js +6 -11
  280. package/dist/services/transfers/transfers.js.map +1 -1
  281. package/dist/services/transfers/transfers.schemas.d.ts +3 -0
  282. package/dist/services/transfers/transfers.schemas.d.ts.map +1 -1
  283. package/dist/services/transfers/transfers.schemas.js +3 -1
  284. package/dist/services/transfers/transfers.schemas.js.map +1 -1
  285. package/dist/services/triggers/trigger-child-order.schemas.js +23 -18
  286. package/dist/services/triggers/trigger-child-order.schemas.js.map +1 -1
  287. package/dist/services/triggers/trigger-input.schemas.d.ts +288 -25
  288. package/dist/services/triggers/trigger-input.schemas.d.ts.map +1 -1
  289. package/dist/services/triggers/trigger-input.schemas.js +38 -22
  290. package/dist/services/triggers/trigger-input.schemas.js.map +1 -1
  291. package/dist/services/triggers/triggers-output.schemas.d.ts +180 -56
  292. package/dist/services/triggers/triggers-output.schemas.d.ts.map +1 -1
  293. package/dist/services/triggers/triggers-output.schemas.js +28 -20
  294. package/dist/services/triggers/triggers-output.schemas.js.map +1 -1
  295. package/dist/services/triggers/triggers.codecs.js +60 -0
  296. package/dist/services/triggers/triggers.codecs.js.map +1 -1
  297. package/dist/services/triggers/triggers.d.ts +6 -2
  298. package/dist/services/triggers/triggers.d.ts.map +1 -1
  299. package/dist/services/triggers/triggers.js +10 -8
  300. package/dist/services/triggers/triggers.js.map +1 -1
  301. package/dist/services/vip/vip.js +1 -1
  302. package/dist/services/vip/vip.schemas.d.ts +23 -1
  303. package/dist/services/vip/vip.schemas.d.ts.map +1 -1
  304. package/dist/services/vip/vip.schemas.js +20 -2
  305. package/dist/services/vip/vip.schemas.js.map +1 -1
  306. package/dist/services/vip/vip.types.d.ts +2 -2
  307. package/dist/shared/catalog-config.d.ts +14 -2
  308. package/dist/shared/catalog-config.d.ts.map +1 -1
  309. package/dist/shared/catalog-config.js +2 -1
  310. package/dist/shared/catalog-config.js.map +1 -1
  311. package/dist/shared/connect-error-mapping.d.ts +3 -0
  312. package/dist/shared/connect-error-mapping.d.ts.map +1 -1
  313. package/dist/shared/connect-error-mapping.js +45 -6
  314. package/dist/shared/connect-error-mapping.js.map +1 -1
  315. package/dist/shared/errors.d.ts +79 -6
  316. package/dist/shared/errors.d.ts.map +1 -1
  317. package/dist/shared/errors.js +92 -4
  318. package/dist/shared/errors.js.map +1 -1
  319. package/dist/shared/rate-limit.schemas.d.ts +1 -1
  320. package/dist/shared/request-options.d.ts +7 -0
  321. package/dist/shared/request-options.d.ts.map +1 -1
  322. package/dist/shared/request-options.js +6 -1
  323. package/dist/shared/request-options.js.map +1 -1
  324. package/dist/shared/schemas.js +1 -1
  325. package/dist/shared/subscription-errors.js +12 -1
  326. package/dist/shared/subscription-errors.js.map +1 -1
  327. package/dist/shared/transports.d.ts.map +1 -1
  328. package/dist/shared/transports.js +9 -2
  329. package/dist/shared/transports.js.map +1 -1
  330. package/dist/shared/wire-bounds.js +3 -1
  331. package/dist/shared/wire-bounds.js.map +1 -1
  332. package/dist/smart-account/index.d.ts +2 -1
  333. package/dist/smart-account/index.js +2 -1
  334. package/dist/smart-account/smart-account.d.ts +5 -4
  335. package/dist/smart-account/smart-account.d.ts.map +1 -1
  336. package/dist/smart-account/smart-account.js +37 -8
  337. package/dist/smart-account/smart-account.js.map +1 -1
  338. package/dist/utils/numbers.js +4 -1
  339. package/dist/utils/numbers.js.map +1 -1
  340. package/dist/wired-services.js +5 -5
  341. package/dist/wired-services.js.map +1 -1
  342. package/package.json +9 -4
  343. package/dist/gen/collab/v1/whiteboard_pb.d.ts +0 -829
  344. package/dist/gen/collab/v1/whiteboard_pb.d.ts.map +0 -1
  345. package/dist/gen/collab/v1/whiteboard_pb.js +0 -250
  346. package/dist/gen/collab/v1/whiteboard_pb.js.map +0 -1
  347. package/dist/gen/layout/v1/layout_pb.d.ts +0 -1289
  348. package/dist/gen/layout/v1/layout_pb.d.ts.map +0 -1
  349. package/dist/gen/layout/v1/layout_pb.js +0 -313
  350. package/dist/gen/layout/v1/layout_pb.js.map +0 -1
  351. package/dist/gen/polychart/events/v1/polychart_events_pb.d.ts +0 -192
  352. package/dist/gen/polychart/events/v1/polychart_events_pb.d.ts.map +0 -1
  353. package/dist/gen/polychart/events/v1/polychart_events_pb.js +0 -57
  354. package/dist/gen/polychart/events/v1/polychart_events_pb.js.map +0 -1
  355. package/dist/gen/polychart/v1/polychart_pb.d.ts +0 -1208
  356. package/dist/gen/polychart/v1/polychart_pb.d.ts.map +0 -1
  357. package/dist/gen/polychart/v1/polychart_pb.js +0 -244
  358. package/dist/gen/polychart/v1/polychart_pb.js.map +0 -1
  359. package/dist/services/whiteboard/service.d.ts +0 -8
  360. package/dist/services/whiteboard/service.d.ts.map +0 -1
  361. package/dist/services/whiteboard/service.js +0 -9
  362. package/dist/services/whiteboard/service.js.map +0 -1
  363. package/dist/services/whiteboard/whiteboard.codecs.js +0 -55
  364. package/dist/services/whiteboard/whiteboard.codecs.js.map +0 -1
  365. package/dist/services/whiteboard/whiteboard.d.ts +0 -42
  366. package/dist/services/whiteboard/whiteboard.d.ts.map +0 -1
  367. package/dist/services/whiteboard/whiteboard.js +0 -76
  368. package/dist/services/whiteboard/whiteboard.js.map +0 -1
  369. package/dist/services/whiteboard/whiteboard.schemas.d.ts +0 -771
  370. package/dist/services/whiteboard/whiteboard.schemas.d.ts.map +0 -1
  371. package/dist/services/whiteboard/whiteboard.schemas.js +0 -132
  372. package/dist/services/whiteboard/whiteboard.schemas.js.map +0 -1
  373. 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,19 @@ 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;
810
871
  };
811
872
  /**
812
873
  * Describes the message orders.v1.TrailingStopPolicy.
@@ -814,10 +875,27 @@ type TrailingStopPolicy = Message<"orders.v1.TrailingStopPolicy"> & {
814
875
  */
815
876
  declare const TrailingStopPolicySchema: GenMessage<TrailingStopPolicy>;
816
877
  /**
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.
878
+ * RiskPolicy defines optional risk controls (take-profit, stop-loss or
879
+ * trailing stop) attached to an order. The legs protect the parent order's
880
+ * filled position: they arm as the parent fills and follow its later fills.
881
+ *
882
+ * The legs of one parent share that position, whether or not oco is set, and
883
+ * only one exit works at a time. The first leg whose condition is met submits
884
+ * an exit for the whole remaining position, rounded down to the pair's step
885
+ * size; a remainder below one step stays in the balance. If another leg's
886
+ * condition is met while that exit works, the working exit is canceled; once
887
+ * it ends, that leg is checked again against the latest price it watches and,
888
+ * if its condition still holds, exits what remains. After an exit ends, the legs keep
889
+ * protecting whatever position remains, unless you canceled the exit: canceling
890
+ * a leg's exit order, alone or with a cancel-all, ends that leg, and with oco
891
+ * set the other leg too.
892
+ *
893
+ * The legs end once the parent order is terminal and no position they can
894
+ * exit remains: the leg whose exit ended last completes, and the others are
895
+ * canceled with TRIGGER_CANCEL_REASON_OCO. If the parent order ends without a
896
+ * fill, the legs are canceled with
897
+ * TRIGGER_CANCEL_REASON_PARENT_CANCELED_NO_FILL. If no exit ran and the
898
+ * parent's whole fill is below one step, the legs fail.
821
899
  *
822
900
  * @generated from message orders.v1.RiskPolicy
823
901
  */
@@ -854,9 +932,17 @@ type RiskPolicy = Message<"orders.v1.RiskPolicy"> & {
854
932
  value?: undefined;
855
933
  };
856
934
  /**
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).
935
+ * If true, the take-profit and the configured stop leg (stop-loss or
936
+ * trailing stop) are linked and shown as one-cancels-the-other. Requires a
937
+ * take-profit and exactly one stop leg. The legs of every parent share one
938
+ * position and end together as described on RiskPolicy, so this setting
939
+ * does not change when exits are submitted. It decides what canceling an
940
+ * exit order ends: with oco set, canceling one leg's exit ends both legs;
941
+ * without it, only that leg ends and the other keeps protecting the
942
+ * remaining position. Changing only this setting with ModifyOrder keeps
943
+ * the existing legs, with their IDs, arming and a trailing stop's tracked
944
+ * peak; changing a leg's terms, such as its trigger price, limit price or
945
+ * trailing distance, still replaces that leg. Default is false.
860
946
  *
861
947
  * @generated from field: bool oco = 4;
862
948
  */
@@ -912,8 +998,36 @@ type CancelAllOrdersRequest = Message<"orders.v1.CancelAllOrdersRequest"> & {
912
998
  * Use `create(CancelAllOrdersRequestSchema)` to create a new message.
913
999
  */
914
1000
  declare const CancelAllOrdersRequestSchema: GenMessage<CancelAllOrdersRequest>;
1001
+ /**
1002
+ * CancelledOrder identifies one order whose cancellation a cancel-all
1003
+ * requested.
1004
+ *
1005
+ * @generated from message orders.v1.CancelledOrder
1006
+ */
1007
+ type CancelledOrder = Message<"orders.v1.CancelledOrder"> & {
1008
+ /**
1009
+ * Order ID.
1010
+ *
1011
+ * @generated from field: fixed64 order_id = 1;
1012
+ */
1013
+ orderId: bigint;
1014
+ /**
1015
+ * The order's client order ID; empty when the order has none.
1016
+ *
1017
+ * @generated from field: string client_order_id = 2;
1018
+ */
1019
+ clientOrderId: string;
1020
+ };
1021
+ /**
1022
+ * Describes the message orders.v1.CancelledOrder.
1023
+ * Use `create(CancelledOrderSchema)` to create a new message.
1024
+ */
1025
+ declare const CancelledOrderSchema: GenMessage<CancelledOrder>;
915
1026
  /**
916
1027
  * CancelAllOrdersResponse returns the result of a cancel-all operation.
1028
+ * The response confirms that cancellation was requested for every matching
1029
+ * order; each order's final state is reported on the order update stream and
1030
+ * read paths.
917
1031
  *
918
1032
  * @generated from message orders.v1.CancelAllOrdersResponse
919
1033
  */
@@ -925,19 +1039,27 @@ type CancelAllOrdersResponse = Message<"orders.v1.CancelAllOrdersResponse"> & {
925
1039
  */
926
1040
  status: CancelAllOrdersResponse_Status;
927
1041
  /**
928
- * Number of orders that matched the filter.
1042
+ * Number of open orders that matched the filter when the request was
1043
+ * accepted, including orders whose cancellation was already in progress.
1044
+ * Orders placed after acceptance are not counted. Unless `dry_run` is set,
1045
+ * equals `submitted_cancels` plus `failed_cancels`.
929
1046
  *
930
1047
  * @generated from field: uint32 matched_orders = 2;
931
1048
  */
932
1049
  matchedOrders: number;
933
1050
  /**
934
- * Number of cancel requests submitted for processing.
1051
+ * Number of matched orders submitted for cancellation, including orders
1052
+ * whose cancellation was already in progress. Each moves to `CANCELED`
1053
+ * asynchronously after the response. Zero when `dry_run` is set.
935
1054
  *
936
1055
  * @generated from field: uint32 submitted_cancels = 3;
937
1056
  */
938
1057
  submittedCancels: number;
939
1058
  /**
940
- * Number of cancels that could not be submitted (already canceled, etc.).
1059
+ * Number of matched orders that could not be submitted for cancellation
1060
+ * because the cancel-all could not be recorded for their symbol. This
1061
+ * request does not cancel them; send a new cancel-all with a new
1062
+ * `request_id` if they are still open. Zero when `dry_run` is set.
941
1063
  *
942
1064
  * @generated from field: uint32 failed_cancels = 4;
943
1065
  */
@@ -954,6 +1076,41 @@ type CancelAllOrdersResponse = Message<"orders.v1.CancelAllOrdersResponse"> & {
954
1076
  * @generated from field: uint64 ts_ns = 6;
955
1077
  */
956
1078
  tsNs: bigint;
1079
+ /**
1080
+ * Orders whose cancellation was requested, oldest first (the order in
1081
+ * which they were created), at most 200. When more orders were canceled,
1082
+ * these are the 200 oldest and `truncated` is true; the order update stream
1083
+ * and read paths report every one. Empty when `dry_run` is set. Retrying
1084
+ * with the same `request_id` and criteria within 120 seconds returns the
1085
+ * original status, counts and timestamp, an empty list, and
1086
+ * `listing_status = NOT_RETAINED_READ_OPEN_ORDERS`. It requests no new
1087
+ * cancellations. Read open orders for current state and use order updates
1088
+ * for final outcomes.
1089
+ *
1090
+ * @generated from field: repeated orders.v1.CancelledOrder cancelled_orders = 7;
1091
+ */
1092
+ cancelledOrders: CancelledOrder[];
1093
+ /**
1094
+ * Number of orders whose cancellation was requested, including those not
1095
+ * listed in `cancelled_orders`. Equals `submitted_cancels`. Zero when
1096
+ * `dry_run` is set.
1097
+ *
1098
+ * @generated from field: uint32 total_cancelled = 8;
1099
+ */
1100
+ totalCancelled: number;
1101
+ /**
1102
+ * True when more orders were canceled than `cancelled_orders` lists.
1103
+ *
1104
+ * @generated from field: bool truncated = 9;
1105
+ */
1106
+ truncated: boolean;
1107
+ /**
1108
+ * Availability of the historical listing. An empty retry listing does not
1109
+ * change the original counts or mean that no cancellations were requested.
1110
+ *
1111
+ * @generated from field: orders.v1.CancelAllOrdersResponse.ListingStatus listing_status = 10;
1112
+ */
1113
+ listingStatus: CancelAllOrdersResponse_ListingStatus;
957
1114
  };
958
1115
  /**
959
1116
  * Describes the message orders.v1.CancelAllOrdersResponse.
@@ -989,6 +1146,37 @@ declare enum CancelAllOrdersResponse_Status {
989
1146
  * Describes the enum orders.v1.CancelAllOrdersResponse.Status.
990
1147
  */
991
1148
  declare const CancelAllOrdersResponse_StatusSchema: GenEnum<CancelAllOrdersResponse_Status>;
1149
+ /**
1150
+ * Availability of the order listing, separate from the submission outcome.
1151
+ *
1152
+ * @generated from enum orders.v1.CancelAllOrdersResponse.ListingStatus
1153
+ */
1154
+ declare enum CancelAllOrdersResponse_ListingStatus {
1155
+ /**
1156
+ * Listing availability was not provided.
1157
+ *
1158
+ * @generated from enum value: LISTING_UNSPECIFIED = 0;
1159
+ */
1160
+ LISTING_UNSPECIFIED = 0,
1161
+ /**
1162
+ * The initial response includes its listing, possibly empty, up to 200 orders.
1163
+ *
1164
+ * @generated from enum value: INCLUDED = 1;
1165
+ */
1166
+ INCLUDED = 1,
1167
+ /**
1168
+ * A retry returns its original outcome and counts without the historical
1169
+ * listing. Read open orders for current state and use order updates for
1170
+ * final outcomes. No new cancellations are requested by the retry.
1171
+ *
1172
+ * @generated from enum value: NOT_RETAINED_READ_OPEN_ORDERS = 2;
1173
+ */
1174
+ NOT_RETAINED_READ_OPEN_ORDERS = 2
1175
+ }
1176
+ /**
1177
+ * Describes the enum orders.v1.CancelAllOrdersResponse.ListingStatus.
1178
+ */
1179
+ declare const CancelAllOrdersResponse_ListingStatusSchema: GenEnum<CancelAllOrdersResponse_ListingStatus>;
992
1180
  /**
993
1181
  * CancelAllAfterRequest arms/disables a dead-man switch for automatic cancel-all.
994
1182
  *
@@ -1034,6 +1222,38 @@ type CancelAllAfterRequest = Message<"orders.v1.CancelAllAfterRequest"> & {
1034
1222
  * Use `create(CancelAllAfterRequestSchema)` to create a new message.
1035
1223
  */
1036
1224
  declare const CancelAllAfterRequestSchema: GenMessage<CancelAllAfterRequest>;
1225
+ /**
1226
+ * DeadManSwitchScope describes the recorded scope of an armed dead-man switch.
1227
+ * Expiry cancels working orders in this scope, including working child orders.
1228
+ * Waiting triggers remain active and may create further orders.
1229
+ *
1230
+ * @generated from message orders.v1.DeadManSwitchScope
1231
+ */
1232
+ type DeadManSwitchScope = Message<"orders.v1.DeadManSwitchScope"> & {
1233
+ /**
1234
+ * Public ID of the account or sub-account whose orders are canceled.
1235
+ *
1236
+ * @generated from field: fixed64 account_id = 1;
1237
+ */
1238
+ accountId: bigint;
1239
+ /**
1240
+ * Symbol ID whose orders are canceled. Zero or omitted means all symbols.
1241
+ *
1242
+ * @generated from field: uint32 symbol_id = 2;
1243
+ */
1244
+ symbolId: number;
1245
+ /**
1246
+ * Order side that is canceled. SIDE_UNSPECIFIED or omitted means both sides.
1247
+ *
1248
+ * @generated from field: orders.v1.Side side = 3;
1249
+ */
1250
+ side: Side;
1251
+ };
1252
+ /**
1253
+ * Describes the message orders.v1.DeadManSwitchScope.
1254
+ * Use `create(DeadManSwitchScopeSchema)` to create a new message.
1255
+ */
1256
+ declare const DeadManSwitchScopeSchema: GenMessage<DeadManSwitchScope>;
1037
1257
  /**
1038
1258
  * CancelAllAfterResponse returns dead-man switch arming/disable status.
1039
1259
  *
@@ -1070,6 +1290,14 @@ type CancelAllAfterResponse = Message<"orders.v1.CancelAllAfterResponse"> & {
1070
1290
  * @generated from field: uint64 ts_ns = 5;
1071
1291
  */
1072
1292
  tsNs: bigint;
1293
+ /**
1294
+ * Recorded scope after arming or refreshing. Absent when disabled.
1295
+ * Describes the current armed switch only. Cancellations already in progress
1296
+ * are unaffected by a later refresh or disable.
1297
+ *
1298
+ * @generated from field: orders.v1.DeadManSwitchScope effective_scope = 6;
1299
+ */
1300
+ effectiveScope?: DeadManSwitchScope | undefined;
1073
1301
  };
1074
1302
  /**
1075
1303
  * Describes the message orders.v1.CancelAllAfterResponse.
@@ -1230,9 +1458,13 @@ type BatchCreateOrdersRequest = Message<"orders.v1.BatchCreateOrdersRequest"> &
1230
1458
  subaccountId?: bigint | undefined;
1231
1459
  /**
1232
1460
  * 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.
1461
+ * Reusing it with the same payload within 15 minutes returns each decided
1462
+ * item's original result and result time, and retries the items still
1463
+ * unresolved, never admitting an already admitted item again. Reusing it
1464
+ * with a different payload during that window returns
1465
+ * CONFLICT_IDEMPOTENCY_KEY_REUSE. After 15 minutes the ID is free: a repeat
1466
+ * is a new request and can place its orders again, so read the items back
1467
+ * instead of repeating an older batch.
1236
1468
  *
1237
1469
  * @generated from field: string request_id = 2;
1238
1470
  */
@@ -1331,7 +1563,8 @@ type ModifyOrderRequest = Message<"orders.v1.ModifyOrderRequest"> & {
1331
1563
  value?: undefined;
1332
1564
  };
1333
1565
  /**
1334
- * Idempotency key (required).
1566
+ * Idempotency key (required). Outstanding modifications retain this key;
1567
+ * identical retries replay the final result for 60 seconds after the answer.
1335
1568
  *
1336
1569
  * @generated from field: string request_id = 4;
1337
1570
  */
@@ -1351,7 +1584,10 @@ type ModifyOrderRequest = Message<"orders.v1.ModifyOrderRequest"> & {
1351
1584
  */
1352
1585
  newQtyScaled?: bigint | undefined;
1353
1586
  /**
1354
- * Replacement attached-risk policy for the order.
1587
+ * Replacement attached-risk policy for the order. The order's change and its
1588
+ * take-profit, stop-loss and trailing legs apply together: either all of
1589
+ * them change, or the whole modify is refused and the order and its legs
1590
+ * stay as they were.
1355
1591
  *
1356
1592
  * @generated from field: orders.v1.RiskPolicy new_attached_risk = 7;
1357
1593
  */
@@ -1527,13 +1763,15 @@ type BatchReplaceAdmissionItem = Message<"orders.v1.BatchReplaceAdmissionItem">
1527
1763
  */
1528
1764
  status: BatchReplaceItemAdmissionStatus;
1529
1765
  /**
1530
- * Original order targeted by the replacement.
1766
+ * Original order targeted by the replacement: the requested order ID, or the
1767
+ * order the requested client order ID names. Rejected items keep it too. Unset
1768
+ * only when the requested client order ID names no order.
1531
1769
  *
1532
1770
  * @generated from field: fixed64 old_order_id = 3;
1533
1771
  */
1534
1772
  oldOrderId: bigint;
1535
1773
  /**
1536
- * Assigned successor order ID. Zero for cancel-only outcomes or rejection before assignment.
1774
+ * Assigned successor order ID. Unset for cancel-only outcomes and rejected items.
1537
1775
  *
1538
1776
  * @generated from field: fixed64 replacement_order_id = 4;
1539
1777
  */
@@ -1572,6 +1810,8 @@ type BatchReplaceAdmissionItem = Message<"orders.v1.BatchReplaceAdmissionItem">
1572
1810
  declare const BatchReplaceAdmissionItemSchema: GenMessage<BatchReplaceAdmissionItem>;
1573
1811
  /**
1574
1812
  * BatchReplaceOrdersRequest replaces same-symbol orders as one quote refresh.
1813
+ * Identical retries replay the admission result for 60 seconds from acceptance;
1814
+ * a different payload under the same key conflicts. Use a fresh key for a new batch.
1575
1815
  *
1576
1816
  * @generated from message orders.v1.BatchReplaceOrdersRequest
1577
1817
  */
@@ -1583,7 +1823,8 @@ type BatchReplaceOrdersRequest = Message<"orders.v1.BatchReplaceOrdersRequest">
1583
1823
  */
1584
1824
  subaccountId?: bigint | undefined;
1585
1825
  /**
1586
- * Trading symbol shared by every replacement.
1826
+ * Trading symbol shared by every replacement. An item whose order is on
1827
+ * another symbol is refused alone as an unknown order.
1587
1828
  *
1588
1829
  * @generated from field: uint32 symbol_id = 2;
1589
1830
  */
@@ -1679,7 +1920,9 @@ type BatchCancelItem = Message<"orders.v1.BatchCancelItem"> & {
1679
1920
  */
1680
1921
  clientOrderId: string;
1681
1922
  /**
1682
- * Optional symbol routing hint.
1923
+ * Optional trading symbol numeric identifier. When set, it must match the
1924
+ * order's symbol, or the item is refused as an unknown order. When omitted,
1925
+ * the order's own symbol is used.
1683
1926
  *
1684
1927
  * @generated from field: uint32 symbol_id = 3;
1685
1928
  */
@@ -1963,8 +2206,10 @@ declare enum FeeAsset {
1963
2206
  */
1964
2207
  declare const FeeAssetSchema: GenEnum<FeeAsset>;
1965
2208
  /**
1966
- * SelfTradePreventionMode controls which orders expire when they would trade
1967
- * against another order from the same account.
2209
+ * SelfTradePreventionMode controls which orders expire when an order would
2210
+ * trade against another order of the same root account, including all its
2211
+ * subaccounts: two subaccounts of one root never trade with each other. The
2212
+ * incoming order's mode decides which orders expire.
1968
2213
  *
1969
2214
  * @generated from enum orders.v1.SelfTradePreventionMode
1970
2215
  */
@@ -2061,7 +2306,11 @@ declare enum ErrorCode {
2061
2306
  */
2062
2307
  QTY_STEP_SIZE = 8,
2063
2308
  /**
2064
- * Client order ID is already in use for a different active order.
2309
+ * Client order ID is already in use on this account, by an open order or by
2310
+ * an order that ended recently; an ended order keeps its client order ID
2311
+ * reserved for at least 60 seconds. Reuse returns this code even with the
2312
+ * same payload. Use GetOrder to reconcile, then retry with a new client
2313
+ * order ID.
2065
2314
  *
2066
2315
  * @generated from enum value: ERROR_CODE_CONFLICT_DUPLICATE_CLIENT_ORDER_ID = 9;
2067
2316
  */
@@ -2324,7 +2573,7 @@ declare enum ErrorCode {
2324
2573
  */
2325
2574
  FOK_INSUFFICIENT_LIQUIDITY = 63,
2326
2575
  /**
2327
- * Client order ID points to an order that already reached terminal state.
2576
+ * The order has already ended (filled, canceled or expired).
2328
2577
  *
2329
2578
  * @generated from enum value: ERROR_CODE_ORDER_ALREADY_TERMINAL = 64;
2330
2579
  */
@@ -2355,12 +2604,6 @@ declare enum ErrorCode {
2355
2604
  * @generated from enum value: ERROR_CODE_TRIGGER_NOT_FOUND = 43;
2356
2605
  */
2357
2606
  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
2607
  /**
2365
2608
  * Trigger status does not allow requested lifecycle operation.
2366
2609
  *
@@ -2374,13 +2617,19 @@ declare enum ErrorCode {
2374
2617
  */
2375
2618
  TRIGGER_NOT_MODIFIABLE = 46,
2376
2619
  /**
2377
- * Duplicate client trigger ID was reused with a different trigger payload.
2620
+ * Client trigger ID is already used, either by a trigger with a different
2621
+ * payload or by an earlier create that failed or was rolled back. List
2622
+ * triggers to reconcile by client trigger ID, then retry with a new client
2623
+ * trigger ID.
2378
2624
  *
2379
2625
  * @generated from enum value: ERROR_CODE_CONFLICT_DUPLICATE_CLIENT_TRIGGER_ID = 47;
2380
2626
  */
2381
2627
  CONFLICT_DUPLICATE_CLIENT_TRIGGER_ID = 47,
2382
2628
  /**
2383
- * Trailing-stop max slippage (ticks or bps) is invalid.
2629
+ * Max slippage (ticks or bps) is out of range or leaves no valid execution
2630
+ * price bound. Applies to market orders and to standalone and attached
2631
+ * trailing stops, on create and on modify; for example, a 10000 bps cap on a
2632
+ * market order or trailing stop that sells.
2384
2633
  *
2385
2634
  * @generated from enum value: ERROR_CODE_MAX_SLIPPAGE_INVALID = 48;
2386
2635
  */
@@ -2398,7 +2647,10 @@ declare enum ErrorCode {
2398
2647
  */
2399
2648
  VALIDATION_ERROR = 66,
2400
2649
  /**
2401
- * This edge is at its bounded concurrent BatchReplace admission capacity.
2650
+ * The account already has its maximum order requests in flight; nothing was
2651
+ * admitted. ConnectRPC returns RESOURCE_EXHAUSTED (HTTP 429); REST returns
2652
+ * HTTP 503. No Retry-After or RateLimit-* headers are supplied. Retry after
2653
+ * one of the outstanding requests completes.
2402
2654
  *
2403
2655
  * @generated from enum value: ERROR_CODE_OVERLOADED = 67;
2404
2656
  */
@@ -2438,16 +2690,870 @@ declare enum ErrorCode {
2438
2690
  *
2439
2691
  * @generated from enum value: ERROR_CODE_CANCEL_REQUEST_EXPIRED = 73;
2440
2692
  */
2441
- CANCEL_REQUEST_EXPIRED = 73
2693
+ CANCEL_REQUEST_EXPIRED = 73,
2694
+ /**
2695
+ * Quantity is above the pair maximum: the market-order maximum for MARKET
2696
+ * orders, the limit-order maximum otherwise (base units).
2697
+ *
2698
+ * @generated from enum value: ERROR_CODE_MAX_QTY = 74;
2699
+ */
2700
+ MAX_QTY = 74,
2701
+ /**
2702
+ * Order notional is above the pair maximum (quote units). A stricter
2703
+ * sub-account policy cap returns POLICY_MAX_NOTIONAL instead.
2704
+ *
2705
+ * @generated from enum value: ERROR_CODE_MAX_NOTIONAL = 75;
2706
+ */
2707
+ MAX_NOTIONAL = 75,
2708
+ /**
2709
+ * The replacement total quantity is at or below the order's filled
2710
+ * quantity: the order ended at its filled quantity and no replacement order
2711
+ * was created.
2712
+ *
2713
+ * @generated from enum value: ERROR_CODE_QTY_AT_OR_BELOW_FILLED = 76;
2714
+ */
2715
+ QTY_AT_OR_BELOW_FILLED = 76,
2716
+ /**
2717
+ * The trading gateway that took the request is misconfigured for the order
2718
+ * service behind it. An operator must correct it; retrying does not help.
2719
+ *
2720
+ * @generated from enum value: ERROR_CODE_GATEWAY_MISCONFIGURED = 77;
2721
+ */
2722
+ GATEWAY_MISCONFIGURED = 77,
2723
+ /**
2724
+ * The order identifier or the replacement order identifier is not valid.
2725
+ *
2726
+ * @generated from enum value: ERROR_CODE_INVALID_ORDER_ID = 80;
2727
+ */
2728
+ INVALID_ORDER_ID = 80,
2729
+ /**
2730
+ * The quantity of a trigger's child order or a ladder order can't be raised
2731
+ * above its planned quantity. Nothing changed.
2732
+ *
2733
+ * @generated from enum value: ERROR_CODE_CHILD_QTY_RAISE_NOT_ALLOWED = 81;
2734
+ */
2735
+ CHILD_QTY_RAISE_NOT_ALLOWED = 81,
2736
+ /**
2737
+ * Attached take-profit, stop-loss or trailing legs can't be applied here:
2738
+ * this market takes none, an attached trailing stop isn't offered yet, or
2739
+ * the modify changes them together with the order's price, quantity, client
2740
+ * order ID or a replace. Nothing changed.
2741
+ *
2742
+ * @generated from enum value: ERROR_CODE_ATTACHED_RISK_NOT_SUPPORTED = 82;
2743
+ */
2744
+ ATTACHED_RISK_NOT_SUPPORTED = 82,
2745
+ /**
2746
+ * The account has too many filled or ended orders whose settlement has not
2747
+ * completed yet. Nothing changed; the request is accepted again once settlement
2748
+ * catches up.
2749
+ *
2750
+ * @generated from enum value: ERROR_CODE_SETTLEMENT_BACKLOGGED = 84;
2751
+ */
2752
+ SETTLEMENT_BACKLOGGED = 84,
2753
+ /**
2754
+ * The order would take the total quantity resting at its price past the
2755
+ * most a price level can hold, even if some quantity still fits. Nothing
2756
+ * changed: a new order was not placed, a modified order keeps resting as it
2757
+ * was, and the other orders at that price are unchanged. Another price or a
2758
+ * smaller quantity, or the same order once less quantity rests at that
2759
+ * price, is accepted.
2760
+ *
2761
+ * @generated from enum value: ERROR_CODE_PRICE_LEVEL_QUANTITY_LIMIT = 127;
2762
+ */
2763
+ PRICE_LEVEL_QUANTITY_LIMIT = 127,
2764
+ /**
2765
+ * The market order carried no client reference price, and the pair's reference
2766
+ * quote (top of book) was older than its freshness bound when the order was
2767
+ * admitted.
2768
+ *
2769
+ * @generated from enum value: ERROR_CODE_MARKET_QUOTE_STALE = 200;
2770
+ */
2771
+ MARKET_QUOTE_STALE = 200,
2772
+ /**
2773
+ * The market order carried no client reference price, and the pair's reference
2774
+ * quote could not be used to price it, for example because it postdated the
2775
+ * order or carried an invalid price.
2776
+ *
2777
+ * @generated from enum value: ERROR_CODE_MARKET_QUOTE_UNHEALTHY = 201;
2778
+ */
2779
+ MARKET_QUOTE_UNHEALTHY = 201,
2780
+ /**
2781
+ * The time in force, or its expiry time, is not accepted for this order or for
2782
+ * a trigger's child order type.
2783
+ *
2784
+ * @generated from enum value: ERROR_CODE_INVALID_TIME_IN_FORCE = 202;
2785
+ */
2786
+ INVALID_TIME_IN_FORCE = 202,
2787
+ /**
2788
+ * The request carried QuickSwap terms that the account or market does not
2789
+ * accept.
2790
+ *
2791
+ * @generated from enum value: ERROR_CODE_QUICKSWAP_NOT_PERMITTED = 203;
2792
+ */
2793
+ QUICKSWAP_NOT_PERMITTED = 203,
2794
+ /**
2795
+ * The order identifier assigned to the request is already in use by another
2796
+ * order of the market. Nothing changed.
2797
+ *
2798
+ * @generated from enum value: ERROR_CODE_DUPLICATE_ORDER_ID = 204;
2799
+ */
2800
+ DUPLICATE_ORDER_ID = 204,
2801
+ /**
2802
+ * The account has reached its maximum number of open orders across all markets.
2803
+ * A stricter sub-account policy cap returns POLICY_MAX_OPEN_ORDERS instead.
2804
+ *
2805
+ * @generated from enum value: ERROR_CODE_MAX_OPEN_ORDERS_TOTAL = 205;
2806
+ */
2807
+ MAX_OPEN_ORDERS_TOTAL = 205,
2808
+ /**
2809
+ * The self-trade prevention mode is not one the venue accepts for this order.
2810
+ *
2811
+ * @generated from enum value: ERROR_CODE_STP_MODE_NOT_ALLOWED = 206;
2812
+ */
2813
+ STP_MODE_NOT_ALLOWED = 206,
2814
+ /**
2815
+ * The trading pair is busy with the account's earlier requests, so this one was
2816
+ * not admitted and nothing was reserved. Retry shortly.
2817
+ *
2818
+ * @generated from enum value: ERROR_CODE_PAIR_BACKLOGGED = 207;
2819
+ */
2820
+ PAIR_BACKLOGGED = 207,
2821
+ /**
2822
+ * The order book of the market holds its maximum number of distinct price
2823
+ * levels, so an order at a new price cannot rest. Nothing changed.
2824
+ *
2825
+ * @generated from enum value: ERROR_CODE_PRICE_LEVELS_EXHAUSTED = 208;
2826
+ */
2827
+ PRICE_LEVELS_EXHAUSTED = 208,
2828
+ /**
2829
+ * The account reserves its maximum number of client order IDs, including those
2830
+ * of recently ended orders. Retry once they expire, or send the request without
2831
+ * a client order ID.
2832
+ *
2833
+ * @generated from enum value: ERROR_CODE_CLIENT_ORDER_IDS_EXHAUSTED = 209;
2834
+ */
2835
+ CLIENT_ORDER_IDS_EXHAUSTED = 209,
2836
+ /**
2837
+ * The order identifier is held by a different, earlier order, so the request
2838
+ * was not applied. Nothing changed.
2839
+ *
2840
+ * @generated from enum value: ERROR_CODE_ORDER_ID_CONFLICT = 210;
2841
+ */
2842
+ ORDER_ID_CONFLICT = 210,
2843
+ /**
2844
+ * The order side, or a trigger's child order side, is not a known side.
2845
+ *
2846
+ * @generated from enum value: ERROR_CODE_INVALID_SIDE = 211;
2847
+ */
2848
+ INVALID_SIDE = 211,
2849
+ /**
2850
+ * The order type, or a trigger's child order type, is not a known order type.
2851
+ *
2852
+ * @generated from enum value: ERROR_CODE_INVALID_ORDER_TYPE = 212;
2853
+ */
2854
+ INVALID_ORDER_TYPE = 212,
2855
+ /**
2856
+ * The self-trade prevention mode is not a known mode.
2857
+ *
2858
+ * @generated from enum value: ERROR_CODE_INVALID_STP_MODE = 213;
2859
+ */
2860
+ INVALID_STP_MODE = 213,
2861
+ /**
2862
+ * An order flag is unknown, or not accepted with this order type or time in
2863
+ * force, or on a trigger's child order.
2864
+ *
2865
+ * @generated from enum value: ERROR_CODE_INVALID_ORDER_FLAGS = 214;
2866
+ */
2867
+ INVALID_ORDER_FLAGS = 214,
2868
+ /**
2869
+ * Another item of the same batch was invalid, so this item was not applied
2870
+ * either. Nothing in the batch changed.
2871
+ *
2872
+ * @generated from enum value: ERROR_CODE_BATCH_OTHER_ITEM_INVALID = 215;
2873
+ */
2874
+ BATCH_OTHER_ITEM_INVALID = 215,
2875
+ /**
2876
+ * The replacement order identifier equals the identifier of the order it
2877
+ * replaces.
2878
+ *
2879
+ * @generated from enum value: ERROR_CODE_REPLACE_ONTO_OWN_ID = 216;
2880
+ */
2881
+ REPLACE_ONTO_OWN_ID = 216,
2882
+ /**
2883
+ * The client order ID is longer than 36 bytes or otherwise not valid.
2884
+ *
2885
+ * @generated from enum value: ERROR_CODE_INVALID_CLIENT_ORDER_ID = 217;
2886
+ */
2887
+ INVALID_CLIENT_ORDER_ID = 217,
2888
+ /**
2889
+ * The account used every order identifier available to it in this market.
2890
+ * Retrying does not help; contact support.
2891
+ *
2892
+ * @generated from enum value: ERROR_CODE_ORDER_SEQUENCE_EXHAUSTED = 218;
2893
+ */
2894
+ ORDER_SEQUENCE_EXHAUSTED = 218,
2895
+ /**
2896
+ * The order handling mode is not a known or accepted mode.
2897
+ *
2898
+ * @generated from enum value: ERROR_CODE_INVALID_HANDLING_MODE = 219;
2899
+ */
2900
+ INVALID_HANDLING_MODE = 219,
2901
+ /**
2902
+ * The fees that apply to the order cannot be determined right now, so it was
2903
+ * not admitted. Retry later.
2904
+ *
2905
+ * @generated from enum value: ERROR_CODE_FEE_SCHEDULE_UNAVAILABLE = 220;
2906
+ */
2907
+ FEE_SCHEDULE_UNAVAILABLE = 220,
2908
+ /**
2909
+ * The account's trading policy cannot be evaluated right now, so the order was
2910
+ * not admitted. Retry later.
2911
+ *
2912
+ * @generated from enum value: ERROR_CODE_POLICY_UNAVAILABLE = 221;
2913
+ */
2914
+ POLICY_UNAVAILABLE = 221,
2915
+ /**
2916
+ * The cancel-all-after timeout is neither 0, which disarms it, nor between 10
2917
+ * and 120 seconds.
2918
+ *
2919
+ * @generated from enum value: ERROR_CODE_CANCEL_ALL_AFTER_TIMEOUT_INVALID = 222;
2920
+ */
2921
+ CANCEL_ALL_AFTER_TIMEOUT_INVALID = 222,
2922
+ /**
2923
+ * The cancel-all request named more than 100 symbols.
2924
+ *
2925
+ * @generated from enum value: ERROR_CODE_CANCEL_SCOPE_TOO_LARGE = 223;
2926
+ */
2927
+ CANCEL_SCOPE_TOO_LARGE = 223,
2928
+ /**
2929
+ * No usable rate-limit policy applies to the account right now, so the request
2930
+ * was refused rather than admitted unlimited. Retry later.
2931
+ *
2932
+ * @generated from enum value: ERROR_CODE_RATE_LIMIT_POLICY_UNAVAILABLE = 224;
2933
+ */
2934
+ RATE_LIMIT_POLICY_UNAVAILABLE = 224,
2935
+ /**
2936
+ * The venue-wide admission rate that the account shares with other accounts is
2937
+ * exhausted. The account's own limit was not reached; retry shortly.
2938
+ *
2939
+ * @generated from enum value: ERROR_CODE_SYSTEM_RATE_LIMITED = 225;
2940
+ */
2941
+ SYSTEM_RATE_LIMITED = 225,
2942
+ /**
2943
+ * An earlier amend or replace of the order has not completed yet. Retry once it
2944
+ * completes.
2945
+ *
2946
+ * @generated from enum value: ERROR_CODE_ORDER_MODIFY_IN_PROGRESS = 226;
2947
+ */
2948
+ ORDER_MODIFY_IN_PROGRESS = 226,
2949
+ /**
2950
+ * The order, or the replace that created it, has not been placed on the book
2951
+ * yet, so it cannot be modified. Retry shortly.
2952
+ *
2953
+ * @generated from enum value: ERROR_CODE_ORDER_PLACEMENT_PENDING = 227;
2954
+ */
2955
+ ORDER_PLACEMENT_PENDING = 227,
2956
+ /**
2957
+ * The modify behavior is not a known behavior.
2958
+ *
2959
+ * @generated from enum value: ERROR_CODE_INVALID_MODIFY_BEHAVIOR = 228;
2960
+ */
2961
+ INVALID_MODIFY_BEHAVIOR = 228,
2962
+ /**
2963
+ * An item of the batch modify did not use the REPLACE_ONLY behavior, so the
2964
+ * batch was refused.
2965
+ *
2966
+ * @generated from enum value: ERROR_CODE_BATCH_REPLACE_ONLY_REQUIRED = 229;
2967
+ */
2968
+ BATCH_REPLACE_ONLY_REQUIRED = 229,
2969
+ /**
2970
+ * An item of the batch modify named no symbol, or another symbol than the
2971
+ * batch's first item, so the batch was refused.
2972
+ *
2973
+ * @generated from enum value: ERROR_CODE_BATCH_SINGLE_SYMBOL_REQUIRED = 230;
2974
+ */
2975
+ BATCH_SINGLE_SYMBOL_REQUIRED = 230,
2976
+ /**
2977
+ * The account keeps its maximum number of recent modify or batch requests for
2978
+ * duplicate detection. Retry once earlier ones expire.
2979
+ *
2980
+ * @generated from enum value: ERROR_CODE_REQUEST_RECEIPTS_EXHAUSTED = 231;
2981
+ */
2982
+ REQUEST_RECEIPTS_EXHAUSTED = 231,
2983
+ /**
2984
+ * The cancel-all or cancel-all-after request carried an intent identifier of
2985
+ * zero.
2986
+ *
2987
+ * @generated from enum value: ERROR_CODE_INTENT_ID_INVALID = 232;
2988
+ */
2989
+ INTENT_ID_INVALID = 232,
2990
+ /**
2991
+ * The cancel-all request's dry-run flag was neither 0 nor 1.
2992
+ *
2993
+ * @generated from enum value: ERROR_CODE_DRY_RUN_INVALID = 233;
2994
+ */
2995
+ DRY_RUN_INVALID = 233,
2996
+ /**
2997
+ * A cancel-all-after is already due to fire, and the re-arm's scope does not
2998
+ * cover every symbol of the pending one.
2999
+ *
3000
+ * @generated from enum value: ERROR_CODE_CANCEL_ALL_AFTER_SCOPE_CONFLICT = 234;
3001
+ */
3002
+ CANCEL_ALL_AFTER_SCOPE_CONFLICT = 234,
3003
+ /**
3004
+ * The venue holds its maximum number of account access records, so an account
3005
+ * trading this market for the first time cannot be admitted. Retry later.
3006
+ *
3007
+ * @generated from enum value: ERROR_CODE_NEW_ACCOUNT_CAPACITY_REACHED = 235;
3008
+ */
3009
+ NEW_ACCOUNT_CAPACITY_REACHED = 235,
3010
+ /**
3011
+ * The modify patched the trigger's child limit price or price mode, which the
3012
+ * trigger does not accept.
3013
+ *
3014
+ * @generated from enum value: ERROR_CODE_TRIGGER_CHILD_PRICE_NOT_MODIFIABLE = 236;
3015
+ */
3016
+ TRIGGER_CHILD_PRICE_NOT_MODIFIABLE = 236,
3017
+ /**
3018
+ * The trigger reached its last modification. Nothing changed; cancel it and
3019
+ * create a new trigger instead.
3020
+ *
3021
+ * @generated from enum value: ERROR_CODE_TRIGGER_GENERATIONS_EXHAUSTED = 237;
3022
+ */
3023
+ TRIGGER_GENERATIONS_EXHAUSTED = 237,
3024
+ /**
3025
+ * The account has its maximum number of trigger changes whose outcome is still
3026
+ * pending. Retry shortly.
3027
+ *
3028
+ * @generated from enum value: ERROR_CODE_TRIGGER_CONTROL_SHARE_EXHAUSTED = 238;
3029
+ */
3030
+ TRIGGER_CONTROL_SHARE_EXHAUSTED = 238,
3031
+ /**
3032
+ * The venue's capacity for pending trigger changes is exhausted across
3033
+ * accounts. Retry shortly.
3034
+ *
3035
+ * @generated from enum value: ERROR_CODE_TRIGGER_CONTROLS_BUSY = 239;
3036
+ */
3037
+ TRIGGER_CONTROLS_BUSY = 239,
3038
+ /**
3039
+ * The trigger type is valid but not supported on this venue yet.
3040
+ *
3041
+ * @generated from enum value: ERROR_CODE_TRIGGER_TYPE_NOT_SUPPORTED = 240;
3042
+ */
3043
+ TRIGGER_TYPE_NOT_SUPPORTED = 240,
3044
+ /**
3045
+ * The trigger type is not a known type.
3046
+ *
3047
+ * @generated from enum value: ERROR_CODE_INVALID_TRIGGER_TYPE = 241;
3048
+ */
3049
+ INVALID_TRIGGER_TYPE = 241,
3050
+ /**
3051
+ * The trigger direction is neither ABOVE nor BELOW.
3052
+ *
3053
+ * @generated from enum value: ERROR_CODE_TRIGGER_DIRECTION_INVALID = 242;
3054
+ */
3055
+ TRIGGER_DIRECTION_INVALID = 242,
3056
+ /**
3057
+ * The trigger's child order quantity is not positive.
3058
+ *
3059
+ * @generated from enum value: ERROR_CODE_TRIGGER_QTY_INVALID = 243;
3060
+ */
3061
+ TRIGGER_QTY_INVALID = 243,
3062
+ /**
3063
+ * A buy trailing stop's child order is not a LIMIT order with a maximum
3064
+ * price; its funds are reserved at that price.
3065
+ *
3066
+ * @generated from enum value: ERROR_CODE_TRIGGER_BUY_REQUIRES_LIMIT = 244;
3067
+ */
3068
+ TRIGGER_BUY_REQUIRES_LIMIT = 244,
3069
+ /**
3070
+ * The account's trading route is not configured for triggers, so the trigger
3071
+ * was not admitted. Contact support if it persists.
3072
+ *
3073
+ * @generated from enum value: ERROR_CODE_ACCOUNT_ROUTING_INVALID = 245;
3074
+ */
3075
+ ACCOUNT_ROUTING_INVALID = 245,
3076
+ /**
3077
+ * The account has its maximum number of live and recently ended triggers.
3078
+ *
3079
+ * @generated from enum value: ERROR_CODE_TRIGGER_LIMIT_EXCEEDED = 246;
3080
+ */
3081
+ TRIGGER_LIMIT_EXCEEDED = 246,
3082
+ /**
3083
+ * An earlier change of the trigger has not completed yet. Retry once it
3084
+ * completes.
3085
+ *
3086
+ * @generated from enum value: ERROR_CODE_TRIGGER_CONTROL_IN_PROGRESS = 247;
3087
+ */
3088
+ TRIGGER_CONTROL_IN_PROGRESS = 247,
3089
+ /**
3090
+ * The trigger modify named no field to change.
3091
+ *
3092
+ * @generated from enum value: ERROR_CODE_TRIGGER_PATCH_EMPTY = 248;
3093
+ */
3094
+ TRIGGER_PATCH_EMPTY = 248,
3095
+ /**
3096
+ * The client trigger ID is empty, longer than 36 bytes or otherwise not valid.
3097
+ *
3098
+ * @generated from enum value: ERROR_CODE_CLIENT_TRIGGER_ID_INVALID = 249;
3099
+ */
3100
+ CLIENT_TRIGGER_ID_INVALID = 249,
3101
+ /**
3102
+ * The trailing trigger's activation price is not positive or not on the pair's
3103
+ * tick.
3104
+ *
3105
+ * @generated from enum value: ERROR_CODE_TRIGGER_ACTIVATION_PRICE_INVALID = 250;
3106
+ */
3107
+ TRIGGER_ACTIVATION_PRICE_INVALID = 250,
3108
+ /**
3109
+ * The trigger's slippage bound in ticks is not valid for its child order.
3110
+ *
3111
+ * @generated from enum value: ERROR_CODE_SLIPPAGE_TICKS_INVALID = 251;
3112
+ */
3113
+ SLIPPAGE_TICKS_INVALID = 251,
3114
+ /**
3115
+ * The trigger's slippage bound in basis points is not valid for its child
3116
+ * order.
3117
+ *
3118
+ * @generated from enum value: ERROR_CODE_SLIPPAGE_BPS_INVALID = 252;
3119
+ */
3120
+ SLIPPAGE_BPS_INVALID = 252,
3121
+ /**
3122
+ * The trigger change was not confirmed within its time bound. Its outcome is
3123
+ * unknown and it may still apply; read the trigger before retrying.
3124
+ *
3125
+ * @generated from enum value: ERROR_CODE_TRIGGER_CONTROL_OUTCOME_UNKNOWN = 253;
3126
+ */
3127
+ TRIGGER_CONTROL_OUTCOME_UNKNOWN = 253,
3128
+ /**
3129
+ * The venue holds its maximum number of triggers across accounts right now.
3130
+ * Retry later.
3131
+ *
3132
+ * @generated from enum value: ERROR_CODE_TRIGGER_CAPACITY_REACHED = 254;
3133
+ */
3134
+ TRIGGER_CAPACITY_REACHED = 254,
3135
+ /**
3136
+ * The venue's capacity for fund reservations is exhausted right now, so the
3137
+ * trigger's child order could not be reserved. Retry later.
3138
+ *
3139
+ * @generated from enum value: ERROR_CODE_RESERVATION_CAPACITY_REACHED = 255;
3140
+ */
3141
+ RESERVATION_CAPACITY_REACHED = 255,
3142
+ /**
3143
+ * The venue's capacity for reserved client order IDs is exhausted right now, so
3144
+ * the trigger's child order could not reserve one. Retry later.
3145
+ *
3146
+ * @generated from enum value: ERROR_CODE_CLIENT_ORDER_ID_CAPACITY_REACHED = 256;
3147
+ */
3148
+ CLIENT_ORDER_ID_CAPACITY_REACHED = 256,
3149
+ /**
3150
+ * The account's open orders and triggers hold its maximum number of fund
3151
+ * reservations.
3152
+ *
3153
+ * @generated from enum value: ERROR_CODE_ACCOUNT_RESERVATION_LIMIT_REACHED = 257;
3154
+ */
3155
+ ACCOUNT_RESERVATION_LIMIT_REACHED = 257,
3156
+ /**
3157
+ * The requested trigger operation is not a known operation.
3158
+ *
3159
+ * @generated from enum value: ERROR_CODE_INVALID_TRIGGER_CONTROL = 258;
3160
+ */
3161
+ INVALID_TRIGGER_CONTROL = 258,
3162
+ /**
3163
+ * A trigger operation other than modify carried field changes.
3164
+ *
3165
+ * @generated from enum value: ERROR_CODE_TRIGGER_PATCH_NOT_ALLOWED = 259;
3166
+ */
3167
+ TRIGGER_PATCH_NOT_ALLOWED = 259,
3168
+ /**
3169
+ * The trigger modify named a field that is not known.
3170
+ *
3171
+ * @generated from enum value: ERROR_CODE_TRIGGER_PATCH_FIELD_UNKNOWN = 260;
3172
+ */
3173
+ TRIGGER_PATCH_FIELD_UNKNOWN = 260,
3174
+ /**
3175
+ * The trigger modify carried a value for a field its change mask does not name.
3176
+ *
3177
+ * @generated from enum value: ERROR_CODE_TRIGGER_PATCH_VALUE_UNMASKED = 261;
3178
+ */
3179
+ TRIGGER_PATCH_VALUE_UNMASKED = 261,
3180
+ /**
3181
+ * The trigger modify's price mode is not a known mode.
3182
+ *
3183
+ * @generated from enum value: ERROR_CODE_TRIGGER_PATCH_PRICE_MODE_INVALID = 262;
3184
+ */
3185
+ TRIGGER_PATCH_PRICE_MODE_INVALID = 262,
3186
+ /**
3187
+ * New orders, changes and trigger orders on this account are suspended until
3188
+ * a balance issue is resolved; cancels still work. Nothing changed.
3189
+ *
3190
+ * @generated from enum value: ERROR_CODE_ACCOUNT_ORDERS_SUSPENDED = 263;
3191
+ */
3192
+ ACCOUNT_ORDERS_SUSPENDED = 263,
3193
+ /**
3194
+ * A trailing stop's side is not supported. Trailing stops accept either
3195
+ * side, so this code is not currently returned.
3196
+ *
3197
+ * @generated from enum value: ERROR_CODE_TRAILING_SIDE_NOT_SUPPORTED = 264;
3198
+ */
3199
+ TRAILING_SIDE_NOT_SUPPORTED = 264,
3200
+ /**
3201
+ * A trailing stop that sells must have a MARKET child order.
3202
+ *
3203
+ * @generated from enum value: ERROR_CODE_TRAILING_CHILD_NOT_MARKET = 265;
3204
+ */
3205
+ TRAILING_CHILD_NOT_MARKET = 265,
3206
+ /**
3207
+ * The TWAP duration is shorter than 1 second or longer than about 292 years,
3208
+ * the longest the venue's clock represents.
3209
+ *
3210
+ * @generated from enum value: ERROR_CODE_TWAP_DURATION_INVALID = 266;
3211
+ */
3212
+ TWAP_DURATION_INVALID = 266,
3213
+ /**
3214
+ * The TWAP sets a slippage bound, but its slices are LIMIT orders, which take
3215
+ * none.
3216
+ *
3217
+ * @generated from enum value: ERROR_CODE_LIMIT_CHILD_SLIPPAGE_SET = 267;
3218
+ */
3219
+ LIMIT_CHILD_SLIPPAGE_SET = 267,
3220
+ /**
3221
+ * The slippage bound is given both in ticks and in basis points; give only one.
3222
+ *
3223
+ * @generated from enum value: ERROR_CODE_SLIPPAGE_BOUNDS_CONFLICT = 268;
3224
+ */
3225
+ SLIPPAGE_BOUNDS_CONFLICT = 268,
3226
+ /**
3227
+ * The TWAP slice interval is shorter than 100 milliseconds or longer than its
3228
+ * duration.
3229
+ *
3230
+ * @generated from enum value: ERROR_CODE_TWAP_INTERVAL_INVALID = 269;
3231
+ */
3232
+ TWAP_INTERVAL_INVALID = 269,
3233
+ /**
3234
+ * One of the ladder's orders can't be placed, so the ladder was not created.
3235
+ * Nothing changed.
3236
+ *
3237
+ * @generated from enum value: ERROR_CODE_LADDER_LEVEL_REJECTED = 270;
3238
+ */
3239
+ LADDER_LEVEL_REJECTED = 270,
3240
+ /**
3241
+ * The ladder's price range is too narrow to place its orders at least one
3242
+ * price tick apart.
3243
+ *
3244
+ * @generated from enum value: ERROR_CODE_LADDER_RANGE_TOO_NARROW = 271;
3245
+ */
3246
+ LADDER_RANGE_TOO_NARROW = 271,
3247
+ /**
3248
+ * A ladder places from 2 to 100 orders.
3249
+ *
3250
+ * @generated from enum value: ERROR_CODE_LADDER_LEVELS_INVALID = 272;
3251
+ */
3252
+ LADDER_LEVELS_INVALID = 272,
3253
+ /**
3254
+ * This market's order limits aren't set yet, so it can't take new orders.
3255
+ *
3256
+ * @generated from enum value: ERROR_CODE_ORDER_LIMITS_UNAVAILABLE = 273;
3257
+ */
3258
+ ORDER_LIMITS_UNAVAILABLE = 273,
3259
+ /**
3260
+ * This market is in an auction call and takes only limit orders that rest
3261
+ * without crossing the book; market, immediate-or-cancel and fill-or-kill
3262
+ * orders are refused. Nothing changed.
3263
+ *
3264
+ * @generated from enum value: ERROR_CODE_ORDER_TYPE_NOT_ALLOWED_IN_AUCTION = 274;
3265
+ */
3266
+ ORDER_TYPE_NOT_ALLOWED_IN_AUCTION = 274,
3267
+ /**
3268
+ * This market is in an auction call; new post-only orders are refused.
3269
+ * Nothing changed.
3270
+ *
3271
+ * @generated from enum value: ERROR_CODE_POST_ONLY_NOT_ALLOWED_IN_AUCTION = 275;
3272
+ */
3273
+ POST_ONLY_NOT_ALLOWED_IN_AUCTION = 275,
3274
+ /**
3275
+ * The request's QuickSwap fee details are incomplete: a fee schedule needs a
3276
+ * broker, and a broker or broker fee terms need a fee schedule.
3277
+ *
3278
+ * @generated from enum value: ERROR_CODE_QUICKSWAP_FEE_DETAILS_INCOMPLETE = 276;
3279
+ */
3280
+ QUICKSWAP_FEE_DETAILS_INCOMPLETE = 276,
3281
+ /**
3282
+ * The requested QuickSwap fee schedule doesn't price this market.
3283
+ *
3284
+ * @generated from enum value: ERROR_CODE_QUICKSWAP_MARKET_NOT_PRICED = 277;
3285
+ */
3286
+ QUICKSWAP_MARKET_NOT_PRICED = 277,
3287
+ /**
3288
+ * The broker fee terms belong to another broker.
3289
+ *
3290
+ * @generated from enum value: ERROR_CODE_QUICKSWAP_BROKER_FEE_TERMS_MISMATCH = 278;
3291
+ */
3292
+ QUICKSWAP_BROKER_FEE_TERMS_MISMATCH = 278,
3293
+ /**
3294
+ * A QuickSwap fee would be paid into the account placing the order.
3295
+ *
3296
+ * @generated from enum value: ERROR_CODE_QUICKSWAP_FEE_RECIPIENT_IS_PAYER = 279;
3297
+ */
3298
+ QUICKSWAP_FEE_RECIPIENT_IS_PAYER = 279,
3299
+ /**
3300
+ * The broker fee terms aren't available yet; retry shortly.
3301
+ *
3302
+ * @generated from enum value: ERROR_CODE_QUICKSWAP_BROKER_FEE_TERMS_UNAVAILABLE = 280;
3303
+ */
3304
+ QUICKSWAP_BROKER_FEE_TERMS_UNAVAILABLE = 280,
3305
+ /**
3306
+ * The broker's fee account isn't available yet; retry shortly.
3307
+ *
3308
+ * @generated from enum value: ERROR_CODE_QUICKSWAP_BROKER_ACCOUNT_UNAVAILABLE = 281;
3309
+ */
3310
+ QUICKSWAP_BROKER_ACCOUNT_UNAVAILABLE = 281,
3311
+ /**
3312
+ * The QuickSwap account is not ready yet; no order was placed. Retry shortly.
3313
+ *
3314
+ * @generated from enum value: ERROR_CODE_QUICKSWAP_ACCOUNT_OWNER_UNKNOWN = 301;
3315
+ */
3316
+ QUICKSWAP_ACCOUNT_OWNER_UNKNOWN = 301,
3317
+ /**
3318
+ * QuickSwap isn't enabled for this account's trading.
3319
+ *
3320
+ * @generated from enum value: ERROR_CODE_QUICKSWAP_DISABLED = 282;
3321
+ */
3322
+ QUICKSWAP_DISABLED = 282,
3323
+ /**
3324
+ * QuickSwap orders can't carry take-profit or stop-loss legs.
3325
+ *
3326
+ * @generated from enum value: ERROR_CODE_QUICKSWAP_ATTACHED_RISK_NOT_ALLOWED = 283;
3327
+ */
3328
+ QUICKSWAP_ATTACHED_RISK_NOT_ALLOWED = 283,
3329
+ /**
3330
+ * QuickSwap orders can't be amended or replaced.
3331
+ *
3332
+ * @generated from enum value: ERROR_CODE_QUICKSWAP_ORDER_NOT_MODIFIABLE = 284;
3333
+ */
3334
+ QUICKSWAP_ORDER_NOT_MODIFIABLE = 284,
3335
+ /**
3336
+ * The QuickSwap fees together would exceed the order's value.
3337
+ *
3338
+ * @generated from enum value: ERROR_CODE_QUICKSWAP_FEE_TOTAL_TOO_HIGH = 285;
3339
+ */
3340
+ QUICKSWAP_FEE_TOTAL_TOO_HIGH = 285,
3341
+ /**
3342
+ * The broker fee terms are invalid and can't be used.
3343
+ *
3344
+ * @generated from enum value: ERROR_CODE_QUICKSWAP_BROKER_FEE_TERMS_INVALID = 286;
3345
+ */
3346
+ QUICKSWAP_BROKER_FEE_TERMS_INVALID = 286,
3347
+ /**
3348
+ * The broker's QuickSwap setup is invalid and can't be used.
3349
+ *
3350
+ * @generated from enum value: ERROR_CODE_QUICKSWAP_BROKER_INVALID = 287;
3351
+ */
3352
+ QUICKSWAP_BROKER_INVALID = 287,
3353
+ /**
3354
+ * The QuickSwap fee schedule is invalid and can't be used.
3355
+ *
3356
+ * @generated from enum value: ERROR_CODE_QUICKSWAP_FEE_SCHEDULE_INVALID = 288;
3357
+ */
3358
+ QUICKSWAP_FEE_SCHEDULE_INVALID = 288,
3359
+ /**
3360
+ * The QuickSwap fee for this market is invalid and can't be used.
3361
+ *
3362
+ * @generated from enum value: ERROR_CODE_QUICKSWAP_MARKET_FEE_INVALID = 289;
3363
+ */
3364
+ QUICKSWAP_MARKET_FEE_INVALID = 289,
3365
+ /**
3366
+ * QuickSwap's setup is invalid, so QuickSwap orders can't be placed.
3367
+ *
3368
+ * @generated from enum value: ERROR_CODE_QUICKSWAP_SETUP_INVALID = 290;
3369
+ */
3370
+ QUICKSWAP_SETUP_INVALID = 290,
3371
+ /**
3372
+ * QuickSwap's capacity for fee settings is reached; this order can't be
3373
+ * placed.
3374
+ *
3375
+ * @generated from enum value: ERROR_CODE_QUICKSWAP_CAPACITY_REACHED = 291;
3376
+ */
3377
+ QUICKSWAP_CAPACITY_REACHED = 291,
3378
+ /**
3379
+ * An exit order placed by one of the order's attached take-profit or stop
3380
+ * legs is still working, so the order's attached legs can't be added,
3381
+ * edited, paused or resumed now; removing a leg is still accepted. Nothing
3382
+ * changed; retry once the exit completes.
3383
+ *
3384
+ * @generated from enum value: ERROR_CODE_ATTACHED_EXIT_WORKING = 292;
3385
+ */
3386
+ ATTACHED_EXIT_WORKING = 292,
3387
+ /**
3388
+ * The account already has the most triggers one account may have on this
3389
+ * market, attached take-profit, stop-loss and trailing legs included.
3390
+ * Nothing changed; retry once one of them ends.
3391
+ *
3392
+ * @generated from enum value: ERROR_CODE_MARKET_TRIGGER_LIMIT_EXCEEDED = 293;
3393
+ */
3394
+ MARKET_TRIGGER_LIMIT_EXCEEDED = 293,
3395
+ /**
3396
+ * The account already has the most TWAP orders one account may have on
3397
+ * this market. Nothing changed; retry once one of them ends.
3398
+ *
3399
+ * @generated from enum value: ERROR_CODE_MARKET_TWAP_LIMIT_EXCEEDED = 294;
3400
+ */
3401
+ MARKET_TWAP_LIMIT_EXCEEDED = 294,
3402
+ /**
3403
+ * The account already has the most ladder orders one account may have on
3404
+ * this market. Nothing changed; retry once one of them ends.
3405
+ *
3406
+ * @generated from enum value: ERROR_CODE_MARKET_LADDER_LIMIT_EXCEEDED = 295;
3407
+ */
3408
+ MARKET_LADDER_LIMIT_EXCEEDED = 295,
3409
+ /**
3410
+ * The new quantity of a TWAP order's slice would leave more than the TWAP's
3411
+ * remaining quantity. Nothing changed; a slice can be raised up to what the
3412
+ * TWAP still has to execute.
3413
+ *
3414
+ * @generated from enum value: ERROR_CODE_CHILD_QTY_EXCEEDS_REMAINING = 296;
3415
+ */
3416
+ CHILD_QTY_EXCEEDS_REMAINING = 296,
3417
+ /**
3418
+ * The order cancellation was sent but not confirmed in time. Its outcome is
3419
+ * unknown and it may still apply; read the order before retrying. For a batch
3420
+ * cancellation, every item's outcome is unknown; read them back. For a cancel
3421
+ * all, some or all of the matching orders may be canceled; read open orders.
3422
+ * For a cancel all after heartbeat, the switch may or may not have been armed,
3423
+ * refreshed or disabled; send the heartbeat again.
3424
+ *
3425
+ * @generated from enum value: ERROR_CODE_ORDER_CANCEL_OUTCOME_UNKNOWN = 297;
3426
+ */
3427
+ ORDER_CANCEL_OUTCOME_UNKNOWN = 297,
3428
+ /**
3429
+ * The order modification was sent but not confirmed in time. Its outcome is
3430
+ * unknown and it may still apply; read the order before retrying. For a batch
3431
+ * replacement, every item's outcome is unknown; read them back.
3432
+ *
3433
+ * @generated from enum value: ERROR_CODE_ORDER_MODIFY_OUTCOME_UNKNOWN = 298;
3434
+ */
3435
+ ORDER_MODIFY_OUTCOME_UNKNOWN = 298,
3436
+ /**
3437
+ * This order is being canceled while the account's balances are brought back
3438
+ * in line, so it can't be changed. Nothing changed; cancels still work, and
3439
+ * the account's other orders can still be changed.
3440
+ *
3441
+ * @generated from enum value: ERROR_CODE_ORDER_REPAIRING = 299;
3442
+ */
3443
+ ORDER_REPAIRING = 299,
3444
+ /**
3445
+ * This account's orders are being canceled while its balances are brought
3446
+ * back in line, so new orders, changes and trigger orders are paused for a
3447
+ * short time. Nothing changed; cancels still work. Try again shortly.
3448
+ *
3449
+ * @generated from enum value: ERROR_CODE_ACCOUNT_REPAIRING = 300;
3450
+ */
3451
+ ACCOUNT_REPAIRING = 300,
3452
+ /**
3453
+ * The new trigger price of a stop-loss or take-profit is already reached by
3454
+ * the price the trigger watches (at or past it), so the trigger would fire at
3455
+ * once and send its order. Nothing changed; the trigger keeps its previous
3456
+ * trigger price. Returned by ModifyTrigger, and by an order modify that moves
3457
+ * an attached take-profit or stop-loss of an order with a fill. Choose a
3458
+ * trigger price the market has not reached.
3459
+ *
3460
+ * @generated from enum value: ERROR_CODE_TRIGGER_WOULD_TRIGGER_IMMEDIATELY = 302;
3461
+ */
3462
+ TRIGGER_WOULD_TRIGGER_IMMEDIATELY = 302,
3463
+ /**
3464
+ * The order was sent but not confirmed in time. Its outcome is unknown and
3465
+ * it may have been accepted; read the order by its client order ID, or read
3466
+ * open orders, before retrying. For a batch create, every item's outcome is
3467
+ * unknown; read them back, or repeat the batch with the same request ID and
3468
+ * payload within 15 minutes, which returns decided items' original results
3469
+ * and retries the rest without admitting any item twice.
3470
+ *
3471
+ * @generated from enum value: ERROR_CODE_ORDER_CREATE_OUTCOME_UNKNOWN = 303;
3472
+ */
3473
+ ORDER_CREATE_OUTCOME_UNKNOWN = 303,
3474
+ /**
3475
+ * The trigger was sent but not confirmed in time. Its outcome is unknown and
3476
+ * it may have been created; read the triggers for its client trigger ID
3477
+ * before retrying.
3478
+ *
3479
+ * @generated from enum value: ERROR_CODE_TRIGGER_CREATE_OUTCOME_UNKNOWN = 304;
3480
+ */
3481
+ TRIGGER_CREATE_OUTCOME_UNKNOWN = 304,
3482
+ /**
3483
+ * The account has reached its maximum number of resting orders in this
3484
+ * market. Good-till-cancelled and good-till-date orders count until they
3485
+ * end; immediate-or-cancel, fill-or-kill and market orders never count, and
3486
+ * a replace keeps its order's place. Nothing changed; cancel a resting order
3487
+ * in this market first.
3488
+ *
3489
+ * @generated from enum value: ERROR_CODE_MAX_OPEN_ORDERS_PER_PAIR = 306;
3490
+ */
3491
+ MAX_OPEN_ORDERS_PER_PAIR = 306,
3492
+ /**
3493
+ * The order already carries every attached leg it may hold, so another
3494
+ * attached leg was refused.
3495
+ *
3496
+ * @generated from enum value: ERROR_CODE_ATTACHED_LEGS_EXCEEDED = 86;
3497
+ */
3498
+ ATTACHED_LEGS_EXCEEDED = 86,
3499
+ /**
3500
+ * The trigger's fee asset was not valid.
3501
+ *
3502
+ * @generated from enum value: ERROR_CODE_FEE_ASSET_INVALID = 87;
3503
+ */
3504
+ FEE_ASSET_INVALID = 87,
3505
+ /**
3506
+ * The trigger's maximum fee rate was not valid.
3507
+ *
3508
+ * @generated from enum value: ERROR_CODE_FEE_CEILING_INVALID = 88;
3509
+ */
3510
+ FEE_CEILING_INVALID = 88,
3511
+ /**
3512
+ * The trigger set a field that must be left unset.
3513
+ *
3514
+ * @generated from enum value: ERROR_CODE_UNSUPPORTED_FIELD_SET = 89;
3515
+ */
3516
+ UNSUPPORTED_FIELD_SET = 89,
3517
+ /**
3518
+ * The trigger could not fire again.
3519
+ *
3520
+ * @generated from enum value: ERROR_CODE_TRIGGER_FIRE_LIMIT_REACHED = 90;
3521
+ */
3522
+ TRIGGER_FIRE_LIMIT_REACHED = 90,
3523
+ /**
3524
+ * The trigger's condition flags were not valid.
3525
+ *
3526
+ * @generated from enum value: ERROR_CODE_CONDITION_FLAGS_INVALID = 91;
3527
+ */
3528
+ CONDITION_FLAGS_INVALID = 91,
3529
+ /**
3530
+ * The trigger set a condition parameter its condition does not take.
3531
+ *
3532
+ * @generated from enum value: ERROR_CODE_CONDITION_PARAMETER_SET = 92;
3533
+ */
3534
+ CONDITION_PARAMETER_SET = 92,
3535
+ /**
3536
+ * The market had no room for another TWAP order.
3537
+ *
3538
+ * @generated from enum value: ERROR_CODE_TWAP_CAPACITY_REACHED = 93;
3539
+ */
3540
+ TWAP_CAPACITY_REACHED = 93,
3541
+ /**
3542
+ * The trigger's child order did not match the order the trigger requested,
3543
+ * so the trigger failed and the child order was canceled.
3544
+ *
3545
+ * @generated from enum value: ERROR_CODE_CHILD_ORDER_INCONSISTENT = 94;
3546
+ */
3547
+ CHILD_ORDER_INCONSISTENT = 94
2442
3548
  }
2443
3549
  /**
2444
3550
  * Describes the enum orders.v1.ErrorCode.
2445
3551
  */
2446
3552
  declare const ErrorCodeSchema: GenEnum<ErrorCode>;
2447
3553
  /**
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.
3554
+ * TriggerPriceSource defines which price a trigger watches. Standalone
3555
+ * stop-loss, take-profit and trailing-stop triggers watch LAST_PRICE unless
3556
+ * INDEX_PRICE is requested; MARK_PRICE is not supported on spot markets.
2451
3557
  *
2452
3558
  * @generated from enum orders.v1.TriggerPriceSource
2453
3559
  */
@@ -2459,19 +3565,22 @@ declare enum TriggerPriceSource {
2459
3565
  */
2460
3566
  TRIGGER_PRICE_SOURCE_UNSPECIFIED = 0,
2461
3567
  /**
2462
- * Last traded price (default for spot).
3568
+ * Last traded price on the market (default for spot).
2463
3569
  *
2464
3570
  * @generated from enum value: LAST_PRICE = 1;
2465
3571
  */
2466
3572
  LAST_PRICE = 1,
2467
3573
  /**
2468
- * Index price aggregated from external exchanges (future).
3574
+ * The market's index price, aggregated from external exchanges. A trigger
3575
+ * that watches it acts only on a current index value: while the index is
3576
+ * stale or unavailable the trigger stays armed and waits, and never fires on
3577
+ * an outdated value.
2469
3578
  *
2470
3579
  * @generated from enum value: INDEX_PRICE = 2;
2471
3580
  */
2472
3581
  INDEX_PRICE = 2,
2473
3582
  /**
2474
- * Mark price for perpetuals (future).
3583
+ * Mark price for perpetuals; not supported on spot markets.
2475
3584
  *
2476
3585
  * @generated from enum value: MARK_PRICE = 3;
2477
3586
  */
@@ -2683,7 +3792,9 @@ declare const OrdersService: GenService<{
2683
3792
  };
2684
3793
  /**
2685
3794
  * Cancels all matching open orders for an account (kill switch).
2686
- * Evaluates matching orders from a consistent snapshot at request start.
3795
+ * Evaluates matching orders from a consistent snapshot at request start and
3796
+ * requests cancellation of every one, however many match. The response
3797
+ * lists up to 200 of them, oldest first, with the total count.
2687
3798
  * Final state is confirmed via the order update stream or read path.
2688
3799
  *
2689
3800
  * @generated from rpc orders.v1.OrdersService.CancelAllOrders
@@ -2748,5 +3859,5 @@ declare const OrdersService: GenService<{
2748
3859
  };
2749
3860
  }>;
2750
3861
  //#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 };
3862
+ 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
3863
  //# sourceMappingURL=orders_pb.d.ts.map