@polyester/sdk 0.4.0 → 0.4.2

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 (296) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/_virtual/_rolldown/runtime.js +1 -15
  3. package/dist/catalogs/snapshot-validation.js +63 -63
  4. package/dist/catalogs/snapshot-validation.js.map +1 -1
  5. package/dist/core-client.d.ts +9 -0
  6. package/dist/core-client.d.ts.map +1 -1
  7. package/dist/core-client.js +21 -0
  8. package/dist/core-client.js.map +1 -1
  9. package/dist/gen/fees/v1/fees_pb.d.ts +124 -0
  10. package/dist/gen/fees/v1/fees_pb.d.ts.map +1 -0
  11. package/dist/gen/fees/v1/fees_pb.js +39 -0
  12. package/dist/gen/fees/v1/fees_pb.js.map +1 -0
  13. package/dist/gen/index.d.ts +4 -1
  14. package/dist/gen/index.js +4 -1
  15. package/dist/gen/ratelimit/v1/ratelimit_pb.d.ts +223 -0
  16. package/dist/gen/ratelimit/v1/ratelimit_pb.d.ts.map +1 -0
  17. package/dist/gen/ratelimit/v1/ratelimit_pb.js +86 -0
  18. package/dist/gen/ratelimit/v1/ratelimit_pb.js.map +1 -0
  19. package/dist/gen/vip/v1/vip_pb.d.ts +277 -0
  20. package/dist/gen/vip/v1/vip_pb.d.ts.map +1 -0
  21. package/dist/gen/vip/v1/vip_pb.js +60 -0
  22. package/dist/gen/vip/v1/vip_pb.js.map +1 -0
  23. package/dist/index.d.ts +8 -1
  24. package/dist/services/accounts/accounts.js +1 -1
  25. package/dist/services/accounts/accounts.js.map +1 -1
  26. package/dist/services/accounts/accounts.schemas.d.ts +13 -13
  27. package/dist/services/accounts/accounts.schemas.d.ts.map +1 -1
  28. package/dist/services/accounts/accounts.schemas.js +11 -11
  29. package/dist/services/accounts/accounts.schemas.js.map +1 -1
  30. package/dist/services/address-book/address-book.js.map +1 -1
  31. package/dist/services/address-book/address-book.schemas.d.ts +751 -751
  32. package/dist/services/address-book/address-book.schemas.d.ts.map +1 -1
  33. package/dist/services/address-book/address-book.schemas.js +160 -159
  34. package/dist/services/address-book/address-book.schemas.js.map +1 -1
  35. package/dist/services/api-keys/api-keys.d.ts +6 -6
  36. package/dist/services/api-keys/api-keys.d.ts.map +1 -1
  37. package/dist/services/api-keys/api-keys.js.map +1 -1
  38. package/dist/services/api-keys/api-keys.schemas.d.ts +62 -62
  39. package/dist/services/api-keys/api-keys.schemas.d.ts.map +1 -1
  40. package/dist/services/api-keys/api-keys.schemas.js +34 -34
  41. package/dist/services/api-keys/api-keys.schemas.js.map +1 -1
  42. package/dist/services/auth/auth.d.ts +39 -39
  43. package/dist/services/auth/auth.d.ts.map +1 -1
  44. package/dist/services/auth/auth.js +19 -18
  45. package/dist/services/auth/auth.js.map +1 -1
  46. package/dist/services/auth/profile/profile.d.ts +2 -2
  47. package/dist/services/auth/profile/profile.d.ts.map +1 -1
  48. package/dist/services/auth/profile/profile.js +3 -2
  49. package/dist/services/auth/profile/profile.js.map +1 -1
  50. package/dist/services/auth/profile/profile.schemas.d.ts +41 -41
  51. package/dist/services/auth/profile/profile.schemas.d.ts.map +1 -1
  52. package/dist/services/auth/profile/profile.schemas.js +27 -27
  53. package/dist/services/auth/profile/profile.schemas.js.map +1 -1
  54. package/dist/services/auth/session.schemas.js +17 -17
  55. package/dist/services/auth/session.schemas.js.map +1 -1
  56. package/dist/services/balances/balances.d.ts.map +1 -1
  57. package/dist/services/balances/balances.js +3 -2
  58. package/dist/services/balances/balances.js.map +1 -1
  59. package/dist/services/balances/balances.schemas.d.ts +95 -95
  60. package/dist/services/balances/balances.schemas.d.ts.map +1 -1
  61. package/dist/services/balances/balances.schemas.js +61 -61
  62. package/dist/services/balances/balances.schemas.js.map +1 -1
  63. package/dist/services/candles/candles.d.ts.map +1 -1
  64. package/dist/services/candles/candles.js +5 -4
  65. package/dist/services/candles/candles.js.map +1 -1
  66. package/dist/services/candles/candles.schemas.d.ts +64 -64
  67. package/dist/services/candles/candles.schemas.d.ts.map +1 -1
  68. package/dist/services/candles/candles.schemas.js +47 -47
  69. package/dist/services/candles/candles.schemas.js.map +1 -1
  70. package/dist/services/chain-analytics/chain-analytics.js.map +1 -1
  71. package/dist/services/chain-analytics/chain-analytics.schemas.d.ts +68 -68
  72. package/dist/services/chain-analytics/chain-analytics.schemas.d.ts.map +1 -1
  73. package/dist/services/chain-analytics/chain-analytics.schemas.js +29 -29
  74. package/dist/services/chain-analytics/chain-analytics.schemas.js.map +1 -1
  75. package/dist/services/deposit/deposit.js.map +1 -1
  76. package/dist/services/deposit/deposit.schemas.d.ts +17 -17
  77. package/dist/services/deposit/deposit.schemas.d.ts.map +1 -1
  78. package/dist/services/deposit/deposit.schemas.js +11 -11
  79. package/dist/services/deposit/deposit.schemas.js.map +1 -1
  80. package/dist/services/fees/fees.d.ts +19 -0
  81. package/dist/services/fees/fees.d.ts.map +1 -0
  82. package/dist/services/fees/fees.js +32 -0
  83. package/dist/services/fees/fees.js.map +1 -0
  84. package/dist/services/fees/fees.schemas.d.ts +28 -0
  85. package/dist/services/fees/fees.schemas.d.ts.map +1 -0
  86. package/dist/services/fees/fees.schemas.js +25 -0
  87. package/dist/services/fees/fees.schemas.js.map +1 -0
  88. package/dist/services/fees/fees.types.d.ts +2 -0
  89. package/dist/services/fees/index.d.ts +3 -0
  90. package/dist/services/guard-signer/guard-signer.js.map +1 -1
  91. package/dist/services/guard-signer/guard-signer.schemas.d.ts +75 -75
  92. package/dist/services/guard-signer/guard-signer.schemas.d.ts.map +1 -1
  93. package/dist/services/guard-signer/guard-signer.schemas.js +42 -42
  94. package/dist/services/guard-signer/guard-signer.schemas.js.map +1 -1
  95. package/dist/services/heatmap/heatmap.d.ts.map +1 -1
  96. package/dist/services/heatmap/heatmap.js +5 -4
  97. package/dist/services/heatmap/heatmap.js.map +1 -1
  98. package/dist/services/heatmap/heatmap.schemas.d.ts +138 -138
  99. package/dist/services/heatmap/heatmap.schemas.d.ts.map +1 -1
  100. package/dist/services/heatmap/heatmap.schemas.js +47 -47
  101. package/dist/services/heatmap/heatmap.schemas.js.map +1 -1
  102. package/dist/services/internal-transfers/internal-transfers.js.map +1 -1
  103. package/dist/services/internal-transfers/internal-transfers.schemas.d.ts +53 -53
  104. package/dist/services/internal-transfers/internal-transfers.schemas.d.ts.map +1 -1
  105. package/dist/services/internal-transfers/internal-transfers.schemas.js +27 -27
  106. package/dist/services/internal-transfers/internal-transfers.schemas.js.map +1 -1
  107. package/dist/services/lifecycle/lifecycle.d.ts.map +1 -1
  108. package/dist/services/lifecycle/lifecycle.js +3 -2
  109. package/dist/services/lifecycle/lifecycle.js.map +1 -1
  110. package/dist/services/lifecycle/lifecycle.schemas.d.ts +614 -614
  111. package/dist/services/lifecycle/lifecycle.schemas.d.ts.map +1 -1
  112. package/dist/services/lifecycle/lifecycle.schemas.js +146 -146
  113. package/dist/services/lifecycle/lifecycle.schemas.js.map +1 -1
  114. package/dist/services/market-data/market-data.d.ts.map +1 -1
  115. package/dist/services/market-data/market-data.js +4 -3
  116. package/dist/services/market-data/market-data.js.map +1 -1
  117. package/dist/services/market-data/market-data.schemas.d.ts +19 -19
  118. package/dist/services/market-data/market-data.schemas.d.ts.map +1 -1
  119. package/dist/services/market-data/market-data.schemas.js +50 -50
  120. package/dist/services/market-data/market-data.schemas.js.map +1 -1
  121. package/dist/services/market-overview/market-overview.d.ts.map +1 -1
  122. package/dist/services/market-overview/market-overview.js +3 -2
  123. package/dist/services/market-overview/market-overview.js.map +1 -1
  124. package/dist/services/market-overview/market-overview.schemas.d.ts +37 -37
  125. package/dist/services/market-overview/market-overview.schemas.d.ts.map +1 -1
  126. package/dist/services/market-overview/market-overview.schemas.js +33 -33
  127. package/dist/services/market-overview/market-overview.schemas.js.map +1 -1
  128. package/dist/services/mfa/mfa.js +1 -1
  129. package/dist/services/mfa/mfa.js.map +1 -1
  130. package/dist/services/mfa/mfa.schemas.d.ts +206 -206
  131. package/dist/services/mfa/mfa.schemas.d.ts.map +1 -1
  132. package/dist/services/mfa/mfa.schemas.js +83 -83
  133. package/dist/services/mfa/mfa.schemas.js.map +1 -1
  134. package/dist/services/orderbook/orderbook.d.ts +2 -2
  135. package/dist/services/orderbook/orderbook.d.ts.map +1 -1
  136. package/dist/services/orderbook/orderbook.js +3 -2
  137. package/dist/services/orderbook/orderbook.js.map +1 -1
  138. package/dist/services/orderbook/orderbook.schemas.d.ts +23 -23
  139. package/dist/services/orderbook/orderbook.schemas.d.ts.map +1 -1
  140. package/dist/services/orderbook/orderbook.schemas.js +15 -15
  141. package/dist/services/orderbook/orderbook.schemas.js.map +1 -1
  142. package/dist/services/orders/order-errors.schemas.d.ts +18 -18
  143. package/dist/services/orders/order-errors.schemas.d.ts.map +1 -1
  144. package/dist/services/orders/order-errors.schemas.js +8 -8
  145. package/dist/services/orders/order-errors.schemas.js.map +1 -1
  146. package/dist/services/orders/orders-batch.schemas.d.ts +492 -492
  147. package/dist/services/orders/orders-batch.schemas.d.ts.map +1 -1
  148. package/dist/services/orders/orders-batch.schemas.js +117 -117
  149. package/dist/services/orders/orders-batch.schemas.js.map +1 -1
  150. package/dist/services/orders/orders-identifiers.schemas.js +5 -5
  151. package/dist/services/orders/orders-identifiers.schemas.js.map +1 -1
  152. package/dist/services/orders/orders-input.schemas.d.ts +648 -648
  153. package/dist/services/orders/orders-input.schemas.d.ts.map +1 -1
  154. package/dist/services/orders/orders-input.schemas.js +95 -95
  155. package/dist/services/orders/orders-input.schemas.js.map +1 -1
  156. package/dist/services/orders/orders-modify.schemas.d.ts +351 -351
  157. package/dist/services/orders/orders-modify.schemas.d.ts.map +1 -1
  158. package/dist/services/orders/orders-modify.schemas.js +44 -44
  159. package/dist/services/orders/orders-modify.schemas.js.map +1 -1
  160. package/dist/services/orders/orders-output.schemas.d.ts +179 -179
  161. package/dist/services/orders/orders-output.schemas.d.ts.map +1 -1
  162. package/dist/services/orders/orders-output.schemas.js +49 -49
  163. package/dist/services/orders/orders-output.schemas.js.map +1 -1
  164. package/dist/services/orders/orders-risk.schemas.d.ts +226 -226
  165. package/dist/services/orders/orders-risk.schemas.d.ts.map +1 -1
  166. package/dist/services/orders/orders-risk.schemas.js +69 -69
  167. package/dist/services/orders/orders-risk.schemas.js.map +1 -1
  168. package/dist/services/orders/orders.d.ts +6 -6
  169. package/dist/services/orders/orders.d.ts.map +1 -1
  170. package/dist/services/orders/orders.js +4 -3
  171. package/dist/services/orders/orders.js.map +1 -1
  172. package/dist/services/policies/api-key-policies/api-key-policies.d.ts +6 -6
  173. package/dist/services/policies/api-key-policies/api-key-policies.d.ts.map +1 -1
  174. package/dist/services/policies/api-key-policies/api-key-policies.js.map +1 -1
  175. package/dist/services/policies/api-key-policies/api-key-policies.schemas.d.ts +105 -105
  176. package/dist/services/policies/api-key-policies/api-key-policies.schemas.d.ts.map +1 -1
  177. package/dist/services/policies/api-key-policies/api-key-policies.schemas.js +49 -49
  178. package/dist/services/policies/api-key-policies/api-key-policies.schemas.js.map +1 -1
  179. package/dist/services/policies/shared.d.ts +5 -5
  180. package/dist/services/policies/shared.d.ts.map +1 -1
  181. package/dist/services/policies/shared.js +10 -10
  182. package/dist/services/policies/shared.js.map +1 -1
  183. package/dist/services/policies/subaccount-policies/subaccount-policies.d.ts +6 -6
  184. package/dist/services/policies/subaccount-policies/subaccount-policies.d.ts.map +1 -1
  185. package/dist/services/policies/subaccount-policies/subaccount-policies.js +3 -2
  186. package/dist/services/policies/subaccount-policies/subaccount-policies.js.map +1 -1
  187. package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.d.ts +124 -124
  188. package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.d.ts.map +1 -1
  189. package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.js +75 -75
  190. package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.js.map +1 -1
  191. package/dist/services/rate-limits/index.d.ts +4 -0
  192. package/dist/services/rate-limits/rate-limits.codecs.d.ts +6 -0
  193. package/dist/services/rate-limits/rate-limits.codecs.d.ts.map +1 -0
  194. package/dist/services/rate-limits/rate-limits.codecs.js +11 -0
  195. package/dist/services/rate-limits/rate-limits.codecs.js.map +1 -0
  196. package/dist/services/rate-limits/rate-limits.d.ts +24 -0
  197. package/dist/services/rate-limits/rate-limits.d.ts.map +1 -0
  198. package/dist/services/rate-limits/rate-limits.js +40 -0
  199. package/dist/services/rate-limits/rate-limits.js.map +1 -0
  200. package/dist/services/rate-limits/rate-limits.schemas.d.ts +58 -0
  201. package/dist/services/rate-limits/rate-limits.schemas.d.ts.map +1 -0
  202. package/dist/services/rate-limits/rate-limits.schemas.js +30 -0
  203. package/dist/services/rate-limits/rate-limits.schemas.js.map +1 -0
  204. package/dist/services/rate-limits/rate-limits.types.d.ts +3 -0
  205. package/dist/services/shared.js +11 -11
  206. package/dist/services/shared.js.map +1 -1
  207. package/dist/services/social-verification/social-verification.d.ts +3 -3
  208. package/dist/services/social-verification/social-verification.d.ts.map +1 -1
  209. package/dist/services/social-verification/social-verification.js.map +1 -1
  210. package/dist/services/social-verification/social-verification.schemas.d.ts +54 -54
  211. package/dist/services/social-verification/social-verification.schemas.d.ts.map +1 -1
  212. package/dist/services/social-verification/social-verification.schemas.js +28 -28
  213. package/dist/services/social-verification/social-verification.schemas.js.map +1 -1
  214. package/dist/services/subaccounts/subaccounts.d.ts +14 -14
  215. package/dist/services/subaccounts/subaccounts.d.ts.map +1 -1
  216. package/dist/services/subaccounts/subaccounts.js +9 -8
  217. package/dist/services/subaccounts/subaccounts.js.map +1 -1
  218. package/dist/services/subaccounts/subaccounts.schemas.d.ts +137 -137
  219. package/dist/services/subaccounts/subaccounts.schemas.d.ts.map +1 -1
  220. package/dist/services/subaccounts/subaccounts.schemas.js +72 -72
  221. package/dist/services/subaccounts/subaccounts.schemas.js.map +1 -1
  222. package/dist/services/trades/trades.d.ts +2 -2
  223. package/dist/services/trades/trades.d.ts.map +1 -1
  224. package/dist/services/trades/trades.js +3 -2
  225. package/dist/services/trades/trades.js.map +1 -1
  226. package/dist/services/trades/trades.schemas.d.ts +31 -31
  227. package/dist/services/trades/trades.schemas.d.ts.map +1 -1
  228. package/dist/services/trades/trades.schemas.js +24 -24
  229. package/dist/services/trades/trades.schemas.js.map +1 -1
  230. package/dist/services/trading-withdraws/trading-withdraws.js +1 -1
  231. package/dist/services/trading-withdraws/trading-withdraws.js.map +1 -1
  232. package/dist/services/trading-withdraws/trading-withdraws.schemas.d.ts +45 -45
  233. package/dist/services/trading-withdraws/trading-withdraws.schemas.d.ts.map +1 -1
  234. package/dist/services/trading-withdraws/trading-withdraws.schemas.js +36 -36
  235. package/dist/services/trading-withdraws/trading-withdraws.schemas.js.map +1 -1
  236. package/dist/services/transfers/transfers.d.ts.map +1 -1
  237. package/dist/services/transfers/transfers.js +3 -2
  238. package/dist/services/transfers/transfers.js.map +1 -1
  239. package/dist/services/transfers/transfers.schemas.d.ts +42 -42
  240. package/dist/services/transfers/transfers.schemas.d.ts.map +1 -1
  241. package/dist/services/transfers/transfers.schemas.js +30 -30
  242. package/dist/services/transfers/transfers.schemas.js.map +1 -1
  243. package/dist/services/triggers/trigger-child-order.schemas.js +23 -23
  244. package/dist/services/triggers/trigger-child-order.schemas.js.map +1 -1
  245. package/dist/services/triggers/trigger-input.schemas.d.ts +226 -226
  246. package/dist/services/triggers/trigger-input.schemas.d.ts.map +1 -1
  247. package/dist/services/triggers/trigger-input.schemas.js +53 -53
  248. package/dist/services/triggers/trigger-input.schemas.js.map +1 -1
  249. package/dist/services/triggers/triggers-output.schemas.d.ts +218 -218
  250. package/dist/services/triggers/triggers-output.schemas.d.ts.map +1 -1
  251. package/dist/services/triggers/triggers-output.schemas.js +152 -152
  252. package/dist/services/triggers/triggers-output.schemas.js.map +1 -1
  253. package/dist/services/triggers/triggers.d.ts.map +1 -1
  254. package/dist/services/triggers/triggers.js +4 -3
  255. package/dist/services/triggers/triggers.js.map +1 -1
  256. package/dist/services/vip/index.d.ts +3 -0
  257. package/dist/services/vip/vip.d.ts +22 -0
  258. package/dist/services/vip/vip.d.ts.map +1 -0
  259. package/dist/services/vip/vip.js +35 -0
  260. package/dist/services/vip/vip.js.map +1 -0
  261. package/dist/services/vip/vip.schemas.d.ts +90 -0
  262. package/dist/services/vip/vip.schemas.d.ts.map +1 -0
  263. package/dist/services/vip/vip.schemas.js +47 -0
  264. package/dist/services/vip/vip.schemas.js.map +1 -0
  265. package/dist/services/vip/vip.types.d.ts +2 -0
  266. package/dist/services/whiteboard/whiteboard.js.map +1 -1
  267. package/dist/services/whiteboard/whiteboard.schemas.d.ts +379 -379
  268. package/dist/services/whiteboard/whiteboard.schemas.d.ts.map +1 -1
  269. package/dist/services/whiteboard/whiteboard.schemas.js +71 -71
  270. package/dist/services/whiteboard/whiteboard.schemas.js.map +1 -1
  271. package/dist/services/zipper/zipper.js.map +1 -1
  272. package/dist/services/zipper/zipper.schemas.d.ts +1 -1
  273. package/dist/services/zipper/zipper.schemas.js +54 -54
  274. package/dist/services/zipper/zipper.schemas.js.map +1 -1
  275. package/dist/shared/account-scope.d.ts +6 -6
  276. package/dist/shared/account-scope.d.ts.map +1 -1
  277. package/dist/shared/account-scope.js +3 -3
  278. package/dist/shared/account-scope.js.map +1 -1
  279. package/dist/shared/connect-error-mapping.js +2 -2
  280. package/dist/shared/connect-error-mapping.js.map +1 -1
  281. package/dist/shared/rate-limit.schemas.d.ts +12 -12
  282. package/dist/shared/rate-limit.schemas.d.ts.map +1 -1
  283. package/dist/shared/rate-limit.schemas.js +7 -7
  284. package/dist/shared/rate-limit.schemas.js.map +1 -1
  285. package/dist/shared/schemas.js +26 -26
  286. package/dist/shared/schemas.js.map +1 -1
  287. package/dist/shared/validation.js +1 -6
  288. package/dist/shared/validation.js.map +1 -1
  289. package/dist/utils/connect-order-errors.js +2 -2
  290. package/dist/utils/connect-order-errors.js.map +1 -1
  291. package/dist/wired-services.d.ts.map +1 -1
  292. package/dist/wired-services.js +6 -0
  293. package/dist/wired-services.js.map +1 -1
  294. package/package.json +3 -3
  295. package/dist/shared/validation.d.ts +0 -14
  296. package/dist/shared/validation.d.ts.map +0 -1
