@polyester/sdk 0.32.2-devnet-20261103155212 → 0.33.0-devnet-20261104141024

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 (101) hide show
  1. package/CHANGELOG.md +11 -1
  2. package/dist/core-client.d.ts +1 -1
  3. package/dist/gen/auth/v1/auth_pb.js +1 -1
  4. package/dist/gen/auth/v1/auth_pb.js.map +1 -1
  5. package/dist/gen/auth/v1/policies_pb.js +1 -1
  6. package/dist/gen/auth/v1/policies_pb.js.map +1 -1
  7. package/dist/gen/auth/v1/subaccounts_pb.d.ts +17 -0
  8. package/dist/gen/auth/v1/subaccounts_pb.d.ts.map +1 -1
  9. package/dist/gen/auth/v1/subaccounts_pb.js +3 -1
  10. package/dist/gen/auth/v1/subaccounts_pb.js.map +1 -1
  11. package/dist/gen/chain/deposit/v1/deposit_pb.d.ts +6 -4
  12. package/dist/gen/chain/deposit/v1/deposit_pb.d.ts.map +1 -1
  13. package/dist/gen/chain/deposit/v1/deposit_pb.js.map +1 -1
  14. package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.js +1 -1
  15. package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.js.map +1 -1
  16. package/dist/gen/chain/lifecycle/v1/types_pb.js +1 -1
  17. package/dist/gen/chain/lifecycle/v1/types_pb.js.map +1 -1
  18. package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts +1 -1
  19. package/dist/gen/chain/withdraw/v1/withdraw_pb.js +1 -1
  20. package/dist/gen/chain/withdraw/v1/withdraw_pb.js.map +1 -1
  21. package/dist/gen/fees/v1/fees_pb.d.ts +228 -12
  22. package/dist/gen/fees/v1/fees_pb.d.ts.map +1 -1
  23. package/dist/gen/fees/v1/fees_pb.js +23 -4
  24. package/dist/gen/fees/v1/fees_pb.js.map +1 -1
  25. package/dist/gen/index.js +3 -3
  26. package/dist/gen/ledger/read/v1/ledger_read_pb.d.ts +16 -121
  27. package/dist/gen/ledger/read/v1/ledger_read_pb.d.ts.map +1 -1
  28. package/dist/gen/ledger/read/v1/ledger_read_pb.js +5 -23
  29. package/dist/gen/ledger/read/v1/ledger_read_pb.js.map +1 -1
  30. package/dist/gen/marketdata/v1/marketdata_pb.d.ts +24 -21
  31. package/dist/gen/marketdata/v1/marketdata_pb.d.ts.map +1 -1
  32. package/dist/gen/marketdata/v1/marketdata_pb.js.map +1 -1
  33. package/dist/gen/orders/v1/orders_pb.d.ts +69 -26
  34. package/dist/gen/orders/v1/orders_pb.d.ts.map +1 -1
  35. package/dist/gen/orders/v1/orders_pb.js +26 -9
  36. package/dist/gen/orders/v1/orders_pb.js.map +1 -1
  37. package/dist/gen/orders/v1/orders_read_pb.d.ts +38 -15
  38. package/dist/gen/orders/v1/orders_read_pb.d.ts.map +1 -1
  39. package/dist/gen/orders/v1/orders_read_pb.js +21 -8
  40. package/dist/gen/orders/v1/orders_read_pb.js.map +1 -1
  41. package/dist/gen/privatews/v1/private_ws_pb.js +1 -1
  42. package/dist/gen/privatews/v1/private_ws_pb.js.map +1 -1
  43. package/dist/gen/ratelimit/v1/ratelimit_pb.d.ts +3 -2
  44. package/dist/gen/ratelimit/v1/ratelimit_pb.d.ts.map +1 -1
  45. package/dist/gen/ratelimit/v1/ratelimit_pb.js.map +1 -1
  46. package/dist/gen/swap/quickswap/v1/quickswap_pb.js +1 -1
  47. package/dist/gen/swap/quickswap/v1/quickswap_pb.js.map +1 -1
  48. package/dist/gen/transfer/v1/internal_transfer_pb.d.ts +4 -3
  49. package/dist/gen/transfer/v1/internal_transfer_pb.d.ts.map +1 -1
  50. package/dist/gen/transfer/v1/internal_transfer_pb.js +1 -1
  51. package/dist/gen/transfer/v1/internal_transfer_pb.js.map +1 -1
  52. package/dist/gen/triggers/v1/triggers_pb.d.ts +66 -28
  53. package/dist/gen/triggers/v1/triggers_pb.d.ts.map +1 -1
  54. package/dist/gen/triggers/v1/triggers_pb.js +35 -15
  55. package/dist/gen/triggers/v1/triggers_pb.js.map +1 -1
  56. package/dist/index.d.ts +5 -5
  57. package/dist/services/auto-withdraw/auto-withdraw.schemas.d.ts +19 -19
  58. package/dist/services/balances/balances.js +1 -1
  59. package/dist/services/balances/balances.schemas.d.ts +4 -4
  60. package/dist/services/candles/candles.schemas.d.ts +10 -10
  61. package/dist/services/changelog/changelog.schemas.d.ts +17 -17
  62. package/dist/services/fees/fees.d.ts +1 -1
  63. package/dist/services/fees/fees.js +1 -1
  64. package/dist/services/fees/fees.js.map +1 -1
  65. package/dist/services/fees/fees.schemas.d.ts +172 -1
  66. package/dist/services/fees/fees.schemas.d.ts.map +1 -1
  67. package/dist/services/fees/fees.schemas.js +38 -1
  68. package/dist/services/fees/fees.schemas.js.map +1 -1
  69. package/dist/services/fees/fees.types.d.ts +2 -2
  70. package/dist/services/heatmap/heatmap.schemas.d.ts +13 -13
  71. package/dist/services/internal-transfers/internal-transfers.schemas.d.ts +1 -1
  72. package/dist/services/lifecycle/lifecycle.schemas.d.ts +148 -148
  73. package/dist/services/market-overview/market-overview.schemas.d.ts +3 -3
  74. package/dist/services/orderbook/orderbook.schemas.d.ts +1 -1
  75. package/dist/services/orders/order-errors.schemas.d.ts +1 -1
  76. package/dist/services/orders/orders-batch.schemas.d.ts +34 -34
  77. package/dist/services/orders/orders-input.schemas.d.ts +3 -3
  78. package/dist/services/orders/orders-output.schemas.d.ts +18 -18
  79. package/dist/services/orders/orders.codecs.js +1 -0
  80. package/dist/services/orders/orders.codecs.js.map +1 -1
  81. package/dist/services/rewards/rewards.schemas.d.ts +3 -3
  82. package/dist/services/subaccounts/index.d.ts +2 -2
  83. package/dist/services/subaccounts/subaccounts.d.ts +11 -3
  84. package/dist/services/subaccounts/subaccounts.d.ts.map +1 -1
  85. package/dist/services/subaccounts/subaccounts.js +14 -4
  86. package/dist/services/subaccounts/subaccounts.js.map +1 -1
  87. package/dist/services/subaccounts/subaccounts.schemas.d.ts +11 -6
  88. package/dist/services/subaccounts/subaccounts.schemas.d.ts.map +1 -1
  89. package/dist/services/subaccounts/subaccounts.schemas.js +5 -1
  90. package/dist/services/subaccounts/subaccounts.schemas.js.map +1 -1
  91. package/dist/services/subaccounts/subaccounts.types.d.ts +2 -2
  92. package/dist/services/trades/trades.schemas.d.ts +1 -1
  93. package/dist/services/trading-withdraws/trading-withdraws.schemas.d.ts +1 -1
  94. package/dist/services/transfers/transfers.js +1 -1
  95. package/dist/services/transfers/transfers.schemas.d.ts +1 -1
  96. package/dist/services/triggers/trigger-input.schemas.d.ts +1 -1
  97. package/dist/services/triggers/triggers-output.schemas.d.ts +22 -22
  98. package/dist/services/triggers/triggers.codecs.js +1 -0
  99. package/dist/services/triggers/triggers.codecs.js.map +1 -1
  100. package/dist/wired-services.js +1 -1
  101. package/package.json +1 -1
@@ -323,7 +323,8 @@ declare const GetCandlesRequestSchema: GenMessage<GetCandlesRequest>;
323
323
  /**
324
324
  * GetCandlesColumnsRequest selects a spot market candle series for columnar output.
325
325
  *
326
- * The response is ordered oldest-first for efficient chart ingestion. When both
326
+ * Each response page is ordered oldest-first. Pagination selects the newest
327
+ * eligible closed candles first and continues toward older candles. When both
327
328
  * start_time and end_time are set, both bounds are inclusive.
328
329
  *
329
330
  * @generated from message marketdata.v1.GetCandlesColumnsRequest
@@ -364,9 +365,8 @@ type GetCandlesColumnsRequest = Message<"marketdata.v1.GetCandlesColumnsRequest"
364
365
  */
365
366
  endTime?: Timestamp | undefined;
366
367
  /**
367
- * Include the current open candle when it is available and inside the
368
- * requested range.
369
- * The open candle is prepended to the newest-first candle list and does not
368
+ * Include the current open candle when available and inside the requested
369
+ * range. It appears last in the oldest-first response columns and does not
370
370
  * count toward the closed-candle limit.
371
371
  *
372
372
  * @generated from field: bool include_incomplete = 6;
@@ -382,9 +382,9 @@ type GetCandlesColumnsRequest = Message<"marketdata.v1.GetCandlesColumnsRequest"
382
382
  */
383
383
  includeReference: boolean;
384
384
  /**
385
- * Opaque keyset cursor from a previous response. The cursor is exclusive and
386
- * bound to symbol, timeframe, time bounds, and oldest-first candle ordering.
387
- * Inclusion flags and columnar response shape may change between pages.
385
+ * Opaque exclusive keyset cursor for older closed candles, bound to symbol,
386
+ * timeframe, and time bounds. Columns within each page are ordered oldest-first.
387
+ * Inclusion flags and response shape may change between pages.
388
388
  *
389
389
  * @generated from field: string page_token = 8;
390
390
  */
@@ -522,7 +522,8 @@ declare const GetCandlesResponseSchema: GenMessage<GetCandlesResponse>;
522
522
  * GetCandlesColumnsResponse returns the same candle series as GetCandles but in columnar form.
523
523
  * This is optimized for charting clients that ingest arrays of each field (binary only).
524
524
  *
525
- * Ordering: values are returned oldest-first (ascending ts_sec).
525
+ * Ordering: values within each page are oldest-first (ascending ts_sec).
526
+ * Continuation pages contain older candles.
526
527
  *
527
528
  * @generated from message marketdata.v1.GetCandlesColumnsResponse
528
529
  */