@@ -1,20 +1,20 @@
1
- import { validation_d_exports } from "../../shared/validation.js";
2
1
  import { FailureReason, LimiterScope, PolicyClass, RefillModel } from "../../gen/polyester/ratelimit/v1/types_pb.js";
3
2
  import { BatchReplaceAdmissionStatus, BatchReplaceItemAdmissionStatus, ErrorCode, FeeAsset, LimitFok, LimitGtc, LimitIoc, MarketIoc, RiskLimitGtc, RiskMarketIoc, SelfTradePreventionMode, Side } from "../../gen/orders/v1/orders_pb.js";
4
3
  import { BatchReplacePhase, OrderStatus } from "../../gen/orders/v1/orders_read_pb.js";
5
4
  import { AccountScopeInputEntries } from "../../shared/account-scope.js";
6
5
  import { SdkScales } from "../../shared/decimal-surface.js";
7
6
  import { createRequiredRiskPolicyInputSchema } from "./orders-risk.schemas.js";
7
+ import * as v from "valibot";
8
8
  //#region src/services/orders/orders-batch.schemas.d.ts
9
- declare const CancelAllAfterInputSchema: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StrictObjectSchema<{
10
- readonly timeoutSec: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.NumberSchema<undefined>, validation_d_exports.IntegerAction<number, undefined>, validation_d_exports.CheckAction<number, "timeoutSec must be 0 to disable or between 10 and 120 seconds to arm">]>;
11
- readonly symbol: validation_d_exports.OptionalSchema<validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MaxLengthAction<string, 32, undefined>]>, undefined>;
12
- readonly side: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.PicklistSchema<["buy", "sell"], undefined>, undefined>, validation_d_exports.TransformAction<"buy" | "sell" | undefined, Side.BUY | Side.SELL | undefined>]>;
13
- readonly requestId: validation_d_exports.OptionalSchema<validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>, validation_d_exports.MaxLengthAction<string, 64, undefined>, validation_d_exports.RegexAction<string, "requestId has an invalid format">]>, undefined>;
14
- readonly account: validation_d_exports.OptionalSchema<validation_d_exports.UnionSchema<[validation_d_exports.PicklistSchema<["active", "main"], undefined>, validation_d_exports.StrictObjectSchema<{
15
- readonly subaccountId: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
9
+ declare const CancelAllAfterInputSchema: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
10
+ readonly timeoutSec: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.CheckAction<number, "timeoutSec must be 0 to disable or between 10 and 120 seconds to arm">]>;
11
+ readonly symbol: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 32, undefined>]>, undefined>;
12
+ readonly side: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<["buy", "sell"], undefined>, undefined>, v.TransformAction<"buy" | "sell" | undefined, Side.BUY | Side.SELL | undefined>]>;
13
+ readonly requestId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 64, undefined>, v.RegexAction<string, "requestId has an invalid format">]>, undefined>;
14
+ readonly account: v.OptionalSchema<v.UnionSchema<[v.PicklistSchema<["active", "main"], undefined>, v.StrictObjectSchema<{
15
+ readonly subaccountId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
16
16
  }, undefined>], undefined>, undefined>;
17
- }, undefined>, validation_d_exports.TransformAction<{
17
+ }, undefined>, v.TransformAction<{
18
18
  timeoutSec: number;
19
19
  symbol?: string | undefined;
20
20
  side?: Side.BUY | Side.SELL | undefined;
@@ -29,13 +29,13 @@ declare const CancelAllAfterInputSchema: validation_d_exports.SchemaWithPipe<rea
29
29
  side?: Side.BUY | Side.SELL | undefined;
30
30
  requestId?: string | undefined;
31
31
  }>]>;
32
- type CancelAllAfterInput = validation_d_exports.InferInput<typeof CancelAllAfterInputSchema>;
33
- declare const CancelAllAfterResultSchema: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.ObjectSchema<{
34
- readonly status: validation_d_exports.PicklistSchema<["armed", "disabled"], undefined>;
35
- readonly effectiveTimeoutSec: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.NumberSchema<undefined>, validation_d_exports.IntegerAction<number, undefined>, validation_d_exports.MinValueAction<number, 0, undefined>]>;
36
- readonly expiresAtTsNs: validation_d_exports.BigintSchema<undefined>;
37
- readonly tsNs: validation_d_exports.BigintSchema<undefined>;
38
- }, undefined>, validation_d_exports.TransformAction<{
32
+ type CancelAllAfterInput = v.InferInput<typeof CancelAllAfterInputSchema>;
33
+ declare const CancelAllAfterResultSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
34
+ readonly status: v.PicklistSchema<["armed", "disabled"], undefined>;
35
+ readonly effectiveTimeoutSec: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
36
+ readonly expiresAtTsNs: v.BigintSchema<undefined>;
37
+ readonly tsNs: v.BigintSchema<undefined>;
38
+ }, undefined>, v.TransformAction<{
39
39
  status: "disabled" | "armed";
40
40
  effectiveTimeoutSec: number;
41
41
  expiresAtTsNs: bigint;
@@ -48,27 +48,27 @@ declare const CancelAllAfterResultSchema: validation_d_exports.SchemaWithPipe<re
48
48
  status: "disabled" | "armed";
49
49
  effectiveTimeoutSec: number;
50
50
  }>]>;
51
- type CancelAllAfterResult = validation_d_exports.InferOutput<typeof CancelAllAfterResultSchema>;
52
- declare function createBatchCreateOrdersInputSchema(scales: SdkScales): validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StrictObjectSchema<{
53
- readonly requestId: validation_d_exports.OptionalSchema<validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>, validation_d_exports.MaxLengthAction<string, 64, undefined>, validation_d_exports.RegexAction<string, "requestId has an invalid format">]>, undefined>;
54
- readonly items: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.ArraySchema<validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.UnionSchema<[validation_d_exports.StrictObjectSchema<{
55
- readonly qty: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
56
- readonly maxQuoteDebit: validation_d_exports.OptionalSchema<validation_d_exports.NeverSchema<undefined>, undefined>;
57
- readonly symbol: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
58
- readonly side: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.PicklistSchema<["buy", "sell"], undefined>, validation_d_exports.TransformAction<"buy" | "sell", Side.BUY | Side.SELL>]>;
59
- readonly execution: validation_d_exports.VariantSchema<"type", [validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StrictObjectSchema<{
60
- readonly type: validation_d_exports.LiteralSchema<"market_ioc", undefined>;
61
- readonly maxSlippage: validation_d_exports.OptionalSchema<validation_d_exports.UnionSchema<[validation_d_exports.StrictObjectSchema<{
62
- readonly kind: validation_d_exports.LiteralSchema<"slippage", undefined>;
63
- readonly slippage: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
64
- }, undefined>, validation_d_exports.StrictObjectSchema<{
65
- readonly kind: validation_d_exports.LiteralSchema<"bps", undefined>;
66
- readonly bps: validation_d_exports.UnionSchema<[validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>, validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.NumberSchema<undefined>, validation_d_exports.GtValueAction<number, 0, undefined>]>], undefined>;
67
- }, undefined>, validation_d_exports.StrictObjectSchema<{
68
- readonly kind: validation_d_exports.LiteralSchema<"none", undefined>;
51
+ type CancelAllAfterResult = v.InferOutput<typeof CancelAllAfterResultSchema>;
52
+ declare function createBatchCreateOrdersInputSchema(scales: SdkScales): v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
53
+ readonly requestId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 64, undefined>, v.RegexAction<string, "requestId has an invalid format">]>, undefined>;
54
+ readonly items: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StrictObjectSchema<{
55
+ readonly qty: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
56
+ readonly maxQuoteDebit: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
57
+ readonly symbol: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
58
+ readonly side: v.SchemaWithPipe<readonly [v.PicklistSchema<["buy", "sell"], undefined>, v.TransformAction<"buy" | "sell", Side.BUY | Side.SELL>]>;
59
+ readonly execution: v.VariantSchema<"type", [v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
60
+ readonly type: v.LiteralSchema<"market_ioc", undefined>;
61
+ readonly maxSlippage: v.OptionalSchema<v.UnionSchema<[v.StrictObjectSchema<{
62
+ readonly kind: v.LiteralSchema<"slippage", undefined>;
63
+ readonly slippage: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
64
+ }, undefined>, v.StrictObjectSchema<{
65
+ readonly kind: v.LiteralSchema<"bps", undefined>;
66
+ readonly bps: v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.GtValueAction<number, 0, undefined>]>], undefined>;
67
+ }, undefined>, v.StrictObjectSchema<{
68
+ readonly kind: v.LiteralSchema<"none", undefined>;
69
69
  }, undefined>], undefined>, undefined>;
70
- readonly clientRefPrice: validation_d_exports.OptionalSchema<validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>, undefined>;
71
- }, undefined>, validation_d_exports.TransformAction<{
70
+ readonly clientRefPrice: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
71
+ }, undefined>, v.TransformAction<{
72
72
  type: "market_ioc";
73
73
  maxSlippage?: {
74
74
  kind: "bps";
@@ -83,49 +83,49 @@ declare function createBatchCreateOrdersInputSchema(scales: SdkScales): validati
83
83
  }, {
84
84
  case: "marketIoc";
85
85
  value: MarketIoc;
86
- }>]>, validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StrictObjectSchema<{
87
- readonly type: validation_d_exports.LiteralSchema<"limit_gtc", undefined>;
88
- readonly price: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
89
- readonly postOnly: validation_d_exports.OptionalSchema<validation_d_exports.BooleanSchema<undefined>, false>;
90
- }, undefined>, validation_d_exports.TransformAction<{
86
+ }>]>, v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
87
+ readonly type: v.LiteralSchema<"limit_gtc", undefined>;
88
+ readonly price: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
89
+ readonly postOnly: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
90
+ }, undefined>, v.TransformAction<{
91
91
  type: "limit_gtc";
92
92
  price: string;
93
93
  postOnly: boolean;
94
94
  }, {
95
95
  case: "limitGtc";
96
96
  value: LimitGtc;
97
- }>]>, validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StrictObjectSchema<{
98
- readonly type: validation_d_exports.LiteralSchema<"limit_ioc", undefined>;
99
- readonly price: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
100
- }, undefined>, validation_d_exports.TransformAction<{
97
+ }>]>, v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
98
+ readonly type: v.LiteralSchema<"limit_ioc", undefined>;
99
+ readonly price: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
100
+ }, undefined>, v.TransformAction<{
101
101
  type: "limit_ioc";
102
102
  price: string;
103
103
  }, {
104
104
  case: "limitIoc";
105
105
  value: LimitIoc;
106
- }>]>, validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StrictObjectSchema<{
107
- readonly type: validation_d_exports.LiteralSchema<"limit_fok", undefined>;
108
- readonly price: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
109
- }, undefined>, validation_d_exports.TransformAction<{
106
+ }>]>, v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
107
+ readonly type: v.LiteralSchema<"limit_fok", undefined>;
108
+ readonly price: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
109
+ }, undefined>, v.TransformAction<{
110
110
  type: "limit_fok";
111
111
  price: string;
112
112
  }, {
113
113
  case: "limitFok";
114
114
  value: LimitFok;
115
115
  }>]>], undefined>;
116
- readonly clientOrderId: validation_d_exports.OptionalSchema<validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MaxLengthAction<string, 36, undefined>, validation_d_exports.RegexAction<string, "clientOrderId has an invalid format">]>, undefined>;
117
- readonly feeAsset: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.PicklistSchema<readonly ["quote", "base"], undefined>, undefined>, validation_d_exports.TransformAction<"quote" | "base" | undefined, FeeAsset.QUOTE | FeeAsset.BASE | undefined>]>;
118
- readonly selfTradePreventionMode: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.PicklistSchema<readonly ["expire_taker", "expire_maker", "expire_both"], undefined>, undefined>, validation_d_exports.TransformAction<"expire_taker" | "expire_maker" | "expire_both" | undefined, SelfTradePreventionMode.EXPIRE_MAKER | SelfTradePreventionMode.EXPIRE_TAKER | SelfTradePreventionMode.EXPIRE_BOTH | undefined>]>;
119
- readonly risk: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.UnionSchema<[validation_d_exports.StrictObjectSchema<{
120
- readonly takeProfit: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StrictObjectSchema<{
121
- readonly triggerPrice: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
122
- readonly execution: validation_d_exports.VariantSchema<"type", [validation_d_exports.StrictObjectSchema<{
123
- readonly type: validation_d_exports.LiteralSchema<"market_ioc", undefined>;
124
- }, undefined>, validation_d_exports.StrictObjectSchema<{
125
- readonly type: validation_d_exports.LiteralSchema<"limit_gtc", undefined>;
126
- readonly price: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
116
+ readonly clientOrderId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 36, undefined>, v.RegexAction<string, "clientOrderId has an invalid format">]>, undefined>;
117
+ readonly feeAsset: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["quote", "base"], undefined>, undefined>, v.TransformAction<"quote" | "base" | undefined, FeeAsset.QUOTE | FeeAsset.BASE | undefined>]>;
118
+ readonly selfTradePreventionMode: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["expire_taker", "expire_maker", "expire_both"], undefined>, undefined>, v.TransformAction<"expire_taker" | "expire_maker" | "expire_both" | undefined, SelfTradePreventionMode.EXPIRE_MAKER | SelfTradePreventionMode.EXPIRE_TAKER | SelfTradePreventionMode.EXPIRE_BOTH | undefined>]>;
119
+ readonly risk: v.SchemaWithPipe<readonly [v.OptionalSchema<v.UnionSchema<[v.StrictObjectSchema<{
120
+ readonly takeProfit: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
121
+ readonly triggerPrice: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
122
+ readonly execution: v.VariantSchema<"type", [v.StrictObjectSchema<{
123
+ readonly type: v.LiteralSchema<"market_ioc", undefined>;
124
+ }, undefined>, v.StrictObjectSchema<{
125
+ readonly type: v.LiteralSchema<"limit_gtc", undefined>;
126
+ readonly price: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
127
127
  }, undefined>], undefined>;
128
- }, undefined>, validation_d_exports.TransformAction<{
128
+ }, undefined>, v.TransformAction<{
129
129
  triggerPrice: string;
130
130
  execution: {
131
131
  type: "market_ioc";
@@ -145,15 +145,15 @@ declare function createBatchCreateOrdersInputSchema(scales: SdkScales): validati
145
145
  };
146
146
  };
147
147
  }>]>;
148
- readonly stopLoss: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StrictObjectSchema<{
149
- readonly triggerPrice: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
150
- readonly execution: validation_d_exports.VariantSchema<"type", [validation_d_exports.StrictObjectSchema<{
151
- readonly type: validation_d_exports.LiteralSchema<"market_ioc", undefined>;
152
- }, undefined>, validation_d_exports.StrictObjectSchema<{
153
- readonly type: validation_d_exports.LiteralSchema<"limit_gtc", undefined>;
154
- readonly price: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
148
+ readonly stopLoss: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
149
+ readonly triggerPrice: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
150
+ readonly execution: v.VariantSchema<"type", [v.StrictObjectSchema<{
151
+ readonly type: v.LiteralSchema<"market_ioc", undefined>;
152
+ }, undefined>, v.StrictObjectSchema<{
153
+ readonly type: v.LiteralSchema<"limit_gtc", undefined>;
154
+ readonly price: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
155
155
  }, undefined>], undefined>;
156
- }, undefined>, validation_d_exports.TransformAction<{
156
+ }, undefined>, v.TransformAction<{
157
157
  triggerPrice: string;
158
158
  execution: {
159
159
  type: "market_ioc";
@@ -173,18 +173,18 @@ declare function createBatchCreateOrdersInputSchema(scales: SdkScales): validati
173
173
  };
174
174
  };
175
175
  }>]>;
176
- readonly trailingStop: validation_d_exports.OptionalSchema<validation_d_exports.NeverSchema<undefined>, undefined>;
177
- readonly oco: validation_d_exports.OptionalSchema<validation_d_exports.BooleanSchema<undefined>, undefined>;
178
- }, undefined>, validation_d_exports.StrictObjectSchema<{
179
- readonly takeProfit: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StrictObjectSchema<{
180
- readonly triggerPrice: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
181
- readonly execution: validation_d_exports.VariantSchema<"type", [validation_d_exports.StrictObjectSchema<{
182
- readonly type: validation_d_exports.LiteralSchema<"market_ioc", undefined>;
183
- }, undefined>, validation_d_exports.StrictObjectSchema<{
184
- readonly type: validation_d_exports.LiteralSchema<"limit_gtc", undefined>;
185
- readonly price: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
176
+ readonly trailingStop: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
177
+ readonly oco: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
178
+ }, undefined>, v.StrictObjectSchema<{
179
+ readonly takeProfit: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
180
+ readonly triggerPrice: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
181
+ readonly execution: v.VariantSchema<"type", [v.StrictObjectSchema<{
182
+ readonly type: v.LiteralSchema<"market_ioc", undefined>;
183
+ }, undefined>, v.StrictObjectSchema<{
184
+ readonly type: v.LiteralSchema<"limit_gtc", undefined>;
185
+ readonly price: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
186
186
  }, undefined>], undefined>;
187
- }, undefined>, validation_d_exports.TransformAction<{
187
+ }, undefined>, v.TransformAction<{
188
188
  triggerPrice: string;
189
189
  execution: {
190
190
  type: "market_ioc";
@@ -204,28 +204,28 @@ declare function createBatchCreateOrdersInputSchema(scales: SdkScales): validati
204
204
  };
205
205
  };
206
206
  }>]>;
207
- readonly stopLoss: validation_d_exports.OptionalSchema<validation_d_exports.NeverSchema<undefined>, undefined>;
208
- readonly trailingStop: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StrictObjectSchema<{
209
- readonly trailingDistance: validation_d_exports.UnionSchema<[validation_d_exports.StrictObjectSchema<{
210
- readonly kind: validation_d_exports.LiteralSchema<"distance", undefined>;
211
- readonly distance: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
212
- }, undefined>, validation_d_exports.StrictObjectSchema<{
213
- readonly kind: validation_d_exports.LiteralSchema<"bps", undefined>;
214
- readonly bps: validation_d_exports.UnionSchema<[validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>, validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.NumberSchema<undefined>, validation_d_exports.GtValueAction<number, 0, undefined>]>], undefined>;
215
- }, undefined>, validation_d_exports.StrictObjectSchema<{
216
- readonly kind: validation_d_exports.LiteralSchema<"none", undefined>;
207
+ readonly stopLoss: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
208
+ readonly trailingStop: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
209
+ readonly trailingDistance: v.UnionSchema<[v.StrictObjectSchema<{
210
+ readonly kind: v.LiteralSchema<"distance", undefined>;
211
+ readonly distance: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
212
+ }, undefined>, v.StrictObjectSchema<{
213
+ readonly kind: v.LiteralSchema<"bps", undefined>;
214
+ readonly bps: v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.GtValueAction<number, 0, undefined>]>], undefined>;
215
+ }, undefined>, v.StrictObjectSchema<{
216
+ readonly kind: v.LiteralSchema<"none", undefined>;
217
217
  }, undefined>], undefined>;
218
- readonly maxSlippage: validation_d_exports.OptionalSchema<validation_d_exports.UnionSchema<[validation_d_exports.StrictObjectSchema<{
219
- readonly kind: validation_d_exports.LiteralSchema<"slippage", undefined>;
220
- readonly slippage: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
221
- }, undefined>, validation_d_exports.StrictObjectSchema<{
222
- readonly kind: validation_d_exports.LiteralSchema<"bps", undefined>;
223
- readonly bps: validation_d_exports.UnionSchema<[validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>, validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.NumberSchema<undefined>, validation_d_exports.GtValueAction<number, 0, undefined>]>], undefined>;
224
- }, undefined>, validation_d_exports.StrictObjectSchema<{
225
- readonly kind: validation_d_exports.LiteralSchema<"none", undefined>;
218
+ readonly maxSlippage: v.OptionalSchema<v.UnionSchema<[v.StrictObjectSchema<{
219
+ readonly kind: v.LiteralSchema<"slippage", undefined>;
220
+ readonly slippage: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
221
+ }, undefined>, v.StrictObjectSchema<{
222
+ readonly kind: v.LiteralSchema<"bps", undefined>;
223
+ readonly bps: v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.GtValueAction<number, 0, undefined>]>], undefined>;
224
+ }, undefined>, v.StrictObjectSchema<{
225
+ readonly kind: v.LiteralSchema<"none", undefined>;
226
226
  }, undefined>], undefined>, undefined>;
227
- readonly activationPrice: validation_d_exports.OptionalSchema<validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>, undefined>;
228
- }, undefined>, validation_d_exports.TransformAction<{
227
+ readonly activationPrice: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
228
+ }, undefined>, v.TransformAction<{
229
229
  trailingDistance: {
230
230
  kind: "bps";
231
231
  bps: string | number;
@@ -268,17 +268,17 @@ declare function createBatchCreateOrdersInputSchema(scales: SdkScales): validati
268
268
  };
269
269
  activationPriceTicks: bigint;
270
270
  }>]>;
271
- readonly oco: validation_d_exports.OptionalSchema<validation_d_exports.BooleanSchema<undefined>, undefined>;
272
- }, undefined>, validation_d_exports.StrictObjectSchema<{
273
- readonly takeProfit: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StrictObjectSchema<{
274
- readonly triggerPrice: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
275
- readonly execution: validation_d_exports.VariantSchema<"type", [validation_d_exports.StrictObjectSchema<{
276
- readonly type: validation_d_exports.LiteralSchema<"market_ioc", undefined>;
277
- }, undefined>, validation_d_exports.StrictObjectSchema<{
278
- readonly type: validation_d_exports.LiteralSchema<"limit_gtc", undefined>;
279
- readonly price: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
271
+ readonly oco: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
272
+ }, undefined>, v.StrictObjectSchema<{
273
+ readonly takeProfit: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
274
+ readonly triggerPrice: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
275
+ readonly execution: v.VariantSchema<"type", [v.StrictObjectSchema<{
276
+ readonly type: v.LiteralSchema<"market_ioc", undefined>;
277
+ }, undefined>, v.StrictObjectSchema<{
278
+ readonly type: v.LiteralSchema<"limit_gtc", undefined>;
279
+ readonly price: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
280
280
  }, undefined>], undefined>;
281
- }, undefined>, validation_d_exports.TransformAction<{
281
+ }, undefined>, v.TransformAction<{
282
282
  triggerPrice: string;
283
283
  execution: {
284
284
  type: "market_ioc";
@@ -298,20 +298,20 @@ declare function createBatchCreateOrdersInputSchema(scales: SdkScales): validati
298
298
  };
299
299
  };
300
300
  }>]>;
301
- readonly stopLoss: validation_d_exports.OptionalSchema<validation_d_exports.NeverSchema<undefined>, undefined>;
302
- readonly trailingStop: validation_d_exports.OptionalSchema<validation_d_exports.NeverSchema<undefined>, undefined>;
303
- readonly oco: validation_d_exports.OptionalSchema<validation_d_exports.BooleanSchema<undefined>, undefined>;
304
- }, undefined>, validation_d_exports.StrictObjectSchema<{
305
- readonly takeProfit: validation_d_exports.OptionalSchema<validation_d_exports.NeverSchema<undefined>, undefined>;
306
- readonly stopLoss: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StrictObjectSchema<{
307
- readonly triggerPrice: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
308
- readonly execution: validation_d_exports.VariantSchema<"type", [validation_d_exports.StrictObjectSchema<{
309
- readonly type: validation_d_exports.LiteralSchema<"market_ioc", undefined>;
310
- }, undefined>, validation_d_exports.StrictObjectSchema<{
311
- readonly type: validation_d_exports.LiteralSchema<"limit_gtc", undefined>;
312
- readonly price: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
301
+ readonly stopLoss: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
302
+ readonly trailingStop: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
303
+ readonly oco: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
304
+ }, undefined>, v.StrictObjectSchema<{
305
+ readonly takeProfit: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
306
+ readonly stopLoss: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
307
+ readonly triggerPrice: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
308
+ readonly execution: v.VariantSchema<"type", [v.StrictObjectSchema<{
309
+ readonly type: v.LiteralSchema<"market_ioc", undefined>;
310
+ }, undefined>, v.StrictObjectSchema<{
311
+ readonly type: v.LiteralSchema<"limit_gtc", undefined>;
312
+ readonly price: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
313
313
  }, undefined>], undefined>;
314
- }, undefined>, validation_d_exports.TransformAction<{
314
+ }, undefined>, v.TransformAction<{
315
315
  triggerPrice: string;
316
316
  execution: {
317
317
  type: "market_ioc";
@@ -331,32 +331,32 @@ declare function createBatchCreateOrdersInputSchema(scales: SdkScales): validati
331
331
  };
332
332
  };
333
333
  }>]>;
334
- readonly trailingStop: validation_d_exports.OptionalSchema<validation_d_exports.NeverSchema<undefined>, undefined>;
335
- readonly oco: validation_d_exports.OptionalSchema<validation_d_exports.BooleanSchema<undefined>, undefined>;
336
- }, undefined>, validation_d_exports.StrictObjectSchema<{
337
- readonly takeProfit: validation_d_exports.OptionalSchema<validation_d_exports.NeverSchema<undefined>, undefined>;
338
- readonly stopLoss: validation_d_exports.OptionalSchema<validation_d_exports.NeverSchema<undefined>, undefined>;
339
- readonly trailingStop: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StrictObjectSchema<{
340
- readonly trailingDistance: validation_d_exports.UnionSchema<[validation_d_exports.StrictObjectSchema<{
341
- readonly kind: validation_d_exports.LiteralSchema<"distance", undefined>;
342
- readonly distance: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
343
- }, undefined>, validation_d_exports.StrictObjectSchema<{
344
- readonly kind: validation_d_exports.LiteralSchema<"bps", undefined>;
345
- readonly bps: validation_d_exports.UnionSchema<[validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>, validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.NumberSchema<undefined>, validation_d_exports.GtValueAction<number, 0, undefined>]>], undefined>;
346
- }, undefined>, validation_d_exports.StrictObjectSchema<{
347
- readonly kind: validation_d_exports.LiteralSchema<"none", undefined>;
334
+ readonly trailingStop: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
335
+ readonly oco: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
336
+ }, undefined>, v.StrictObjectSchema<{
337
+ readonly takeProfit: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
338
+ readonly stopLoss: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
339
+ readonly trailingStop: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
340
+ readonly trailingDistance: v.UnionSchema<[v.StrictObjectSchema<{
341
+ readonly kind: v.LiteralSchema<"distance", undefined>;
342
+ readonly distance: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
343
+ }, undefined>, v.StrictObjectSchema<{
344
+ readonly kind: v.LiteralSchema<"bps", undefined>;
345
+ readonly bps: v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.GtValueAction<number, 0, undefined>]>], undefined>;
346
+ }, undefined>, v.StrictObjectSchema<{
347
+ readonly kind: v.LiteralSchema<"none", undefined>;
348
348
  }, undefined>], undefined>;
349
- readonly maxSlippage: validation_d_exports.OptionalSchema<validation_d_exports.UnionSchema<[validation_d_exports.StrictObjectSchema<{
350
- readonly kind: validation_d_exports.LiteralSchema<"slippage", undefined>;
351
- readonly slippage: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
352
- }, undefined>, validation_d_exports.StrictObjectSchema<{
353
- readonly kind: validation_d_exports.LiteralSchema<"bps", undefined>;
354
- readonly bps: validation_d_exports.UnionSchema<[validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>, validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.NumberSchema<undefined>, validation_d_exports.GtValueAction<number, 0, undefined>]>], undefined>;
355
- }, undefined>, validation_d_exports.StrictObjectSchema<{
356
- readonly kind: validation_d_exports.LiteralSchema<"none", undefined>;
349
+ readonly maxSlippage: v.OptionalSchema<v.UnionSchema<[v.StrictObjectSchema<{
350
+ readonly kind: v.LiteralSchema<"slippage", undefined>;
351
+ readonly slippage: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
352
+ }, undefined>, v.StrictObjectSchema<{
353
+ readonly kind: v.LiteralSchema<"bps", undefined>;
354
+ readonly bps: v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.GtValueAction<number, 0, undefined>]>], undefined>;
355
+ }, undefined>, v.StrictObjectSchema<{
356
+ readonly kind: v.LiteralSchema<"none", undefined>;
357
357
  }, undefined>], undefined>, undefined>;
358
- readonly activationPrice: validation_d_exports.OptionalSchema<validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>, undefined>;
359
- }, undefined>, validation_d_exports.TransformAction<{
358
+ readonly activationPrice: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
359
+ }, undefined>, v.TransformAction<{
360
360
  trailingDistance: {
361
361
  kind: "bps";
362
362
  bps: string | number;
@@ -399,8 +399,8 @@ declare function createBatchCreateOrdersInputSchema(scales: SdkScales): validati
399
399
  };
400
400
  activationPriceTicks: bigint;
401
401
  }>]>;
402
- readonly oco: validation_d_exports.OptionalSchema<validation_d_exports.BooleanSchema<undefined>, undefined>;
403
- }, undefined>], undefined>, undefined>, validation_d_exports.TransformAction<{
402
+ readonly oco: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
403
+ }, undefined>], undefined>, undefined>, v.TransformAction<{
404
404
  takeProfit: {
405
405
  triggerPriceTicks: bigint;
406
406
  child: {
@@ -582,24 +582,24 @@ declare function createBatchCreateOrdersInputSchema(scales: SdkScales): validati
582
582
  };
583
583
  oco: boolean;
584
584
  } | undefined>]>;
585
- }, undefined>, validation_d_exports.StrictObjectSchema<{
586
- readonly qty: validation_d_exports.OptionalSchema<validation_d_exports.NeverSchema<undefined>, undefined>;
587
- readonly maxQuoteDebit: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
588
- readonly symbol: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
589
- readonly side: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.PicklistSchema<["buy", "sell"], undefined>, validation_d_exports.TransformAction<"buy" | "sell", Side.BUY | Side.SELL>]>;
590
- readonly execution: validation_d_exports.VariantSchema<"type", [validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StrictObjectSchema<{
591
- readonly type: validation_d_exports.LiteralSchema<"market_ioc", undefined>;
592
- readonly maxSlippage: validation_d_exports.OptionalSchema<validation_d_exports.UnionSchema<[validation_d_exports.StrictObjectSchema<{
593
- readonly kind: validation_d_exports.LiteralSchema<"slippage", undefined>;
594
- readonly slippage: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
595
- }, undefined>, validation_d_exports.StrictObjectSchema<{
596
- readonly kind: validation_d_exports.LiteralSchema<"bps", undefined>;
597
- readonly bps: validation_d_exports.UnionSchema<[validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>, validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.NumberSchema<undefined>, validation_d_exports.GtValueAction<number, 0, undefined>]>], undefined>;
598
- }, undefined>, validation_d_exports.StrictObjectSchema<{
599
- readonly kind: validation_d_exports.LiteralSchema<"none", undefined>;
585
+ }, undefined>, v.StrictObjectSchema<{
586
+ readonly qty: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
587
+ readonly maxQuoteDebit: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
588
+ readonly symbol: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
589
+ readonly side: v.SchemaWithPipe<readonly [v.PicklistSchema<["buy", "sell"], undefined>, v.TransformAction<"buy" | "sell", Side.BUY | Side.SELL>]>;
590
+ readonly execution: v.VariantSchema<"type", [v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
591
+ readonly type: v.LiteralSchema<"market_ioc", undefined>;
592
+ readonly maxSlippage: v.OptionalSchema<v.UnionSchema<[v.StrictObjectSchema<{
593
+ readonly kind: v.LiteralSchema<"slippage", undefined>;
594
+ readonly slippage: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
595
+ }, undefined>, v.StrictObjectSchema<{
596
+ readonly kind: v.LiteralSchema<"bps", undefined>;
597
+ readonly bps: v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.GtValueAction<number, 0, undefined>]>], undefined>;
598
+ }, undefined>, v.StrictObjectSchema<{
599
+ readonly kind: v.LiteralSchema<"none", undefined>;
600
600
  }, undefined>], undefined>, undefined>;
601
- readonly clientRefPrice: validation_d_exports.OptionalSchema<validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>, undefined>;
602
- }, undefined>, validation_d_exports.TransformAction<{
601
+ readonly clientRefPrice: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
602
+ }, undefined>, v.TransformAction<{
603
603
  type: "market_ioc";
604
604
  maxSlippage?: {
605
605
  kind: "bps";
@@ -614,49 +614,49 @@ declare function createBatchCreateOrdersInputSchema(scales: SdkScales): validati
614
614
  }, {
615
615
  case: "marketIoc";
616
616
  value: MarketIoc;
617
- }>]>, validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StrictObjectSchema<{
618
- readonly type: validation_d_exports.LiteralSchema<"limit_gtc", undefined>;
619
- readonly price: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
620
- readonly postOnly: validation_d_exports.OptionalSchema<validation_d_exports.BooleanSchema<undefined>, false>;
621
- }, undefined>, validation_d_exports.TransformAction<{
617
+ }>]>, v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
618
+ readonly type: v.LiteralSchema<"limit_gtc", undefined>;
619
+ readonly price: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
620
+ readonly postOnly: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
621
+ }, undefined>, v.TransformAction<{
622
622
  type: "limit_gtc";
623
623
  price: string;
624
624
  postOnly: boolean;
625
625
  }, {
626
626
  case: "limitGtc";
627
627
  value: LimitGtc;
628
- }>]>, validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StrictObjectSchema<{
629
- readonly type: validation_d_exports.LiteralSchema<"limit_ioc", undefined>;
630
- readonly price: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
631
- }, undefined>, validation_d_exports.TransformAction<{
628
+ }>]>, v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
629
+ readonly type: v.LiteralSchema<"limit_ioc", undefined>;
630
+ readonly price: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
631
+ }, undefined>, v.TransformAction<{
632
632
  type: "limit_ioc";
633
633
  price: string;
634
634
  }, {
635
635
  case: "limitIoc";
636
636
  value: LimitIoc;
637
- }>]>, validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StrictObjectSchema<{
638
- readonly type: validation_d_exports.LiteralSchema<"limit_fok", undefined>;
639
- readonly price: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
640
- }, undefined>, validation_d_exports.TransformAction<{
637
+ }>]>, v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
638
+ readonly type: v.LiteralSchema<"limit_fok", undefined>;
639
+ readonly price: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
640
+ }, undefined>, v.TransformAction<{
641
641
  type: "limit_fok";
642
642
  price: string;
643
643
  }, {
644
644
  case: "limitFok";
645
645
  value: LimitFok;
646
646
  }>]>], undefined>;
647
- readonly clientOrderId: validation_d_exports.OptionalSchema<validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MaxLengthAction<string, 36, undefined>, validation_d_exports.RegexAction<string, "clientOrderId has an invalid format">]>, undefined>;
648
- readonly feeAsset: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.PicklistSchema<readonly ["quote", "base"], undefined>, undefined>, validation_d_exports.TransformAction<"quote" | "base" | undefined, FeeAsset.QUOTE | FeeAsset.BASE | undefined>]>;
649
- readonly selfTradePreventionMode: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.PicklistSchema<readonly ["expire_taker", "expire_maker", "expire_both"], undefined>, undefined>, validation_d_exports.TransformAction<"expire_taker" | "expire_maker" | "expire_both" | undefined, SelfTradePreventionMode.EXPIRE_MAKER | SelfTradePreventionMode.EXPIRE_TAKER | SelfTradePreventionMode.EXPIRE_BOTH | undefined>]>;
650
- readonly risk: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.UnionSchema<[validation_d_exports.StrictObjectSchema<{
651
- readonly takeProfit: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StrictObjectSchema<{
652
- readonly triggerPrice: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
653
- readonly execution: validation_d_exports.VariantSchema<"type", [validation_d_exports.StrictObjectSchema<{
654
- readonly type: validation_d_exports.LiteralSchema<"market_ioc", undefined>;
655
- }, undefined>, validation_d_exports.StrictObjectSchema<{
656
- readonly type: validation_d_exports.LiteralSchema<"limit_gtc", undefined>;
657
- readonly price: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
647
+ readonly clientOrderId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 36, undefined>, v.RegexAction<string, "clientOrderId has an invalid format">]>, undefined>;
648
+ readonly feeAsset: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["quote", "base"], undefined>, undefined>, v.TransformAction<"quote" | "base" | undefined, FeeAsset.QUOTE | FeeAsset.BASE | undefined>]>;
649
+ readonly selfTradePreventionMode: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<readonly ["expire_taker", "expire_maker", "expire_both"], undefined>, undefined>, v.TransformAction<"expire_taker" | "expire_maker" | "expire_both" | undefined, SelfTradePreventionMode.EXPIRE_MAKER | SelfTradePreventionMode.EXPIRE_TAKER | SelfTradePreventionMode.EXPIRE_BOTH | undefined>]>;
650
+ readonly risk: v.SchemaWithPipe<readonly [v.OptionalSchema<v.UnionSchema<[v.StrictObjectSchema<{
651
+ readonly takeProfit: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
652
+ readonly triggerPrice: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
653
+ readonly execution: v.VariantSchema<"type", [v.StrictObjectSchema<{
654
+ readonly type: v.LiteralSchema<"market_ioc", undefined>;
655
+ }, undefined>, v.StrictObjectSchema<{
656
+ readonly type: v.LiteralSchema<"limit_gtc", undefined>;
657
+ readonly price: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
658
658
  }, undefined>], undefined>;
659
- }, undefined>, validation_d_exports.TransformAction<{
659
+ }, undefined>, v.TransformAction<{
660
660
  triggerPrice: string;
661
661
  execution: {
662
662
  type: "market_ioc";
@@ -676,15 +676,15 @@ declare function createBatchCreateOrdersInputSchema(scales: SdkScales): validati
676
676
  };
677
677
  };
678
678
  }>]>;
679
- readonly stopLoss: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StrictObjectSchema<{
680
- readonly triggerPrice: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
681
- readonly execution: validation_d_exports.VariantSchema<"type", [validation_d_exports.StrictObjectSchema<{
682
- readonly type: validation_d_exports.LiteralSchema<"market_ioc", undefined>;
683
- }, undefined>, validation_d_exports.StrictObjectSchema<{
684
- readonly type: validation_d_exports.LiteralSchema<"limit_gtc", undefined>;
685
- readonly price: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
679
+ readonly stopLoss: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
680
+ readonly triggerPrice: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
681
+ readonly execution: v.VariantSchema<"type", [v.StrictObjectSchema<{
682
+ readonly type: v.LiteralSchema<"market_ioc", undefined>;
683
+ }, undefined>, v.StrictObjectSchema<{
684
+ readonly type: v.LiteralSchema<"limit_gtc", undefined>;
685
+ readonly price: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
686
686
  }, undefined>], undefined>;
687
- }, undefined>, validation_d_exports.TransformAction<{
687
+ }, undefined>, v.TransformAction<{
688
688
  triggerPrice: string;
689
689
  execution: {
690
690
  type: "market_ioc";
@@ -704,18 +704,18 @@ declare function createBatchCreateOrdersInputSchema(scales: SdkScales): validati
704
704
  };
705
705
  };
706
706
  }>]>;
707
- readonly trailingStop: validation_d_exports.OptionalSchema<validation_d_exports.NeverSchema<undefined>, undefined>;
708
- readonly oco: validation_d_exports.OptionalSchema<validation_d_exports.BooleanSchema<undefined>, undefined>;
709
- }, undefined>, validation_d_exports.StrictObjectSchema<{
710
- readonly takeProfit: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StrictObjectSchema<{
711
- readonly triggerPrice: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
712
- readonly execution: validation_d_exports.VariantSchema<"type", [validation_d_exports.StrictObjectSchema<{
713
- readonly type: validation_d_exports.LiteralSchema<"market_ioc", undefined>;
714
- }, undefined>, validation_d_exports.StrictObjectSchema<{
715
- readonly type: validation_d_exports.LiteralSchema<"limit_gtc", undefined>;
716
- readonly price: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
707
+ readonly trailingStop: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
708
+ readonly oco: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
709
+ }, undefined>, v.StrictObjectSchema<{
710
+ readonly takeProfit: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
711
+ readonly triggerPrice: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
712
+ readonly execution: v.VariantSchema<"type", [v.StrictObjectSchema<{
713
+ readonly type: v.LiteralSchema<"market_ioc", undefined>;
714
+ }, undefined>, v.StrictObjectSchema<{
715
+ readonly type: v.LiteralSchema<"limit_gtc", undefined>;
716
+ readonly price: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
717
717
  }, undefined>], undefined>;
718
- }, undefined>, validation_d_exports.TransformAction<{
718
+ }, undefined>, v.TransformAction<{
719
719
  triggerPrice: string;
720
720
  execution: {
721
721
  type: "market_ioc";
@@ -735,28 +735,28 @@ declare function createBatchCreateOrdersInputSchema(scales: SdkScales): validati
735
735
  };
736
736
  };
737
737
  }>]>;
738
- readonly stopLoss: validation_d_exports.OptionalSchema<validation_d_exports.NeverSchema<undefined>, undefined>;
739
- readonly trailingStop: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StrictObjectSchema<{
740
- readonly trailingDistance: validation_d_exports.UnionSchema<[validation_d_exports.StrictObjectSchema<{
741
- readonly kind: validation_d_exports.LiteralSchema<"distance", undefined>;
742
- readonly distance: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
743
- }, undefined>, validation_d_exports.StrictObjectSchema<{
744
- readonly kind: validation_d_exports.LiteralSchema<"bps", undefined>;
745
- readonly bps: validation_d_exports.UnionSchema<[validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>, validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.NumberSchema<undefined>, validation_d_exports.GtValueAction<number, 0, undefined>]>], undefined>;
746
- }, undefined>, validation_d_exports.StrictObjectSchema<{
747
- readonly kind: validation_d_exports.LiteralSchema<"none", undefined>;
738
+ readonly stopLoss: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
739
+ readonly trailingStop: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
740
+ readonly trailingDistance: v.UnionSchema<[v.StrictObjectSchema<{
741
+ readonly kind: v.LiteralSchema<"distance", undefined>;
742
+ readonly distance: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
743
+ }, undefined>, v.StrictObjectSchema<{
744
+ readonly kind: v.LiteralSchema<"bps", undefined>;
745
+ readonly bps: v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.GtValueAction<number, 0, undefined>]>], undefined>;
746
+ }, undefined>, v.StrictObjectSchema<{
747
+ readonly kind: v.LiteralSchema<"none", undefined>;
748
748
  }, undefined>], undefined>;
749
- readonly maxSlippage: validation_d_exports.OptionalSchema<validation_d_exports.UnionSchema<[validation_d_exports.StrictObjectSchema<{
750
- readonly kind: validation_d_exports.LiteralSchema<"slippage", undefined>;
751
- readonly slippage: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
752
- }, undefined>, validation_d_exports.StrictObjectSchema<{
753
- readonly kind: validation_d_exports.LiteralSchema<"bps", undefined>;
754
- readonly bps: validation_d_exports.UnionSchema<[validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>, validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.NumberSchema<undefined>, validation_d_exports.GtValueAction<number, 0, undefined>]>], undefined>;
755
- }, undefined>, validation_d_exports.StrictObjectSchema<{
756
- readonly kind: validation_d_exports.LiteralSchema<"none", undefined>;
749
+ readonly maxSlippage: v.OptionalSchema<v.UnionSchema<[v.StrictObjectSchema<{
750
+ readonly kind: v.LiteralSchema<"slippage", undefined>;
751
+ readonly slippage: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
752
+ }, undefined>, v.StrictObjectSchema<{
753
+ readonly kind: v.LiteralSchema<"bps", undefined>;
754
+ readonly bps: v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.GtValueAction<number, 0, undefined>]>], undefined>;
755
+ }, undefined>, v.StrictObjectSchema<{
756
+ readonly kind: v.LiteralSchema<"none", undefined>;
757
757
  }, undefined>], undefined>, undefined>;
758
- readonly activationPrice: validation_d_exports.OptionalSchema<validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>, undefined>;
759
- }, undefined>, validation_d_exports.TransformAction<{
758
+ readonly activationPrice: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
759
+ }, undefined>, v.TransformAction<{
760
760
  trailingDistance: {
761
761
  kind: "bps";
762
762
  bps: string | number;
@@ -799,17 +799,17 @@ declare function createBatchCreateOrdersInputSchema(scales: SdkScales): validati
799
799
  };
800
800
  activationPriceTicks: bigint;
801
801
  }>]>;
802
- readonly oco: validation_d_exports.OptionalSchema<validation_d_exports.BooleanSchema<undefined>, undefined>;
803
- }, undefined>, validation_d_exports.StrictObjectSchema<{
804
- readonly takeProfit: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StrictObjectSchema<{
805
- readonly triggerPrice: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
806
- readonly execution: validation_d_exports.VariantSchema<"type", [validation_d_exports.StrictObjectSchema<{
807
- readonly type: validation_d_exports.LiteralSchema<"market_ioc", undefined>;
808
- }, undefined>, validation_d_exports.StrictObjectSchema<{
809
- readonly type: validation_d_exports.LiteralSchema<"limit_gtc", undefined>;
810
- readonly price: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
802
+ readonly oco: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
803
+ }, undefined>, v.StrictObjectSchema<{
804
+ readonly takeProfit: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
805
+ readonly triggerPrice: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
806
+ readonly execution: v.VariantSchema<"type", [v.StrictObjectSchema<{
807
+ readonly type: v.LiteralSchema<"market_ioc", undefined>;
808
+ }, undefined>, v.StrictObjectSchema<{
809
+ readonly type: v.LiteralSchema<"limit_gtc", undefined>;
810
+ readonly price: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
811
811
  }, undefined>], undefined>;
812
- }, undefined>, validation_d_exports.TransformAction<{
812
+ }, undefined>, v.TransformAction<{
813
813
  triggerPrice: string;
814
814
  execution: {
815
815
  type: "market_ioc";
@@ -829,20 +829,20 @@ declare function createBatchCreateOrdersInputSchema(scales: SdkScales): validati
829
829
  };
830
830
  };
831
831
  }>]>;
832
- readonly stopLoss: validation_d_exports.OptionalSchema<validation_d_exports.NeverSchema<undefined>, undefined>;
833
- readonly trailingStop: validation_d_exports.OptionalSchema<validation_d_exports.NeverSchema<undefined>, undefined>;
834
- readonly oco: validation_d_exports.OptionalSchema<validation_d_exports.BooleanSchema<undefined>, undefined>;
835
- }, undefined>, validation_d_exports.StrictObjectSchema<{
836
- readonly takeProfit: validation_d_exports.OptionalSchema<validation_d_exports.NeverSchema<undefined>, undefined>;
837
- readonly stopLoss: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StrictObjectSchema<{
838
- readonly triggerPrice: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
839
- readonly execution: validation_d_exports.VariantSchema<"type", [validation_d_exports.StrictObjectSchema<{
840
- readonly type: validation_d_exports.LiteralSchema<"market_ioc", undefined>;
841
- }, undefined>, validation_d_exports.StrictObjectSchema<{
842
- readonly type: validation_d_exports.LiteralSchema<"limit_gtc", undefined>;
843
- readonly price: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
832
+ readonly stopLoss: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
833
+ readonly trailingStop: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
834
+ readonly oco: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
835
+ }, undefined>, v.StrictObjectSchema<{
836
+ readonly takeProfit: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
837
+ readonly stopLoss: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
838
+ readonly triggerPrice: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
839
+ readonly execution: v.VariantSchema<"type", [v.StrictObjectSchema<{
840
+ readonly type: v.LiteralSchema<"market_ioc", undefined>;
841
+ }, undefined>, v.StrictObjectSchema<{
842
+ readonly type: v.LiteralSchema<"limit_gtc", undefined>;
843
+ readonly price: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
844
844
  }, undefined>], undefined>;
845
- }, undefined>, validation_d_exports.TransformAction<{
845
+ }, undefined>, v.TransformAction<{
846
846
  triggerPrice: string;
847
847
  execution: {
848
848
  type: "market_ioc";
@@ -862,32 +862,32 @@ declare function createBatchCreateOrdersInputSchema(scales: SdkScales): validati
862
862
  };
863
863
  };
864
864
  }>]>;
865
- readonly trailingStop: validation_d_exports.OptionalSchema<validation_d_exports.NeverSchema<undefined>, undefined>;
866
- readonly oco: validation_d_exports.OptionalSchema<validation_d_exports.BooleanSchema<undefined>, undefined>;
867
- }, undefined>, validation_d_exports.StrictObjectSchema<{
868
- readonly takeProfit: validation_d_exports.OptionalSchema<validation_d_exports.NeverSchema<undefined>, undefined>;
869
- readonly stopLoss: validation_d_exports.OptionalSchema<validation_d_exports.NeverSchema<undefined>, undefined>;
870
- readonly trailingStop: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StrictObjectSchema<{
871
- readonly trailingDistance: validation_d_exports.UnionSchema<[validation_d_exports.StrictObjectSchema<{
872
- readonly kind: validation_d_exports.LiteralSchema<"distance", undefined>;
873
- readonly distance: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
874
- }, undefined>, validation_d_exports.StrictObjectSchema<{
875
- readonly kind: validation_d_exports.LiteralSchema<"bps", undefined>;
876
- readonly bps: validation_d_exports.UnionSchema<[validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>, validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.NumberSchema<undefined>, validation_d_exports.GtValueAction<number, 0, undefined>]>], undefined>;
877
- }, undefined>, validation_d_exports.StrictObjectSchema<{
878
- readonly kind: validation_d_exports.LiteralSchema<"none", undefined>;
865
+ readonly trailingStop: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
866
+ readonly oco: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
867
+ }, undefined>, v.StrictObjectSchema<{
868
+ readonly takeProfit: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
869
+ readonly stopLoss: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
870
+ readonly trailingStop: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
871
+ readonly trailingDistance: v.UnionSchema<[v.StrictObjectSchema<{
872
+ readonly kind: v.LiteralSchema<"distance", undefined>;
873
+ readonly distance: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
874
+ }, undefined>, v.StrictObjectSchema<{
875
+ readonly kind: v.LiteralSchema<"bps", undefined>;
876
+ readonly bps: v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.GtValueAction<number, 0, undefined>]>], undefined>;
877
+ }, undefined>, v.StrictObjectSchema<{
878
+ readonly kind: v.LiteralSchema<"none", undefined>;
879
879
  }, undefined>], undefined>;
880
- readonly maxSlippage: validation_d_exports.OptionalSchema<validation_d_exports.UnionSchema<[validation_d_exports.StrictObjectSchema<{
881
- readonly kind: validation_d_exports.LiteralSchema<"slippage", undefined>;
882
- readonly slippage: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
883
- }, undefined>, validation_d_exports.StrictObjectSchema<{
884
- readonly kind: validation_d_exports.LiteralSchema<"bps", undefined>;
885
- readonly bps: validation_d_exports.UnionSchema<[validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>, validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.NumberSchema<undefined>, validation_d_exports.GtValueAction<number, 0, undefined>]>], undefined>;
886
- }, undefined>, validation_d_exports.StrictObjectSchema<{
887
- readonly kind: validation_d_exports.LiteralSchema<"none", undefined>;
880
+ readonly maxSlippage: v.OptionalSchema<v.UnionSchema<[v.StrictObjectSchema<{
881
+ readonly kind: v.LiteralSchema<"slippage", undefined>;
882
+ readonly slippage: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
883
+ }, undefined>, v.StrictObjectSchema<{
884
+ readonly kind: v.LiteralSchema<"bps", undefined>;
885
+ readonly bps: v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.GtValueAction<number, 0, undefined>]>], undefined>;
886
+ }, undefined>, v.StrictObjectSchema<{
887
+ readonly kind: v.LiteralSchema<"none", undefined>;
888
888
  }, undefined>], undefined>, undefined>;
889
- readonly activationPrice: validation_d_exports.OptionalSchema<validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>, undefined>;
890
- }, undefined>, validation_d_exports.TransformAction<{
889
+ readonly activationPrice: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>, undefined>;
890
+ }, undefined>, v.TransformAction<{
891
891
  trailingDistance: {
892
892
  kind: "bps";
893
893
  bps: string | number;
@@ -930,8 +930,8 @@ declare function createBatchCreateOrdersInputSchema(scales: SdkScales): validati
930
930
  };
931
931
  activationPriceTicks: bigint;
932
932
  }>]>;
933
- readonly oco: validation_d_exports.OptionalSchema<validation_d_exports.BooleanSchema<undefined>, undefined>;
934
- }, undefined>], undefined>, undefined>, validation_d_exports.TransformAction<{
933
+ readonly oco: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
934
+ }, undefined>], undefined>, undefined>, v.TransformAction<{
935
935
  takeProfit: {
936
936
  triggerPriceTicks: bigint;
937
937
  child: {
@@ -1113,7 +1113,7 @@ declare function createBatchCreateOrdersInputSchema(scales: SdkScales): validati
1113
1113
  };
1114
1114
  oco: boolean;
1115
1115
  } | undefined>]>;
1116
- }, undefined>], undefined>, validation_d_exports.CheckAction<{
1116
+ }, undefined>], undefined>, v.CheckAction<{
1117
1117
  qty: string;
1118
1118
  maxQuoteDebit?: undefined;
1119
1119
  symbol: string;
@@ -1271,7 +1271,7 @@ declare function createBatchCreateOrdersInputSchema(scales: SdkScales): validati
1271
1271
  };
1272
1272
  oco: boolean;
1273
1273
  } | undefined;
1274
- }, "maxQuoteDebit is supported only for BUY market IOC and BUY limit IOC orders">, validation_d_exports.CheckAction<{
1274
+ }, "maxQuoteDebit is supported only for BUY market IOC and BUY limit IOC orders">, v.CheckAction<{
1275
1275
  qty: string;
1276
1276
  maxQuoteDebit?: undefined;
1277
1277
  symbol: string;
@@ -1429,7 +1429,7 @@ declare function createBatchCreateOrdersInputSchema(scales: SdkScales): validati
1429
1429
  };
1430
1430
  oco: boolean;
1431
1431
  } | undefined;
1432
- }, "SELL orders must use the quote fee asset">]>, validation_d_exports.TransformAction<{
1432
+ }, "SELL orders must use the quote fee asset">]>, v.TransformAction<{
1433
1433
  qty: string;
1434
1434
  maxQuoteDebit?: undefined;
1435
1435
  symbol: string;
@@ -1755,7 +1755,7 @@ declare function createBatchCreateOrdersInputSchema(scales: SdkScales): validati
1755
1755
  };
1756
1756
  clientOrderId?: string | undefined;
1757
1757
  selfTradePreventionMode?: SelfTradePreventionMode.EXPIRE_MAKER | SelfTradePreventionMode.EXPIRE_TAKER | SelfTradePreventionMode.EXPIRE_BOTH | undefined;
1758
- }>]>, undefined>, validation_d_exports.MinLengthAction<({
1758
+ }>]>, undefined>, v.MinLengthAction<({
1759
1759
  sizing: {
1760
1760
  readonly case: "baseQtyScaled";
1761
1761
  readonly value: bigint;
@@ -1923,7 +1923,7 @@ declare function createBatchCreateOrdersInputSchema(scales: SdkScales): validati
1923
1923
  };
1924
1924
  clientOrderId?: string | undefined;
1925
1925
  selfTradePreventionMode?: SelfTradePreventionMode.EXPIRE_MAKER | SelfTradePreventionMode.EXPIRE_TAKER | SelfTradePreventionMode.EXPIRE_BOTH | undefined;
1926
- })[], 1, "At least one order is required.">, validation_d_exports.MaxLengthAction<({
1926
+ })[], 1, "At least one order is required.">, v.MaxLengthAction<({
1927
1927
  sizing: {
1928
1928
  readonly case: "baseQtyScaled";
1929
1929
  readonly value: bigint;
@@ -2092,10 +2092,10 @@ declare function createBatchCreateOrdersInputSchema(scales: SdkScales): validati
2092
2092
  clientOrderId?: string | undefined;
2093
2093
  selfTradePreventionMode?: SelfTradePreventionMode.EXPIRE_MAKER | SelfTradePreventionMode.EXPIRE_TAKER | SelfTradePreventionMode.EXPIRE_BOTH | undefined;
2094
2094
  })[], 20, "Batch create accepts at most 20 orders.">]>;
2095
- readonly account: validation_d_exports.OptionalSchema<validation_d_exports.UnionSchema<[validation_d_exports.PicklistSchema<["active", "main"], undefined>, validation_d_exports.StrictObjectSchema<{
2096
- readonly subaccountId: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
2095
+ readonly account: v.OptionalSchema<v.UnionSchema<[v.PicklistSchema<["active", "main"], undefined>, v.StrictObjectSchema<{
2096
+ readonly subaccountId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
2097
2097
  }, undefined>], undefined>, undefined>;
2098
- }, undefined>, validation_d_exports.TransformAction<{
2098
+ }, undefined>, v.TransformAction<{
2099
2099
  requestId?: string | undefined;
2100
2100
  items: ({
2101
2101
  sizing: {
@@ -2442,49 +2442,49 @@ declare function createBatchCreateOrdersInputSchema(scales: SdkScales): validati
2442
2442
  selfTradePreventionMode?: SelfTradePreventionMode.EXPIRE_MAKER | SelfTradePreventionMode.EXPIRE_TAKER | SelfTradePreventionMode.EXPIRE_BOTH | undefined;
2443
2443
  })[];
2444
2444
  }>]>;
2445
- type BatchCreateOrdersInput = validation_d_exports.InferInput<ReturnType<typeof createBatchCreateOrdersInputSchema>>;
2446
- declare function createBatchCreateOrdersResultSchema(scales: SdkScales, symbols: string[]): validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.ObjectSchema<{
2447
- readonly results: validation_d_exports.ArraySchema<validation_d_exports.ObjectSchema<{
2448
- readonly clientOrderId: validation_d_exports.StringSchema<undefined>;
2449
- readonly outcome: validation_d_exports.VariantSchema<"case", [validation_d_exports.ObjectSchema<{
2450
- readonly case: validation_d_exports.LiteralSchema<"accepted", undefined>;
2451
- readonly value: validation_d_exports.ObjectSchema<{
2452
- readonly orderId: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.BigintSchema<undefined>, validation_d_exports.TransformAction<bigint, string>]>;
2453
- readonly takeProfitTriggerId: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.BigintSchema<undefined>, undefined>, validation_d_exports.TransformAction<bigint | undefined, string | undefined>]>;
2454
- readonly stopLossTriggerId: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.BigintSchema<undefined>, undefined>, validation_d_exports.TransformAction<bigint | undefined, string | undefined>]>;
2455
- readonly trailingStopTriggerId: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.BigintSchema<undefined>, undefined>, validation_d_exports.TransformAction<bigint | undefined, string | undefined>]>;
2456
- readonly resolvedBaseQtyScaled: validation_d_exports.BigintSchema<undefined>;
2457
- readonly submittedMaxQuoteDebitScaled: validation_d_exports.OptionalSchema<validation_d_exports.BigintSchema<undefined>, undefined>;
2445
+ type BatchCreateOrdersInput = v.InferInput<ReturnType<typeof createBatchCreateOrdersInputSchema>>;
2446
+ declare function createBatchCreateOrdersResultSchema(scales: SdkScales, symbols: string[]): v.SchemaWithPipe<readonly [v.ObjectSchema<{
2447
+ readonly results: v.ArraySchema<v.ObjectSchema<{
2448
+ readonly clientOrderId: v.StringSchema<undefined>;
2449
+ readonly outcome: v.VariantSchema<"case", [v.ObjectSchema<{
2450
+ readonly case: v.LiteralSchema<"accepted", undefined>;
2451
+ readonly value: v.ObjectSchema<{
2452
+ readonly orderId: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.TransformAction<bigint, string>]>;
2453
+ readonly takeProfitTriggerId: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
2454
+ readonly stopLossTriggerId: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
2455
+ readonly trailingStopTriggerId: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
2456
+ readonly resolvedBaseQtyScaled: v.BigintSchema<undefined>;
2457
+ readonly submittedMaxQuoteDebitScaled: v.OptionalSchema<v.BigintSchema<undefined>, undefined>;
2458
2458
  }, undefined>;
2459
- }, undefined>, validation_d_exports.ObjectSchema<{
2460
- readonly case: validation_d_exports.LiteralSchema<"rejected", undefined>;
2461
- readonly value: validation_d_exports.ObjectSchema<{
2462
- readonly error: validation_d_exports.ObjectSchema<{
2463
- readonly code: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.EnumSchema<typeof ErrorCode, undefined>, validation_d_exports.TransformAction<ErrorCode, "STALE_QUOTE" | "UNSPECIFIED" | "BAD_REQUEST" | "INVALID_ARGUMENT" | "INSUFFICIENT_FUNDS" | "UNKNOWN_SYMBOL" | "BAD_PRICE" | "BAD_QTY" | "MIN_NOTIONAL" | "QTY_STEP_SIZE" | "CONFLICT_DUPLICATE_CLIENT_ORDER_ID" | "UNAVAILABLE" | "UNAUTHENTICATED" | "PERMISSION_DENIED" | "NOT_FOUND" | "UPSTREAM_ERROR" | "FEE_ASSET_NOT_ALLOWED" | "PAIR_DISABLED" | "ORDER_UNKNOWN" | "INTERNAL_ERROR" | "SUBACCOUNT_INACTIVE" | "POLICY_MARKET_DENY" | "POLICY_MAX_NOTIONAL" | "POLICY_TRADING_HALTED" | "POLICY_SPOT_TRADE_DENY" | "API_KEY_ROOT_SCOPE_ONLY" | "API_KEY_SUB_SCOPE_ONLY" | "API_KEY_SUBACCOUNT_MISMATCH" | "API_KEY_POLICY_REQUIRED" | "API_KEY_UNKNOWN" | "API_KEY_MARKET_DENY" | "PRICE_TICK_SIZE" | "MIN_QTY" | "POST_ONLY_LIMIT_ONLY" | "BATCH_TOO_LARGE" | "MODIFICATION_REQUIRES_REPLACE" | "CONFLICT_IDEMPOTENCY_KEY_REUSE" | "MARKET_PRICE_UNAVAILABLE" | "PAIR_NOT_LISTED_YET" | "PAIR_DELISTED" | "PAIR_CANCEL_ONLY" | "PAIR_POST_ONLY" | "PAIR_REDUCE_ONLY" | "RISK_LIMIT" | "MARKET_HALTED" | "ACCOUNT_UNKNOWN" | "POST_ONLY_CROSS" | "REDUCE_ONLY_BLOCKED" | "PRICE_BAND_VIOLATION" | "MARKET_CAP_VIOLATION" | "EMPTY_BOOK" | "FOK_INSUFFICIENT_LIQUIDITY" | "ORDER_ALREADY_TERMINAL" | "TRIGGER_PRICE_INVALID" | "TRIGGER_PRICE_SOURCE_UNSUPPORTED" | "TRAILING_DISTANCE_INVALID" | "TRIGGER_NOT_FOUND" | "TRIGGER_CANCEL_REJECTED" | "TRIGGER_STATUS_INVALID" | "TRIGGER_NOT_MODIFIABLE" | "CONFLICT_DUPLICATE_CLIENT_TRIGGER_ID" | "MAX_SLIPPAGE_INVALID" | "VALIDATION_ERROR" | "OVERLOADED" | "MAX_QUOTE_DEBIT_TOO_SMALL" | "RATE_LIMIT_EXCEEDED">]>;
2464
- readonly violations: validation_d_exports.ArraySchema<validation_d_exports.ObjectSchema<{
2465
- readonly fieldPath: validation_d_exports.StringSchema<undefined>;
2466
- readonly ruleId: validation_d_exports.StringSchema<undefined>;
2467
- readonly message: validation_d_exports.StringSchema<undefined>;
2459
+ }, undefined>, v.ObjectSchema<{
2460
+ readonly case: v.LiteralSchema<"rejected", undefined>;
2461
+ readonly value: v.ObjectSchema<{
2462
+ readonly error: v.ObjectSchema<{
2463
+ readonly code: v.SchemaWithPipe<readonly [v.EnumSchema<typeof ErrorCode, undefined>, v.TransformAction<ErrorCode, "STALE_QUOTE" | "UNSPECIFIED" | "BAD_REQUEST" | "INVALID_ARGUMENT" | "INSUFFICIENT_FUNDS" | "UNKNOWN_SYMBOL" | "BAD_PRICE" | "BAD_QTY" | "MIN_NOTIONAL" | "QTY_STEP_SIZE" | "CONFLICT_DUPLICATE_CLIENT_ORDER_ID" | "UNAVAILABLE" | "UNAUTHENTICATED" | "PERMISSION_DENIED" | "NOT_FOUND" | "UPSTREAM_ERROR" | "FEE_ASSET_NOT_ALLOWED" | "PAIR_DISABLED" | "ORDER_UNKNOWN" | "INTERNAL_ERROR" | "SUBACCOUNT_INACTIVE" | "POLICY_MARKET_DENY" | "POLICY_MAX_NOTIONAL" | "POLICY_TRADING_HALTED" | "POLICY_SPOT_TRADE_DENY" | "API_KEY_ROOT_SCOPE_ONLY" | "API_KEY_SUB_SCOPE_ONLY" | "API_KEY_SUBACCOUNT_MISMATCH" | "API_KEY_POLICY_REQUIRED" | "API_KEY_UNKNOWN" | "API_KEY_MARKET_DENY" | "PRICE_TICK_SIZE" | "MIN_QTY" | "POST_ONLY_LIMIT_ONLY" | "BATCH_TOO_LARGE" | "MODIFICATION_REQUIRES_REPLACE" | "CONFLICT_IDEMPOTENCY_KEY_REUSE" | "MARKET_PRICE_UNAVAILABLE" | "PAIR_NOT_LISTED_YET" | "PAIR_DELISTED" | "PAIR_CANCEL_ONLY" | "PAIR_POST_ONLY" | "PAIR_REDUCE_ONLY" | "RISK_LIMIT" | "MARKET_HALTED" | "ACCOUNT_UNKNOWN" | "POST_ONLY_CROSS" | "REDUCE_ONLY_BLOCKED" | "PRICE_BAND_VIOLATION" | "MARKET_CAP_VIOLATION" | "EMPTY_BOOK" | "FOK_INSUFFICIENT_LIQUIDITY" | "ORDER_ALREADY_TERMINAL" | "TRIGGER_PRICE_INVALID" | "TRIGGER_PRICE_SOURCE_UNSUPPORTED" | "TRAILING_DISTANCE_INVALID" | "TRIGGER_NOT_FOUND" | "TRIGGER_CANCEL_REJECTED" | "TRIGGER_STATUS_INVALID" | "TRIGGER_NOT_MODIFIABLE" | "CONFLICT_DUPLICATE_CLIENT_TRIGGER_ID" | "MAX_SLIPPAGE_INVALID" | "VALIDATION_ERROR" | "OVERLOADED" | "MAX_QUOTE_DEBIT_TOO_SMALL" | "RATE_LIMIT_EXCEEDED">]>;
2464
+ readonly violations: v.ArraySchema<v.ObjectSchema<{
2465
+ readonly fieldPath: v.StringSchema<undefined>;
2466
+ readonly ruleId: v.StringSchema<undefined>;
2467
+ readonly message: v.StringSchema<undefined>;
2468
2468
  }, undefined>, undefined>;
2469
- readonly rateLimit: validation_d_exports.OptionalSchema<validation_d_exports.ObjectSchema<{
2470
- readonly reason: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.EnumSchema<typeof FailureReason, undefined>, validation_d_exports.TransformAction<FailureReason, "unspecified" | "quota_exceeded" | "authority_unavailable">]>;
2471
- readonly limit: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.BigintSchema<undefined>, undefined>, validation_d_exports.TransformAction<bigint | undefined, string | undefined>]>;
2472
- readonly remaining: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.BigintSchema<undefined>, undefined>, validation_d_exports.TransformAction<bigint | undefined, string | undefined>]>;
2473
- readonly retryAfterMs: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.BigintSchema<undefined>, undefined>, validation_d_exports.TransformAction<bigint | undefined, string | undefined>]>;
2474
- readonly policyVersion: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.BigintSchema<undefined>, undefined>, validation_d_exports.TransformAction<bigint | undefined, string | undefined>]>;
2475
- readonly operationId: validation_d_exports.StringSchema<undefined>;
2476
- readonly policyClass: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.EnumSchema<typeof PolicyClass, undefined>, validation_d_exports.TransformAction<PolicyClass, "unspecified" | "auth_public" | "trading_place" | "trading_cancel" | "trading_read" | "account_admin" | "public_read" | "account_security" | "deposit_create" | "internal_transfer" | "withdraw_submit" | "withdraw_validate" | "guard_sign" | "social_provider">]>;
2477
- readonly scope: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.EnumSchema<typeof LimiterScope, undefined>, validation_d_exports.TransformAction<LimiterScope, "symbol" | "unspecified" | "client_ip" | "api_key" | "account" | "subaccount" | "connection" | "service" | "region" | "auth_subject">]>;
2478
- readonly refillModel: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.EnumSchema<typeof RefillModel, undefined>, validation_d_exports.TransformAction<RefillModel, "unspecified" | "continuous" | "fixed_window" | "rolling_window">]>;
2469
+ readonly rateLimit: v.OptionalSchema<v.ObjectSchema<{
2470
+ readonly reason: v.SchemaWithPipe<readonly [v.EnumSchema<typeof FailureReason, undefined>, v.TransformAction<FailureReason, "unspecified" | "quota_exceeded" | "authority_unavailable">]>;
2471
+ readonly limit: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
2472
+ readonly remaining: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
2473
+ readonly retryAfterMs: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
2474
+ readonly policyVersion: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
2475
+ readonly operationId: v.StringSchema<undefined>;
2476
+ readonly policyClass: v.SchemaWithPipe<readonly [v.EnumSchema<typeof PolicyClass, undefined>, v.TransformAction<PolicyClass, "unspecified" | "auth_public" | "trading_place" | "trading_cancel" | "trading_read" | "account_admin" | "public_read" | "account_security" | "deposit_create" | "internal_transfer" | "withdraw_submit" | "withdraw_validate" | "guard_sign" | "social_provider">]>;
2477
+ readonly scope: v.SchemaWithPipe<readonly [v.EnumSchema<typeof LimiterScope, undefined>, v.TransformAction<LimiterScope, "symbol" | "unspecified" | "client_ip" | "api_key" | "account" | "subaccount" | "connection" | "service" | "region" | "auth_subject">]>;
2478
+ readonly refillModel: v.SchemaWithPipe<readonly [v.EnumSchema<typeof RefillModel, undefined>, v.TransformAction<RefillModel, "unspecified" | "continuous" | "fixed_window" | "rolling_window">]>;
2479
2479
  }, undefined>, undefined>;
2480
2480
  }, undefined>;
2481
2481
  }, undefined>;
2482
2482
  }, undefined>], undefined>;
2483
2483
  }, undefined>, undefined>;
2484
- readonly acceptedCount: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.NumberSchema<undefined>, validation_d_exports.IntegerAction<number, undefined>, validation_d_exports.MinValueAction<number, 0, undefined>]>;
2485
- readonly rejectedCount: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.NumberSchema<undefined>, validation_d_exports.IntegerAction<number, undefined>, validation_d_exports.MinValueAction<number, 0, undefined>]>;
2486
- readonly tsNs: validation_d_exports.BigintSchema<undefined>;
2487
- }, undefined>, validation_d_exports.CheckAction<{
2484
+ readonly acceptedCount: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
2485
+ readonly rejectedCount: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
2486
+ readonly tsNs: v.BigintSchema<undefined>;
2487
+ }, undefined>, v.CheckAction<{
2488
2488
  results: {
2489
2489
  clientOrderId: string;
2490
2490
  outcome: {
@@ -2525,7 +2525,7 @@ declare function createBatchCreateOrdersResultSchema(scales: SdkScales, symbols:
2525
2525
  acceptedCount: number;
2526
2526
  rejectedCount: number;
2527
2527
  tsNs: bigint;
2528
- }, "Batch create result counts do not match the returned results.">, validation_d_exports.CheckAction<{
2528
+ }, "Batch create result counts do not match the returned results.">, v.CheckAction<{
2529
2529
  results: {
2530
2530
  clientOrderId: string;
2531
2531
  outcome: {
@@ -2566,7 +2566,7 @@ declare function createBatchCreateOrdersResultSchema(scales: SdkScales, symbols:
2566
2566
  acceptedCount: number;
2567
2567
  rejectedCount: number;
2568
2568
  tsNs: bigint;
2569
- }, "Batch create result count does not match the submitted item count.">, validation_d_exports.TransformAction<{
2569
+ }, "Batch create result count does not match the submitted item count.">, v.TransformAction<{
2570
2570
  results: {
2571
2571
  clientOrderId: string;
2572
2572
  outcome: {
@@ -2646,10 +2646,10 @@ declare function createBatchCreateOrdersResultSchema(scales: SdkScales, symbols:
2646
2646
  acceptedCount: number;
2647
2647
  rejectedCount: number;
2648
2648
  }>]>;
2649
- type BatchCreateOrdersResult = validation_d_exports.InferOutput<ReturnType<typeof createBatchCreateOrdersResultSchema>>;
2649
+ type BatchCreateOrdersResult = v.InferOutput<ReturnType<typeof createBatchCreateOrdersResultSchema>>;
2650
2650
  type BatchCreateOrderResult = BatchCreateOrdersResult["results"][number];
2651
2651
  type BatchReplaceOrdersInput = {
2652
- account?: validation_d_exports.InferInput<typeof AccountScopeInputEntries.account>;
2652
+ account?: v.InferInput<typeof AccountScopeInputEntries.account>;
2653
2653
  symbolId: number;
2654
2654
  requestId?: string;
2655
2655
  items: Array<{
@@ -2657,38 +2657,38 @@ type BatchReplaceOrdersInput = {
2657
2657
  clientOrderId?: string;
2658
2658
  newPrice?: string;
2659
2659
  newQty?: string;
2660
- risk?: validation_d_exports.InferInput<ReturnType<typeof createRequiredRiskPolicyInputSchema>>;
2660
+ risk?: v.InferInput<ReturnType<typeof createRequiredRiskPolicyInputSchema>>;
2661
2661
  clearRisk?: boolean;
2662
2662
  newClientOrderId?: string;
2663
2663
  }>;
2664
2664
  };
2665
- declare const BatchReplaceAdmissionItemSchema: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.ObjectSchema<{
2666
- readonly itemIndex: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.NumberSchema<undefined>, validation_d_exports.IntegerAction<number, undefined>, validation_d_exports.MinValueAction<number, 0, undefined>]>;
2667
- readonly status: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.EnumSchema<typeof BatchReplaceItemAdmissionStatus, undefined>, validation_d_exports.TransformAction<BatchReplaceItemAdmissionStatus, "unspecified" | "rejected" | "admitted">]>;
2668
- readonly oldOrderId: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.BigintSchema<undefined>, undefined>, validation_d_exports.TransformAction<bigint | undefined, string | undefined>]>;
2669
- readonly replacementOrderId: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.BigintSchema<undefined>, undefined>, validation_d_exports.TransformAction<bigint | undefined, string | undefined>]>;
2670
- readonly clientOrderId: validation_d_exports.StringSchema<undefined>;
2671
- readonly code: validation_d_exports.StringSchema<undefined>;
2672
- readonly error: validation_d_exports.OptionalSchema<validation_d_exports.ObjectSchema<{
2673
- readonly code: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.EnumSchema<typeof ErrorCode, undefined>, validation_d_exports.TransformAction<ErrorCode, "STALE_QUOTE" | "UNSPECIFIED" | "BAD_REQUEST" | "INVALID_ARGUMENT" | "INSUFFICIENT_FUNDS" | "UNKNOWN_SYMBOL" | "BAD_PRICE" | "BAD_QTY" | "MIN_NOTIONAL" | "QTY_STEP_SIZE" | "CONFLICT_DUPLICATE_CLIENT_ORDER_ID" | "UNAVAILABLE" | "UNAUTHENTICATED" | "PERMISSION_DENIED" | "NOT_FOUND" | "UPSTREAM_ERROR" | "FEE_ASSET_NOT_ALLOWED" | "PAIR_DISABLED" | "ORDER_UNKNOWN" | "INTERNAL_ERROR" | "SUBACCOUNT_INACTIVE" | "POLICY_MARKET_DENY" | "POLICY_MAX_NOTIONAL" | "POLICY_TRADING_HALTED" | "POLICY_SPOT_TRADE_DENY" | "API_KEY_ROOT_SCOPE_ONLY" | "API_KEY_SUB_SCOPE_ONLY" | "API_KEY_SUBACCOUNT_MISMATCH" | "API_KEY_POLICY_REQUIRED" | "API_KEY_UNKNOWN" | "API_KEY_MARKET_DENY" | "PRICE_TICK_SIZE" | "MIN_QTY" | "POST_ONLY_LIMIT_ONLY" | "BATCH_TOO_LARGE" | "MODIFICATION_REQUIRES_REPLACE" | "CONFLICT_IDEMPOTENCY_KEY_REUSE" | "MARKET_PRICE_UNAVAILABLE" | "PAIR_NOT_LISTED_YET" | "PAIR_DELISTED" | "PAIR_CANCEL_ONLY" | "PAIR_POST_ONLY" | "PAIR_REDUCE_ONLY" | "RISK_LIMIT" | "MARKET_HALTED" | "ACCOUNT_UNKNOWN" | "POST_ONLY_CROSS" | "REDUCE_ONLY_BLOCKED" | "PRICE_BAND_VIOLATION" | "MARKET_CAP_VIOLATION" | "EMPTY_BOOK" | "FOK_INSUFFICIENT_LIQUIDITY" | "ORDER_ALREADY_TERMINAL" | "TRIGGER_PRICE_INVALID" | "TRIGGER_PRICE_SOURCE_UNSUPPORTED" | "TRAILING_DISTANCE_INVALID" | "TRIGGER_NOT_FOUND" | "TRIGGER_CANCEL_REJECTED" | "TRIGGER_STATUS_INVALID" | "TRIGGER_NOT_MODIFIABLE" | "CONFLICT_DUPLICATE_CLIENT_TRIGGER_ID" | "MAX_SLIPPAGE_INVALID" | "VALIDATION_ERROR" | "OVERLOADED" | "MAX_QUOTE_DEBIT_TOO_SMALL" | "RATE_LIMIT_EXCEEDED">]>;
2674
- readonly violations: validation_d_exports.ArraySchema<validation_d_exports.ObjectSchema<{
2675
- readonly fieldPath: validation_d_exports.StringSchema<undefined>;
2676
- readonly ruleId: validation_d_exports.StringSchema<undefined>;
2677
- readonly message: validation_d_exports.StringSchema<undefined>;
2665
+ declare const BatchReplaceAdmissionItemSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
2666
+ readonly itemIndex: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
2667
+ readonly status: v.SchemaWithPipe<readonly [v.EnumSchema<typeof BatchReplaceItemAdmissionStatus, undefined>, v.TransformAction<BatchReplaceItemAdmissionStatus, "unspecified" | "rejected" | "admitted">]>;
2668
+ readonly oldOrderId: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
2669
+ readonly replacementOrderId: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
2670
+ readonly clientOrderId: v.StringSchema<undefined>;
2671
+ readonly code: v.StringSchema<undefined>;
2672
+ readonly error: v.OptionalSchema<v.ObjectSchema<{
2673
+ readonly code: v.SchemaWithPipe<readonly [v.EnumSchema<typeof ErrorCode, undefined>, v.TransformAction<ErrorCode, "STALE_QUOTE" | "UNSPECIFIED" | "BAD_REQUEST" | "INVALID_ARGUMENT" | "INSUFFICIENT_FUNDS" | "UNKNOWN_SYMBOL" | "BAD_PRICE" | "BAD_QTY" | "MIN_NOTIONAL" | "QTY_STEP_SIZE" | "CONFLICT_DUPLICATE_CLIENT_ORDER_ID" | "UNAVAILABLE" | "UNAUTHENTICATED" | "PERMISSION_DENIED" | "NOT_FOUND" | "UPSTREAM_ERROR" | "FEE_ASSET_NOT_ALLOWED" | "PAIR_DISABLED" | "ORDER_UNKNOWN" | "INTERNAL_ERROR" | "SUBACCOUNT_INACTIVE" | "POLICY_MARKET_DENY" | "POLICY_MAX_NOTIONAL" | "POLICY_TRADING_HALTED" | "POLICY_SPOT_TRADE_DENY" | "API_KEY_ROOT_SCOPE_ONLY" | "API_KEY_SUB_SCOPE_ONLY" | "API_KEY_SUBACCOUNT_MISMATCH" | "API_KEY_POLICY_REQUIRED" | "API_KEY_UNKNOWN" | "API_KEY_MARKET_DENY" | "PRICE_TICK_SIZE" | "MIN_QTY" | "POST_ONLY_LIMIT_ONLY" | "BATCH_TOO_LARGE" | "MODIFICATION_REQUIRES_REPLACE" | "CONFLICT_IDEMPOTENCY_KEY_REUSE" | "MARKET_PRICE_UNAVAILABLE" | "PAIR_NOT_LISTED_YET" | "PAIR_DELISTED" | "PAIR_CANCEL_ONLY" | "PAIR_POST_ONLY" | "PAIR_REDUCE_ONLY" | "RISK_LIMIT" | "MARKET_HALTED" | "ACCOUNT_UNKNOWN" | "POST_ONLY_CROSS" | "REDUCE_ONLY_BLOCKED" | "PRICE_BAND_VIOLATION" | "MARKET_CAP_VIOLATION" | "EMPTY_BOOK" | "FOK_INSUFFICIENT_LIQUIDITY" | "ORDER_ALREADY_TERMINAL" | "TRIGGER_PRICE_INVALID" | "TRIGGER_PRICE_SOURCE_UNSUPPORTED" | "TRAILING_DISTANCE_INVALID" | "TRIGGER_NOT_FOUND" | "TRIGGER_CANCEL_REJECTED" | "TRIGGER_STATUS_INVALID" | "TRIGGER_NOT_MODIFIABLE" | "CONFLICT_DUPLICATE_CLIENT_TRIGGER_ID" | "MAX_SLIPPAGE_INVALID" | "VALIDATION_ERROR" | "OVERLOADED" | "MAX_QUOTE_DEBIT_TOO_SMALL" | "RATE_LIMIT_EXCEEDED">]>;
2674
+ readonly violations: v.ArraySchema<v.ObjectSchema<{
2675
+ readonly fieldPath: v.StringSchema<undefined>;
2676
+ readonly ruleId: v.StringSchema<undefined>;
2677
+ readonly message: v.StringSchema<undefined>;
2678
2678
  }, undefined>, undefined>;
2679
- readonly rateLimit: validation_d_exports.OptionalSchema<validation_d_exports.ObjectSchema<{
2680
- readonly reason: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.EnumSchema<typeof FailureReason, undefined>, validation_d_exports.TransformAction<FailureReason, "unspecified" | "quota_exceeded" | "authority_unavailable">]>;
2681
- readonly limit: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.BigintSchema<undefined>, undefined>, validation_d_exports.TransformAction<bigint | undefined, string | undefined>]>;
2682
- readonly remaining: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.BigintSchema<undefined>, undefined>, validation_d_exports.TransformAction<bigint | undefined, string | undefined>]>;
2683
- readonly retryAfterMs: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.BigintSchema<undefined>, undefined>, validation_d_exports.TransformAction<bigint | undefined, string | undefined>]>;
2684
- readonly policyVersion: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.BigintSchema<undefined>, undefined>, validation_d_exports.TransformAction<bigint | undefined, string | undefined>]>;
2685
- readonly operationId: validation_d_exports.StringSchema<undefined>;
2686
- readonly policyClass: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.EnumSchema<typeof PolicyClass, undefined>, validation_d_exports.TransformAction<PolicyClass, "unspecified" | "auth_public" | "trading_place" | "trading_cancel" | "trading_read" | "account_admin" | "public_read" | "account_security" | "deposit_create" | "internal_transfer" | "withdraw_submit" | "withdraw_validate" | "guard_sign" | "social_provider">]>;
2687
- readonly scope: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.EnumSchema<typeof LimiterScope, undefined>, validation_d_exports.TransformAction<LimiterScope, "symbol" | "unspecified" | "client_ip" | "api_key" | "account" | "subaccount" | "connection" | "service" | "region" | "auth_subject">]>;
2688
- readonly refillModel: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.EnumSchema<typeof RefillModel, undefined>, validation_d_exports.TransformAction<RefillModel, "unspecified" | "continuous" | "fixed_window" | "rolling_window">]>;
2679
+ readonly rateLimit: v.OptionalSchema<v.ObjectSchema<{
2680
+ readonly reason: v.SchemaWithPipe<readonly [v.EnumSchema<typeof FailureReason, undefined>, v.TransformAction<FailureReason, "unspecified" | "quota_exceeded" | "authority_unavailable">]>;
2681
+ readonly limit: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
2682
+ readonly remaining: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
2683
+ readonly retryAfterMs: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
2684
+ readonly policyVersion: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
2685
+ readonly operationId: v.StringSchema<undefined>;
2686
+ readonly policyClass: v.SchemaWithPipe<readonly [v.EnumSchema<typeof PolicyClass, undefined>, v.TransformAction<PolicyClass, "unspecified" | "auth_public" | "trading_place" | "trading_cancel" | "trading_read" | "account_admin" | "public_read" | "account_security" | "deposit_create" | "internal_transfer" | "withdraw_submit" | "withdraw_validate" | "guard_sign" | "social_provider">]>;
2687
+ readonly scope: v.SchemaWithPipe<readonly [v.EnumSchema<typeof LimiterScope, undefined>, v.TransformAction<LimiterScope, "symbol" | "unspecified" | "client_ip" | "api_key" | "account" | "subaccount" | "connection" | "service" | "region" | "auth_subject">]>;
2688
+ readonly refillModel: v.SchemaWithPipe<readonly [v.EnumSchema<typeof RefillModel, undefined>, v.TransformAction<RefillModel, "unspecified" | "continuous" | "fixed_window" | "rolling_window">]>;
2689
2689
  }, undefined>, undefined>;
2690
2690
  }, undefined>, undefined>;
2691
- }, undefined>, validation_d_exports.TransformAction<{
2691
+ }, undefined>, v.TransformAction<{
2692
2692
  itemIndex: number;
2693
2693
  status: "unspecified" | "rejected" | "admitted";
2694
2694
  oldOrderId?: string | undefined;
@@ -2741,37 +2741,37 @@ declare const BatchReplaceAdmissionItemSchema: validation_d_exports.SchemaWithPi
2741
2741
  } | undefined;
2742
2742
  } | undefined;
2743
2743
  }>]>;
2744
- type BatchReplaceAdmissionItem = validation_d_exports.InferOutput<typeof BatchReplaceAdmissionItemSchema>;
2745
- declare const BatchReplaceOrdersResultSchema: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.ObjectSchema<{
2746
- readonly batchRequestId: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.BigintSchema<undefined>, validation_d_exports.GtValueAction<bigint, 0n, undefined>, validation_d_exports.TransformAction<bigint, string>]>;
2747
- readonly status: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.EnumSchema<typeof BatchReplaceAdmissionStatus, undefined>, validation_d_exports.TransformAction<BatchReplaceAdmissionStatus, "unspecified" | "rejected" | "admitted" | "partially_admitted">]>;
2748
- readonly results: validation_d_exports.ArraySchema<validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.ObjectSchema<{
2749
- readonly itemIndex: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.NumberSchema<undefined>, validation_d_exports.IntegerAction<number, undefined>, validation_d_exports.MinValueAction<number, 0, undefined>]>;
2750
- readonly status: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.EnumSchema<typeof BatchReplaceItemAdmissionStatus, undefined>, validation_d_exports.TransformAction<BatchReplaceItemAdmissionStatus, "unspecified" | "rejected" | "admitted">]>;
2751
- readonly oldOrderId: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.BigintSchema<undefined>, undefined>, validation_d_exports.TransformAction<bigint | undefined, string | undefined>]>;
2752
- readonly replacementOrderId: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.BigintSchema<undefined>, undefined>, validation_d_exports.TransformAction<bigint | undefined, string | undefined>]>;
2753
- readonly clientOrderId: validation_d_exports.StringSchema<undefined>;
2754
- readonly code: validation_d_exports.StringSchema<undefined>;
2755
- readonly error: validation_d_exports.OptionalSchema<validation_d_exports.ObjectSchema<{
2756
- readonly code: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.EnumSchema<typeof ErrorCode, undefined>, validation_d_exports.TransformAction<ErrorCode, "STALE_QUOTE" | "UNSPECIFIED" | "BAD_REQUEST" | "INVALID_ARGUMENT" | "INSUFFICIENT_FUNDS" | "UNKNOWN_SYMBOL" | "BAD_PRICE" | "BAD_QTY" | "MIN_NOTIONAL" | "QTY_STEP_SIZE" | "CONFLICT_DUPLICATE_CLIENT_ORDER_ID" | "UNAVAILABLE" | "UNAUTHENTICATED" | "PERMISSION_DENIED" | "NOT_FOUND" | "UPSTREAM_ERROR" | "FEE_ASSET_NOT_ALLOWED" | "PAIR_DISABLED" | "ORDER_UNKNOWN" | "INTERNAL_ERROR" | "SUBACCOUNT_INACTIVE" | "POLICY_MARKET_DENY" | "POLICY_MAX_NOTIONAL" | "POLICY_TRADING_HALTED" | "POLICY_SPOT_TRADE_DENY" | "API_KEY_ROOT_SCOPE_ONLY" | "API_KEY_SUB_SCOPE_ONLY" | "API_KEY_SUBACCOUNT_MISMATCH" | "API_KEY_POLICY_REQUIRED" | "API_KEY_UNKNOWN" | "API_KEY_MARKET_DENY" | "PRICE_TICK_SIZE" | "MIN_QTY" | "POST_ONLY_LIMIT_ONLY" | "BATCH_TOO_LARGE" | "MODIFICATION_REQUIRES_REPLACE" | "CONFLICT_IDEMPOTENCY_KEY_REUSE" | "MARKET_PRICE_UNAVAILABLE" | "PAIR_NOT_LISTED_YET" | "PAIR_DELISTED" | "PAIR_CANCEL_ONLY" | "PAIR_POST_ONLY" | "PAIR_REDUCE_ONLY" | "RISK_LIMIT" | "MARKET_HALTED" | "ACCOUNT_UNKNOWN" | "POST_ONLY_CROSS" | "REDUCE_ONLY_BLOCKED" | "PRICE_BAND_VIOLATION" | "MARKET_CAP_VIOLATION" | "EMPTY_BOOK" | "FOK_INSUFFICIENT_LIQUIDITY" | "ORDER_ALREADY_TERMINAL" | "TRIGGER_PRICE_INVALID" | "TRIGGER_PRICE_SOURCE_UNSUPPORTED" | "TRAILING_DISTANCE_INVALID" | "TRIGGER_NOT_FOUND" | "TRIGGER_CANCEL_REJECTED" | "TRIGGER_STATUS_INVALID" | "TRIGGER_NOT_MODIFIABLE" | "CONFLICT_DUPLICATE_CLIENT_TRIGGER_ID" | "MAX_SLIPPAGE_INVALID" | "VALIDATION_ERROR" | "OVERLOADED" | "MAX_QUOTE_DEBIT_TOO_SMALL" | "RATE_LIMIT_EXCEEDED">]>;
2757
- readonly violations: validation_d_exports.ArraySchema<validation_d_exports.ObjectSchema<{
2758
- readonly fieldPath: validation_d_exports.StringSchema<undefined>;
2759
- readonly ruleId: validation_d_exports.StringSchema<undefined>;
2760
- readonly message: validation_d_exports.StringSchema<undefined>;
2744
+ type BatchReplaceAdmissionItem = v.InferOutput<typeof BatchReplaceAdmissionItemSchema>;
2745
+ declare const BatchReplaceOrdersResultSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
2746
+ readonly batchRequestId: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.GtValueAction<bigint, 0n, undefined>, v.TransformAction<bigint, string>]>;
2747
+ readonly status: v.SchemaWithPipe<readonly [v.EnumSchema<typeof BatchReplaceAdmissionStatus, undefined>, v.TransformAction<BatchReplaceAdmissionStatus, "unspecified" | "rejected" | "admitted" | "partially_admitted">]>;
2748
+ readonly results: v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
2749
+ readonly itemIndex: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
2750
+ readonly status: v.SchemaWithPipe<readonly [v.EnumSchema<typeof BatchReplaceItemAdmissionStatus, undefined>, v.TransformAction<BatchReplaceItemAdmissionStatus, "unspecified" | "rejected" | "admitted">]>;
2751
+ readonly oldOrderId: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
2752
+ readonly replacementOrderId: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
2753
+ readonly clientOrderId: v.StringSchema<undefined>;
2754
+ readonly code: v.StringSchema<undefined>;
2755
+ readonly error: v.OptionalSchema<v.ObjectSchema<{
2756
+ readonly code: v.SchemaWithPipe<readonly [v.EnumSchema<typeof ErrorCode, undefined>, v.TransformAction<ErrorCode, "STALE_QUOTE" | "UNSPECIFIED" | "BAD_REQUEST" | "INVALID_ARGUMENT" | "INSUFFICIENT_FUNDS" | "UNKNOWN_SYMBOL" | "BAD_PRICE" | "BAD_QTY" | "MIN_NOTIONAL" | "QTY_STEP_SIZE" | "CONFLICT_DUPLICATE_CLIENT_ORDER_ID" | "UNAVAILABLE" | "UNAUTHENTICATED" | "PERMISSION_DENIED" | "NOT_FOUND" | "UPSTREAM_ERROR" | "FEE_ASSET_NOT_ALLOWED" | "PAIR_DISABLED" | "ORDER_UNKNOWN" | "INTERNAL_ERROR" | "SUBACCOUNT_INACTIVE" | "POLICY_MARKET_DENY" | "POLICY_MAX_NOTIONAL" | "POLICY_TRADING_HALTED" | "POLICY_SPOT_TRADE_DENY" | "API_KEY_ROOT_SCOPE_ONLY" | "API_KEY_SUB_SCOPE_ONLY" | "API_KEY_SUBACCOUNT_MISMATCH" | "API_KEY_POLICY_REQUIRED" | "API_KEY_UNKNOWN" | "API_KEY_MARKET_DENY" | "PRICE_TICK_SIZE" | "MIN_QTY" | "POST_ONLY_LIMIT_ONLY" | "BATCH_TOO_LARGE" | "MODIFICATION_REQUIRES_REPLACE" | "CONFLICT_IDEMPOTENCY_KEY_REUSE" | "MARKET_PRICE_UNAVAILABLE" | "PAIR_NOT_LISTED_YET" | "PAIR_DELISTED" | "PAIR_CANCEL_ONLY" | "PAIR_POST_ONLY" | "PAIR_REDUCE_ONLY" | "RISK_LIMIT" | "MARKET_HALTED" | "ACCOUNT_UNKNOWN" | "POST_ONLY_CROSS" | "REDUCE_ONLY_BLOCKED" | "PRICE_BAND_VIOLATION" | "MARKET_CAP_VIOLATION" | "EMPTY_BOOK" | "FOK_INSUFFICIENT_LIQUIDITY" | "ORDER_ALREADY_TERMINAL" | "TRIGGER_PRICE_INVALID" | "TRIGGER_PRICE_SOURCE_UNSUPPORTED" | "TRAILING_DISTANCE_INVALID" | "TRIGGER_NOT_FOUND" | "TRIGGER_CANCEL_REJECTED" | "TRIGGER_STATUS_INVALID" | "TRIGGER_NOT_MODIFIABLE" | "CONFLICT_DUPLICATE_CLIENT_TRIGGER_ID" | "MAX_SLIPPAGE_INVALID" | "VALIDATION_ERROR" | "OVERLOADED" | "MAX_QUOTE_DEBIT_TOO_SMALL" | "RATE_LIMIT_EXCEEDED">]>;
2757
+ readonly violations: v.ArraySchema<v.ObjectSchema<{
2758
+ readonly fieldPath: v.StringSchema<undefined>;
2759
+ readonly ruleId: v.StringSchema<undefined>;
2760
+ readonly message: v.StringSchema<undefined>;
2761
2761
  }, undefined>, undefined>;
2762
- readonly rateLimit: validation_d_exports.OptionalSchema<validation_d_exports.ObjectSchema<{
2763
- readonly reason: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.EnumSchema<typeof FailureReason, undefined>, validation_d_exports.TransformAction<FailureReason, "unspecified" | "quota_exceeded" | "authority_unavailable">]>;
2764
- readonly limit: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.BigintSchema<undefined>, undefined>, validation_d_exports.TransformAction<bigint | undefined, string | undefined>]>;
2765
- readonly remaining: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.BigintSchema<undefined>, undefined>, validation_d_exports.TransformAction<bigint | undefined, string | undefined>]>;
2766
- readonly retryAfterMs: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.BigintSchema<undefined>, undefined>, validation_d_exports.TransformAction<bigint | undefined, string | undefined>]>;
2767
- readonly policyVersion: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.BigintSchema<undefined>, undefined>, validation_d_exports.TransformAction<bigint | undefined, string | undefined>]>;
2768
- readonly operationId: validation_d_exports.StringSchema<undefined>;
2769
- readonly policyClass: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.EnumSchema<typeof PolicyClass, undefined>, validation_d_exports.TransformAction<PolicyClass, "unspecified" | "auth_public" | "trading_place" | "trading_cancel" | "trading_read" | "account_admin" | "public_read" | "account_security" | "deposit_create" | "internal_transfer" | "withdraw_submit" | "withdraw_validate" | "guard_sign" | "social_provider">]>;
2770
- readonly scope: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.EnumSchema<typeof LimiterScope, undefined>, validation_d_exports.TransformAction<LimiterScope, "symbol" | "unspecified" | "client_ip" | "api_key" | "account" | "subaccount" | "connection" | "service" | "region" | "auth_subject">]>;
2771
- readonly refillModel: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.EnumSchema<typeof RefillModel, undefined>, validation_d_exports.TransformAction<RefillModel, "unspecified" | "continuous" | "fixed_window" | "rolling_window">]>;
2762
+ readonly rateLimit: v.OptionalSchema<v.ObjectSchema<{
2763
+ readonly reason: v.SchemaWithPipe<readonly [v.EnumSchema<typeof FailureReason, undefined>, v.TransformAction<FailureReason, "unspecified" | "quota_exceeded" | "authority_unavailable">]>;
2764
+ readonly limit: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
2765
+ readonly remaining: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
2766
+ readonly retryAfterMs: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
2767
+ readonly policyVersion: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
2768
+ readonly operationId: v.StringSchema<undefined>;
2769
+ readonly policyClass: v.SchemaWithPipe<readonly [v.EnumSchema<typeof PolicyClass, undefined>, v.TransformAction<PolicyClass, "unspecified" | "auth_public" | "trading_place" | "trading_cancel" | "trading_read" | "account_admin" | "public_read" | "account_security" | "deposit_create" | "internal_transfer" | "withdraw_submit" | "withdraw_validate" | "guard_sign" | "social_provider">]>;
2770
+ readonly scope: v.SchemaWithPipe<readonly [v.EnumSchema<typeof LimiterScope, undefined>, v.TransformAction<LimiterScope, "symbol" | "unspecified" | "client_ip" | "api_key" | "account" | "subaccount" | "connection" | "service" | "region" | "auth_subject">]>;
2771
+ readonly refillModel: v.SchemaWithPipe<readonly [v.EnumSchema<typeof RefillModel, undefined>, v.TransformAction<RefillModel, "unspecified" | "continuous" | "fixed_window" | "rolling_window">]>;
2772
2772
  }, undefined>, undefined>;
2773
2773
  }, undefined>, undefined>;
2774
- }, undefined>, validation_d_exports.TransformAction<{
2774
+ }, undefined>, v.TransformAction<{
2775
2775
  itemIndex: number;
2776
2776
  status: "unspecified" | "rejected" | "admitted";
2777
2777
  oldOrderId?: string | undefined;
@@ -2824,10 +2824,10 @@ declare const BatchReplaceOrdersResultSchema: validation_d_exports.SchemaWithPip
2824
2824
  } | undefined;
2825
2825
  } | undefined;
2826
2826
  }>]>, undefined>;
2827
- readonly acceptedCount: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.NumberSchema<undefined>, validation_d_exports.IntegerAction<number, undefined>, validation_d_exports.MinValueAction<number, 0, undefined>]>;
2828
- readonly rejectedCount: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.NumberSchema<undefined>, validation_d_exports.IntegerAction<number, undefined>, validation_d_exports.MinValueAction<number, 0, undefined>]>;
2829
- readonly acceptedTsNs: validation_d_exports.BigintSchema<undefined>;
2830
- }, undefined>, validation_d_exports.CheckAction<{
2827
+ readonly acceptedCount: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
2828
+ readonly rejectedCount: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
2829
+ readonly acceptedTsNs: v.BigintSchema<undefined>;
2830
+ }, undefined>, v.CheckAction<{
2831
2831
  batchRequestId: string;
2832
2832
  status: "unspecified" | "rejected" | "admitted" | "partially_admitted";
2833
2833
  results: {
@@ -2860,7 +2860,7 @@ declare const BatchReplaceOrdersResultSchema: validation_d_exports.SchemaWithPip
2860
2860
  acceptedCount: number;
2861
2861
  rejectedCount: number;
2862
2862
  acceptedTsNs: bigint;
2863
- }, "Batch replace result counts do not match the returned results.">, validation_d_exports.CheckAction<{
2863
+ }, "Batch replace result counts do not match the returned results.">, v.CheckAction<{
2864
2864
  batchRequestId: string;
2865
2865
  status: "unspecified" | "rejected" | "admitted" | "partially_admitted";
2866
2866
  results: {
@@ -2893,7 +2893,7 @@ declare const BatchReplaceOrdersResultSchema: validation_d_exports.SchemaWithPip
2893
2893
  acceptedCount: number;
2894
2894
  rejectedCount: number;
2895
2895
  acceptedTsNs: bigint;
2896
- }, "Batch replace results must preserve request item order.">, validation_d_exports.TransformAction<{
2896
+ }, "Batch replace results must preserve request item order.">, v.TransformAction<{
2897
2897
  batchRequestId: string;
2898
2898
  status: "unspecified" | "rejected" | "admitted" | "partially_admitted";
2899
2899
  results: {
@@ -2961,13 +2961,13 @@ declare const BatchReplaceOrdersResultSchema: validation_d_exports.SchemaWithPip
2961
2961
  acceptedCount: number;
2962
2962
  rejectedCount: number;
2963
2963
  }>]>;
2964
- type BatchReplaceOrdersResult = validation_d_exports.InferOutput<typeof BatchReplaceOrdersResultSchema>;
2965
- declare const GetBatchReplaceStatusInputSchema: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StrictObjectSchema<{
2966
- readonly batchRequestId: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>, validation_d_exports.TransformAction<string, bigint>]>, validation_d_exports.CheckAction<bigint, "batchRequestId must be greater than zero">]>;
2967
- readonly account: validation_d_exports.OptionalSchema<validation_d_exports.UnionSchema<[validation_d_exports.PicklistSchema<["active", "main"], undefined>, validation_d_exports.StrictObjectSchema<{
2968
- readonly subaccountId: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
2964
+ type BatchReplaceOrdersResult = v.InferOutput<typeof BatchReplaceOrdersResultSchema>;
2965
+ declare const GetBatchReplaceStatusInputSchema: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
2966
+ readonly batchRequestId: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.TransformAction<string, bigint>]>, v.CheckAction<bigint, "batchRequestId must be greater than zero">]>;
2967
+ readonly account: v.OptionalSchema<v.UnionSchema<[v.PicklistSchema<["active", "main"], undefined>, v.StrictObjectSchema<{
2968
+ readonly subaccountId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
2969
2969
  }, undefined>], undefined>, undefined>;
2970
- }, undefined>, validation_d_exports.TransformAction<{
2970
+ }, undefined>, v.TransformAction<{
2971
2971
  batchRequestId: bigint;
2972
2972
  account?: "active" | "main" | {
2973
2973
  subaccountId: string;
@@ -2976,19 +2976,19 @@ declare const GetBatchReplaceStatusInputSchema: validation_d_exports.SchemaWithP
2976
2976
  subaccountId: bigint | undefined;
2977
2977
  batchRequestId: bigint;
2978
2978
  }>]>;
2979
- type GetBatchReplaceStatusInput = validation_d_exports.InferInput<typeof GetBatchReplaceStatusInputSchema>;
2980
- declare const GetBatchReplaceStatusResultSchema: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.ObjectSchema<{
2981
- readonly batchRequestId: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.BigintSchema<undefined>, validation_d_exports.GtValueAction<bigint, 0n, undefined>, validation_d_exports.TransformAction<bigint, string>]>;
2982
- readonly admissionStatus: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.EnumSchema<typeof BatchReplaceAdmissionStatus, undefined>, validation_d_exports.TransformAction<BatchReplaceAdmissionStatus, "unspecified" | "rejected" | "admitted" | "partially_admitted">]>;
2983
- readonly items: validation_d_exports.ArraySchema<validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.ObjectSchema<{
2984
- readonly itemIndex: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.NumberSchema<undefined>, validation_d_exports.IntegerAction<number, undefined>, validation_d_exports.MinValueAction<number, 0, undefined>]>;
2985
- readonly phase: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.EnumSchema<typeof BatchReplacePhase, undefined>, validation_d_exports.TransformAction<BatchReplacePhase, "unspecified" | "terminal" | "rejected" | "admitted" | "working">]>;
2986
- readonly oldOrderId: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.BigintSchema<undefined>, undefined>, validation_d_exports.TransformAction<bigint | undefined, string | undefined>]>;
2987
- readonly replacementOrderId: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.BigintSchema<undefined>, undefined>, validation_d_exports.TransformAction<bigint | undefined, string | undefined>]>;
2988
- readonly orderStatus: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.EnumSchema<typeof OrderStatus, undefined>, validation_d_exports.TransformAction<OrderStatus, "unspecified" | "pending" | "canceled" | "rejected" | "working" | "pending_cancel" | "filled">]>;
2989
- readonly code: validation_d_exports.StringSchema<undefined>;
2990
- readonly updatedTsNs: validation_d_exports.BigintSchema<undefined>;
2991
- }, undefined>, validation_d_exports.TransformAction<{
2979
+ type GetBatchReplaceStatusInput = v.InferInput<typeof GetBatchReplaceStatusInputSchema>;
2980
+ declare const GetBatchReplaceStatusResultSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
2981
+ readonly batchRequestId: v.SchemaWithPipe<readonly [v.BigintSchema<undefined>, v.GtValueAction<bigint, 0n, undefined>, v.TransformAction<bigint, string>]>;
2982
+ readonly admissionStatus: v.SchemaWithPipe<readonly [v.EnumSchema<typeof BatchReplaceAdmissionStatus, undefined>, v.TransformAction<BatchReplaceAdmissionStatus, "unspecified" | "rejected" | "admitted" | "partially_admitted">]>;
2983
+ readonly items: v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
2984
+ readonly itemIndex: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
2985
+ readonly phase: v.SchemaWithPipe<readonly [v.EnumSchema<typeof BatchReplacePhase, undefined>, v.TransformAction<BatchReplacePhase, "unspecified" | "terminal" | "rejected" | "admitted" | "working">]>;
2986
+ readonly oldOrderId: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
2987
+ readonly replacementOrderId: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
2988
+ readonly orderStatus: v.SchemaWithPipe<readonly [v.EnumSchema<typeof OrderStatus, undefined>, v.TransformAction<OrderStatus, "unspecified" | "pending" | "canceled" | "rejected" | "working" | "pending_cancel" | "filled">]>;
2989
+ readonly code: v.StringSchema<undefined>;
2990
+ readonly updatedTsNs: v.BigintSchema<undefined>;
2991
+ }, undefined>, v.TransformAction<{
2992
2992
  itemIndex: number;
2993
2993
  phase: "unspecified" | "terminal" | "rejected" | "admitted" | "working";
2994
2994
  oldOrderId?: string | undefined;
@@ -3006,11 +3006,11 @@ declare const GetBatchReplaceStatusResultSchema: validation_d_exports.SchemaWith
3006
3006
  replacementOrderId?: string | undefined;
3007
3007
  orderStatus: "unspecified" | "pending" | "canceled" | "rejected" | "working" | "pending_cancel" | "filled";
3008
3008
  }>]>, undefined>;
3009
- readonly acceptedCount: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.NumberSchema<undefined>, validation_d_exports.IntegerAction<number, undefined>, validation_d_exports.MinValueAction<number, 0, undefined>]>;
3010
- readonly rejectedCount: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.NumberSchema<undefined>, validation_d_exports.IntegerAction<number, undefined>, validation_d_exports.MinValueAction<number, 0, undefined>]>;
3011
- readonly acceptedTsNs: validation_d_exports.BigintSchema<undefined>;
3012
- readonly updatedTsNs: validation_d_exports.BigintSchema<undefined>;
3013
- }, undefined>, validation_d_exports.CheckAction<{
3009
+ readonly acceptedCount: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
3010
+ readonly rejectedCount: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
3011
+ readonly acceptedTsNs: v.BigintSchema<undefined>;
3012
+ readonly updatedTsNs: v.BigintSchema<undefined>;
3013
+ }, undefined>, v.CheckAction<{
3014
3014
  batchRequestId: string;
3015
3015
  admissionStatus: "unspecified" | "rejected" | "admitted" | "partially_admitted";
3016
3016
  items: {
@@ -3027,7 +3027,7 @@ declare const GetBatchReplaceStatusResultSchema: validation_d_exports.SchemaWith
3027
3027
  rejectedCount: number;
3028
3028
  acceptedTsNs: bigint;
3029
3029
  updatedTsNs: bigint;
3030
- }, "Batch replace status counts do not match the returned items.">, validation_d_exports.CheckAction<{
3030
+ }, "Batch replace status counts do not match the returned items.">, v.CheckAction<{
3031
3031
  batchRequestId: string;
3032
3032
  admissionStatus: "unspecified" | "rejected" | "admitted" | "partially_admitted";
3033
3033
  items: {
@@ -3044,7 +3044,7 @@ declare const GetBatchReplaceStatusResultSchema: validation_d_exports.SchemaWith
3044
3044
  rejectedCount: number;
3045
3045
  acceptedTsNs: bigint;
3046
3046
  updatedTsNs: bigint;
3047
- }, "Batch replace status items must preserve request item order.">, validation_d_exports.TransformAction<{
3047
+ }, "Batch replace status items must preserve request item order.">, v.TransformAction<{
3048
3048
  batchRequestId: string;
3049
3049
  admissionStatus: "unspecified" | "rejected" | "admitted" | "partially_admitted";
3050
3050
  items: {
@@ -3081,23 +3081,23 @@ declare const GetBatchReplaceStatusResultSchema: validation_d_exports.SchemaWith
3081
3081
  acceptedCount: number;
3082
3082
  rejectedCount: number;
3083
3083
  }>]>;
3084
- type GetBatchReplaceStatusResult = validation_d_exports.InferOutput<typeof GetBatchReplaceStatusResultSchema>;
3085
- declare const BatchCancelOrderInputSchema: validation_d_exports.UnionSchema<[validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StrictObjectSchema<{
3086
- readonly orderId: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>, validation_d_exports.TransformAction<string, bigint>]>, validation_d_exports.CheckAction<bigint, "items.orderId must be greater than zero">]>;
3087
- readonly clientOrderId: validation_d_exports.OptionalSchema<validation_d_exports.NeverSchema<undefined>, undefined>;
3088
- readonly symbolId: validation_d_exports.OptionalSchema<validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.NumberSchema<undefined>, validation_d_exports.IntegerAction<number, undefined>, validation_d_exports.MinValueAction<number, 1, undefined>]>, undefined>;
3089
- }, undefined>, validation_d_exports.TransformAction<{
3084
+ type GetBatchReplaceStatusResult = v.InferOutput<typeof GetBatchReplaceStatusResultSchema>;
3085
+ declare const BatchCancelOrderInputSchema: v.UnionSchema<[v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
3086
+ readonly orderId: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.TransformAction<string, bigint>]>, v.CheckAction<bigint, "items.orderId must be greater than zero">]>;
3087
+ readonly clientOrderId: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
3088
+ readonly symbolId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
3089
+ }, undefined>, v.TransformAction<{
3090
3090
  orderId: bigint;
3091
3091
  clientOrderId?: undefined;
3092
3092
  symbolId?: number | undefined;
3093
3093
  }, {
3094
3094
  orderId: bigint;
3095
3095
  symbolId: number | undefined;
3096
- }>]>, validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StrictObjectSchema<{
3097
- readonly orderId: validation_d_exports.OptionalSchema<validation_d_exports.NeverSchema<undefined>, undefined>;
3098
- readonly clientOrderId: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MaxLengthAction<string, 36, undefined>, validation_d_exports.RegexAction<string, "clientOrderId has an invalid format">]>, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
3099
- readonly symbolId: validation_d_exports.OptionalSchema<validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.NumberSchema<undefined>, validation_d_exports.IntegerAction<number, undefined>, validation_d_exports.MinValueAction<number, 1, undefined>]>, undefined>;
3100
- }, undefined>, validation_d_exports.TransformAction<{
3096
+ }>]>, v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
3097
+ readonly orderId: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
3098
+ readonly clientOrderId: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 36, undefined>, v.RegexAction<string, "clientOrderId has an invalid format">]>, v.MinLengthAction<string, 1, undefined>]>;
3099
+ readonly symbolId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
3100
+ }, undefined>, v.TransformAction<{
3101
3101
  orderId?: undefined;
3102
3102
  clientOrderId: string;
3103
3103
  symbolId?: number | undefined;
@@ -3105,48 +3105,48 @@ declare const BatchCancelOrderInputSchema: validation_d_exports.UnionSchema<[val
3105
3105
  clientOrderId: string;
3106
3106
  symbolId: number | undefined;
3107
3107
  }>]>], undefined>;
3108
- type BatchCancelOrderInput = validation_d_exports.InferInput<typeof BatchCancelOrderInputSchema>;
3109
- declare const BatchCancelOrdersInputSchema: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StrictObjectSchema<{
3110
- readonly requestId: validation_d_exports.OptionalSchema<validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>, validation_d_exports.MaxLengthAction<string, 64, undefined>, validation_d_exports.RegexAction<string, "requestId has an invalid format">]>, undefined>;
3111
- readonly items: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.ArraySchema<validation_d_exports.UnionSchema<[validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StrictObjectSchema<{
3112
- readonly orderId: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>, validation_d_exports.TransformAction<string, bigint>]>, validation_d_exports.CheckAction<bigint, "items.orderId must be greater than zero">]>;
3113
- readonly clientOrderId: validation_d_exports.OptionalSchema<validation_d_exports.NeverSchema<undefined>, undefined>;
3114
- readonly symbolId: validation_d_exports.OptionalSchema<validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.NumberSchema<undefined>, validation_d_exports.IntegerAction<number, undefined>, validation_d_exports.MinValueAction<number, 1, undefined>]>, undefined>;
3115
- }, undefined>, validation_d_exports.TransformAction<{
3108
+ type BatchCancelOrderInput = v.InferInput<typeof BatchCancelOrderInputSchema>;
3109
+ declare const BatchCancelOrdersInputSchema: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
3110
+ readonly requestId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 64, undefined>, v.RegexAction<string, "requestId has an invalid format">]>, undefined>;
3111
+ readonly items: v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
3112
+ readonly orderId: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.TransformAction<string, bigint>]>, v.CheckAction<bigint, "items.orderId must be greater than zero">]>;
3113
+ readonly clientOrderId: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
3114
+ readonly symbolId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
3115
+ }, undefined>, v.TransformAction<{
3116
3116
  orderId: bigint;
3117
3117
  clientOrderId?: undefined;
3118
3118
  symbolId?: number | undefined;
3119
3119
  }, {
3120
3120
  orderId: bigint;
3121
3121
  symbolId: number | undefined;
3122
- }>]>, validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StrictObjectSchema<{
3123
- readonly orderId: validation_d_exports.OptionalSchema<validation_d_exports.NeverSchema<undefined>, undefined>;
3124
- readonly clientOrderId: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MaxLengthAction<string, 36, undefined>, validation_d_exports.RegexAction<string, "clientOrderId has an invalid format">]>, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
3125
- readonly symbolId: validation_d_exports.OptionalSchema<validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.NumberSchema<undefined>, validation_d_exports.IntegerAction<number, undefined>, validation_d_exports.MinValueAction<number, 1, undefined>]>, undefined>;
3126
- }, undefined>, validation_d_exports.TransformAction<{
3122
+ }>]>, v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
3123
+ readonly orderId: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
3124
+ readonly clientOrderId: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 36, undefined>, v.RegexAction<string, "clientOrderId has an invalid format">]>, v.MinLengthAction<string, 1, undefined>]>;
3125
+ readonly symbolId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
3126
+ }, undefined>, v.TransformAction<{
3127
3127
  orderId?: undefined;
3128
3128
  clientOrderId: string;
3129
3129
  symbolId?: number | undefined;
3130
3130
  }, {
3131
3131
  clientOrderId: string;
3132
3132
  symbolId: number | undefined;
3133
- }>]>], undefined>, undefined>, validation_d_exports.MinLengthAction<({
3133
+ }>]>], undefined>, undefined>, v.MinLengthAction<({
3134
3134
  orderId: bigint;
3135
3135
  symbolId: number | undefined;
3136
3136
  } | {
3137
3137
  clientOrderId: string;
3138
3138
  symbolId: number | undefined;
3139
- })[], 1, "At least one order is required.">, validation_d_exports.MaxLengthAction<({
3139
+ })[], 1, "At least one order is required.">, v.MaxLengthAction<({
3140
3140
  orderId: bigint;
3141
3141
  symbolId: number | undefined;
3142
3142
  } | {
3143
3143
  clientOrderId: string;
3144
3144
  symbolId: number | undefined;
3145
3145
  })[], 50, "Batch cancel accepts at most 50 orders.">]>;
3146
- readonly account: validation_d_exports.OptionalSchema<validation_d_exports.UnionSchema<[validation_d_exports.PicklistSchema<["active", "main"], undefined>, validation_d_exports.StrictObjectSchema<{
3147
- readonly subaccountId: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.StringSchema<undefined>, validation_d_exports.TrimAction, validation_d_exports.MinLengthAction<string, 1, undefined>]>;
3146
+ readonly account: v.OptionalSchema<v.UnionSchema<[v.PicklistSchema<["active", "main"], undefined>, v.StrictObjectSchema<{
3147
+ readonly subaccountId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
3148
3148
  }, undefined>], undefined>, undefined>;
3149
- }, undefined>, validation_d_exports.TransformAction<{
3149
+ }, undefined>, v.TransformAction<{
3150
3150
  requestId?: string | undefined;
3151
3151
  items: ({
3152
3152
  orderId: bigint;
@@ -3169,63 +3169,63 @@ declare const BatchCancelOrdersInputSchema: validation_d_exports.SchemaWithPipe<
3169
3169
  symbolId: number | undefined;
3170
3170
  })[];
3171
3171
  }>]>;
3172
- type BatchCancelOrdersInput = validation_d_exports.InferInput<typeof BatchCancelOrdersInputSchema>;
3173
- declare const BatchCancelOrderResultSchema: validation_d_exports.ObjectSchema<{
3174
- readonly status: validation_d_exports.PicklistSchema<["accepted", "rejected"], undefined>;
3175
- readonly orderId: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.BigintSchema<undefined>, undefined>, validation_d_exports.TransformAction<bigint | undefined, string | undefined>]>;
3176
- readonly clientOrderId: validation_d_exports.StringSchema<undefined>;
3177
- readonly code: validation_d_exports.StringSchema<undefined>;
3178
- readonly error: validation_d_exports.OptionalSchema<validation_d_exports.ObjectSchema<{
3179
- readonly code: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.EnumSchema<typeof ErrorCode, undefined>, validation_d_exports.TransformAction<ErrorCode, "STALE_QUOTE" | "UNSPECIFIED" | "BAD_REQUEST" | "INVALID_ARGUMENT" | "INSUFFICIENT_FUNDS" | "UNKNOWN_SYMBOL" | "BAD_PRICE" | "BAD_QTY" | "MIN_NOTIONAL" | "QTY_STEP_SIZE" | "CONFLICT_DUPLICATE_CLIENT_ORDER_ID" | "UNAVAILABLE" | "UNAUTHENTICATED" | "PERMISSION_DENIED" | "NOT_FOUND" | "UPSTREAM_ERROR" | "FEE_ASSET_NOT_ALLOWED" | "PAIR_DISABLED" | "ORDER_UNKNOWN" | "INTERNAL_ERROR" | "SUBACCOUNT_INACTIVE" | "POLICY_MARKET_DENY" | "POLICY_MAX_NOTIONAL" | "POLICY_TRADING_HALTED" | "POLICY_SPOT_TRADE_DENY" | "API_KEY_ROOT_SCOPE_ONLY" | "API_KEY_SUB_SCOPE_ONLY" | "API_KEY_SUBACCOUNT_MISMATCH" | "API_KEY_POLICY_REQUIRED" | "API_KEY_UNKNOWN" | "API_KEY_MARKET_DENY" | "PRICE_TICK_SIZE" | "MIN_QTY" | "POST_ONLY_LIMIT_ONLY" | "BATCH_TOO_LARGE" | "MODIFICATION_REQUIRES_REPLACE" | "CONFLICT_IDEMPOTENCY_KEY_REUSE" | "MARKET_PRICE_UNAVAILABLE" | "PAIR_NOT_LISTED_YET" | "PAIR_DELISTED" | "PAIR_CANCEL_ONLY" | "PAIR_POST_ONLY" | "PAIR_REDUCE_ONLY" | "RISK_LIMIT" | "MARKET_HALTED" | "ACCOUNT_UNKNOWN" | "POST_ONLY_CROSS" | "REDUCE_ONLY_BLOCKED" | "PRICE_BAND_VIOLATION" | "MARKET_CAP_VIOLATION" | "EMPTY_BOOK" | "FOK_INSUFFICIENT_LIQUIDITY" | "ORDER_ALREADY_TERMINAL" | "TRIGGER_PRICE_INVALID" | "TRIGGER_PRICE_SOURCE_UNSUPPORTED" | "TRAILING_DISTANCE_INVALID" | "TRIGGER_NOT_FOUND" | "TRIGGER_CANCEL_REJECTED" | "TRIGGER_STATUS_INVALID" | "TRIGGER_NOT_MODIFIABLE" | "CONFLICT_DUPLICATE_CLIENT_TRIGGER_ID" | "MAX_SLIPPAGE_INVALID" | "VALIDATION_ERROR" | "OVERLOADED" | "MAX_QUOTE_DEBIT_TOO_SMALL" | "RATE_LIMIT_EXCEEDED">]>;
3180
- readonly violations: validation_d_exports.ArraySchema<validation_d_exports.ObjectSchema<{
3181
- readonly fieldPath: validation_d_exports.StringSchema<undefined>;
3182
- readonly ruleId: validation_d_exports.StringSchema<undefined>;
3183
- readonly message: validation_d_exports.StringSchema<undefined>;
3172
+ type BatchCancelOrdersInput = v.InferInput<typeof BatchCancelOrdersInputSchema>;
3173
+ declare const BatchCancelOrderResultSchema: v.ObjectSchema<{
3174
+ readonly status: v.PicklistSchema<["accepted", "rejected"], undefined>;
3175
+ readonly orderId: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
3176
+ readonly clientOrderId: v.StringSchema<undefined>;
3177
+ readonly code: v.StringSchema<undefined>;
3178
+ readonly error: v.OptionalSchema<v.ObjectSchema<{
3179
+ readonly code: v.SchemaWithPipe<readonly [v.EnumSchema<typeof ErrorCode, undefined>, v.TransformAction<ErrorCode, "STALE_QUOTE" | "UNSPECIFIED" | "BAD_REQUEST" | "INVALID_ARGUMENT" | "INSUFFICIENT_FUNDS" | "UNKNOWN_SYMBOL" | "BAD_PRICE" | "BAD_QTY" | "MIN_NOTIONAL" | "QTY_STEP_SIZE" | "CONFLICT_DUPLICATE_CLIENT_ORDER_ID" | "UNAVAILABLE" | "UNAUTHENTICATED" | "PERMISSION_DENIED" | "NOT_FOUND" | "UPSTREAM_ERROR" | "FEE_ASSET_NOT_ALLOWED" | "PAIR_DISABLED" | "ORDER_UNKNOWN" | "INTERNAL_ERROR" | "SUBACCOUNT_INACTIVE" | "POLICY_MARKET_DENY" | "POLICY_MAX_NOTIONAL" | "POLICY_TRADING_HALTED" | "POLICY_SPOT_TRADE_DENY" | "API_KEY_ROOT_SCOPE_ONLY" | "API_KEY_SUB_SCOPE_ONLY" | "API_KEY_SUBACCOUNT_MISMATCH" | "API_KEY_POLICY_REQUIRED" | "API_KEY_UNKNOWN" | "API_KEY_MARKET_DENY" | "PRICE_TICK_SIZE" | "MIN_QTY" | "POST_ONLY_LIMIT_ONLY" | "BATCH_TOO_LARGE" | "MODIFICATION_REQUIRES_REPLACE" | "CONFLICT_IDEMPOTENCY_KEY_REUSE" | "MARKET_PRICE_UNAVAILABLE" | "PAIR_NOT_LISTED_YET" | "PAIR_DELISTED" | "PAIR_CANCEL_ONLY" | "PAIR_POST_ONLY" | "PAIR_REDUCE_ONLY" | "RISK_LIMIT" | "MARKET_HALTED" | "ACCOUNT_UNKNOWN" | "POST_ONLY_CROSS" | "REDUCE_ONLY_BLOCKED" | "PRICE_BAND_VIOLATION" | "MARKET_CAP_VIOLATION" | "EMPTY_BOOK" | "FOK_INSUFFICIENT_LIQUIDITY" | "ORDER_ALREADY_TERMINAL" | "TRIGGER_PRICE_INVALID" | "TRIGGER_PRICE_SOURCE_UNSUPPORTED" | "TRAILING_DISTANCE_INVALID" | "TRIGGER_NOT_FOUND" | "TRIGGER_CANCEL_REJECTED" | "TRIGGER_STATUS_INVALID" | "TRIGGER_NOT_MODIFIABLE" | "CONFLICT_DUPLICATE_CLIENT_TRIGGER_ID" | "MAX_SLIPPAGE_INVALID" | "VALIDATION_ERROR" | "OVERLOADED" | "MAX_QUOTE_DEBIT_TOO_SMALL" | "RATE_LIMIT_EXCEEDED">]>;
3180
+ readonly violations: v.ArraySchema<v.ObjectSchema<{
3181
+ readonly fieldPath: v.StringSchema<undefined>;
3182
+ readonly ruleId: v.StringSchema<undefined>;
3183
+ readonly message: v.StringSchema<undefined>;
3184
3184
  }, undefined>, undefined>;
3185
- readonly rateLimit: validation_d_exports.OptionalSchema<validation_d_exports.ObjectSchema<{
3186
- readonly reason: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.EnumSchema<typeof FailureReason, undefined>, validation_d_exports.TransformAction<FailureReason, "unspecified" | "quota_exceeded" | "authority_unavailable">]>;
3187
- readonly limit: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.BigintSchema<undefined>, undefined>, validation_d_exports.TransformAction<bigint | undefined, string | undefined>]>;
3188
- readonly remaining: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.BigintSchema<undefined>, undefined>, validation_d_exports.TransformAction<bigint | undefined, string | undefined>]>;
3189
- readonly retryAfterMs: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.BigintSchema<undefined>, undefined>, validation_d_exports.TransformAction<bigint | undefined, string | undefined>]>;
3190
- readonly policyVersion: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.BigintSchema<undefined>, undefined>, validation_d_exports.TransformAction<bigint | undefined, string | undefined>]>;
3191
- readonly operationId: validation_d_exports.StringSchema<undefined>;
3192
- readonly policyClass: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.EnumSchema<typeof PolicyClass, undefined>, validation_d_exports.TransformAction<PolicyClass, "unspecified" | "auth_public" | "trading_place" | "trading_cancel" | "trading_read" | "account_admin" | "public_read" | "account_security" | "deposit_create" | "internal_transfer" | "withdraw_submit" | "withdraw_validate" | "guard_sign" | "social_provider">]>;
3193
- readonly scope: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.EnumSchema<typeof LimiterScope, undefined>, validation_d_exports.TransformAction<LimiterScope, "symbol" | "unspecified" | "client_ip" | "api_key" | "account" | "subaccount" | "connection" | "service" | "region" | "auth_subject">]>;
3194
- readonly refillModel: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.EnumSchema<typeof RefillModel, undefined>, validation_d_exports.TransformAction<RefillModel, "unspecified" | "continuous" | "fixed_window" | "rolling_window">]>;
3185
+ readonly rateLimit: v.OptionalSchema<v.ObjectSchema<{
3186
+ readonly reason: v.SchemaWithPipe<readonly [v.EnumSchema<typeof FailureReason, undefined>, v.TransformAction<FailureReason, "unspecified" | "quota_exceeded" | "authority_unavailable">]>;
3187
+ readonly limit: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
3188
+ readonly remaining: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
3189
+ readonly retryAfterMs: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
3190
+ readonly policyVersion: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
3191
+ readonly operationId: v.StringSchema<undefined>;
3192
+ readonly policyClass: v.SchemaWithPipe<readonly [v.EnumSchema<typeof PolicyClass, undefined>, v.TransformAction<PolicyClass, "unspecified" | "auth_public" | "trading_place" | "trading_cancel" | "trading_read" | "account_admin" | "public_read" | "account_security" | "deposit_create" | "internal_transfer" | "withdraw_submit" | "withdraw_validate" | "guard_sign" | "social_provider">]>;
3193
+ readonly scope: v.SchemaWithPipe<readonly [v.EnumSchema<typeof LimiterScope, undefined>, v.TransformAction<LimiterScope, "symbol" | "unspecified" | "client_ip" | "api_key" | "account" | "subaccount" | "connection" | "service" | "region" | "auth_subject">]>;
3194
+ readonly refillModel: v.SchemaWithPipe<readonly [v.EnumSchema<typeof RefillModel, undefined>, v.TransformAction<RefillModel, "unspecified" | "continuous" | "fixed_window" | "rolling_window">]>;
3195
3195
  }, undefined>, undefined>;
3196
3196
  }, undefined>, undefined>;
3197
3197
  }, undefined>;
3198
- type BatchCancelOrderResult = validation_d_exports.InferOutput<typeof BatchCancelOrderResultSchema>;
3199
- declare const BatchCancelOrdersResultSchema: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.ObjectSchema<{
3200
- readonly results: validation_d_exports.ArraySchema<validation_d_exports.ObjectSchema<{
3201
- readonly status: validation_d_exports.PicklistSchema<["accepted", "rejected"], undefined>;
3202
- readonly orderId: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.BigintSchema<undefined>, undefined>, validation_d_exports.TransformAction<bigint | undefined, string | undefined>]>;
3203
- readonly clientOrderId: validation_d_exports.StringSchema<undefined>;
3204
- readonly code: validation_d_exports.StringSchema<undefined>;
3205
- readonly error: validation_d_exports.OptionalSchema<validation_d_exports.ObjectSchema<{
3206
- readonly code: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.EnumSchema<typeof ErrorCode, undefined>, validation_d_exports.TransformAction<ErrorCode, "STALE_QUOTE" | "UNSPECIFIED" | "BAD_REQUEST" | "INVALID_ARGUMENT" | "INSUFFICIENT_FUNDS" | "UNKNOWN_SYMBOL" | "BAD_PRICE" | "BAD_QTY" | "MIN_NOTIONAL" | "QTY_STEP_SIZE" | "CONFLICT_DUPLICATE_CLIENT_ORDER_ID" | "UNAVAILABLE" | "UNAUTHENTICATED" | "PERMISSION_DENIED" | "NOT_FOUND" | "UPSTREAM_ERROR" | "FEE_ASSET_NOT_ALLOWED" | "PAIR_DISABLED" | "ORDER_UNKNOWN" | "INTERNAL_ERROR" | "SUBACCOUNT_INACTIVE" | "POLICY_MARKET_DENY" | "POLICY_MAX_NOTIONAL" | "POLICY_TRADING_HALTED" | "POLICY_SPOT_TRADE_DENY" | "API_KEY_ROOT_SCOPE_ONLY" | "API_KEY_SUB_SCOPE_ONLY" | "API_KEY_SUBACCOUNT_MISMATCH" | "API_KEY_POLICY_REQUIRED" | "API_KEY_UNKNOWN" | "API_KEY_MARKET_DENY" | "PRICE_TICK_SIZE" | "MIN_QTY" | "POST_ONLY_LIMIT_ONLY" | "BATCH_TOO_LARGE" | "MODIFICATION_REQUIRES_REPLACE" | "CONFLICT_IDEMPOTENCY_KEY_REUSE" | "MARKET_PRICE_UNAVAILABLE" | "PAIR_NOT_LISTED_YET" | "PAIR_DELISTED" | "PAIR_CANCEL_ONLY" | "PAIR_POST_ONLY" | "PAIR_REDUCE_ONLY" | "RISK_LIMIT" | "MARKET_HALTED" | "ACCOUNT_UNKNOWN" | "POST_ONLY_CROSS" | "REDUCE_ONLY_BLOCKED" | "PRICE_BAND_VIOLATION" | "MARKET_CAP_VIOLATION" | "EMPTY_BOOK" | "FOK_INSUFFICIENT_LIQUIDITY" | "ORDER_ALREADY_TERMINAL" | "TRIGGER_PRICE_INVALID" | "TRIGGER_PRICE_SOURCE_UNSUPPORTED" | "TRAILING_DISTANCE_INVALID" | "TRIGGER_NOT_FOUND" | "TRIGGER_CANCEL_REJECTED" | "TRIGGER_STATUS_INVALID" | "TRIGGER_NOT_MODIFIABLE" | "CONFLICT_DUPLICATE_CLIENT_TRIGGER_ID" | "MAX_SLIPPAGE_INVALID" | "VALIDATION_ERROR" | "OVERLOADED" | "MAX_QUOTE_DEBIT_TOO_SMALL" | "RATE_LIMIT_EXCEEDED">]>;
3207
- readonly violations: validation_d_exports.ArraySchema<validation_d_exports.ObjectSchema<{
3208
- readonly fieldPath: validation_d_exports.StringSchema<undefined>;
3209
- readonly ruleId: validation_d_exports.StringSchema<undefined>;
3210
- readonly message: validation_d_exports.StringSchema<undefined>;
3198
+ type BatchCancelOrderResult = v.InferOutput<typeof BatchCancelOrderResultSchema>;
3199
+ declare const BatchCancelOrdersResultSchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
3200
+ readonly results: v.ArraySchema<v.ObjectSchema<{
3201
+ readonly status: v.PicklistSchema<["accepted", "rejected"], undefined>;
3202
+ readonly orderId: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
3203
+ readonly clientOrderId: v.StringSchema<undefined>;
3204
+ readonly code: v.StringSchema<undefined>;
3205
+ readonly error: v.OptionalSchema<v.ObjectSchema<{
3206
+ readonly code: v.SchemaWithPipe<readonly [v.EnumSchema<typeof ErrorCode, undefined>, v.TransformAction<ErrorCode, "STALE_QUOTE" | "UNSPECIFIED" | "BAD_REQUEST" | "INVALID_ARGUMENT" | "INSUFFICIENT_FUNDS" | "UNKNOWN_SYMBOL" | "BAD_PRICE" | "BAD_QTY" | "MIN_NOTIONAL" | "QTY_STEP_SIZE" | "CONFLICT_DUPLICATE_CLIENT_ORDER_ID" | "UNAVAILABLE" | "UNAUTHENTICATED" | "PERMISSION_DENIED" | "NOT_FOUND" | "UPSTREAM_ERROR" | "FEE_ASSET_NOT_ALLOWED" | "PAIR_DISABLED" | "ORDER_UNKNOWN" | "INTERNAL_ERROR" | "SUBACCOUNT_INACTIVE" | "POLICY_MARKET_DENY" | "POLICY_MAX_NOTIONAL" | "POLICY_TRADING_HALTED" | "POLICY_SPOT_TRADE_DENY" | "API_KEY_ROOT_SCOPE_ONLY" | "API_KEY_SUB_SCOPE_ONLY" | "API_KEY_SUBACCOUNT_MISMATCH" | "API_KEY_POLICY_REQUIRED" | "API_KEY_UNKNOWN" | "API_KEY_MARKET_DENY" | "PRICE_TICK_SIZE" | "MIN_QTY" | "POST_ONLY_LIMIT_ONLY" | "BATCH_TOO_LARGE" | "MODIFICATION_REQUIRES_REPLACE" | "CONFLICT_IDEMPOTENCY_KEY_REUSE" | "MARKET_PRICE_UNAVAILABLE" | "PAIR_NOT_LISTED_YET" | "PAIR_DELISTED" | "PAIR_CANCEL_ONLY" | "PAIR_POST_ONLY" | "PAIR_REDUCE_ONLY" | "RISK_LIMIT" | "MARKET_HALTED" | "ACCOUNT_UNKNOWN" | "POST_ONLY_CROSS" | "REDUCE_ONLY_BLOCKED" | "PRICE_BAND_VIOLATION" | "MARKET_CAP_VIOLATION" | "EMPTY_BOOK" | "FOK_INSUFFICIENT_LIQUIDITY" | "ORDER_ALREADY_TERMINAL" | "TRIGGER_PRICE_INVALID" | "TRIGGER_PRICE_SOURCE_UNSUPPORTED" | "TRAILING_DISTANCE_INVALID" | "TRIGGER_NOT_FOUND" | "TRIGGER_CANCEL_REJECTED" | "TRIGGER_STATUS_INVALID" | "TRIGGER_NOT_MODIFIABLE" | "CONFLICT_DUPLICATE_CLIENT_TRIGGER_ID" | "MAX_SLIPPAGE_INVALID" | "VALIDATION_ERROR" | "OVERLOADED" | "MAX_QUOTE_DEBIT_TOO_SMALL" | "RATE_LIMIT_EXCEEDED">]>;
3207
+ readonly violations: v.ArraySchema<v.ObjectSchema<{
3208
+ readonly fieldPath: v.StringSchema<undefined>;
3209
+ readonly ruleId: v.StringSchema<undefined>;
3210
+ readonly message: v.StringSchema<undefined>;
3211
3211
  }, undefined>, undefined>;
3212
- readonly rateLimit: validation_d_exports.OptionalSchema<validation_d_exports.ObjectSchema<{
3213
- readonly reason: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.EnumSchema<typeof FailureReason, undefined>, validation_d_exports.TransformAction<FailureReason, "unspecified" | "quota_exceeded" | "authority_unavailable">]>;
3214
- readonly limit: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.BigintSchema<undefined>, undefined>, validation_d_exports.TransformAction<bigint | undefined, string | undefined>]>;
3215
- readonly remaining: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.BigintSchema<undefined>, undefined>, validation_d_exports.TransformAction<bigint | undefined, string | undefined>]>;
3216
- readonly retryAfterMs: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.BigintSchema<undefined>, undefined>, validation_d_exports.TransformAction<bigint | undefined, string | undefined>]>;
3217
- readonly policyVersion: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.OptionalSchema<validation_d_exports.BigintSchema<undefined>, undefined>, validation_d_exports.TransformAction<bigint | undefined, string | undefined>]>;
3218
- readonly operationId: validation_d_exports.StringSchema<undefined>;
3219
- readonly policyClass: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.EnumSchema<typeof PolicyClass, undefined>, validation_d_exports.TransformAction<PolicyClass, "unspecified" | "auth_public" | "trading_place" | "trading_cancel" | "trading_read" | "account_admin" | "public_read" | "account_security" | "deposit_create" | "internal_transfer" | "withdraw_submit" | "withdraw_validate" | "guard_sign" | "social_provider">]>;
3220
- readonly scope: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.EnumSchema<typeof LimiterScope, undefined>, validation_d_exports.TransformAction<LimiterScope, "symbol" | "unspecified" | "client_ip" | "api_key" | "account" | "subaccount" | "connection" | "service" | "region" | "auth_subject">]>;
3221
- readonly refillModel: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.EnumSchema<typeof RefillModel, undefined>, validation_d_exports.TransformAction<RefillModel, "unspecified" | "continuous" | "fixed_window" | "rolling_window">]>;
3212
+ readonly rateLimit: v.OptionalSchema<v.ObjectSchema<{
3213
+ readonly reason: v.SchemaWithPipe<readonly [v.EnumSchema<typeof FailureReason, undefined>, v.TransformAction<FailureReason, "unspecified" | "quota_exceeded" | "authority_unavailable">]>;
3214
+ readonly limit: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
3215
+ readonly remaining: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
3216
+ readonly retryAfterMs: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
3217
+ readonly policyVersion: v.SchemaWithPipe<readonly [v.OptionalSchema<v.BigintSchema<undefined>, undefined>, v.TransformAction<bigint | undefined, string | undefined>]>;
3218
+ readonly operationId: v.StringSchema<undefined>;
3219
+ readonly policyClass: v.SchemaWithPipe<readonly [v.EnumSchema<typeof PolicyClass, undefined>, v.TransformAction<PolicyClass, "unspecified" | "auth_public" | "trading_place" | "trading_cancel" | "trading_read" | "account_admin" | "public_read" | "account_security" | "deposit_create" | "internal_transfer" | "withdraw_submit" | "withdraw_validate" | "guard_sign" | "social_provider">]>;
3220
+ readonly scope: v.SchemaWithPipe<readonly [v.EnumSchema<typeof LimiterScope, undefined>, v.TransformAction<LimiterScope, "symbol" | "unspecified" | "client_ip" | "api_key" | "account" | "subaccount" | "connection" | "service" | "region" | "auth_subject">]>;
3221
+ readonly refillModel: v.SchemaWithPipe<readonly [v.EnumSchema<typeof RefillModel, undefined>, v.TransformAction<RefillModel, "unspecified" | "continuous" | "fixed_window" | "rolling_window">]>;
3222
3222
  }, undefined>, undefined>;
3223
3223
  }, undefined>, undefined>;
3224
3224
  }, undefined>, undefined>;
3225
- readonly acceptedCount: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.NumberSchema<undefined>, validation_d_exports.IntegerAction<number, undefined>, validation_d_exports.MinValueAction<number, 0, undefined>]>;
3226
- readonly rejectedCount: validation_d_exports.SchemaWithPipe<readonly [validation_d_exports.NumberSchema<undefined>, validation_d_exports.IntegerAction<number, undefined>, validation_d_exports.MinValueAction<number, 0, undefined>]>;
3227
- readonly tsNs: validation_d_exports.BigintSchema<undefined>;
3228
- }, undefined>, validation_d_exports.CheckAction<{
3225
+ readonly acceptedCount: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
3226
+ readonly rejectedCount: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
3227
+ readonly tsNs: v.BigintSchema<undefined>;
3228
+ }, undefined>, v.CheckAction<{
3229
3229
  results: {
3230
3230
  status: "accepted" | "rejected";
3231
3231
  orderId?: string | undefined;
@@ -3254,7 +3254,7 @@ declare const BatchCancelOrdersResultSchema: validation_d_exports.SchemaWithPipe
3254
3254
  acceptedCount: number;
3255
3255
  rejectedCount: number;
3256
3256
  tsNs: bigint;
3257
- }, "Batch cancel result counts do not match the returned results.">, validation_d_exports.TransformAction<{
3257
+ }, "Batch cancel result counts do not match the returned results.">, v.TransformAction<{
3258
3258
  results: {
3259
3259
  status: "accepted" | "rejected";
3260
3260
  orderId?: string | undefined;
@@ -3314,7 +3314,7 @@ declare const BatchCancelOrdersResultSchema: validation_d_exports.SchemaWithPipe
3314
3314
  acceptedCount: number;
3315
3315
  rejectedCount: number;
3316
3316
  }>]>;
3317
- type BatchCancelOrdersResult = validation_d_exports.InferOutput<typeof BatchCancelOrdersResultSchema>;
3317
+ type BatchCancelOrdersResult = v.InferOutput<typeof BatchCancelOrdersResultSchema>;
3318
3318
  //#endregion
3319
3319
  export { BatchCancelOrderInput, BatchCancelOrderResult, BatchCancelOrdersInput, BatchCancelOrdersInputSchema, BatchCancelOrdersResult, BatchCancelOrdersResultSchema, BatchCreateOrderResult, BatchCreateOrdersInput, BatchCreateOrdersResult, BatchReplaceAdmissionItem, BatchReplaceOrdersInput, BatchReplaceOrdersResult, BatchReplaceOrdersResultSchema, CancelAllAfterInput, CancelAllAfterInputSchema, CancelAllAfterResult, CancelAllAfterResultSchema, GetBatchReplaceStatusInput, GetBatchReplaceStatusInputSchema, GetBatchReplaceStatusResult, GetBatchReplaceStatusResultSchema, createBatchCreateOrdersInputSchema, createBatchCreateOrdersResultSchema };
3320
3320
  //# sourceMappingURL=orders-batch.schemas.d.ts.map