@@ -736,9 +737,10 @@ type AssetConfig = Message<"marketdata.v1.AssetConfig"> & {
736
737
  */
737
738
  quantityDisplayDecimals: number;
738
739
  /**
739
- * Integer scale for quantities and balances in this asset (0..18).
740
- * A scale of 8 means one whole asset is represented as 100000000 in scaled
741
- * integer fields such as qty_scaled.
740
+ * Decimal scale (0..18) for this asset's order quantities and other fields
741
+ * that explicitly reference quantity_scale. A scale of 8 represents one whole
742
+ * asset as 100000000 in those fields. Account balance amounts use fixed
743
+ * 18-decimal units independently of this value.
742
744
  *
743
745
  * @generated from field: uint32 quantity_scale = 5;
744
746
  */
@@ -923,10 +925,11 @@ type PairConfig = Message<"marketdata.v1.PairConfig"> & {
923
925
  */
924
926
  maxMarketQtyBase?: string | undefined;
925
927
  /**
926
- * Largest notional of one order, as a decimal string in quote-asset units:
927
- * its quantity times its limit price, or times its protection price for a
928
- * market order, compared exactly with no rounding. An order above it is
929
- * rejected with MAX_NOTIONAL. Absent when the pair has no maximum.
928
+ * Maximum per-order notional as a decimal string in quote-asset units.
929
+ * Base-sized orders are checked using quantity times limit price, or market
930
+ * protection price, without rounding. For quote-sized buys, the entire all-in
931
+ * maximum quote debit must also fit this maximum. Exceeding it returns
932
+ * MAX_NOTIONAL. Absent when no maximum is configured.
930
933
  *
931
934
  * @generated from field: optional string max_order_notional_quote = 22;
932
935
  */
@@ -944,12 +947,12 @@ type PairConfig = Message<"marketdata.v1.PairConfig"> & {
944
947
  */
945
948
  maxOpenOrdersPerPair: number;
946
949
  /**
947
- * Largest notional of one market order, as a decimal string in quote-asset
948
- * units, compared exactly with no rounding. A market order is valued at the
949
- * top of the price range it may trade in: a buy at its protection price and
950
- * a sell at its reference price, the touch or the client's reference price,
951
- * before slippage. An order above it is rejected with MAX_NOTIONAL. Absent
952
- * when the pair has no maximum.
950
+ * Additional maximum notional for market orders as a decimal string in
951
+ * quote-asset units. Base-sized market orders are valued at the buy protection
952
+ * price or the sell reference price before slippage, without rounding. For
953
+ * quote-sized market buys, the entire all-in maximum quote debit must also fit
954
+ * this maximum. Exceeding it returns MAX_NOTIONAL. Absent when no maximum is
955
+ * configured.
953
956
  *
954
957
  * @generated from field: optional string max_market_notional_quote = 24;
955
958
  */
@@ -1 +1 @@
1
- {"version":3,"file":"marketdata_pb.d.ts","names":[],"sources":["../../../../src/gen/marketdata/v1/marketdata_pb.ts"],"mappings":";;;;;;;;;cAca,+BAA+B;;;;;;;;;;;;;;KAgBhC,mBAAmB;;;;;;EAM7B;;;;;;EAOA;;;;;;;EAQA,YAAY;;;;;;;;EASZ,UAAU;;;;;;EAOV,MAAM;;;;;;;EAQN;;;;;;;;;;;;;EAcA;;;;;;cAOW,wBAAwB,WAAW;;;;;;;;KAUpC,cAAc;;;;;;EAMxB;;;;;;EAOA;;;;;;;EAQA;;;;;;EAOA;;;;;;;EAQA;;;;;;EAOA;;;;;;cAOW,mBAAmB,WAAW;;;;;;;;;;;;;KAe/B,mBAAmB;;;;;;EAM7B,QAAQ;;;;;;cAOG,wBAAwB,WAAW;;;;;;;;;KAWpC,gBAAgB;;;;;;EAM1B;;;;;;;EAQA;;;;;;cAOW,qBAAqB,WAAW;;;;;;KAQjC,oBAAoB;;;;;;;E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;;;;;EAYA;;;;;;cAOW,kBAAkB,WAAW;;;;;;KAQ9B,uBAAuB;;;;;cAOtB,4BAA4B,WAAW;;;;;;KAQxC,wBAAwB;;;;;;EAMlC,QAAQ;;;;;;EAOR,OAAO;;;;;;EAOP;;;;;;;;;;;;;EAcA;;;;;;cAOW,6BAA6B,WAAW;;;;;;aAQzC;;;;;;EAMV;;;;;;EAOA;;;;;;EAOA;;;;;cAMW,kBAAkB,QAAQ;;;;;;;;;;;;;aAe3B;;;;EAIV;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;cAMW,iBAAiB,QAAQ;;;;;;aAQ1B;;;;;;EAMV;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;;EAQA;;;;;cAMW,kBAAkB,QAAQ;;;;cAM1B,mBAAmB;;;;;;;;;;EAU9B;IACE;IACA,cAAc;IACd,eAAe;;;;;;;;;EASjB;IACE;IACA,cAAc;IACd,eAAe;;;;;;;;;;;EAWjB;IACE;IACA,cAAc;IACd,eAAe;;;;;;;EAOjB;IACE;IACA,cAAc;IACd,eAAe"}
@@ -1 +1 @@
1
- {"version":3,"file":"marketdata_pb.js","names":[],"sources":["../../../../src/gen/marketdata/v1/marketdata_pb.ts"],"sourcesContent":["// @generated by protoc-gen-es v2.13.0 with parameter \"target=ts,import_extension=js\"\n// @generated from file marketdata/v1/marketdata.proto (package marketdata.v1, syntax proto3)\n/* eslint-disable */\n\nimport type { GenEnum, GenFile, GenMessage, GenService } from \"@bufbuild/protobuf/codegenv2\";\nimport { enumDesc, fileDesc, messageDesc, serviceDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport type { Timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_google_protobuf_timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_polyester_api_options } from \"../../polyester/api/options_pb.js\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file marketdata/v1/marketdata.proto.\n */\nexport const file_marketdata_v1_marketdata: GenFile = /*@__PURE__*/\n fileDesc(\"Ch5tYXJrZXRkYXRhL3YxL21hcmtldGRhdGEucHJvdG8SDW1hcmtldGRhdGEudjEiiQIKEEdldFRyYWRlc1JlcXVlc3QSEwoJc3ltYm9sX2lkGAEgASgNQgASDwoFbGltaXQYAiABKA1CABIuCgpzdGFydF90aW1lGAMgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIsCghlbmRfdGltZRgEIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASKQoEc2lkZRgFIAEoDjIZLm1hcmtldGRhdGEudjEuU2lkZUZpbHRlckIAEhQKCnBhZ2VfdG9rZW4YBiABKAlCABIbCg5hZnRlcl90cmFkZV9pZBgHIAEoBEgAiAEBOgBCEQoPX2FmdGVyX3RyYWRlX2lkInoKC01hcmtldFRyYWRlEhEKCXN5bWJvbF9pZBgBIAEoDRIQCghtYXRjaF9pZBgCIAEoBBIOCgZpc19idXkYAyABKAgSEwoLcHJpY2VfdGlja3MYBCABKAMSEgoKcXR5X3NjYWxlZBgFIAEoAxINCgV0c19ucxgGIAEoBCI+ChBNYXJrZXRUcmFkZUJhdGNoEioKBmV2ZW50cxgBIAMoCzIaLm1hcmtldGRhdGEudjEuTWFya2V0VHJhZGUiNQoNVHJhZGVFcG9jaEVuZBINCgVlcG9jaBgBIAEoBBIVCg1sYXN0X3RyYWRlX2lkGAIgASgEIswBChFHZXRUcmFkZXNSZXNwb25zZRIqCgZ0cmFkZXMYASADKAsyGi5tYXJrZXRkYXRhLnYxLk1hcmtldFRyYWRlEhkKD25leHRfcGFnZV90b2tlbhgCIAEoCUIAEiEKGWNvbXBsZXRlX3Rocm91Z2hfdHJhZG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19FTkFCTEVEEAESGAoUUEFJUl9TVEFUVVNfRElTQUJMRUQQAhIbChdQQUlSX1NUQVRVU19DQU5DRUxfT05MWRADEhkKFVBBSVJfU1RBVFVTX1BPU1RfT05MWRAEEhsKF1BBSVJfU1RBVFVTX1JFRFVDRV9PTkxZEAUSFgoSUEFJUl9TVEFUVVNfSEFMVEVEEAYyhAMKEU1hcmtldERhdGFTZXJ2aWNlElAKCUdldFRyYWRlcxIfLm1hcmtldGRhdGEudjEuR2V0VHJhZGVzUmVxdWVzdBogLm1hcmtldGRhdGEudjEuR2V0VHJhZGVzUmVzcG9uc2UiABJTCgpHZXRDYW5kbGVzEiAubWFya2V0ZGF0YS52MS5HZXRDYW5kbGVzUmVxdWVzdBohLm1hcmtldGRhdGEudjEuR2V0Q2FuZGxlc1Jlc3BvbnNlIgASaAoRR2V0Q2FuZGxlc0NvbHVtbnMSJy5tYXJrZXRkYXRhLnYxLkdldENhbmRsZXNDb2x1bW5zUmVxdWVzdBooLm1hcmtldGRhdGEudjEuR2V0Q2FuZGxlc0NvbHVtbnNSZXNwb25zZSIAElwKDUdldFNwb3RDb25maWcSIy5tYXJrZXRkYXRhLnYxLkdldFNwb3RDb25maWdSZXF1ZXN0GiQubWFya2V0ZGF0YS52MS5HZXRTcG90Q29uZmlnUmVzcG9uc2UiABoAQkhaRmdpdGh1Yi5jb20vRmFicmljLUxhYnMvcG9seWVzdGVyLXNkay1nby9nZW4vbWFya2V0ZGF0YS92MTttYXJrZXRkYXRhdjFiBnByb3RvMw==\", [file_google_protobuf_timestamp, file_polyester_api_options]);\n\n/**\n * GetTradesRequest selects recent public trades for one spot market.\n *\n * Results are ordered newest-first by execution timestamp, with match_id as a\n * tie-breaker. When both start_time and end_time are set, both bounds are\n * inclusive.\n *\n * With after_trade_id set, the request instead walks the symbol's trades by\n * trade identifier (match_id), oldest first and gap-free, to backfill trades\n * missed on a live stream: see after_trade_id.\n *\n * @generated from message marketdata.v1.GetTradesRequest\n */\nexport type GetTradesRequest = Message<\"marketdata.v1.GetTradesRequest\"> & {\n /**\n * Stable numeric pair id from GetSpotConfig.\n *\n * @generated from field: uint32 symbol_id = 1;\n */\n symbolId: number;\n\n /**\n * Maximum number of trades to return. Defaults to 100 when unset; max 1000.\n *\n * @generated from field: uint32 limit = 2;\n */\n limit: number;\n\n /**\n * Inclusive lower bound for trade execution time. Must not be more than\n * 5 minutes in the future.\n *\n * @generated from field: google.protobuf.Timestamp start_time = 3;\n */\n startTime?: Timestamp | undefined;\n\n /**\n * Inclusive upper bound for trade execution time. Must be greater than or\n * equal to start_time when both are set, and must not be more than 5 minutes\n * in the future.\n *\n * @generated from field: google.protobuf.Timestamp end_time = 4;\n */\n endTime?: Timestamp | undefined;\n\n /**\n * Optional filter by trade aggressor side. Unspecified returns both sides.\n *\n * @generated from field: marketdata.v1.SideFilter side = 5;\n */\n side: SideFilter;\n\n /**\n * Opaque keyset cursor from a previous response. The cursor is exclusive and\n * bound to symbol, time bounds, side filter, and newest-first sort order.\n *\n * @generated from field: string page_token = 6;\n */\n pageToken: string;\n\n /**\n * Exclusive trade-identifier cursor for gap-free backfill. When set, the\n * results are the symbol's trades with match_id greater than\n * after_trade_id, ascending by match_id, up to limit, and only trades at or\n * below the response's complete_through_trade_id: every page is gap-free.\n * Trade identifiers order trades across epochs too, so a walk crosses\n * epoch ends without a gap. Pass 0 to start from the symbol's first trade,\n * then the response's next_after_trade_id. Cannot be combined with\n * start_time, end_time, side or page_token.\n *\n * @generated from field: optional uint64 after_trade_id = 7;\n */\n afterTradeId?: bigint | undefined;\n};\n\n/**\n * Describes the message marketdata.v1.GetTradesRequest.\n * Use `create(GetTradesRequestSchema)` to create a new message.\n */\nexport const GetTradesRequestSchema: GenMessage<GetTradesRequest> = /*@__PURE__*/\n messageDesc(file_marketdata_v1_marketdata, 0);\n\n/**\n * MarketTrade is one public trade print represented with scaled integers.\n *\n * REST responses render price and quantity as decimal strings.\n *\n * @generated from message marketdata.v1.MarketTrade\n */\nexport type MarketTrade = Message<\"marketdata.v1.MarketTrade\"> & {\n /**\n * Stable numeric pair id from GetSpotConfig.\n *\n * @generated from field: uint32 symbol_id = 1;\n */\n symbolId: number;\n\n /**\n * Stable trade id within the symbol, suitable for pagination and de-duplication.\n *\n * @generated from field: uint64 match_id = 2;\n */\n matchId: bigint;\n\n /**\n * True when the taker/aggressor bought the base asset; false when the\n * taker/aggressor sold the base asset.\n *\n * @generated from field: bool is_buy = 3;\n */\n isBuy: boolean;\n\n /**\n * Trade price in quote-asset units scaled by 1e9.\n *\n * @generated from field: int64 price_ticks = 4;\n */\n priceTicks: bigint;\n\n /**\n * Traded base-asset quantity scaled by the pair's base_quantity_scale from\n * GetSpotConfig.\n *\n * @generated from field: int64 qty_scaled = 5;\n */\n qtyScaled: bigint;\n\n /**\n * Trade execution timestamp, in nanoseconds since the Unix epoch (UTC).\n *\n * @generated from field: uint64 ts_ns = 6;\n */\n tsNs: bigint;\n};\n\n/**\n * Describes the message marketdata.v1.MarketTrade.\n * Use `create(MarketTradeSchema)` to create a new message.\n */\nexport const MarketTradeSchema: GenMessage<MarketTrade> = /*@__PURE__*/\n messageDesc(file_marketdata_v1_marketdata, 1);\n\n/**\n * MarketTradeBatch is one realtime publication on a symbol's public trade\n * stream: every trade queued for the stream when it was sent, at most 256 and\n * at most 64 KiB, in execution order.\n *\n * match_id identifies a trade. Apply trades in array order and in publication\n * order; a trade whose match_id was already received replaces the earlier copy.\n * When the subscription reports that missed publications could not be\n * recovered, reload recent trades over REST.\n *\n * @generated from message marketdata.v1.MarketTradeBatch\n */\nexport type MarketTradeBatch = Message<\"marketdata.v1.MarketTradeBatch\"> & {\n /**\n * Trades in execution order, oldest first. At least one trade.\n *\n * @generated from field: repeated marketdata.v1.MarketTrade events = 1;\n */\n events: MarketTrade[];\n};\n\n/**\n * Describes the message marketdata.v1.MarketTradeBatch.\n * Use `create(MarketTradeBatchSchema)` to create a new message.\n */\nexport const MarketTradeBatchSchema: GenMessage<MarketTradeBatch> = /*@__PURE__*/\n messageDesc(file_marketdata_v1_marketdata, 2);\n\n/**\n * TradeEpochEnd reports where one epoch of a symbol's trade identifiers\n * ended. Trade identifiers of epoch e are greater than (e-1) * 2^40 and less\n * than e * 2^40; a later epoch's identifiers are greater than every earlier\n * epoch's.\n *\n * @generated from message marketdata.v1.TradeEpochEnd\n */\nexport type TradeEpochEnd = Message<\"marketdata.v1.TradeEpochEnd\"> & {\n /**\n * The epoch.\n *\n * @generated from field: uint64 epoch = 1;\n */\n epoch: bigint;\n\n /**\n * match_id of the epoch's last trade; (epoch-1) * 2^40 when the epoch\n * ended without trades.\n *\n * @generated from field: uint64 last_trade_id = 2;\n */\n lastTradeId: bigint;\n};\n\n/**\n * Describes the message marketdata.v1.TradeEpochEnd.\n * Use `create(TradeEpochEndSchema)` to create a new message.\n */\nexport const TradeEpochEndSchema: GenMessage<TradeEpochEnd> = /*@__PURE__*/\n messageDesc(file_marketdata_v1_marketdata, 3);\n\n/**\n * GetTradesResponse contains public trades for one spot market.\n *\n * @generated from message marketdata.v1.GetTradesResponse\n */\nexport type GetTradesResponse = Message<\"marketdata.v1.GetTradesResponse\"> & {\n /**\n * Trades ordered newest-first by execution timestamp, with match_id as a\n * tie-breaker; with after_trade_id, ascending by match_id.\n *\n * @generated from field: repeated marketdata.v1.MarketTrade trades = 1;\n */\n trades: MarketTrade[];\n\n /**\n * Opaque cursor for the next page. Empty when no more results exist, and\n * always empty with after_trade_id.\n *\n * @generated from field: string next_page_token = 2;\n */\n nextPageToken: string;\n\n /**\n * Set only with after_trade_id; 0 otherwise. Every trade of the symbol\n * with match_id at or below this value exists and is returned by this\n * method. Identifiers in that range that no trade has, the rest of an\n * ended epoch and every identifier below a later epoch's first, are\n * covered too. Newer trades may exist that are not available here yet; it\n * only grows.\n *\n * @generated from field: uint64 complete_through_trade_id = 3;\n */\n completeThroughTradeId: bigint;\n\n /**\n * Set only with after_trade_id; 0 otherwise. The after_trade_id of the\n * next call; it never moves backwards. On a full page (limit trades) it is\n * the last trade's match_id. Otherwise it is the greater of after_trade_id\n * and complete_through_trade_id, so a walk progresses across epoch ends\n * and empty epochs without trades to carry it. When it equals the\n * request's after_trade_id, nothing newer is available yet: retry later\n * with backoff.\n *\n * @generated from field: uint64 next_after_trade_id = 4;\n */\n nextAfterTradeId: bigint;\n\n /**\n * Set only with after_trade_id. Every epoch whose last trade (or, for an\n * epoch without trades, its start) lies between after_trade_id and\n * next_after_trade_id, both inclusive, ascending by epoch. A page that\n * ends exactly on an epoch's last trade is followed by a page that still\n * reports that epoch's end.\n *\n * @generated from field: repeated marketdata.v1.TradeEpochEnd epoch_ends = 5;\n */\n epochEnds: TradeEpochEnd[];\n};\n\n/**\n * Describes the message marketdata.v1.GetTradesResponse.\n * Use `create(GetTradesResponseSchema)` to create a new message.\n */\nexport const GetTradesResponseSchema: GenMessage<GetTradesResponse> = /*@__PURE__*/\n messageDesc(file_marketdata_v1_marketdata, 4);\n\n/**\n * GetCandlesRequest selects a spot market candle series.\n *\n * The response is ordered newest-first by candle bucket start time. When both\n * start_time and end_time are set, both bounds are inclusive.\n *\n * @generated from message marketdata.v1.GetCandlesRequest\n */\nexport type GetCandlesRequest = Message<\"marketdata.v1.GetCandlesRequest\"> & {\n /**\n * Numeric spot market identifier.\n *\n * @generated from field: uint32 symbol_id = 1;\n */\n symbolId: number;\n\n /**\n * Candle bucket size. Required for ConnectRPC clients.\n *\n * @generated from field: marketdata.v1.Timeframe timeframe = 2;\n */\n timeframe: Timeframe;\n\n /**\n * Maximum number of closed candles to return. Defaults to 500 when unset;\n * max 10000.\n *\n * @generated from field: uint32 limit = 3;\n */\n limit: number;\n\n /**\n * Inclusive lower bound for candle bucket start time, as a UTC timestamp.\n * Must not be more than 5 minutes in the future.\n *\n * @generated from field: google.protobuf.Timestamp start_time = 4;\n */\n startTime?: Timestamp | undefined;\n\n /**\n * Inclusive upper bound for candle bucket start time, as a UTC timestamp.\n * Must be greater than or equal to start_time when both are set, and must not\n * be more than 5 minutes in the future.\n *\n * @generated from field: google.protobuf.Timestamp end_time = 5;\n */\n endTime?: Timestamp | undefined;\n\n /**\n * Include the current open candle when it is available and inside the\n * requested range.\n * The open candle is prepended to the newest-first candle list and does not\n * count toward the closed-candle limit.\n *\n * @generated from field: bool include_incomplete = 6;\n */\n includeIncomplete: boolean;\n\n /**\n * Include the composite reference market candle series for the same market,\n * timeframe, and time range.\n * The reference series can be empty when no reference series is available for\n * the requested timeframe.\n *\n * @generated from field: bool include_reference = 7;\n */\n includeReference: boolean;\n\n /**\n * Opaque keyset cursor from a previous response. The cursor is exclusive and\n * bound to symbol, timeframe, time bounds, and newest-first candle ordering.\n * Inclusion flags affect response enrichment and may change between pages.\n *\n * @generated from field: string page_token = 8;\n */\n pageToken: string;\n};\n\n/**\n * Describes the message marketdata.v1.GetCandlesRequest.\n * Use `create(GetCandlesRequestSchema)` to create a new message.\n */\nexport const GetCandlesRequestSchema: GenMessage<GetCandlesRequest> = /*@__PURE__*/\n messageDesc(file_marketdata_v1_marketdata, 5);\n\n/**\n * GetCandlesColumnsRequest selects a spot market candle series for columnar output.\n *\n * The response is ordered oldest-first for efficient chart ingestion. When both\n * start_time and end_time are set, both bounds are inclusive.\n *\n * @generated from message marketdata.v1.GetCandlesColumnsRequest\n */\nexport type GetCandlesColumnsRequest = Message<\"marketdata.v1.GetCandlesColumnsRequest\"> & {\n /**\n * Numeric spot market identifier.\n *\n * @generated from field: uint32 symbol_id = 1;\n */\n symbolId: number;\n\n /**\n * Candle bucket size. Required for ConnectRPC clients.\n *\n * @generated from field: marketdata.v1.Timeframe timeframe = 2;\n */\n timeframe: Timeframe;\n\n /**\n * Maximum number of closed candles to return. Defaults to 500 when unset;\n * max 10000.\n *\n * @generated from field: uint32 limit = 3;\n */\n limit: number;\n\n /**\n * Inclusive lower bound for candle bucket start time, as a UTC timestamp.\n * Must not be more than 5 minutes in the future.\n *\n * @generated from field: google.protobuf.Timestamp start_time = 4;\n */\n startTime?: Timestamp | undefined;\n\n /**\n * Inclusive upper bound for candle bucket start time, as a UTC timestamp.\n * Must be greater than or equal to start_time when both are set, and must not\n * be more than 5 minutes in the future.\n *\n * @generated from field: google.protobuf.Timestamp end_time = 5;\n */\n endTime?: Timestamp | undefined;\n\n /**\n * Include the current open candle when it is available and inside the\n * requested range.\n * The open candle is prepended to the newest-first candle list and does not\n * count toward the closed-candle limit.\n *\n * @generated from field: bool include_incomplete = 6;\n */\n includeIncomplete: boolean;\n\n /**\n * Include the composite reference market candle series for the same market,\n * timeframe, and time range.\n * The reference series can be empty when no reference series is available for\n * the requested timeframe.\n *\n * @generated from field: bool include_reference = 7;\n */\n includeReference: boolean;\n\n /**\n * Opaque keyset cursor from a previous response. The cursor is exclusive and\n * bound to symbol, timeframe, time bounds, and oldest-first candle ordering.\n * Inclusion flags and columnar response shape may change between pages.\n *\n * @generated from field: string page_token = 8;\n */\n pageToken: string;\n};\n\n/**\n * Describes the message marketdata.v1.GetCandlesColumnsRequest.\n * Use `create(GetCandlesColumnsRequestSchema)` to create a new message.\n */\nexport const GetCandlesColumnsRequestSchema: GenMessage<GetCandlesColumnsRequest> = /*@__PURE__*/\n messageDesc(file_marketdata_v1_marketdata, 6);\n\n/**\n * CandlePoint is one OHLCV bucket represented with scaled integers.\n *\n * A primary candle opens at the previous candle's close, so consecutive\n * candles join at every timeframe; a market's first candle opens at its first\n * trade. High and low include the open. A bucket without trades is flat at\n * the previous close with zero volume.\n *\n * REST responses render these values as decimal strings in tuple order:\n * [ts_sec, open, high, low, close, volume, quote_volume].\n *\n * @generated from message marketdata.v1.CandlePoint\n */\nexport type CandlePoint = Message<\"marketdata.v1.CandlePoint\"> & {\n /**\n * Candle bucket start timestamp, in seconds since epoch (UTC).\n *\n * @generated from field: uint64 ts_sec = 1;\n */\n tsSec: bigint;\n\n /**\n * Opening price in quote units: for a primary candle, the previous\n * candle's close, or the first trade for a market's first candle. Primary\n * candles use scale 9; composite reference candles use the pair's\n * reference_price_scale from GetSpotConfig.\n *\n * @generated from field: int64 open = 2;\n */\n open: bigint;\n\n /**\n * Highest price in the bucket, including the open, using the same scale as\n * open.\n *\n * @generated from field: int64 high = 3;\n */\n high: bigint;\n\n /**\n * Lowest price in the bucket, including the open, using the same scale as\n * open.\n *\n * @generated from field: int64 low = 4;\n */\n low: bigint;\n\n /**\n * Closing price, using the same scale as open.\n *\n * @generated from field: int64 close = 5;\n */\n close: bigint;\n\n /**\n * Traded base-asset quantity scaled by the base asset's\n * market_data_volume_scale from GetSpotConfig.\n *\n * @generated from field: int64 volume = 6;\n */\n volume: bigint;\n\n /**\n * True for a closed candle bucket, including historical API rows and\n * WebSocket terminal updates. False only while the bucket is still open.\n *\n * @generated from field: bool is_closed = 7;\n */\n isClosed: boolean;\n\n /**\n * Exact traded quote-asset volume as a human-readable decimal string.\n * This is sum(execution price × execution quantity), not close × base volume.\n *\n * @generated from field: string quote_volume = 8;\n */\n quoteVolume: string;\n};\n\n/**\n * Describes the message marketdata.v1.CandlePoint.\n * Use `create(CandlePointSchema)` to create a new message.\n */\nexport const CandlePointSchema: GenMessage<CandlePoint> = /*@__PURE__*/\n messageDesc(file_marketdata_v1_marketdata, 7);\n\n/**\n * GetCandlesResponse contains OHLCV candles for one spot market and timeframe.\n *\n * Candles and reference_candles are ordered newest-first by ts_sec. REST\n * responses render price and volume values as decimal strings.\n *\n * @generated from message marketdata.v1.GetCandlesResponse\n */\nexport type GetCandlesResponse = Message<\"marketdata.v1.GetCandlesResponse\"> & {\n /**\n * Numeric spot market identifier echoed from the request.\n *\n * @generated from field: uint32 symbol_id = 1;\n */\n symbolId: number;\n\n /**\n * Candle bucket size used for the returned series.\n *\n * @generated from field: marketdata.v1.Timeframe timeframe = 2;\n */\n timeframe: Timeframe;\n\n /**\n * Primary market candle series, ordered newest-first by ts_sec.\n *\n * @generated from field: repeated marketdata.v1.CandlePoint candles = 3;\n */\n candles: CandlePoint[];\n\n /**\n * Composite reference market candle series, ordered newest-first by ts_sec.\n * Populated only when include_reference is true and reference data is\n * available.\n *\n * @generated from field: repeated marketdata.v1.CandlePoint reference_candles = 4;\n */\n referenceCandles: CandlePoint[];\n\n /**\n * Opaque cursor for the next page. Empty when no more results exist.\n *\n * @generated from field: string next_page_token = 5;\n */\n nextPageToken: string;\n};\n\n/**\n * Describes the message marketdata.v1.GetCandlesResponse.\n * Use `create(GetCandlesResponseSchema)` to create a new message.\n */\nexport const GetCandlesResponseSchema: GenMessage<GetCandlesResponse> = /*@__PURE__*/\n messageDesc(file_marketdata_v1_marketdata, 8);\n\n/**\n * GetCandlesColumnsResponse returns the same candle series as GetCandles but in columnar form.\n * This is optimized for charting clients that ingest arrays of each field (binary only).\n *\n * Ordering: values are returned oldest-first (ascending ts_sec).\n *\n * @generated from message marketdata.v1.GetCandlesColumnsResponse\n */\nexport type GetCandlesColumnsResponse = Message<\"marketdata.v1.GetCandlesColumnsResponse\"> & {\n /**\n * Numeric spot market identifier.\n *\n * @generated from field: uint32 symbol_id = 1;\n */\n symbolId: number;\n\n /**\n * Timeframe of this series.\n *\n * @generated from field: marketdata.v1.Timeframe timeframe = 2;\n */\n timeframe: Timeframe;\n\n /**\n * Candle bucket start timestamps (seconds since epoch, UTC).\n *\n * @generated from field: repeated uint64 ts_sec = 3;\n */\n tsSec: bigint[];\n\n /**\n * Opening primary-market prices use scale 9: each is the previous candle's\n * close, or the first trade for a market's first candle. Reference prices\n * use the pair's reference_price_scale from GetSpotConfig.\n *\n * @generated from field: repeated int64 open = 4;\n */\n open: bigint[];\n\n /**\n * Highest primary-market prices, including the open, use scale 9. Reference\n * prices use the pair's reference_price_scale from GetSpotConfig.\n *\n * @generated from field: repeated int64 high = 5;\n */\n high: bigint[];\n\n /**\n * Lowest primary-market prices, including the open, use scale 9. Reference\n * prices use the pair's reference_price_scale from GetSpotConfig.\n *\n * @generated from field: repeated int64 low = 6;\n */\n low: bigint[];\n\n /**\n * Closing primary-market prices use scale 9. Reference prices use the pair's\n * reference_price_scale from GetSpotConfig.\n *\n * @generated from field: repeated int64 close = 7;\n */\n close: bigint[];\n\n /**\n * Traded base-asset quantities scaled by the base asset's\n * market_data_volume_scale from GetSpotConfig.\n *\n * @generated from field: repeated int64 volume = 8;\n */\n volume: bigint[];\n\n /**\n * Reference candle series in columnar form (same ordering as ts_sec: oldest-first).\n * Only populated when request.include_reference=true.\n *\n * @generated from field: repeated uint64 reference_ts_sec = 9;\n */\n referenceTsSec: bigint[];\n\n /**\n * Reference opening prices use the pair's reference_price_scale.\n *\n * @generated from field: repeated int64 reference_open = 10;\n */\n referenceOpen: bigint[];\n\n /**\n * Reference high prices use the pair's reference_price_scale.\n *\n * @generated from field: repeated int64 reference_high = 11;\n */\n referenceHigh: bigint[];\n\n /**\n * Reference low prices use the pair's reference_price_scale.\n *\n * @generated from field: repeated int64 reference_low = 12;\n */\n referenceLow: bigint[];\n\n /**\n * Reference closing prices use the pair's reference_price_scale.\n *\n * @generated from field: repeated int64 reference_close = 13;\n */\n referenceClose: bigint[];\n\n /**\n * Reference traded base-asset quantities use the base asset's\n * market_data_volume_scale from GetSpotConfig.\n *\n * @generated from field: repeated int64 reference_volume = 14;\n */\n referenceVolume: bigint[];\n\n /**\n * Opaque cursor for the next page. Empty when no more results exist.\n *\n * @generated from field: string next_page_token = 15;\n */\n nextPageToken: string;\n\n /**\n * Exact traded quote-asset volumes, oldest-first and aligned with ts_sec.\n *\n * @generated from field: repeated string quote_volume = 16;\n */\n quoteVolume: string[];\n};\n\n/**\n * Describes the message marketdata.v1.GetCandlesColumnsResponse.\n * Use `create(GetCandlesColumnsResponseSchema)` to create a new message.\n */\nexport const GetCandlesColumnsResponseSchema: GenMessage<GetCandlesColumnsResponse> = /*@__PURE__*/\n messageDesc(file_marketdata_v1_marketdata, 9);\n\n/**\n * Candle represents a single OHLCV bucket for a symbol and timeframe.\n *\n * @generated from message marketdata.v1.Candle\n */\nexport type Candle = Message<\"marketdata.v1.Candle\"> & {\n /**\n * numeric spot market identifier\n *\n * @generated from field: uint32 symbol_id = 1;\n */\n symbolId: number;\n\n /**\n * timeframe of this candle\n *\n * @generated from field: marketdata.v1.Timeframe timeframe = 2;\n */\n timeframe: Timeframe;\n\n /**\n * bucket start timestamp (seconds since epoch, UTC)\n *\n * @generated from field: uint64 ts_sec = 3;\n */\n tsSec: bigint;\n\n /**\n * Opening primary-market price in scale 9: the previous candle's close, or\n * the first trade for a market's first candle.\n *\n * @generated from field: int64 open = 4;\n */\n open: bigint;\n\n /**\n * highest primary-market price in scale 9, including the open\n *\n * @generated from field: int64 high = 5;\n */\n high: bigint;\n\n /**\n * lowest primary-market price in scale 9, including the open\n *\n * @generated from field: int64 low = 6;\n */\n low: bigint;\n\n /**\n * closing primary-market price in scale 9\n *\n * @generated from field: int64 close = 7;\n */\n close: bigint;\n\n /**\n * Traded base-asset quantity scaled by the base asset's\n * market_data_volume_scale from GetSpotConfig.\n *\n * @generated from field: int64 volume = 8;\n */\n volume: bigint;\n\n /**\n * Exact traded quote-asset volume as a human-readable decimal string.\n *\n * @generated from field: string quote_volume = 9;\n */\n quoteVolume: string;\n};\n\n/**\n * Describes the message marketdata.v1.Candle.\n * Use `create(CandleSchema)` to create a new message.\n */\nexport const CandleSchema: GenMessage<Candle> = /*@__PURE__*/\n messageDesc(file_marketdata_v1_marketdata, 10);\n\n/**\n * AssetConfig describes one spot asset returned by GetSpotConfig.\n *\n * @generated from message marketdata.v1.AssetConfig\n */\nexport type AssetConfig = Message<\"marketdata.v1.AssetConfig\"> & {\n /**\n * Asset code, e.g. \"USDT\" or \"BTC\".\n *\n * @generated from field: string asset = 1;\n */\n asset: string;\n\n /**\n * Stable numeric asset id used by account, balance, and order APIs.\n *\n * @generated from field: uint32 ledger_id = 2;\n */\n ledgerId: number;\n\n /**\n * Human-friendly display name, e.g. \"Bitcoin\".\n *\n * @generated from field: string name = 3;\n */\n name: string;\n\n /**\n * Suggested decimal precision for displaying user-facing asset amounts.\n *\n * @generated from field: uint32 quantity_display_decimals = 4;\n */\n quantityDisplayDecimals: number;\n\n /**\n * Integer scale for quantities and balances in this asset (0..18).\n * A scale of 8 means one whole asset is represented as 100000000 in scaled\n * integer fields such as qty_scaled.\n *\n * @generated from field: uint32 quantity_scale = 5;\n */\n quantityScale: number;\n\n /**\n * Integer scale for public candle and market-overview base volume (0..18).\n *\n * @generated from field: uint32 market_data_volume_scale = 6;\n */\n marketDataVolumeScale: number;\n};\n\n/**\n * Describes the message marketdata.v1.AssetConfig.\n * Use `create(AssetConfigSchema)` to create a new message.\n */\nexport const AssetConfigSchema: GenMessage<AssetConfig> = /*@__PURE__*/\n messageDesc(file_marketdata_v1_marketdata, 11);\n\n/**\n * PairMarketdataConfig describes market-data display settings for a spot pair.\n *\n * @generated from message marketdata.v1.PairMarketdataConfig\n */\nexport type PairMarketdataConfig = Message<\"marketdata.v1.PairMarketdataConfig\"> & {\n /**\n * Suggested order book aggregation bucket sizes in quote-asset price units,\n * e.g. 0.01, 0.1, 1, or 10.\n *\n * @generated from field: repeated double orderbook_price_buckets = 1;\n */\n orderbookPriceBuckets: number[];\n};\n\n/**\n * Describes the message marketdata.v1.PairMarketdataConfig.\n * Use `create(PairMarketdataConfigSchema)` to create a new message.\n */\nexport const PairMarketdataConfigSchema: GenMessage<PairMarketdataConfig> = /*@__PURE__*/\n messageDesc(file_marketdata_v1_marketdata, 12);\n\n/**\n * PairConfig describes one spot trading pair and its trading constraints.\n *\n * @generated from message marketdata.v1.PairConfig\n */\nexport type PairConfig = Message<\"marketdata.v1.PairConfig\"> & {\n /**\n * Stable numeric pair id used by low-latency ConnectRPC requests and streams.\n *\n * @generated from field: uint32 symbol_id = 1;\n */\n symbolId: number;\n\n /**\n * Trading pair symbol, e.g. \"BTC-USDT\".\n *\n * @generated from field: string symbol = 2;\n */\n symbol: string;\n\n /**\n * Base asset code. For BTC-USDT, this is \"BTC\".\n *\n * @generated from field: string base_asset = 3;\n */\n baseAsset: string;\n\n /**\n * Quote asset code. For BTC-USDT, this is \"USDT\".\n *\n * @generated from field: string quote_asset = 4;\n */\n quoteAsset: string;\n\n /**\n * Minimum allowed price increment as a decimal string in quote-asset units.\n * Prices use 9 decimal places in scaled integer fields; for example \"0.01\"\n * means orders must be priced in 0.01 quote-asset increments.\n *\n * @generated from field: string tick_size = 5;\n */\n tickSize: string;\n\n /**\n * Minimum allowed quantity increment as a decimal string in base-asset units.\n *\n * @generated from field: string step_size = 6;\n */\n stepSize: string;\n\n /**\n * Minimum order notional as a decimal string in quote-asset units.\n *\n * @generated from field: string min_notional_quote = 7;\n */\n minNotionalQuote: string;\n\n /**\n * Minimum order quantity as a decimal string in base-asset units.\n *\n * @generated from field: string min_qty_base = 8;\n */\n minQtyBase: string;\n\n /**\n * Whether BUY order fees may be paid from the base asset instead of the\n * spent quote asset when the order request selects the base fee asset.\n *\n * @generated from field: bool allow_buy_fee_from_base = 9;\n */\n allowBuyFeeFromBase: boolean;\n\n /**\n * Quantity scale for base-asset amounts in this pair.\n *\n * @generated from field: uint32 base_quantity_scale = 10;\n */\n baseQuantityScale: number;\n\n /**\n * Quantity scale for quote-asset amounts in this pair.\n *\n * @generated from field: uint32 quote_quantity_scale = 11;\n */\n quoteQuantityScale: number;\n\n /**\n * Market-data display settings for this pair.\n *\n * @generated from field: marketdata.v1.PairMarketdataConfig marketdata = 12;\n */\n marketdata?: PairMarketdataConfig | undefined;\n\n /**\n * Scheduled listing timestamp. When unset, the pair has no explicit future\n * listing time.\n *\n * @generated from field: google.protobuf.Timestamp listing_at = 13;\n */\n listingAt?: Timestamp | undefined;\n\n /**\n * Scheduled delisting timestamp. When unset, the pair has no explicit\n * delisting time.\n *\n * @generated from field: google.protobuf.Timestamp delisting_at = 14;\n */\n delistingAt?: Timestamp | undefined;\n\n /**\n * Current trading status.\n *\n * @generated from field: marketdata.v1.PairStatus status = 15;\n */\n status: PairStatus;\n\n /**\n * Default MARKET order slippage cap for BUY orders, in basis points\n * (1 bp = 0.01%). A request-level slippage setting can override this value.\n *\n * @generated from field: int32 default_market_slippage_bps_buy = 16;\n */\n defaultMarketSlippageBpsBuy: number;\n\n /**\n * Default MARKET order slippage cap for SELL orders, in basis points\n * (1 bp = 0.01%). A request-level slippage setting can override this value.\n *\n * @generated from field: int32 default_market_slippage_bps_sell = 17;\n */\n defaultMarketSlippageBpsSell: number;\n\n /**\n * Maximum allowed drift between client reference price and server reference\n * price for MARKET orders, in basis points (1 bp = 0.01%), when client\n * reference pricing is used.\n *\n * @generated from field: int32 max_client_ref_drift_bps = 18;\n */\n maxClientRefDriftBps: number;\n\n /**\n * Integer scale for composite reference prices in candle responses (0..18).\n * Primary market and execution prices use the fixed scale 9.\n *\n * @generated from field: uint32 reference_price_scale = 19;\n */\n referencePriceScale: number;\n\n /**\n * Largest quantity of one limit order, as a decimal string in base-asset\n * units. A replace is checked on its new total less the quantity already\n * filled. An order above it is rejected with MAX_QTY. Absent when the pair\n * has no maximum.\n *\n * @generated from field: optional string max_limit_qty_base = 20;\n */\n maxLimitQtyBase?: string | undefined;\n\n /**\n * Largest quantity of one market order, as a decimal string in base-asset\n * units. A market order sized by quote amount is checked once converted to\n * base. An order above it is rejected with MAX_QTY. Absent when the pair\n * has no maximum.\n *\n * @generated from field: optional string max_market_qty_base = 21;\n */\n maxMarketQtyBase?: string | undefined;\n\n /**\n * Largest notional of one order, as a decimal string in quote-asset units:\n * its quantity times its limit price, or times its protection price for a\n * market order, compared exactly with no rounding. An order above it is\n * rejected with MAX_NOTIONAL. Absent when the pair has no maximum.\n *\n * @generated from field: optional string max_order_notional_quote = 22;\n */\n maxOrderNotionalQuote?: string | undefined;\n\n /**\n * The venue's default limit on resting orders a typical account may hold on\n * this pair at once: good-till-cancelled and good-till-date orders that have\n * not ended. Immediate-or-cancel, fill-or-kill and market orders never\n * count, and a replaced order keeps its place. An order past it is rejected\n * with MAX_OPEN_ORDERS_PER_PAIR. An account may have a lower limit of its\n * own; that is not part of this public configuration and would be returned\n * by an account-scoped read.\n *\n * @generated from field: uint32 max_open_orders_per_pair = 23;\n */\n maxOpenOrdersPerPair: number;\n\n /**\n * Largest notional of one market order, as a decimal string in quote-asset\n * units, compared exactly with no rounding. A market order is valued at the\n * top of the price range it may trade in: a buy at its protection price and\n * a sell at its reference price, the touch or the client's reference price,\n * before slippage. An order above it is rejected with MAX_NOTIONAL. Absent\n * when the pair has no maximum.\n *\n * @generated from field: optional string max_market_notional_quote = 24;\n */\n maxMarketNotionalQuote?: string | undefined;\n};\n\n/**\n * Describes the message marketdata.v1.PairConfig.\n * Use `create(PairConfigSchema)` to create a new message.\n */\nexport const PairConfigSchema: GenMessage<PairConfig> = /*@__PURE__*/\n messageDesc(file_marketdata_v1_marketdata, 13);\n\n/**\n * GetSpotConfigRequest has no parameters.\n *\n * @generated from message marketdata.v1.GetSpotConfigRequest\n */\nexport type GetSpotConfigRequest = Message<\"marketdata.v1.GetSpotConfigRequest\"> & {\n};\n\n/**\n * Describes the message marketdata.v1.GetSpotConfigRequest.\n * Use `create(GetSpotConfigRequestSchema)` to create a new message.\n */\nexport const GetSpotConfigRequestSchema: GenMessage<GetSpotConfigRequest> = /*@__PURE__*/\n messageDesc(file_marketdata_v1_marketdata, 14);\n\n/**\n * GetSpotConfigResponse contains a cacheable spot reference-data snapshot.\n *\n * @generated from message marketdata.v1.GetSpotConfigResponse\n */\nexport type GetSpotConfigResponse = Message<\"marketdata.v1.GetSpotConfigResponse\"> & {\n /**\n * Assets ordered by asset code in ascending alphabetical order.\n *\n * @generated from field: repeated marketdata.v1.AssetConfig assets = 1;\n */\n assets: AssetConfig[];\n\n /**\n * Pairs ordered by symbol in ascending alphabetical order.\n *\n * @generated from field: repeated marketdata.v1.PairConfig pairs = 2;\n */\n pairs: PairConfig[];\n\n /**\n * Snapshot generation timestamp, in seconds since the Unix epoch (UTC).\n *\n * @generated from field: uint64 ts_sec = 3;\n */\n tsSec: bigint;\n\n /**\n * The venue's default limit on resting orders a typical account may hold\n * across all pairs together: good-till-cancelled and good-till-date orders\n * that have not ended. Immediate-or-cancel, fill-or-kill and market orders\n * never count, and a replaced order keeps its place. An order past it is\n * rejected with MAX_OPEN_ORDERS_TOTAL. Each pair's own limit is\n * PairConfig.max_open_orders_per_pair. An account may have a lower limit of\n * its own; that is not part of this public configuration and would be\n * returned by an account-scoped read.\n *\n * @generated from field: uint32 max_open_orders_total = 4;\n */\n maxOpenOrdersTotal: number;\n};\n\n/**\n * Describes the message marketdata.v1.GetSpotConfigResponse.\n * Use `create(GetSpotConfigResponseSchema)` to create a new message.\n */\nexport const GetSpotConfigResponseSchema: GenMessage<GetSpotConfigResponse> = /*@__PURE__*/\n messageDesc(file_marketdata_v1_marketdata, 15);\n\n/**\n * SideFilter controls which aggressor side of trades to return.\n *\n * @generated from enum marketdata.v1.SideFilter\n */\nexport enum SideFilter {\n /**\n * Return trades from both BUY and SELL aggressors.\n *\n * @generated from enum value: SIDE_UNSPECIFIED = 0;\n */\n SIDE_UNSPECIFIED = 0,\n\n /**\n * Return trades where the taker/aggressor was buying the base asset.\n *\n * @generated from enum value: BUY = 1;\n */\n BUY = 1,\n\n /**\n * Return trades where the taker/aggressor was selling the base asset.\n *\n * @generated from enum value: SELL = 2;\n */\n SELL = 2,\n}\n\n/**\n * Describes the enum marketdata.v1.SideFilter.\n */\nexport const SideFilterSchema: GenEnum<SideFilter> = /*@__PURE__*/\n enumDesc(file_marketdata_v1_marketdata, 0);\n\n/**\n * Timeframe represents an OHLCV candle bucket.\n *\n * All buckets are in UTC; daylight saving time never shifts a boundary.\n * Fixed-duration buckets start at whole multiples of their duration since\n * 1970-01-01T00:00:00Z, so every bucket up to 1 day starts on a UTC midnight\n * boundary and `DAY_3` buckets start every third day counted from\n * 1970-01-01. `WEEK_1` buckets start on Monday 00:00 UTC. `MONTH_1` is\n * calendar-based (UTC month boundaries). Values are listed shortest first.\n *\n * @generated from enum marketdata.v1.Timeframe\n */\nexport enum Timeframe {\n /**\n * @generated from enum value: TIMEFRAME_UNSPECIFIED = 0;\n */\n TIMEFRAME_UNSPECIFIED = 0,\n\n /**\n * 1 second\n *\n * @generated from enum value: SEC_1 = 1;\n */\n SEC_1 = 1,\n\n /**\n * 1 minute\n *\n * @generated from enum value: MIN_1 = 2;\n */\n MIN_1 = 2,\n\n /**\n * 3 minutes\n *\n * @generated from enum value: MIN_3 = 12;\n */\n MIN_3 = 12,\n\n /**\n * 5 minutes\n *\n * @generated from enum value: MIN_5 = 3;\n */\n MIN_5 = 3,\n\n /**\n * 15 minutes\n *\n * @generated from enum value: MIN_15 = 4;\n */\n MIN_15 = 4,\n\n /**\n * 30 minutes\n *\n * @generated from enum value: MIN_30 = 5;\n */\n MIN_30 = 5,\n\n /**\n * 1 hour\n *\n * @generated from enum value: HOUR_1 = 6;\n */\n HOUR_1 = 6,\n\n /**\n * 2 hours\n *\n * @generated from enum value: HOUR_2 = 13;\n */\n HOUR_2 = 13,\n\n /**\n * 4 hours\n *\n * @generated from enum value: HOUR_4 = 7;\n */\n HOUR_4 = 7,\n\n /**\n * 6 hours\n *\n * @generated from enum value: HOUR_6 = 14;\n */\n HOUR_6 = 14,\n\n /**\n * 8 hours\n *\n * @generated from enum value: HOUR_8 = 15;\n */\n HOUR_8 = 15,\n\n /**\n * 12 hours\n *\n * @generated from enum value: HOUR_12 = 9;\n */\n HOUR_12 = 9,\n\n /**\n * 1 day\n *\n * @generated from enum value: DAY_1 = 8;\n */\n DAY_1 = 8,\n\n /**\n * 3 days, counted from 1970-01-01 UTC\n *\n * @generated from enum value: DAY_3 = 16;\n */\n DAY_3 = 16,\n\n /**\n * 1 week, starting Monday 00:00 UTC\n *\n * @generated from enum value: WEEK_1 = 10;\n */\n WEEK_1 = 10,\n\n /**\n * 1 month (calendar month, UTC)\n *\n * @generated from enum value: MONTH_1 = 11;\n */\n MONTH_1 = 11,\n}\n\n/**\n * Describes the enum marketdata.v1.Timeframe.\n */\nexport const TimeframeSchema: GenEnum<Timeframe> = /*@__PURE__*/\n enumDesc(file_marketdata_v1_marketdata, 1);\n\n/**\n * PairStatus describes which order mutations a spot pair currently accepts.\n *\n * @generated from enum marketdata.v1.PairStatus\n */\nexport enum PairStatus {\n /**\n * Pair status was not provided.\n *\n * @generated from enum value: PAIR_STATUS_UNSPECIFIED = 0;\n */\n UNSPECIFIED = 0,\n\n /**\n * New orders and cancellations are accepted.\n *\n * @generated from enum value: PAIR_STATUS_ENABLED = 1;\n */\n ENABLED = 1,\n\n /**\n * New orders are temporarily disabled.\n *\n * @generated from enum value: PAIR_STATUS_DISABLED = 2;\n */\n DISABLED = 2,\n\n /**\n * Only cancellations are accepted.\n *\n * @generated from enum value: PAIR_STATUS_CANCEL_ONLY = 3;\n */\n CANCEL_ONLY = 3,\n\n /**\n * New orders must use a post-only execution variant.\n *\n * @generated from enum value: PAIR_STATUS_POST_ONLY = 4;\n */\n POST_ONLY = 4,\n\n /**\n * New spot orders are blocked by reduce-only policy.\n *\n * @generated from enum value: PAIR_STATUS_REDUCE_ONLY = 5;\n */\n REDUCE_ONLY = 5,\n\n /**\n * Trading is halted: only cancellations are accepted, and new orders are\n * rejected with MARKET_HALTED.\n *\n * @generated from enum value: PAIR_STATUS_HALTED = 6;\n */\n HALTED = 6,\n}\n\n/**\n * Describes the enum marketdata.v1.PairStatus.\n */\nexport const PairStatusSchema: GenEnum<PairStatus> = /*@__PURE__*/\n enumDesc(file_marketdata_v1_marketdata, 2);\n\n/**\n * @generated from service marketdata.v1.MarketDataService\n */\nexport const MarketDataService: GenService<{\n /**\n * Retrieve recent public trades for a spot market.\n * Results are ordered newest-first and support optional aggressor side,\n * inclusive time-range, and opaque keyset pagination filters. With\n * after_trade_id, it walks the symbol's trades by trade identifier,\n * oldest first and gap-free, to backfill trades missed on a live stream.\n *\n * @generated from rpc marketdata.v1.MarketDataService.GetTrades\n */\n getTrades: {\n methodKind: \"unary\";\n input: typeof GetTradesRequestSchema;\n output: typeof GetTradesResponseSchema;\n },\n /**\n * Retrieve OHLCV candles for a spot market and timeframe.\n * Results are ordered newest-first and support inclusive time bounds, optional\n * current open candle inclusion, and optional composite reference candles.\n *\n * @generated from rpc marketdata.v1.MarketDataService.GetCandles\n */\n getCandles: {\n methodKind: \"unary\";\n input: typeof GetCandlesRequestSchema;\n output: typeof GetCandlesResponseSchema;\n },\n /**\n * GetCandlesColumns returns OHLCV candles in a columnar representation optimized for charting.\n * This method is intended for ConnectRPC clients and returns scaled integers.\n * Primary OHLC prices use scale 9, reference OHLC prices use the pair's\n * reference_price_scale, and volumes use the base asset's\n * market_data_volume_scale from GetSpotConfig.\n *\n * @generated from rpc marketdata.v1.MarketDataService.GetCandlesColumns\n */\n getCandlesColumns: {\n methodKind: \"unary\";\n input: typeof GetCandlesColumnsRequestSchema;\n output: typeof GetCandlesColumnsResponseSchema;\n },\n /**\n * Retrieve a cacheable snapshot of spot assets and pairs, including precision and trading constraints.\n *\n * @generated from rpc marketdata.v1.MarketDataService.GetSpotConfig\n */\n getSpotConfig: {\n methodKind: \"unary\";\n input: typeof GetSpotConfigRequestSchema;\n output: typeof GetSpotConfigResponseSchema;\n },\n}> = /*@__PURE__*/\n serviceDesc(file_marketdata_v1_marketdata, 0);\n\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcA,MAAa,gCACX,uBAAS,44LAA44L,CAAC,gCAAgC,0BAA0B,CAAC;;;;;AAiFn9L,MAAa,yBACX,0BAAY,+BAA+B,CAAC;;;;;AA2D9C,MAAa,oBACX,0BAAY,+BAA+B,CAAC;;;;;AA2B9C,MAAa,yBACX,0BAAY,+BAA+B,CAAC;;;;;AA+B9C,MAAa,sBACX,0BAAY,+BAA+B,CAAC;;;;;AAiE9C,MAAa,0BACX,0BAAY,+BAA+B,CAAC;;;;;AAoF9C,MAAa,0BACX,0BAAY,+BAA+B,CAAC;;;;;AAoF9C,MAAa,iCACX,0BAAY,+BAA+B,CAAC;;;;;AAqF9C,MAAa,oBACX,0BAAY,+BAA+B,CAAC;;;;;AAqD9C,MAAa,2BACX,0BAAY,+BAA+B,CAAC;;;;;AAwI9C,MAAa,kCACX,0BAAY,+BAA+B,CAAC;;;;;AA8E9C,MAAa,eACX,0BAAY,+BAA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,WAAA,WAAA,iBAAA,KAAA;;;;;;CAOA,WAAA,WAAA,aAAA,KAAA;;;;;;CAOA,WAAA,WAAA,cAAA,KAAA;;;;;;CAOA,WAAA,WAAA,iBAAA,KAAA;;;;;;CAOA,WAAA,WAAA,eAAA,KAAA;;;;;;CAOA,WAAA,WAAA,iBAAA,KAAA;;;;;;;CAQA,WAAA,WAAA,YAAA,KAAA;;AACF,EAAA,CAAA,CAAA;;;;AAKA,MAAa,mBACX,uBAAS,+BAA+B,CAAC;;;;AAK3C,MAAa,oBAoDX,0BAAY,+BAA+B,CAAC"}
1
+ {"version":3,"file":"marketdata_pb.js","names":[],"sources":["../../../../src/gen/marketdata/v1/marketdata_pb.ts"],"sourcesContent":["// @generated by protoc-gen-es v2.13.0 with parameter \"target=ts,import_extension=js\"\n// @generated from file marketdata/v1/marketdata.proto (package marketdata.v1, syntax proto3)\n/* eslint-disable */\n\nimport type { GenEnum, GenFile, GenMessage, GenService } from \"@bufbuild/protobuf/codegenv2\";\nimport { enumDesc, fileDesc, messageDesc, serviceDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport type { Timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_google_protobuf_timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_polyester_api_options } from \"../../polyester/api/options_pb.js\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file marketdata/v1/marketdata.proto.\n */\nexport const file_marketdata_v1_marketdata: GenFile = /*@__PURE__*/\n fileDesc(\"Ch5tYXJrZXRkYXRhL3YxL21hcmtldGRhdGEucHJvdG8SDW1hcmtldGRhdGEudjEiiQIKEEdldFRyYWRlc1JlcXVlc3QSEwoJc3ltYm9sX2lkGAEgASgNQgASDwoFbGltaXQYAiABKA1CABIuCgpzdGFydF90aW1lGAMgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIsCghlbmRfdGltZRgEIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbX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bnNlIgASaAoRR2V0Q2FuZGxlc0NvbHVtbnMSJy5tYXJrZXRkYXRhLnYxLkdldENhbmRsZXNDb2x1bW5zUmVxdWVzdBooLm1hcmtldGRhdGEudjEuR2V0Q2FuZGxlc0NvbHVtbnNSZXNwb25zZSIAElwKDUdldFNwb3RDb25maWcSIy5tYXJrZXRkYXRhLnYxLkdldFNwb3RDb25maWdSZXF1ZXN0GiQubWFya2V0ZGF0YS52MS5HZXRTcG90Q29uZmlnUmVzcG9uc2UiABoAQkhaRmdpdGh1Yi5jb20vRmFicmljLUxhYnMvcG9seWVzdGVyLXNkay1nby9nZW4vbWFya2V0ZGF0YS92MTttYXJrZXRkYXRhdjFiBnByb3RvMw==\", [file_google_protobuf_timestamp, file_polyester_api_options]);\n\n/**\n * GetTradesRequest selects recent public trades for one spot market.\n *\n * Results are ordered newest-first by execution timestamp, with match_id as a\n * tie-breaker. When both start_time and end_time are set, both bounds are\n * inclusive.\n *\n * With after_trade_id set, the request instead walks the symbol's trades by\n * trade identifier (match_id), oldest first and gap-free, to backfill trades\n * missed on a live stream: see after_trade_id.\n *\n * @generated from message marketdata.v1.GetTradesRequest\n */\nexport type GetTradesRequest = Message<\"marketdata.v1.GetTradesRequest\"> & {\n /**\n * Stable numeric pair id from GetSpotConfig.\n *\n * @generated from field: uint32 symbol_id = 1;\n */\n symbolId: number;\n\n /**\n * Maximum number of trades to return. Defaults to 100 when unset; max 1000.\n *\n * @generated from field: uint32 limit = 2;\n */\n limit: number;\n\n /**\n * Inclusive lower bound for trade execution time. Must not be more than\n * 5 minutes in the future.\n *\n * @generated from field: google.protobuf.Timestamp start_time = 3;\n */\n startTime?: Timestamp | undefined;\n\n /**\n * Inclusive upper bound for trade execution time. Must be greater than or\n * equal to start_time when both are set, and must not be more than 5 minutes\n * in the future.\n *\n * @generated from field: google.protobuf.Timestamp end_time = 4;\n */\n endTime?: Timestamp | undefined;\n\n /**\n * Optional filter by trade aggressor side. Unspecified returns both sides.\n *\n * @generated from field: marketdata.v1.SideFilter side = 5;\n */\n side: SideFilter;\n\n /**\n * Opaque keyset cursor from a previous response. The cursor is exclusive and\n * bound to symbol, time bounds, side filter, and newest-first sort order.\n *\n * @generated from field: string page_token = 6;\n */\n pageToken: string;\n\n /**\n * Exclusive trade-identifier cursor for gap-free backfill. When set, the\n * results are the symbol's trades with match_id greater than\n * after_trade_id, ascending by match_id, up to limit, and only trades at or\n * below the response's complete_through_trade_id: every page is gap-free.\n * Trade identifiers order trades across epochs too, so a walk crosses\n * epoch ends without a gap. Pass 0 to start from the symbol's first trade,\n * then the response's next_after_trade_id. Cannot be combined with\n * start_time, end_time, side or page_token.\n *\n * @generated from field: optional uint64 after_trade_id = 7;\n */\n afterTradeId?: bigint | undefined;\n};\n\n/**\n * Describes the message marketdata.v1.GetTradesRequest.\n * Use `create(GetTradesRequestSchema)` to create a new message.\n */\nexport const GetTradesRequestSchema: GenMessage<GetTradesRequest> = /*@__PURE__*/\n messageDesc(file_marketdata_v1_marketdata, 0);\n\n/**\n * MarketTrade is one public trade print represented with scaled integers.\n *\n * REST responses render price and quantity as decimal strings.\n *\n * @generated from message marketdata.v1.MarketTrade\n */\nexport type MarketTrade = Message<\"marketdata.v1.MarketTrade\"> & {\n /**\n * Stable numeric pair id from GetSpotConfig.\n *\n * @generated from field: uint32 symbol_id = 1;\n */\n symbolId: number;\n\n /**\n * Stable trade id within the symbol, suitable for pagination and de-duplication.\n *\n * @generated from field: uint64 match_id = 2;\n */\n matchId: bigint;\n\n /**\n * True when the taker/aggressor bought the base asset; false when the\n * taker/aggressor sold the base asset.\n *\n * @generated from field: bool is_buy = 3;\n */\n isBuy: boolean;\n\n /**\n * Trade price in quote-asset units scaled by 1e9.\n *\n * @generated from field: int64 price_ticks = 4;\n */\n priceTicks: bigint;\n\n /**\n * Traded base-asset quantity scaled by the pair's base_quantity_scale from\n * GetSpotConfig.\n *\n * @generated from field: int64 qty_scaled = 5;\n */\n qtyScaled: bigint;\n\n /**\n * Trade execution timestamp, in nanoseconds since the Unix epoch (UTC).\n *\n * @generated from field: uint64 ts_ns = 6;\n */\n tsNs: bigint;\n};\n\n/**\n * Describes the message marketdata.v1.MarketTrade.\n * Use `create(MarketTradeSchema)` to create a new message.\n */\nexport const MarketTradeSchema: GenMessage<MarketTrade> = /*@__PURE__*/\n messageDesc(file_marketdata_v1_marketdata, 1);\n\n/**\n * MarketTradeBatch is one realtime publication on a symbol's public trade\n * stream: every trade queued for the stream when it was sent, at most 256 and\n * at most 64 KiB, in execution order.\n *\n * match_id identifies a trade. Apply trades in array order and in publication\n * order; a trade whose match_id was already received replaces the earlier copy.\n * When the subscription reports that missed publications could not be\n * recovered, reload recent trades over REST.\n *\n * @generated from message marketdata.v1.MarketTradeBatch\n */\nexport type MarketTradeBatch = Message<\"marketdata.v1.MarketTradeBatch\"> & {\n /**\n * Trades in execution order, oldest first. At least one trade.\n *\n * @generated from field: repeated marketdata.v1.MarketTrade events = 1;\n */\n events: MarketTrade[];\n};\n\n/**\n * Describes the message marketdata.v1.MarketTradeBatch.\n * Use `create(MarketTradeBatchSchema)` to create a new message.\n */\nexport const MarketTradeBatchSchema: GenMessage<MarketTradeBatch> = /*@__PURE__*/\n messageDesc(file_marketdata_v1_marketdata, 2);\n\n/**\n * TradeEpochEnd reports where one epoch of a symbol's trade identifiers\n * ended. Trade identifiers of epoch e are greater than (e-1) * 2^40 and less\n * than e * 2^40; a later epoch's identifiers are greater than every earlier\n * epoch's.\n *\n * @generated from message marketdata.v1.TradeEpochEnd\n */\nexport type TradeEpochEnd = Message<\"marketdata.v1.TradeEpochEnd\"> & {\n /**\n * The epoch.\n *\n * @generated from field: uint64 epoch = 1;\n */\n epoch: bigint;\n\n /**\n * match_id of the epoch's last trade; (epoch-1) * 2^40 when the epoch\n * ended without trades.\n *\n * @generated from field: uint64 last_trade_id = 2;\n */\n lastTradeId: bigint;\n};\n\n/**\n * Describes the message marketdata.v1.TradeEpochEnd.\n * Use `create(TradeEpochEndSchema)` to create a new message.\n */\nexport const TradeEpochEndSchema: GenMessage<TradeEpochEnd> = /*@__PURE__*/\n messageDesc(file_marketdata_v1_marketdata, 3);\n\n/**\n * GetTradesResponse contains public trades for one spot market.\n *\n * @generated from message marketdata.v1.GetTradesResponse\n */\nexport type GetTradesResponse = Message<\"marketdata.v1.GetTradesResponse\"> & {\n /**\n * Trades ordered newest-first by execution timestamp, with match_id as a\n * tie-breaker; with after_trade_id, ascending by match_id.\n *\n * @generated from field: repeated marketdata.v1.MarketTrade trades = 1;\n */\n trades: MarketTrade[];\n\n /**\n * Opaque cursor for the next page. Empty when no more results exist, and\n * always empty with after_trade_id.\n *\n * @generated from field: string next_page_token = 2;\n */\n nextPageToken: string;\n\n /**\n * Set only with after_trade_id; 0 otherwise. Every trade of the symbol\n * with match_id at or below this value exists and is returned by this\n * method. Identifiers in that range that no trade has, the rest of an\n * ended epoch and every identifier below a later epoch's first, are\n * covered too. Newer trades may exist that are not available here yet; it\n * only grows.\n *\n * @generated from field: uint64 complete_through_trade_id = 3;\n */\n completeThroughTradeId: bigint;\n\n /**\n * Set only with after_trade_id; 0 otherwise. The after_trade_id of the\n * next call; it never moves backwards. On a full page (limit trades) it is\n * the last trade's match_id. Otherwise it is the greater of after_trade_id\n * and complete_through_trade_id, so a walk progresses across epoch ends\n * and empty epochs without trades to carry it. When it equals the\n * request's after_trade_id, nothing newer is available yet: retry later\n * with backoff.\n *\n * @generated from field: uint64 next_after_trade_id = 4;\n */\n nextAfterTradeId: bigint;\n\n /**\n * Set only with after_trade_id. Every epoch whose last trade (or, for an\n * epoch without trades, its start) lies between after_trade_id and\n * next_after_trade_id, both inclusive, ascending by epoch. A page that\n * ends exactly on an epoch's last trade is followed by a page that still\n * reports that epoch's end.\n *\n * @generated from field: repeated marketdata.v1.TradeEpochEnd epoch_ends = 5;\n */\n epochEnds: TradeEpochEnd[];\n};\n\n/**\n * Describes the message marketdata.v1.GetTradesResponse.\n * Use `create(GetTradesResponseSchema)` to create a new message.\n */\nexport const GetTradesResponseSchema: GenMessage<GetTradesResponse> = /*@__PURE__*/\n messageDesc(file_marketdata_v1_marketdata, 4);\n\n/**\n * GetCandlesRequest selects a spot market candle series.\n *\n * The response is ordered newest-first by candle bucket start time. When both\n * start_time and end_time are set, both bounds are inclusive.\n *\n * @generated from message marketdata.v1.GetCandlesRequest\n */\nexport type GetCandlesRequest = Message<\"marketdata.v1.GetCandlesRequest\"> & {\n /**\n * Numeric spot market identifier.\n *\n * @generated from field: uint32 symbol_id = 1;\n */\n symbolId: number;\n\n /**\n * Candle bucket size. Required for ConnectRPC clients.\n *\n * @generated from field: marketdata.v1.Timeframe timeframe = 2;\n */\n timeframe: Timeframe;\n\n /**\n * Maximum number of closed candles to return. Defaults to 500 when unset;\n * max 10000.\n *\n * @generated from field: uint32 limit = 3;\n */\n limit: number;\n\n /**\n * Inclusive lower bound for candle bucket start time, as a UTC timestamp.\n * Must not be more than 5 minutes in the future.\n *\n * @generated from field: google.protobuf.Timestamp start_time = 4;\n */\n startTime?: Timestamp | undefined;\n\n /**\n * Inclusive upper bound for candle bucket start time, as a UTC timestamp.\n * Must be greater than or equal to start_time when both are set, and must not\n * be more than 5 minutes in the future.\n *\n * @generated from field: google.protobuf.Timestamp end_time = 5;\n */\n endTime?: Timestamp | undefined;\n\n /**\n * Include the current open candle when it is available and inside the\n * requested range.\n * The open candle is prepended to the newest-first candle list and does not\n * count toward the closed-candle limit.\n *\n * @generated from field: bool include_incomplete = 6;\n */\n includeIncomplete: boolean;\n\n /**\n * Include the composite reference market candle series for the same market,\n * timeframe, and time range.\n * The reference series can be empty when no reference series is available for\n * the requested timeframe.\n *\n * @generated from field: bool include_reference = 7;\n */\n includeReference: boolean;\n\n /**\n * Opaque keyset cursor from a previous response. The cursor is exclusive and\n * bound to symbol, timeframe, time bounds, and newest-first candle ordering.\n * Inclusion flags affect response enrichment and may change between pages.\n *\n * @generated from field: string page_token = 8;\n */\n pageToken: string;\n};\n\n/**\n * Describes the message marketdata.v1.GetCandlesRequest.\n * Use `create(GetCandlesRequestSchema)` to create a new message.\n */\nexport const GetCandlesRequestSchema: GenMessage<GetCandlesRequest> = /*@__PURE__*/\n messageDesc(file_marketdata_v1_marketdata, 5);\n\n/**\n * GetCandlesColumnsRequest selects a spot market candle series for columnar output.\n *\n * Each response page is ordered oldest-first. Pagination selects the newest\n * eligible closed candles first and continues toward older candles. When both\n * start_time and end_time are set, both bounds are inclusive.\n *\n * @generated from message marketdata.v1.GetCandlesColumnsRequest\n */\nexport type GetCandlesColumnsRequest = Message<\"marketdata.v1.GetCandlesColumnsRequest\"> & {\n /**\n * Numeric spot market identifier.\n *\n * @generated from field: uint32 symbol_id = 1;\n */\n symbolId: number;\n\n /**\n * Candle bucket size. Required for ConnectRPC clients.\n *\n * @generated from field: marketdata.v1.Timeframe timeframe = 2;\n */\n timeframe: Timeframe;\n\n /**\n * Maximum number of closed candles to return. Defaults to 500 when unset;\n * max 10000.\n *\n * @generated from field: uint32 limit = 3;\n */\n limit: number;\n\n /**\n * Inclusive lower bound for candle bucket start time, as a UTC timestamp.\n * Must not be more than 5 minutes in the future.\n *\n * @generated from field: google.protobuf.Timestamp start_time = 4;\n */\n startTime?: Timestamp | undefined;\n\n /**\n * Inclusive upper bound for candle bucket start time, as a UTC timestamp.\n * Must be greater than or equal to start_time when both are set, and must not\n * be more than 5 minutes in the future.\n *\n * @generated from field: google.protobuf.Timestamp end_time = 5;\n */\n endTime?: Timestamp | undefined;\n\n /**\n * Include the current open candle when available and inside the requested\n * range. It appears last in the oldest-first response columns and does not\n * count toward the closed-candle limit.\n *\n * @generated from field: bool include_incomplete = 6;\n */\n includeIncomplete: boolean;\n\n /**\n * Include the composite reference market candle series for the same market,\n * timeframe, and time range.\n * The reference series can be empty when no reference series is available for\n * the requested timeframe.\n *\n * @generated from field: bool include_reference = 7;\n */\n includeReference: boolean;\n\n /**\n * Opaque exclusive keyset cursor for older closed candles, bound to symbol,\n * timeframe, and time bounds. Columns within each page are ordered oldest-first.\n * Inclusion flags and response shape may change between pages.\n *\n * @generated from field: string page_token = 8;\n */\n pageToken: string;\n};\n\n/**\n * Describes the message marketdata.v1.GetCandlesColumnsRequest.\n * Use `create(GetCandlesColumnsRequestSchema)` to create a new message.\n */\nexport const GetCandlesColumnsRequestSchema: GenMessage<GetCandlesColumnsRequest> = /*@__PURE__*/\n messageDesc(file_marketdata_v1_marketdata, 6);\n\n/**\n * CandlePoint is one OHLCV bucket represented with scaled integers.\n *\n * A primary candle opens at the previous candle's close, so consecutive\n * candles join at every timeframe; a market's first candle opens at its first\n * trade. High and low include the open. A bucket without trades is flat at\n * the previous close with zero volume.\n *\n * REST responses render these values as decimal strings in tuple order:\n * [ts_sec, open, high, low, close, volume, quote_volume].\n *\n * @generated from message marketdata.v1.CandlePoint\n */\nexport type CandlePoint = Message<\"marketdata.v1.CandlePoint\"> & {\n /**\n * Candle bucket start timestamp, in seconds since epoch (UTC).\n *\n * @generated from field: uint64 ts_sec = 1;\n */\n tsSec: bigint;\n\n /**\n * Opening price in quote units: for a primary candle, the previous\n * candle's close, or the first trade for a market's first candle. Primary\n * candles use scale 9; composite reference candles use the pair's\n * reference_price_scale from GetSpotConfig.\n *\n * @generated from field: int64 open = 2;\n */\n open: bigint;\n\n /**\n * Highest price in the bucket, including the open, using the same scale as\n * open.\n *\n * @generated from field: int64 high = 3;\n */\n high: bigint;\n\n /**\n * Lowest price in the bucket, including the open, using the same scale as\n * open.\n *\n * @generated from field: int64 low = 4;\n */\n low: bigint;\n\n /**\n * Closing price, using the same scale as open.\n *\n * @generated from field: int64 close = 5;\n */\n close: bigint;\n\n /**\n * Traded base-asset quantity scaled by the base asset's\n * market_data_volume_scale from GetSpotConfig.\n *\n * @generated from field: int64 volume = 6;\n */\n volume: bigint;\n\n /**\n * True for a closed candle bucket, including historical API rows and\n * WebSocket terminal updates. False only while the bucket is still open.\n *\n * @generated from field: bool is_closed = 7;\n */\n isClosed: boolean;\n\n /**\n * Exact traded quote-asset volume as a human-readable decimal string.\n * This is sum(execution price × execution quantity), not close × base volume.\n *\n * @generated from field: string quote_volume = 8;\n */\n quoteVolume: string;\n};\n\n/**\n * Describes the message marketdata.v1.CandlePoint.\n * Use `create(CandlePointSchema)` to create a new message.\n */\nexport const CandlePointSchema: GenMessage<CandlePoint> = /*@__PURE__*/\n messageDesc(file_marketdata_v1_marketdata, 7);\n\n/**\n * GetCandlesResponse contains OHLCV candles for one spot market and timeframe.\n *\n * Candles and reference_candles are ordered newest-first by ts_sec. REST\n * responses render price and volume values as decimal strings.\n *\n * @generated from message marketdata.v1.GetCandlesResponse\n */\nexport type GetCandlesResponse = Message<\"marketdata.v1.GetCandlesResponse\"> & {\n /**\n * Numeric spot market identifier echoed from the request.\n *\n * @generated from field: uint32 symbol_id = 1;\n */\n symbolId: number;\n\n /**\n * Candle bucket size used for the returned series.\n *\n * @generated from field: marketdata.v1.Timeframe timeframe = 2;\n */\n timeframe: Timeframe;\n\n /**\n * Primary market candle series, ordered newest-first by ts_sec.\n *\n * @generated from field: repeated marketdata.v1.CandlePoint candles = 3;\n */\n candles: CandlePoint[];\n\n /**\n * Composite reference market candle series, ordered newest-first by ts_sec.\n * Populated only when include_reference is true and reference data is\n * available.\n *\n * @generated from field: repeated marketdata.v1.CandlePoint reference_candles = 4;\n */\n referenceCandles: CandlePoint[];\n\n /**\n * Opaque cursor for the next page. Empty when no more results exist.\n *\n * @generated from field: string next_page_token = 5;\n */\n nextPageToken: string;\n};\n\n/**\n * Describes the message marketdata.v1.GetCandlesResponse.\n * Use `create(GetCandlesResponseSchema)` to create a new message.\n */\nexport const GetCandlesResponseSchema: GenMessage<GetCandlesResponse> = /*@__PURE__*/\n messageDesc(file_marketdata_v1_marketdata, 8);\n\n/**\n * GetCandlesColumnsResponse returns the same candle series as GetCandles but in columnar form.\n * This is optimized for charting clients that ingest arrays of each field (binary only).\n *\n * Ordering: values within each page are oldest-first (ascending ts_sec).\n * Continuation pages contain older candles.\n *\n * @generated from message marketdata.v1.GetCandlesColumnsResponse\n */\nexport type GetCandlesColumnsResponse = Message<\"marketdata.v1.GetCandlesColumnsResponse\"> & {\n /**\n * Numeric spot market identifier.\n *\n * @generated from field: uint32 symbol_id = 1;\n */\n symbolId: number;\n\n /**\n * Timeframe of this series.\n *\n * @generated from field: marketdata.v1.Timeframe timeframe = 2;\n */\n timeframe: Timeframe;\n\n /**\n * Candle bucket start timestamps (seconds since epoch, UTC).\n *\n * @generated from field: repeated uint64 ts_sec = 3;\n */\n tsSec: bigint[];\n\n /**\n * Opening primary-market prices use scale 9: each is the previous candle's\n * close, or the first trade for a market's first candle. Reference prices\n * use the pair's reference_price_scale from GetSpotConfig.\n *\n * @generated from field: repeated int64 open = 4;\n */\n open: bigint[];\n\n /**\n * Highest primary-market prices, including the open, use scale 9. Reference\n * prices use the pair's reference_price_scale from GetSpotConfig.\n *\n * @generated from field: repeated int64 high = 5;\n */\n high: bigint[];\n\n /**\n * Lowest primary-market prices, including the open, use scale 9. Reference\n * prices use the pair's reference_price_scale from GetSpotConfig.\n *\n * @generated from field: repeated int64 low = 6;\n */\n low: bigint[];\n\n /**\n * Closing primary-market prices use scale 9. Reference prices use the pair's\n * reference_price_scale from GetSpotConfig.\n *\n * @generated from field: repeated int64 close = 7;\n */\n close: bigint[];\n\n /**\n * Traded base-asset quantities scaled by the base asset's\n * market_data_volume_scale from GetSpotConfig.\n *\n * @generated from field: repeated int64 volume = 8;\n */\n volume: bigint[];\n\n /**\n * Reference candle series in columnar form (same ordering as ts_sec: oldest-first).\n * Only populated when request.include_reference=true.\n *\n * @generated from field: repeated uint64 reference_ts_sec = 9;\n */\n referenceTsSec: bigint[];\n\n /**\n * Reference opening prices use the pair's reference_price_scale.\n *\n * @generated from field: repeated int64 reference_open = 10;\n */\n referenceOpen: bigint[];\n\n /**\n * Reference high prices use the pair's reference_price_scale.\n *\n * @generated from field: repeated int64 reference_high = 11;\n */\n referenceHigh: bigint[];\n\n /**\n * Reference low prices use the pair's reference_price_scale.\n *\n * @generated from field: repeated int64 reference_low = 12;\n */\n referenceLow: bigint[];\n\n /**\n * Reference closing prices use the pair's reference_price_scale.\n *\n * @generated from field: repeated int64 reference_close = 13;\n */\n referenceClose: bigint[];\n\n /**\n * Reference traded base-asset quantities use the base asset's\n * market_data_volume_scale from GetSpotConfig.\n *\n * @generated from field: repeated int64 reference_volume = 14;\n */\n referenceVolume: bigint[];\n\n /**\n * Opaque cursor for the next page. Empty when no more results exist.\n *\n * @generated from field: string next_page_token = 15;\n */\n nextPageToken: string;\n\n /**\n * Exact traded quote-asset volumes, oldest-first and aligned with ts_sec.\n *\n * @generated from field: repeated string quote_volume = 16;\n */\n quoteVolume: string[];\n};\n\n/**\n * Describes the message marketdata.v1.GetCandlesColumnsResponse.\n * Use `create(GetCandlesColumnsResponseSchema)` to create a new message.\n */\nexport const GetCandlesColumnsResponseSchema: GenMessage<GetCandlesColumnsResponse> = /*@__PURE__*/\n messageDesc(file_marketdata_v1_marketdata, 9);\n\n/**\n * Candle represents a single OHLCV bucket for a symbol and timeframe.\n *\n * @generated from message marketdata.v1.Candle\n */\nexport type Candle = Message<\"marketdata.v1.Candle\"> & {\n /**\n * numeric spot market identifier\n *\n * @generated from field: uint32 symbol_id = 1;\n */\n symbolId: number;\n\n /**\n * timeframe of this candle\n *\n * @generated from field: marketdata.v1.Timeframe timeframe = 2;\n */\n timeframe: Timeframe;\n\n /**\n * bucket start timestamp (seconds since epoch, UTC)\n *\n * @generated from field: uint64 ts_sec = 3;\n */\n tsSec: bigint;\n\n /**\n * Opening primary-market price in scale 9: the previous candle's close, or\n * the first trade for a market's first candle.\n *\n * @generated from field: int64 open = 4;\n */\n open: bigint;\n\n /**\n * highest primary-market price in scale 9, including the open\n *\n * @generated from field: int64 high = 5;\n */\n high: bigint;\n\n /**\n * lowest primary-market price in scale 9, including the open\n *\n * @generated from field: int64 low = 6;\n */\n low: bigint;\n\n /**\n * closing primary-market price in scale 9\n *\n * @generated from field: int64 close = 7;\n */\n close: bigint;\n\n /**\n * Traded base-asset quantity scaled by the base asset's\n * market_data_volume_scale from GetSpotConfig.\n *\n * @generated from field: int64 volume = 8;\n */\n volume: bigint;\n\n /**\n * Exact traded quote-asset volume as a human-readable decimal string.\n *\n * @generated from field: string quote_volume = 9;\n */\n quoteVolume: string;\n};\n\n/**\n * Describes the message marketdata.v1.Candle.\n * Use `create(CandleSchema)` to create a new message.\n */\nexport const CandleSchema: GenMessage<Candle> = /*@__PURE__*/\n messageDesc(file_marketdata_v1_marketdata, 10);\n\n/**\n * AssetConfig describes one spot asset returned by GetSpotConfig.\n *\n * @generated from message marketdata.v1.AssetConfig\n */\nexport type AssetConfig = Message<\"marketdata.v1.AssetConfig\"> & {\n /**\n * Asset code, e.g. \"USDT\" or \"BTC\".\n *\n * @generated from field: string asset = 1;\n */\n asset: string;\n\n /**\n * Stable numeric asset id used by account, balance, and order APIs.\n *\n * @generated from field: uint32 ledger_id = 2;\n */\n ledgerId: number;\n\n /**\n * Human-friendly display name, e.g. \"Bitcoin\".\n *\n * @generated from field: string name = 3;\n */\n name: string;\n\n /**\n * Suggested decimal precision for displaying user-facing asset amounts.\n *\n * @generated from field: uint32 quantity_display_decimals = 4;\n */\n quantityDisplayDecimals: number;\n\n /**\n * Decimal scale (0..18) for this asset's order quantities and other fields\n * that explicitly reference quantity_scale. A scale of 8 represents one whole\n * asset as 100000000 in those fields. Account balance amounts use fixed\n * 18-decimal units independently of this value.\n *\n * @generated from field: uint32 quantity_scale = 5;\n */\n quantityScale: number;\n\n /**\n * Integer scale for public candle and market-overview base volume (0..18).\n *\n * @generated from field: uint32 market_data_volume_scale = 6;\n */\n marketDataVolumeScale: number;\n};\n\n/**\n * Describes the message marketdata.v1.AssetConfig.\n * Use `create(AssetConfigSchema)` to create a new message.\n */\nexport const AssetConfigSchema: GenMessage<AssetConfig> = /*@__PURE__*/\n messageDesc(file_marketdata_v1_marketdata, 11);\n\n/**\n * PairMarketdataConfig describes market-data display settings for a spot pair.\n *\n * @generated from message marketdata.v1.PairMarketdataConfig\n */\nexport type PairMarketdataConfig = Message<\"marketdata.v1.PairMarketdataConfig\"> & {\n /**\n * Suggested order book aggregation bucket sizes in quote-asset price units,\n * e.g. 0.01, 0.1, 1, or 10.\n *\n * @generated from field: repeated double orderbook_price_buckets = 1;\n */\n orderbookPriceBuckets: number[];\n};\n\n/**\n * Describes the message marketdata.v1.PairMarketdataConfig.\n * Use `create(PairMarketdataConfigSchema)` to create a new message.\n */\nexport const PairMarketdataConfigSchema: GenMessage<PairMarketdataConfig> = /*@__PURE__*/\n messageDesc(file_marketdata_v1_marketdata, 12);\n\n/**\n * PairConfig describes one spot trading pair and its trading constraints.\n *\n * @generated from message marketdata.v1.PairConfig\n */\nexport type PairConfig = Message<\"marketdata.v1.PairConfig\"> & {\n /**\n * Stable numeric pair id used by low-latency ConnectRPC requests and streams.\n *\n * @generated from field: uint32 symbol_id = 1;\n */\n symbolId: number;\n\n /**\n * Trading pair symbol, e.g. \"BTC-USDT\".\n *\n * @generated from field: string symbol = 2;\n */\n symbol: string;\n\n /**\n * Base asset code. For BTC-USDT, this is \"BTC\".\n *\n * @generated from field: string base_asset = 3;\n */\n baseAsset: string;\n\n /**\n * Quote asset code. For BTC-USDT, this is \"USDT\".\n *\n * @generated from field: string quote_asset = 4;\n */\n quoteAsset: string;\n\n /**\n * Minimum allowed price increment as a decimal string in quote-asset units.\n * Prices use 9 decimal places in scaled integer fields; for example \"0.01\"\n * means orders must be priced in 0.01 quote-asset increments.\n *\n * @generated from field: string tick_size = 5;\n */\n tickSize: string;\n\n /**\n * Minimum allowed quantity increment as a decimal string in base-asset units.\n *\n * @generated from field: string step_size = 6;\n */\n stepSize: string;\n\n /**\n * Minimum order notional as a decimal string in quote-asset units.\n *\n * @generated from field: string min_notional_quote = 7;\n */\n minNotionalQuote: string;\n\n /**\n * Minimum order quantity as a decimal string in base-asset units.\n *\n * @generated from field: string min_qty_base = 8;\n */\n minQtyBase: string;\n\n /**\n * Whether BUY order fees may be paid from the base asset instead of the\n * spent quote asset when the order request selects the base fee asset.\n *\n * @generated from field: bool allow_buy_fee_from_base = 9;\n */\n allowBuyFeeFromBase: boolean;\n\n /**\n * Quantity scale for base-asset amounts in this pair.\n *\n * @generated from field: uint32 base_quantity_scale = 10;\n */\n baseQuantityScale: number;\n\n /**\n * Quantity scale for quote-asset amounts in this pair.\n *\n * @generated from field: uint32 quote_quantity_scale = 11;\n */\n quoteQuantityScale: number;\n\n /**\n * Market-data display settings for this pair.\n *\n * @generated from field: marketdata.v1.PairMarketdataConfig marketdata = 12;\n */\n marketdata?: PairMarketdataConfig | undefined;\n\n /**\n * Scheduled listing timestamp. When unset, the pair has no explicit future\n * listing time.\n *\n * @generated from field: google.protobuf.Timestamp listing_at = 13;\n */\n listingAt?: Timestamp | undefined;\n\n /**\n * Scheduled delisting timestamp. When unset, the pair has no explicit\n * delisting time.\n *\n * @generated from field: google.protobuf.Timestamp delisting_at = 14;\n */\n delistingAt?: Timestamp | undefined;\n\n /**\n * Current trading status.\n *\n * @generated from field: marketdata.v1.PairStatus status = 15;\n */\n status: PairStatus;\n\n /**\n * Default MARKET order slippage cap for BUY orders, in basis points\n * (1 bp = 0.01%). A request-level slippage setting can override this value.\n *\n * @generated from field: int32 default_market_slippage_bps_buy = 16;\n */\n defaultMarketSlippageBpsBuy: number;\n\n /**\n * Default MARKET order slippage cap for SELL orders, in basis points\n * (1 bp = 0.01%). A request-level slippage setting can override this value.\n *\n * @generated from field: int32 default_market_slippage_bps_sell = 17;\n */\n defaultMarketSlippageBpsSell: number;\n\n /**\n * Maximum allowed drift between client reference price and server reference\n * price for MARKET orders, in basis points (1 bp = 0.01%), when client\n * reference pricing is used.\n *\n * @generated from field: int32 max_client_ref_drift_bps = 18;\n */\n maxClientRefDriftBps: number;\n\n /**\n * Integer scale for composite reference prices in candle responses (0..18).\n * Primary market and execution prices use the fixed scale 9.\n *\n * @generated from field: uint32 reference_price_scale = 19;\n */\n referencePriceScale: number;\n\n /**\n * Largest quantity of one limit order, as a decimal string in base-asset\n * units. A replace is checked on its new total less the quantity already\n * filled. An order above it is rejected with MAX_QTY. Absent when the pair\n * has no maximum.\n *\n * @generated from field: optional string max_limit_qty_base = 20;\n */\n maxLimitQtyBase?: string | undefined;\n\n /**\n * Largest quantity of one market order, as a decimal string in base-asset\n * units. A market order sized by quote amount is checked once converted to\n * base. An order above it is rejected with MAX_QTY. Absent when the pair\n * has no maximum.\n *\n * @generated from field: optional string max_market_qty_base = 21;\n */\n maxMarketQtyBase?: string | undefined;\n\n /**\n * Maximum per-order notional as a decimal string in quote-asset units.\n * Base-sized orders are checked using quantity times limit price, or market\n * protection price, without rounding. For quote-sized buys, the entire all-in\n * maximum quote debit must also fit this maximum. Exceeding it returns\n * MAX_NOTIONAL. Absent when no maximum is configured.\n *\n * @generated from field: optional string max_order_notional_quote = 22;\n */\n maxOrderNotionalQuote?: string | undefined;\n\n /**\n * The venue's default limit on resting orders a typical account may hold on\n * this pair at once: good-till-cancelled and good-till-date orders that have\n * not ended. Immediate-or-cancel, fill-or-kill and market orders never\n * count, and a replaced order keeps its place. An order past it is rejected\n * with MAX_OPEN_ORDERS_PER_PAIR. An account may have a lower limit of its\n * own; that is not part of this public configuration and would be returned\n * by an account-scoped read.\n *\n * @generated from field: uint32 max_open_orders_per_pair = 23;\n */\n maxOpenOrdersPerPair: number;\n\n /**\n * Additional maximum notional for market orders as a decimal string in\n * quote-asset units. Base-sized market orders are valued at the buy protection\n * price or the sell reference price before slippage, without rounding. For\n * quote-sized market buys, the entire all-in maximum quote debit must also fit\n * this maximum. Exceeding it returns MAX_NOTIONAL. Absent when no maximum is\n * configured.\n *\n * @generated from field: optional string max_market_notional_quote = 24;\n */\n maxMarketNotionalQuote?: string | undefined;\n};\n\n/**\n * Describes the message marketdata.v1.PairConfig.\n * Use `create(PairConfigSchema)` to create a new message.\n */\nexport const PairConfigSchema: GenMessage<PairConfig> = /*@__PURE__*/\n messageDesc(file_marketdata_v1_marketdata, 13);\n\n/**\n * GetSpotConfigRequest has no parameters.\n *\n * @generated from message marketdata.v1.GetSpotConfigRequest\n */\nexport type GetSpotConfigRequest = Message<\"marketdata.v1.GetSpotConfigRequest\"> & {\n};\n\n/**\n * Describes the message marketdata.v1.GetSpotConfigRequest.\n * Use `create(GetSpotConfigRequestSchema)` to create a new message.\n */\nexport const GetSpotConfigRequestSchema: GenMessage<GetSpotConfigRequest> = /*@__PURE__*/\n messageDesc(file_marketdata_v1_marketdata, 14);\n\n/**\n * GetSpotConfigResponse contains a cacheable spot reference-data snapshot.\n *\n * @generated from message marketdata.v1.GetSpotConfigResponse\n */\nexport type GetSpotConfigResponse = Message<\"marketdata.v1.GetSpotConfigResponse\"> & {\n /**\n * Assets ordered by asset code in ascending alphabetical order.\n *\n * @generated from field: repeated marketdata.v1.AssetConfig assets = 1;\n */\n assets: AssetConfig[];\n\n /**\n * Pairs ordered by symbol in ascending alphabetical order.\n *\n * @generated from field: repeated marketdata.v1.PairConfig pairs = 2;\n */\n pairs: PairConfig[];\n\n /**\n * Snapshot generation timestamp, in seconds since the Unix epoch (UTC).\n *\n * @generated from field: uint64 ts_sec = 3;\n */\n tsSec: bigint;\n\n /**\n * The venue's default limit on resting orders a typical account may hold\n * across all pairs together: good-till-cancelled and good-till-date orders\n * that have not ended. Immediate-or-cancel, fill-or-kill and market orders\n * never count, and a replaced order keeps its place. An order past it is\n * rejected with MAX_OPEN_ORDERS_TOTAL. Each pair's own limit is\n * PairConfig.max_open_orders_per_pair. An account may have a lower limit of\n * its own; that is not part of this public configuration and would be\n * returned by an account-scoped read.\n *\n * @generated from field: uint32 max_open_orders_total = 4;\n */\n maxOpenOrdersTotal: number;\n};\n\n/**\n * Describes the message marketdata.v1.GetSpotConfigResponse.\n * Use `create(GetSpotConfigResponseSchema)` to create a new message.\n */\nexport const GetSpotConfigResponseSchema: GenMessage<GetSpotConfigResponse> = /*@__PURE__*/\n messageDesc(file_marketdata_v1_marketdata, 15);\n\n/**\n * SideFilter controls which aggressor side of trades to return.\n *\n * @generated from enum marketdata.v1.SideFilter\n */\nexport enum SideFilter {\n /**\n * Return trades from both BUY and SELL aggressors.\n *\n * @generated from enum value: SIDE_UNSPECIFIED = 0;\n */\n SIDE_UNSPECIFIED = 0,\n\n /**\n * Return trades where the taker/aggressor was buying the base asset.\n *\n * @generated from enum value: BUY = 1;\n */\n BUY = 1,\n\n /**\n * Return trades where the taker/aggressor was selling the base asset.\n *\n * @generated from enum value: SELL = 2;\n */\n SELL = 2,\n}\n\n/**\n * Describes the enum marketdata.v1.SideFilter.\n */\nexport const SideFilterSchema: GenEnum<SideFilter> = /*@__PURE__*/\n enumDesc(file_marketdata_v1_marketdata, 0);\n\n/**\n * Timeframe represents an OHLCV candle bucket.\n *\n * All buckets are in UTC; daylight saving time never shifts a boundary.\n * Fixed-duration buckets start at whole multiples of their duration since\n * 1970-01-01T00:00:00Z, so every bucket up to 1 day starts on a UTC midnight\n * boundary and `DAY_3` buckets start every third day counted from\n * 1970-01-01. `WEEK_1` buckets start on Monday 00:00 UTC. `MONTH_1` is\n * calendar-based (UTC month boundaries). Values are listed shortest first.\n *\n * @generated from enum marketdata.v1.Timeframe\n */\nexport enum Timeframe {\n /**\n * @generated from enum value: TIMEFRAME_UNSPECIFIED = 0;\n */\n TIMEFRAME_UNSPECIFIED = 0,\n\n /**\n * 1 second\n *\n * @generated from enum value: SEC_1 = 1;\n */\n SEC_1 = 1,\n\n /**\n * 1 minute\n *\n * @generated from enum value: MIN_1 = 2;\n */\n MIN_1 = 2,\n\n /**\n * 3 minutes\n *\n * @generated from enum value: MIN_3 = 12;\n */\n MIN_3 = 12,\n\n /**\n * 5 minutes\n *\n * @generated from enum value: MIN_5 = 3;\n */\n MIN_5 = 3,\n\n /**\n * 15 minutes\n *\n * @generated from enum value: MIN_15 = 4;\n */\n MIN_15 = 4,\n\n /**\n * 30 minutes\n *\n * @generated from enum value: MIN_30 = 5;\n */\n MIN_30 = 5,\n\n /**\n * 1 hour\n *\n * @generated from enum value: HOUR_1 = 6;\n */\n HOUR_1 = 6,\n\n /**\n * 2 hours\n *\n * @generated from enum value: HOUR_2 = 13;\n */\n HOUR_2 = 13,\n\n /**\n * 4 hours\n *\n * @generated from enum value: HOUR_4 = 7;\n */\n HOUR_4 = 7,\n\n /**\n * 6 hours\n *\n * @generated from enum value: HOUR_6 = 14;\n */\n HOUR_6 = 14,\n\n /**\n * 8 hours\n *\n * @generated from enum value: HOUR_8 = 15;\n */\n HOUR_8 = 15,\n\n /**\n * 12 hours\n *\n * @generated from enum value: HOUR_12 = 9;\n */\n HOUR_12 = 9,\n\n /**\n * 1 day\n *\n * @generated from enum value: DAY_1 = 8;\n */\n DAY_1 = 8,\n\n /**\n * 3 days, counted from 1970-01-01 UTC\n *\n * @generated from enum value: DAY_3 = 16;\n */\n DAY_3 = 16,\n\n /**\n * 1 week, starting Monday 00:00 UTC\n *\n * @generated from enum value: WEEK_1 = 10;\n */\n WEEK_1 = 10,\n\n /**\n * 1 month (calendar month, UTC)\n *\n * @generated from enum value: MONTH_1 = 11;\n */\n MONTH_1 = 11,\n}\n\n/**\n * Describes the enum marketdata.v1.Timeframe.\n */\nexport const TimeframeSchema: GenEnum<Timeframe> = /*@__PURE__*/\n enumDesc(file_marketdata_v1_marketdata, 1);\n\n/**\n * PairStatus describes which order mutations a spot pair currently accepts.\n *\n * @generated from enum marketdata.v1.PairStatus\n */\nexport enum PairStatus {\n /**\n * Pair status was not provided.\n *\n * @generated from enum value: PAIR_STATUS_UNSPECIFIED = 0;\n */\n UNSPECIFIED = 0,\n\n /**\n * New orders and cancellations are accepted.\n *\n * @generated from enum value: PAIR_STATUS_ENABLED = 1;\n */\n ENABLED = 1,\n\n /**\n * New orders are temporarily disabled.\n *\n * @generated from enum value: PAIR_STATUS_DISABLED = 2;\n */\n DISABLED = 2,\n\n /**\n * Only cancellations are accepted.\n *\n * @generated from enum value: PAIR_STATUS_CANCEL_ONLY = 3;\n */\n CANCEL_ONLY = 3,\n\n /**\n * New orders must use a post-only execution variant.\n *\n * @generated from enum value: PAIR_STATUS_POST_ONLY = 4;\n */\n POST_ONLY = 4,\n\n /**\n * New spot orders are blocked by reduce-only policy.\n *\n * @generated from enum value: PAIR_STATUS_REDUCE_ONLY = 5;\n */\n REDUCE_ONLY = 5,\n\n /**\n * Trading is halted: only cancellations are accepted, and new orders are\n * rejected with MARKET_HALTED.\n *\n * @generated from enum value: PAIR_STATUS_HALTED = 6;\n */\n HALTED = 6,\n}\n\n/**\n * Describes the enum marketdata.v1.PairStatus.\n */\nexport const PairStatusSchema: GenEnum<PairStatus> = /*@__PURE__*/\n enumDesc(file_marketdata_v1_marketdata, 2);\n\n/**\n * @generated from service marketdata.v1.MarketDataService\n */\nexport const MarketDataService: GenService<{\n /**\n * Retrieve recent public trades for a spot market.\n * Results are ordered newest-first and support optional aggressor side,\n * inclusive time-range, and opaque keyset pagination filters. With\n * after_trade_id, it walks the symbol's trades by trade identifier,\n * oldest first and gap-free, to backfill trades missed on a live stream.\n *\n * @generated from rpc marketdata.v1.MarketDataService.GetTrades\n */\n getTrades: {\n methodKind: \"unary\";\n input: typeof GetTradesRequestSchema;\n output: typeof GetTradesResponseSchema;\n },\n /**\n * Retrieve OHLCV candles for a spot market and timeframe.\n * Results are ordered newest-first and support inclusive time bounds, optional\n * current open candle inclusion, and optional composite reference candles.\n *\n * @generated from rpc marketdata.v1.MarketDataService.GetCandles\n */\n getCandles: {\n methodKind: \"unary\";\n input: typeof GetCandlesRequestSchema;\n output: typeof GetCandlesResponseSchema;\n },\n /**\n * GetCandlesColumns returns OHLCV candles in a columnar representation optimized for charting.\n * This method is intended for ConnectRPC clients and returns scaled integers.\n * Primary OHLC prices use scale 9, reference OHLC prices use the pair's\n * reference_price_scale, and volumes use the base asset's\n * market_data_volume_scale from GetSpotConfig.\n *\n * @generated from rpc marketdata.v1.MarketDataService.GetCandlesColumns\n */\n getCandlesColumns: {\n methodKind: \"unary\";\n input: typeof GetCandlesColumnsRequestSchema;\n output: typeof GetCandlesColumnsResponseSchema;\n },\n /**\n * Retrieve a cacheable snapshot of spot assets and pairs, including precision and trading constraints.\n *\n * @generated from rpc marketdata.v1.MarketDataService.GetSpotConfig\n */\n getSpotConfig: {\n methodKind: \"unary\";\n input: typeof GetSpotConfigRequestSchema;\n output: typeof GetSpotConfigResponseSchema;\n },\n}> = /*@__PURE__*/\n serviceDesc(file_marketdata_v1_marketdata, 0);\n\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcA,MAAa,gCACX,uBAAS,44LAA44L,CAAC,gCAAgC,0BAA0B,CAAC;;;;;AAiFn9L,MAAa,yBACX,0BAAY,+BAA+B,CAAC;;;;;AA2D9C,MAAa,oBACX,0BAAY,+BAA+B,CAAC;;;;;AA2B9C,MAAa,yBACX,0BAAY,+BAA+B,CAAC;;;;;AA+B9C,MAAa,sBACX,0BAAY,+BAA+B,CAAC;;;;;AAiE9C,MAAa,0BACX,0BAAY,+BAA+B,CAAC;;;;;AAoF9C,MAAa,0BACX,0BAAY,+BAA+B,CAAC;;;;;AAoF9C,MAAa,iCACX,0BAAY,+BAA+B,CAAC;;;;;AAqF9C,MAAa,oBACX,0BAAY,+BAA+B,CAAC;;;;;AAqD9C,MAAa,2BACX,0BAAY,+BAA+B,CAAC;;;;;AAyI9C,MAAa,kCACX,0BAAY,+BAA+B,CAAC;;;;;AA8E9C,MAAa,eACX,0BAAY,+BAA+B,EAAE;;;;;AA0D/C,MAAa,oBACX,0BAAY,+BAA+B,EAAE;;;;;AAqB/C,MAAa,6BACX,0BAAY,+BAA+B,EAAE;;;;;AAoN/C,MAAa,mBACX,0BAAY,+BAA+B,EAAE;;;;;AAc/C,MAAa,6BACX,0BAAY,+BAA+B,EAAE;;;;;AAgD/C,MAAa,8BACX,0BAAY,+BAA+B,EAAE;;;;;;AAO/C,IAAY,aAAL,yBAAA,YAAA;;;;;;CAML,WAAA,WAAA,sBAAA,KAAA;;;;;;CAOA,WAAA,WAAA,SAAA,KAAA;;;;;;CAOA,WAAA,WAAA,UAAA,KAAA;;AACF,E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orders.v1.OrderIntent"> & {
187
187
  * from GetSpotConfig. Valid only for BUY market IOC and BUY limit IOC.
188
188
  * The order spends up to this amount at the prices it fills at. Once what
189
189
  * is left buys no further quantity step, it ends FILLED; if the book or
190
- * its price limit stops it first, its remainder is canceled.
190
+ * its price limit stops it first, its remainder is canceled. It can carry
191
+ * attached_risk: the legs protect the quantity it actually buys.
191
192
  *
192
193
  * @generated from field: int64 max_quote_debit_scaled = 4;
193
194
  */
@@ -297,7 +298,9 @@ declare const OrderIntentSchema: GenMessage<OrderIntent>;
297
298
  */
298
299
  type CreateOrderRequest = Message<"orders.v1.CreateOrderRequest"> & {
299
300
  /**
300
- * Target sub-account numeric ID. When omitted, uses caller's root account.
301
+ * Optional public subaccount ID. When omitted, subaccount-scoped API keys
302
+ * use their bound subaccount; other callers use their authenticated root
303
+ * account.
301
304
  *
302
305
  * @generated from field: optional fixed64 subaccount_id = 1;
303
306
  */
@@ -394,7 +397,9 @@ declare const CreateOrderResponseSchema: GenMessage<CreateOrderResponse>;
394
397
  */
395
398
  type PreviewOrderRequest = Message<"orders.v1.PreviewOrderRequest"> & {
396
399
  /**
397
- * Target sub-account numeric ID. When omitted, uses caller's root account.
400
+ * Optional public subaccount ID. When omitted, subaccount-scoped API keys
401
+ * use their bound subaccount; other callers use their authenticated root
402
+ * account.
398
403
  *
399
404
  * @generated from field: optional fixed64 subaccount_id = 1;
400
405
  */
@@ -504,7 +509,9 @@ type CancelOrderRequest = Message<"orders.v1.CancelOrderRequest"> & {
504
509
  */
505
510
  symbolId: number;
506
511
  /**
507
- * Target sub-account numeric ID. When omitted, uses caller's root account.
512
+ * Optional public subaccount ID. When omitted, subaccount-scoped API keys
513
+ * use their bound subaccount; other callers use their authenticated root
514
+ * account.
508
515
  *
509
516
  * @generated from field: optional fixed64 subaccount_id = 4;
510
517
  */
@@ -821,11 +828,12 @@ type TrailingStopPolicy = Message<"orders.v1.TrailingStopPolicy"> & {
821
828
  value?: undefined;
822
829
  };
823
830
  /**
824
- * Optional price protection. If set, when the trailing stop triggers we place
825
- * an IOC LIMIT order at stop_price ± max_slippage (instead of an unprotected
826
- * MARKET order).
827
- *
828
- * Exactly one of these should be set (or neither for unprotected behavior).
831
+ * Optional slippage override for the trailing-stop child. When set, the
832
+ * child uses an IOC limit bounded by this delta from the trigger price and,
833
+ * for a buy, by limit_price_ticks. When omitted, a market child uses the
834
+ * pair's default market slippage for its side, or 200 basis points if no
835
+ * positive default is configured. A buy child remains bounded by
836
+ * limit_price_ticks. Set at most one of these fields.
829
837
  *
830
838
  * @generated from oneof orders.v1.TrailingStopPolicy.max_slippage
831
839
  */
@@ -894,6 +902,11 @@ declare const TrailingStopPolicySchema: GenMessage<TrailingStopPolicy>;
894
902
  * RiskPolicy defines optional risk controls (take-profit, stop-loss or
895
903
  * trailing stop) attached to an order. The legs protect the parent order's
896
904
  * filled position: they arm as the parent fills and follow its later fills.
905
+ * A buy sized by max_quote_debit_scaled has no fixed quantity: its legs
906
+ * protect what its fills buy. When the order is created, each leg's exit is
907
+ * checked against the pair's minimums at the quantity the whole amount buys
908
+ * at the order's limit price, or a market order's maximum slippage price:
909
+ * the least it buys if it spends the amount.
897
910
  *
898
911
  * The legs of one parent share that position, whether or not oco is set, and
899
912
  * only one exit works at a time. The first leg whose condition is met submits
@@ -991,7 +1004,9 @@ declare const RiskPolicySchema: GenMessage<RiskPolicy>;
991
1004
  */
992
1005
  type CancelAllOrdersRequest = Message<"orders.v1.CancelAllOrdersRequest"> & {
993
1006
  /**
994
- * Target sub-account numeric ID. When omitted, uses caller's root account.
1007
+ * Optional public subaccount ID. When omitted, subaccount-scoped API keys
1008
+ * use their bound subaccount; other callers use their authenticated root
1009
+ * account.
995
1010
  *
996
1011
  * @generated from field: optional fixed64 subaccount_id = 1;
997
1012
  */
@@ -1080,9 +1095,10 @@ type CancelAllOrdersResponse = Message<"orders.v1.CancelAllOrdersResponse"> & {
1080
1095
  */
1081
1096
  matchedOrders: number;
1082
1097
  /**
1083
- * Number of matched orders submitted for cancellation, including orders
1084
- * whose cancellation was already in progress. Each moves to `CANCELED`
1085
- * asynchronously after the response. Zero when `dry_run` is set.
1098
+ * Number of matched orders for which cancellation was requested, including
1099
+ * orders whose cancellation was already in progress. Observe order updates or
1100
+ * reads for final outcomes; orders may execute before cancellation takes
1101
+ * effect. Zero when `dry_run` is set.
1086
1102
  *
1087
1103
  * @generated from field: uint32 submitted_cancels = 3;
1088
1104
  */
@@ -1218,7 +1234,9 @@ declare const CancelAllOrdersResponse_ListingStatusSchema: GenEnum<CancelAllOrde
1218
1234
  */
1219
1235
  type CancelAllAfterRequest = Message<"orders.v1.CancelAllAfterRequest"> & {
1220
1236
  /**
1221
- * Target sub-account numeric ID. When omitted, uses caller's root account.
1237
+ * Optional public subaccount ID. When omitted, subaccount-scoped API keys
1238
+ * use their bound subaccount; other callers use their authenticated root
1239
+ * account.
1222
1240
  *
1223
1241
  * @generated from field: optional fixed64 subaccount_id = 1;
1224
1242
  */
@@ -1488,7 +1506,9 @@ declare const BatchCreateResultItemSchema: GenMessage<BatchCreateResultItem>;
1488
1506
  */
1489
1507
  type BatchCreateOrdersRequest = Message<"orders.v1.BatchCreateOrdersRequest"> & {
1490
1508
  /**
1491
- * Target sub-account numeric ID. When omitted, uses caller's root account.
1509
+ * Optional public subaccount ID. When omitted, subaccount-scoped API keys
1510
+ * use their bound subaccount; other callers use their authenticated root
1511
+ * account.
1492
1512
  *
1493
1513
  * @generated from field: optional fixed64 subaccount_id = 1;
1494
1514
  */
@@ -1569,7 +1589,9 @@ declare const BatchCreateOrdersResponseSchema: GenMessage<BatchCreateOrdersRespo
1569
1589
  */
1570
1590
  type ModifyOrderRequest = Message<"orders.v1.ModifyOrderRequest"> & {
1571
1591
  /**
1572
- * Target sub-account numeric ID. When omitted, uses caller's root account.
1592
+ * Optional public subaccount ID. When omitted, subaccount-scoped API keys
1593
+ * use their bound subaccount; other callers use their authenticated root
1594
+ * account.
1573
1595
  *
1574
1596
  * @generated from field: optional fixed64 subaccount_id = 1;
1575
1597
  */
@@ -1867,7 +1889,9 @@ declare const BatchReplaceAdmissionItemSchema: GenMessage<BatchReplaceAdmissionI
1867
1889
  */
1868
1890
  type BatchReplaceOrdersRequest = Message<"orders.v1.BatchReplaceOrdersRequest"> & {
1869
1891
  /**
1870
- * Target sub-account numeric ID. When omitted, uses caller's root account.
1892
+ * Optional public subaccount ID. When omitted, subaccount-scoped API keys
1893
+ * use their bound subaccount; other callers use their authenticated root
1894
+ * account.
1871
1895
  *
1872
1896
  * @generated from field: optional fixed64 subaccount_id = 1;
1873
1897
  */
@@ -2061,7 +2085,9 @@ declare const BatchCancelResultItem_StatusSchema: GenEnum<BatchCancelResultItem_
2061
2085
  */
2062
2086
  type BatchCancelOrdersRequest = Message<"orders.v1.BatchCancelOrdersRequest"> & {
2063
2087
  /**
2064
- * Target sub-account numeric ID. When omitted, uses caller's root account.
2088
+ * Optional public subaccount ID. When omitted, subaccount-scoped API keys
2089
+ * use their bound subaccount; other callers use their authenticated root
2090
+ * account.
2065
2091
  *
2066
2092
  * @generated from field: optional fixed64 subaccount_id = 1;
2067
2093
  */
@@ -2192,7 +2218,8 @@ declare const OrderTypeSchema: GenEnum<OrderType>;
2192
2218
  */
2193
2219
  declare enum TimeInForce {
2194
2220
  /**
2195
- * Time-in-force was not provided; create requests default to GTC.
2221
+ * Time-in-force was not provided. Create requests must select an execution
2222
+ * variant, which determines time-in-force.
2196
2223
  *
2197
2224
  * @generated from enum value: TIME_IN_FORCE_UNSPECIFIED = 0;
2198
2225
  */
@@ -2491,7 +2518,7 @@ declare enum ErrorCode {
2491
2518
  */
2492
2519
  API_KEY_MARKET_DENY = 29,
2493
2520
  /**
2494
- * Price must align with the pair tick size (LIMIT orders).
2521
+ * Price must align with the pair tick size, including trigger and activation prices.
2495
2522
  *
2496
2523
  * @generated from enum value: ERROR_CODE_PRICE_TICK_SIZE = 30;
2497
2524
  */
@@ -3500,12 +3527,16 @@ declare enum ErrorCode {
3500
3527
  */
3501
3528
  ACCOUNT_REPAIRING = 300,
3502
3529
  /**
3503
- * The new trigger price of a stop-loss or take-profit is already reached by
3504
- * the price the trigger watches (at or past it), so the trigger would fire at
3505
- * once and send its order. Nothing changed; the trigger keeps its previous
3506
- * trigger price. Returned by ModifyTrigger, and by an order modify that moves
3507
- * an attached take-profit or stop-loss of an order with a fill. Choose a
3508
- * trigger price the market has not reached.
3530
+ * The change would act on the trigger at once. The new trigger price of a
3531
+ * stop-loss or take-profit, or the trigger price a new trailing distance
3532
+ * gives an activated trailing stop, is already reached by the price the
3533
+ * trigger watches (at or past it), so the trigger would fire at once and send
3534
+ * its order; or the new activation price of a trailing stop not yet
3535
+ * activated is already reached by that price, so it would activate at once.
3536
+ * Nothing changed; the trigger keeps its previous settings. Returned by
3537
+ * ModifyTrigger, and by an order modify that moves an attached take-profit,
3538
+ * stop-loss or trailing stop of an order with a fill. Choose a price the
3539
+ * market has not reached.
3509
3540
  *
3510
3541
  * @generated from enum value: ERROR_CODE_TRIGGER_WOULD_TRIGGER_IMMEDIATELY = 302;
3511
3542
  */
@@ -3547,6 +3578,18 @@ declare enum ErrorCode {
3547
3578
  * @generated from enum value: ERROR_CODE_MAX_OPEN_ORDERS_PER_PAIR = 306;
3548
3579
  */
3549
3580
  MAX_OPEN_ORDERS_PER_PAIR = 306,
3581
+ /**
3582
+ * Self-trade prevention expired the order of an attached take-profit,
3583
+ * stop-loss or trailing stop because it would have traded with another of
3584
+ * the account's resting orders. It is reported as the trigger's fire refusal
3585
+ * reason, never as the answer to a request: the attached order stays active.
3586
+ * New trades and price updates do not fire it while the other order is first
3587
+ * in line at the best price; once that order is gone or no longer first
3588
+ * there, it fires again if its trigger condition still holds.
3589
+ *
3590
+ * @generated from enum value: ERROR_CODE_SELF_TRADE_PREVENTED = 307;
3591
+ */
3592
+ SELF_TRADE_PREVENTED = 307,
3550
3593
  /**
3551
3594
  * The order already carries every attached leg it may hold, so another
3552
3595
  * attached leg was refused. Legs being cancelled count until they end: