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

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 (202) hide show
  1. package/CHANGELOG.md +5 -1
  2. package/dist/browser-core.js +1 -1
  3. package/dist/gen/ai/v1/assistant_pb.d.ts +1 -1
  4. package/dist/gen/ai/v1/assistant_pb.js +1 -1
  5. package/dist/gen/alerts/v1/price_alerts_pb.d.ts +1 -1
  6. package/dist/gen/auth/v1/address_book_pb.d.ts +1 -1
  7. package/dist/gen/auth/v1/api_keys_pb.d.ts +1 -1
  8. package/dist/gen/auth/v1/auth_pb.d.ts +2 -2
  9. package/dist/gen/auth/v1/auth_pb.js +1 -1
  10. package/dist/gen/auth/v1/auth_pb.js.map +1 -1
  11. package/dist/gen/auth/v1/mfa_pb.d.ts +1 -1
  12. package/dist/gen/auth/v1/policies_pb.d.ts +1 -1
  13. package/dist/gen/auth/v1/profile_pb.d.ts +1 -1
  14. package/dist/gen/auth/v1/resolve_pb.d.ts +1 -1
  15. package/dist/gen/auth/v1/social_verification_pb.d.ts +1 -1
  16. package/dist/gen/auth/v1/subaccounts_pb.d.ts +2 -2
  17. package/dist/gen/auth/v1/subaccounts_pb.js +1 -1
  18. package/dist/gen/auth/v1/subaccounts_pb.js.map +1 -1
  19. package/dist/gen/chain/analytics/v1/analytics_read_pb.d.ts +1 -1
  20. package/dist/gen/chain/deposit/v1/deposit_pb.d.ts +1 -1
  21. package/dist/gen/chain/guard/v1/guard_signer_pb.d.ts +1 -1
  22. package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.d.ts +1 -1
  23. package/dist/gen/chain/lifecycle/v1/types_pb.d.ts +1 -1
  24. package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.d.ts +1 -1
  25. package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts +4 -3
  26. package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts.map +1 -1
  27. package/dist/gen/chain/withdraw/v1/withdraw_pb.js +3 -2
  28. package/dist/gen/chain/withdraw/v1/withdraw_pb.js.map +1 -1
  29. package/dist/gen/chain/zipper/v1/reason_pb.d.ts +1 -1
  30. package/dist/gen/chain/zipper/v1/zipper_pb.d.ts +1 -1
  31. package/dist/gen/changelog/v1/changelog_pb.d.ts +1 -1
  32. package/dist/gen/checkpoints/v1/checkpoints_pb.d.ts +1 -1
  33. package/dist/gen/claims/v1/claims_pb.d.ts +1 -1
  34. package/dist/gen/fees/v1/fees_pb.d.ts +1 -1
  35. package/dist/gen/index.js +21 -21
  36. package/dist/gen/ledger/read/v1/ledger_read_pb.d.ts +3 -2
  37. package/dist/gen/ledger/read/v1/ledger_read_pb.d.ts.map +1 -1
  38. package/dist/gen/ledger/read/v1/ledger_read_pb.js +2 -1
  39. package/dist/gen/ledger/read/v1/ledger_read_pb.js.map +1 -1
  40. package/dist/gen/ledger/read/v1/statement_export_pb.d.ts +1 -1
  41. package/dist/gen/marketdata/v1/asset_info_pb.d.ts +1 -1
  42. package/dist/gen/marketdata/v1/heatmap_pb.d.ts +1 -4
  43. package/dist/gen/marketdata/v1/heatmap_pb.d.ts.map +1 -1
  44. package/dist/gen/marketdata/v1/heatmap_pb.js +0 -3
  45. package/dist/gen/marketdata/v1/heatmap_pb.js.map +1 -1
  46. package/dist/gen/marketdata/v1/marketdata_pb.d.ts +1 -1
  47. package/dist/gen/marketoverview/v1/marketoverview_pb.d.ts +1 -1
  48. package/dist/gen/notifications/v1/notifications_pb.d.ts +1 -1
  49. package/dist/gen/orderbook/v1/orderbook_pb.d.ts +29 -80
  50. package/dist/gen/orderbook/v1/orderbook_pb.d.ts.map +1 -1
  51. package/dist/gen/orderbook/v1/orderbook_pb.js +3 -77
  52. package/dist/gen/orderbook/v1/orderbook_pb.js.map +1 -1
  53. package/dist/gen/orders/v1/orders_pb.d.ts +127 -72
  54. package/dist/gen/orders/v1/orders_pb.d.ts.map +1 -1
  55. package/dist/gen/orders/v1/orders_pb.js +37 -19
  56. package/dist/gen/orders/v1/orders_pb.js.map +1 -1
  57. package/dist/gen/orders/v1/orders_read_pb.d.ts +31 -13
  58. package/dist/gen/orders/v1/orders_read_pb.d.ts.map +1 -1
  59. package/dist/gen/orders/v1/orders_read_pb.js.map +1 -1
  60. package/dist/gen/polyester/ratelimit/v1/types_pb.d.ts +1 -1
  61. package/dist/gen/polyester/type/v1/u128_pb.d.ts +1 -1
  62. package/dist/gen/privatews/v1/private_ws_pb.d.ts +1 -1
  63. package/dist/gen/ratelimit/v1/ratelimit_pb.d.ts +1 -1
  64. package/dist/gen/rewards/v1/rewards_pb.d.ts +1 -1
  65. package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.d.ts +88 -61
  66. package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.d.ts.map +1 -1
  67. package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.js +1 -1
  68. package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.js.map +1 -1
  69. package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts +15 -12
  70. package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts.map +1 -1
  71. package/dist/gen/swap/quickswap/v1/quickswap_pb.js +8 -4
  72. package/dist/gen/swap/quickswap/v1/quickswap_pb.js.map +1 -1
  73. package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.d.ts +46 -43
  74. package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.d.ts.map +1 -1
  75. package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.js +10 -10
  76. package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.js.map +1 -1
  77. package/dist/gen/swap/v1/swap_pb.d.ts +1 -1
  78. package/dist/gen/system/v1/system_pb.d.ts +1 -1
  79. package/dist/gen/tradews/v1/trade_ws_pb.d.ts +1 -1
  80. package/dist/gen/transfer/v1/dust_conversion_pb.d.ts +1 -1
  81. package/dist/gen/transfer/v1/internal_transfer_pb.d.ts +3 -2
  82. package/dist/gen/transfer/v1/internal_transfer_pb.d.ts.map +1 -1
  83. package/dist/gen/transfer/v1/internal_transfer_pb.js +2 -1
  84. package/dist/gen/transfer/v1/internal_transfer_pb.js.map +1 -1
  85. package/dist/gen/triggers/v1/triggers_pb.d.ts +66 -50
  86. package/dist/gen/triggers/v1/triggers_pb.d.ts.map +1 -1
  87. package/dist/gen/triggers/v1/triggers_pb.js.map +1 -1
  88. package/dist/gen/vip/v1/vip_pb.d.ts +1 -1
  89. package/dist/index.js +1 -1
  90. package/dist/realtime/client.js +1 -1
  91. package/dist/realtime/client.js.map +1 -1
  92. package/dist/realtime/snapshot-then-stream.js +1 -1
  93. package/dist/server-core.js +3 -3
  94. package/dist/services/accounts/accounts.js +1 -1
  95. package/dist/services/accounts/accounts.schemas.js +1 -1
  96. package/dist/services/address-book/address-book.js +1 -1
  97. package/dist/services/address-book/address-book.schemas.d.ts +2 -2
  98. package/dist/services/api-keys/api-keys.js +1 -1
  99. package/dist/services/api-keys/api-keys.schemas.js +1 -1
  100. package/dist/services/assistant/assistant-events.schemas.d.ts +22 -22
  101. package/dist/services/assistant/assistant.js +1 -1
  102. package/dist/services/assistant/assistant.schemas.js +1 -1
  103. package/dist/services/auth/account-signer-auth.js +2 -2
  104. package/dist/services/auth/auth.js +1 -1
  105. package/dist/services/auth/profile/profile.js +2 -2
  106. package/dist/services/auto-withdraw/auto-withdraw.js +1 -1
  107. package/dist/services/auto-withdraw/auto-withdraw.schemas.d.ts +19 -19
  108. package/dist/services/auto-withdraw/auto-withdraw.schemas.js +1 -1
  109. package/dist/services/balances/balances.js +1 -1
  110. package/dist/services/candles/candles.js +2 -2
  111. package/dist/services/candles/candles.schemas.d.ts +10 -10
  112. package/dist/services/chain-analytics/chain-analytics.js +1 -1
  113. package/dist/services/changelog/changelog.js +1 -1
  114. package/dist/services/changelog/changelog.schemas.d.ts +16 -16
  115. package/dist/services/checkpoints/checkpoints.js +1 -1
  116. package/dist/services/checkpoints/checkpoints.schemas.d.ts +1 -1
  117. package/dist/services/claims/claims.js +1 -1
  118. package/dist/services/claims/claims.schemas.js +1 -1
  119. package/dist/services/deposit/deposit.js +1 -1
  120. package/dist/services/dust-conversion/dust-conversion.js +1 -1
  121. package/dist/services/dust-conversion/dust-conversion.schemas.js +1 -1
  122. package/dist/services/fees/fees.js +1 -1
  123. package/dist/services/guard-signer/guard-signer.js +1 -1
  124. package/dist/services/guard-signer/guard-signer.schemas.js +1 -1
  125. package/dist/services/heatmap/heatmap.js +2 -2
  126. package/dist/services/heatmap/heatmap.schemas.d.ts +4 -4
  127. package/dist/services/internal-transfers/internal-transfers.js +1 -1
  128. package/dist/services/internal-transfers/internal-transfers.schemas.d.ts +10 -10
  129. package/dist/services/lifecycle/lifecycle.js +3 -3
  130. package/dist/services/lifecycle/lifecycle.schemas.d.ts +104 -104
  131. package/dist/services/lifecycle/lifecycle.schemas.js +2 -2
  132. package/dist/services/market-data/market-data.js +3 -3
  133. package/dist/services/market-overview/market-overview.js +2 -2
  134. package/dist/services/market-overview/market-overview.schemas.js +1 -1
  135. package/dist/services/notifications/notifications.js +1 -1
  136. package/dist/services/orderbook/orderbook.codecs.js +2 -42
  137. package/dist/services/orderbook/orderbook.codecs.js.map +1 -1
  138. package/dist/services/orderbook/orderbook.d.ts +3 -1
  139. package/dist/services/orderbook/orderbook.d.ts.map +1 -1
  140. package/dist/services/orderbook/orderbook.js +24 -17
  141. package/dist/services/orderbook/orderbook.js.map +1 -1
  142. package/dist/services/orderbook/orderbook.schemas.d.ts +12 -11
  143. package/dist/services/orderbook/orderbook.schemas.d.ts.map +1 -1
  144. package/dist/services/orderbook/orderbook.schemas.js +10 -12
  145. package/dist/services/orderbook/orderbook.schemas.js.map +1 -1
  146. package/dist/services/orders/order-errors.schemas.d.ts +1 -1
  147. package/dist/services/orders/order-errors.schemas.js +1 -1
  148. package/dist/services/orders/orders-batch.schemas.d.ts +39 -39
  149. package/dist/services/orders/orders-batch.schemas.js +2 -2
  150. package/dist/services/orders/orders-input.schemas.d.ts +3 -3
  151. package/dist/services/orders/orders-input.schemas.js +2 -2
  152. package/dist/services/orders/orders-modify.schemas.js +2 -2
  153. package/dist/services/orders/orders-output.schemas.d.ts +12 -12
  154. package/dist/services/orders/orders-risk.schemas.js +3 -3
  155. package/dist/services/orders/orders.js +2 -2
  156. package/dist/services/policies/api-key-policies/api-key-policies.js +1 -1
  157. package/dist/services/policies/shared.codecs.js +1 -1
  158. package/dist/services/policies/subaccount-policies/subaccount-policies.js +2 -2
  159. package/dist/services/price-alerts/price-alerts.js +1 -1
  160. package/dist/services/rate-limits/rate-limits.js +1 -1
  161. package/dist/services/rewards/rewards.js +1 -1
  162. package/dist/services/rewards/rewards.schemas.d.ts +4 -4
  163. package/dist/services/social-verification/social-verification.js +1 -1
  164. package/dist/services/social-verification/social-verification.schemas.js +1 -1
  165. package/dist/services/statement-exports/statement-exports.js +1 -1
  166. package/dist/services/statement-exports/statement-exports.schemas.d.ts +6 -6
  167. package/dist/services/subaccounts/subaccounts.js +3 -3
  168. package/dist/services/subaccounts/subaccounts.schemas.d.ts +15 -15
  169. package/dist/services/system/system.js +1 -1
  170. package/dist/services/system/system.schemas.d.ts +13 -13
  171. package/dist/services/trades/trades.js +2 -2
  172. package/dist/services/trades/trades.schemas.d.ts +1 -1
  173. package/dist/services/trading-withdraws/trading-withdraws.js +1 -1
  174. package/dist/services/trading-withdraws/trading-withdraws.schemas.js +1 -1
  175. package/dist/services/trading-withdraws/wallet-message.js +1 -1
  176. package/dist/services/transfers/transfers.js +2 -2
  177. package/dist/services/triggers/trigger-child-order.schemas.js +3 -3
  178. package/dist/services/triggers/trigger-input.schemas.d.ts +2 -2
  179. package/dist/services/triggers/trigger-input.schemas.js +2 -2
  180. package/dist/services/triggers/triggers-output.schemas.d.ts +31 -31
  181. package/dist/services/triggers/triggers.js +2 -2
  182. package/dist/services/vip/vip.js +1 -1
  183. package/dist/services/vip/vip.schemas.js +1 -1
  184. package/dist/services/zipper/zipper.js +1 -1
  185. package/dist/services/zipper/zipper.schemas.js +1 -1
  186. package/dist/shared/error-details/alerts.js +1 -1
  187. package/dist/shared/error-details/assistant.js +1 -1
  188. package/dist/shared/error-details/auth.js +1 -1
  189. package/dist/shared/error-details/claims.js +1 -1
  190. package/dist/shared/error-details/internal-transfer.js +1 -1
  191. package/dist/shared/error-details/ledger.js +1 -1
  192. package/dist/shared/error-details/market-overview.js +1 -1
  193. package/dist/shared/error-details/notifications.js +1 -1
  194. package/dist/shared/error-details/orders.js +1 -1
  195. package/dist/shared/error-details/profile.js +1 -1
  196. package/dist/shared/error-details/rate-limit.js +1 -1
  197. package/dist/shared/error-details/withdraw.js +1 -1
  198. package/dist/shared/rate-limit.schemas.d.ts +1 -1
  199. package/dist/shared/rate-limit.schemas.js +1 -1
  200. package/dist/utils/cookies.js +1 -1
  201. package/dist/wired-services.js +18 -18
  202. package/package.json +1 -1
@@ -1,8 +1,8 @@
1
- import { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
2
- import { Timestamp } from "@bufbuild/protobuf/wkt";
3
1
  import { Message } from "@bufbuild/protobuf";
2
+ import { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
3
+ import { Timestamp } from "@bufbuild/protobuf/wkt";
4
4
  declare namespace orderbook_pb_d_exports {
5
- export { Depth, DepthSchema, GetOrderBookRequest, GetOrderBookRequestSchema, GetOrderBookResponse, GetOrderBookResponseSchema, OrderBookDelta, OrderBookDeltaSchema, OrderbookService, PriceLevel, PriceLevelSchema, file_orderbook_v1_orderbook };
5
+ export { GetOrderBookRequest, GetOrderBookRequestSchema, GetOrderBookResponse, GetOrderBookResponseSchema, OrderBookDelta, OrderBookDeltaSchema, OrderbookService, PriceLevel, PriceLevelSchema, file_orderbook_v1_orderbook };
6
6
  }
7
7
  /**
8
8
  * Describes the file orderbook/v1/orderbook.proto.
@@ -21,11 +21,13 @@ type GetOrderBookRequest = Message<"orderbook.v1.GetOrderBookRequest"> & {
21
21
  */
22
22
  symbolId: number;
23
23
  /**
24
- * Requested depth per side (number of price levels). Default is 50.
24
+ * Number of price levels per side, from 1 to the max_depth every response
25
+ * reports. 0 (unset) selects the default of 50. A depth above max_depth is
26
+ * rejected with INVALID_ARGUMENT, never truncated.
25
27
  *
26
- * @generated from field: orderbook.v1.Depth depth = 2;
28
+ * @generated from field: uint32 depth = 3;
27
29
  */
28
- depth: Depth;
30
+ depth: number;
29
31
  };
30
32
  /**
31
33
  * Describes the message orderbook.v1.GetOrderBookRequest.
@@ -74,7 +76,8 @@ type GetOrderBookResponse = Message<"orderbook.v1.GetOrderBookResponse"> & {
74
76
  */
75
77
  symbolId: number;
76
78
  /**
77
- * Monotonic book sequence for this symbol.
79
+ * Book sequence of this snapshot within book_epoch. Monotonic within one
80
+ * epoch; compare it only with sequences of the same epoch.
78
81
  *
79
82
  * @generated from field: uint64 book_seq = 2;
80
83
  */
@@ -108,6 +111,22 @@ type GetOrderBookResponse = Message<"orderbook.v1.GetOrderBookResponse"> & {
108
111
  * @generated from field: bool available = 6;
109
112
  */
110
113
  available: boolean;
114
+ /**
115
+ * Epoch of book_seq. Order snapshots by (book_epoch, book_seq): a higher
116
+ * epoch is newer whatever its book_seq, and a new epoch may restart
117
+ * book_seq. Discard a snapshot whose epoch is older than the newest one
118
+ * seen for the symbol. 0 while available is false.
119
+ *
120
+ * @generated from field: uint64 book_epoch = 7;
121
+ */
122
+ bookEpoch: bigint;
123
+ /**
124
+ * Largest depth per side the service accepts, the upper bound of the
125
+ * request's depth. Set in every response, available or not.
126
+ *
127
+ * @generated from field: uint32 max_depth = 8;
128
+ */
129
+ maxDepth: number;
111
130
  };
112
131
  /**
113
132
  * Describes the message orderbook.v1.GetOrderBookResponse.
@@ -190,84 +209,14 @@ type OrderBookDelta = Message<"orderbook.v1.OrderBookDelta"> & {
190
209
  * Use `create(OrderBookDeltaSchema)` to create a new message.
191
210
  */
192
211
  declare const OrderBookDeltaSchema: GenMessage<OrderBookDelta>;
193
- /**
194
- * Depth specifies the number of price levels per side.
195
- *
196
- * @generated from enum orderbook.v1.Depth
197
- */
198
- declare enum Depth {
199
- /**
200
- * Default depth (50 levels per side).
201
- *
202
- * @generated from enum value: DEPTH_UNSPECIFIED = 0;
203
- */
204
- DEPTH_UNSPECIFIED = 0,
205
- /**
206
- * 1 level per side (top of book / best bid-ask).
207
- *
208
- * @generated from enum value: DEPTH_1 = 1;
209
- */
210
- DEPTH_1 = 1,
211
- /**
212
- * 5 levels per side.
213
- *
214
- * @generated from enum value: DEPTH_5 = 2;
215
- */
216
- DEPTH_5 = 2,
217
- /**
218
- * 10 levels per side.
219
- *
220
- * @generated from enum value: DEPTH_10 = 3;
221
- */
222
- DEPTH_10 = 3,
223
- /**
224
- * 20 levels per side.
225
- *
226
- * @generated from enum value: DEPTH_20 = 4;
227
- */
228
- DEPTH_20 = 4,
229
- /**
230
- * 50 levels per side.
231
- *
232
- * @generated from enum value: DEPTH_50 = 5;
233
- */
234
- DEPTH_50 = 5,
235
- /**
236
- * 100 levels per side.
237
- *
238
- * @generated from enum value: DEPTH_100 = 6;
239
- */
240
- DEPTH_100 = 6,
241
- /**
242
- * 200 levels per side.
243
- *
244
- * @generated from enum value: DEPTH_200 = 7;
245
- */
246
- DEPTH_200 = 7,
247
- /**
248
- * 500 levels per side.
249
- *
250
- * @generated from enum value: DEPTH_500 = 8;
251
- */
252
- DEPTH_500 = 8,
253
- /**
254
- * 1000 levels per side.
255
- *
256
- * @generated from enum value: DEPTH_1000 = 9;
257
- */
258
- DEPTH_1000 = 9
259
- }
260
- /**
261
- * Describes the enum orderbook.v1.Depth.
262
- */
263
- declare const DepthSchema: GenEnum<Depth>;
264
212
  /**
265
213
  * @generated from service orderbook.v1.OrderbookService
266
214
  */
267
215
  declare const OrderbookService: GenService<{
268
216
  /**
269
217
  * Retrieve a spot order book depth snapshot for a symbol.
270
- * Supports selectable depth per side and returns best bid/ask levels.
218
+ * Supports a selectable depth per side, up to the max_depth each response
219
+ * reports, and returns best bid/ask levels.
271
220
  *
272
221
  * @generated from rpc orderbook.v1.OrderbookService.GetOrderBook
273
222
  */
@@ -278,5 +227,5 @@ declare const OrderbookService: GenService<{
278
227
  };
279
228
  }>;
280
229
  //#endregion
281
- export { Depth, DepthSchema, GetOrderBookRequest, GetOrderBookRequestSchema, GetOrderBookResponse, GetOrderBookResponseSchema, OrderBookDelta, OrderBookDeltaSchema, OrderbookService, PriceLevel, PriceLevelSchema, file_orderbook_v1_orderbook, orderbook_pb_d_exports };
230
+ export { GetOrderBookRequest, GetOrderBookRequestSchema, GetOrderBookResponse, GetOrderBookResponseSchema, OrderBookDelta, OrderBookDeltaSchema, OrderbookService, PriceLevel, PriceLevelSchema, file_orderbook_v1_orderbook, orderbook_pb_d_exports };
282
231
  //# sourceMappingURL=orderbook_pb.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"orderbook_pb.d.ts","names":[],"sources":["../../../../src/gen/orderbook/v1/orderbook_pb.ts"],"mappings":";;;;;;;;;cAca,6BAA6B;;;;;;KAQ9B,sBAAsB;;;;;;EAMhC;;;;;;EAOA,OAAO;;;;;;cAOI,2BAA2B,WAAW;;;;;;;KASvC,aAAa;;;;;;EAMvB;;;;;;EAOA;;;;;;cAOW,kBAAkB,WAAW;;;;;;;;;;KAY9B,uBAAuB;;;;;;EAMjC;;;;;;EAOA;;;;;;;EAQA,MAAM;;;;;;;EAQN,MAAM;;;;;;EAON,KAAK;;;;;;;;;EAUL;;;;;;cAOW,4BAA4B,WAAW;;;;;;;;;;;;;;;;;;;;;;;KAyBxC,iBAAiB;;;;;;EAM3B;;;;;;;;EASA;;;;;;;;EASA;;;;;;EAOA,MAAM;;;;;;EAON,MAAM;;;;;;;EAQN;;;;;;EAOA,KAAK;;;;;;cAOM,sBAAsB,WAAW;;;;;;aAQlC;;;;;;EAMV;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;;EAOA;;;;;cAMW,aAAa,QAAQ;;;;cAMrB,kBAAkB;;;;;;;EAO7B;IACE;IACA,cAAc;IACd,eAAe"}
1
+ {"version":3,"file":"orderbook_pb.d.ts","names":[],"sources":["../../../../src/gen/orderbook/v1/orderbook_pb.ts"],"mappings":";;;;;;;;;cAca,6BAA6B;;;;;;KAQ9B,sBAAsB;;;;;;EAMhC;;;;;;;;EASA;;;;;;cAOW,2BAA2B,WAAW;;;;;;;KASvC,aAAa;;;;;;EAMvB;;;;;;EAOA;;;;;;cAOW,kBAAkB,WAAW;;;;;;;;;;KAY9B,uBAAuB;;;;;;EAMjC;;;;;;;EAQA;;;;;;;EAQA,MAAM;;;;;;;EAQN,MAAM;;;;;;EAON,KAAK;;;;;;;;;EAUL;;;;;;;;;EAUA;;;;;;;EAQA;;;;;;cAOW,4BAA4B,WAAW;;;;;;;;;;;;;;;;;;;;;;;KAyBxC,iBAAiB;;;;;;EAM3B;;;;;;;;EASA;;;;;;;;EASA;;;;;;EAOA,MAAM;;;;;;EAON,MAAM;;;;;;;EAQN;;;;;;EAOA,KAAK;;;;;;cAOM,sBAAsB,WAAW;;;;cAMjC,kBAAkB;;;;;;;;EAQ7B;IACE;IACA,cAAc;IACd,eAAe"}
@@ -1,11 +1,9 @@
1
1
  import { __exportAll } from "../../../_virtual/_rolldown/runtime.js";
2
2
  import { file_polyester_api_options } from "../../polyester/api/options_pb.js";
3
- import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
3
+ import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
4
4
  import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
5
5
  //#region src/gen/orderbook/v1/orderbook_pb.ts
6
6
  var orderbook_pb_exports = /* @__PURE__ */ __exportAll({
7
- Depth: () => Depth,
8
- DepthSchema: () => DepthSchema,
9
7
  GetOrderBookRequestSchema: () => GetOrderBookRequestSchema,
10
8
  GetOrderBookResponseSchema: () => GetOrderBookResponseSchema,
11
9
  OrderBookDeltaSchema: () => OrderBookDeltaSchema,
@@ -16,7 +14,7 @@ var orderbook_pb_exports = /* @__PURE__ */ __exportAll({
16
14
  /**
17
15
  * Describes the file orderbook/v1/orderbook.proto.
18
16
  */
19
- const file_orderbook_v1_orderbook = /*@__PURE__*/ fileDesc("ChxvcmRlcmJvb2svdjEvb3JkZXJib29rLnByb3RvEgxvcmRlcmJvb2sudjEiUAoTR2V0T3JkZXJCb29rUmVxdWVzdBITCglzeW1ib2xfaWQYASABKA1CABIkCgVkZXB0aBgCIAEoDjITLm9yZGVyYm9vay52MS5EZXB0aEIAIjUKClByaWNlTGV2ZWwSEwoLcHJpY2VfdGlja3MYASABKAMSEgoKcXR5X3NjYWxlZBgCIAEoAyLGAQoUR2V0T3JkZXJCb29rUmVzcG9uc2USEQoJc3ltYm9sX2lkGAEgASgNEhAKCGJvb2tfc2VxGAIgASgEEiYKBGJpZHMYAyADKAsyGC5vcmRlcmJvb2sudjEuUHJpY2VMZXZlbBImCgRhc2tzGAQgAygLMhgub3JkZXJib29rLnYxLlByaWNlTGV2ZWwSJgoCdHMYBSABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEhEKCWF2YWlsYWJsZRgGIAEoCCLYAQoOT3JkZXJCb29rRGVsdGESEQoJc3ltYm9sX2lkGAEgASgNEhYKDmJvb2tfc2VxX3N0YXJ0GAIgASgEEhQKDGJvb2tfc2VxX2VuZBgDIAEoBBImCgRiaWRzGAQgAygLMhgub3JkZXJib29rLnYxLlByaWNlTGV2ZWwSJgoEYXNrcxgFIAMoCzIYLm9yZGVyYm9vay52MS5QcmljZUxldmVsEg0KBXJlc2V0GAYgASgIEiYKAnRzGAcgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcCqfAQoFRGVwdGgSFQoRREVQVEhfVU5TUEVDSUZJRUQQABILCgdERVBUSF8xEAESCwoHREVQVEhfNRACEgwKCERFUFRIXzEwEAMSDAoIREVQVEhfMjAQBBIMCghERVBUSF81MBAFEg0KCURFUFRIXzEwMBAGEg0KCURFUFRIXzIwMBAHEg0KCURFUFRIXzUwMBAIEg4KCkRFUFRIXzEwMDAQCTJtChBPcmRlcmJvb2tTZXJ2aWNlElcKDEdldE9yZGVyQm9vaxIhLm9yZGVyYm9vay52MS5HZXRPcmRlckJvb2tSZXF1ZXN0GiIub3JkZXJib29rLnYxLkdldE9yZGVyQm9va1Jlc3BvbnNlIgAaAEJGWkRnaXRodWIuY29tL0ZhYnJpYy1MYWJzL3BvbHllc3Rlci1zZGstZ28vZ2VuL29yZGVyYm9vay92MTtvcmRlcmJvb2t2MWIGcHJvdG8z", [file_google_protobuf_timestamp, file_polyester_api_options]);
17
+ const file_orderbook_v1_orderbook = /*@__PURE__*/ fileDesc("ChxvcmRlcmJvb2svdjEvb3JkZXJib29rLnByb3RvEgxvcmRlcmJvb2sudjEiOQoTR2V0T3JkZXJCb29rUmVxdWVzdBITCglzeW1ib2xfaWQYASABKA1CABINCgVkZXB0aBgDIAEoDSI1CgpQcmljZUxldmVsEhMKC3ByaWNlX3RpY2tzGAEgASgDEhIKCnF0eV9zY2FsZWQYAiABKAMi7QEKFEdldE9yZGVyQm9va1Jlc3BvbnNlEhEKCXN5bWJvbF9pZBgBIAEoDRIQCghib29rX3NlcRgCIAEoBBImCgRiaWRzGAMgAygLMhgub3JkZXJib29rLnYxLlByaWNlTGV2ZWwSJgoEYXNrcxgEIAMoCzIYLm9yZGVyYm9vay52MS5QcmljZUxldmVsEiYKAnRzGAUgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIRCglhdmFpbGFibGUYBiABKAgSEgoKYm9va19lcG9jaBgHIAEoBBIRCgltYXhfZGVwdGgYCCABKA0i2AEKDk9yZGVyQm9va0RlbHRhEhEKCXN5bWJvbF9pZBgBIAEoDRIWCg5ib29rX3NlcV9zdGFydBgCIAEoBBIUCgxib29rX3NlcV9lbmQYAyABKAQSJgoEYmlkcxgEIAMoCzIYLm9yZGVyYm9vay52MS5QcmljZUxldmVsEiYKBGFza3MYBSADKAsyGC5vcmRlcmJvb2sudjEuUHJpY2VMZXZlbBINCgVyZXNldBgGIAEoCBImCgJ0cxgHIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXAybQoQT3JkZXJib29rU2VydmljZRJXCgxHZXRPcmRlckJvb2sSIS5vcmRlcmJvb2sudjEuR2V0T3JkZXJCb29rUmVxdWVzdBoiLm9yZGVyYm9vay52MS5HZXRPcmRlckJvb2tSZXNwb25zZSIAGgBCRlpEZ2l0aHViLmNvbS9GYWJyaWMtTGFicy9wb2x5ZXN0ZXItc2RrLWdvL2dlbi9vcmRlcmJvb2svdjE7b3JkZXJib29rdjFiBnByb3RvMw==", [file_google_protobuf_timestamp, file_polyester_api_options]);
20
18
  /**
21
19
  * Describes the message orderbook.v1.GetOrderBookRequest.
22
20
  * Use `create(GetOrderBookRequestSchema)` to create a new message.
@@ -38,82 +36,10 @@ const GetOrderBookResponseSchema = /*@__PURE__*/ messageDesc(file_orderbook_v1_o
38
36
  */
39
37
  const OrderBookDeltaSchema = /*@__PURE__*/ messageDesc(file_orderbook_v1_orderbook, 3);
40
38
  /**
41
- * Depth specifies the number of price levels per side.
42
- *
43
- * @generated from enum orderbook.v1.Depth
44
- */
45
- let Depth = /* @__PURE__ */ function(Depth) {
46
- /**
47
- * Default depth (50 levels per side).
48
- *
49
- * @generated from enum value: DEPTH_UNSPECIFIED = 0;
50
- */
51
- Depth[Depth["DEPTH_UNSPECIFIED"] = 0] = "DEPTH_UNSPECIFIED";
52
- /**
53
- * 1 level per side (top of book / best bid-ask).
54
- *
55
- * @generated from enum value: DEPTH_1 = 1;
56
- */
57
- Depth[Depth["DEPTH_1"] = 1] = "DEPTH_1";
58
- /**
59
- * 5 levels per side.
60
- *
61
- * @generated from enum value: DEPTH_5 = 2;
62
- */
63
- Depth[Depth["DEPTH_5"] = 2] = "DEPTH_5";
64
- /**
65
- * 10 levels per side.
66
- *
67
- * @generated from enum value: DEPTH_10 = 3;
68
- */
69
- Depth[Depth["DEPTH_10"] = 3] = "DEPTH_10";
70
- /**
71
- * 20 levels per side.
72
- *
73
- * @generated from enum value: DEPTH_20 = 4;
74
- */
75
- Depth[Depth["DEPTH_20"] = 4] = "DEPTH_20";
76
- /**
77
- * 50 levels per side.
78
- *
79
- * @generated from enum value: DEPTH_50 = 5;
80
- */
81
- Depth[Depth["DEPTH_50"] = 5] = "DEPTH_50";
82
- /**
83
- * 100 levels per side.
84
- *
85
- * @generated from enum value: DEPTH_100 = 6;
86
- */
87
- Depth[Depth["DEPTH_100"] = 6] = "DEPTH_100";
88
- /**
89
- * 200 levels per side.
90
- *
91
- * @generated from enum value: DEPTH_200 = 7;
92
- */
93
- Depth[Depth["DEPTH_200"] = 7] = "DEPTH_200";
94
- /**
95
- * 500 levels per side.
96
- *
97
- * @generated from enum value: DEPTH_500 = 8;
98
- */
99
- Depth[Depth["DEPTH_500"] = 8] = "DEPTH_500";
100
- /**
101
- * 1000 levels per side.
102
- *
103
- * @generated from enum value: DEPTH_1000 = 9;
104
- */
105
- Depth[Depth["DEPTH_1000"] = 9] = "DEPTH_1000";
106
- return Depth;
107
- }({});
108
- /**
109
- * Describes the enum orderbook.v1.Depth.
110
- */
111
- const DepthSchema = /*@__PURE__*/ enumDesc(file_orderbook_v1_orderbook, 0);
112
- /**
113
39
  * @generated from service orderbook.v1.OrderbookService
114
40
  */
115
41
  const OrderbookService = /*@__PURE__*/ serviceDesc(file_orderbook_v1_orderbook, 0);
116
42
  //#endregion
117
- export { Depth, DepthSchema, GetOrderBookRequestSchema, GetOrderBookResponseSchema, OrderBookDeltaSchema, OrderbookService, PriceLevelSchema, file_orderbook_v1_orderbook, orderbook_pb_exports };
43
+ export { GetOrderBookRequestSchema, GetOrderBookResponseSchema, OrderBookDeltaSchema, OrderbookService, PriceLevelSchema, file_orderbook_v1_orderbook, orderbook_pb_exports };
118
44
 
119
45
  //# sourceMappingURL=orderbook_pb.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"orderbook_pb.js","names":[],"sources":["../../../../src/gen/orderbook/v1/orderbook_pb.ts"],"sourcesContent":["// @generated by protoc-gen-es v2.13.0 with parameter \"target=ts,import_extension=js\"\n// @generated from file orderbook/v1/orderbook.proto (package orderbook.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 orderbook/v1/orderbook.proto.\n */\nexport const file_orderbook_v1_orderbook: GenFile = /*@__PURE__*/\n fileDesc(\"ChxvcmRlcmJvb2svdjEvb3JkZXJib29rLnByb3RvEgxvcmRlcmJvb2sudjEiUAoTR2V0T3JkZXJCb29rUmVxdWVzdBITCglzeW1ib2xfaWQYASABKA1CABIkCgVkZXB0aBgCIAEoDjITLm9yZGVyYm9vay52MS5EZXB0aEIAIjUKClByaWNlTGV2ZWwSEwoLcHJpY2VfdGlja3MYASABKAMSEgoKcXR5X3NjYWxlZBgCIAEoAyLGAQoUR2V0T3JkZXJCb29rUmVzcG9uc2USEQoJc3ltYm9sX2lkGAEgASgNEhAKCGJvb2tfc2VxGAIgASgEEiYKBGJpZHMYAyADKAsyGC5vcmRlcmJvb2sudjEuUHJpY2VMZXZlbBImCgRhc2tzGAQgAygLMhgub3JkZXJib29rLnYxLlByaWNlTGV2ZWwSJgoCdHMYBSABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEhEKCWF2YWlsYWJsZRgGIAEoCCLYAQoOT3JkZXJCb29rRGVsdGESEQoJc3ltYm9sX2lkGAEgASgNEhYKDmJvb2tfc2VxX3N0YXJ0GAIgASgEEhQKDGJvb2tfc2VxX2VuZBgDIAEoBBImCgRiaWRzGAQgAygLMhgub3JkZXJib29rLnYxLlByaWNlTGV2ZWwSJgoEYXNrcxgFIAMoCzIYLm9yZGVyYm9vay52MS5QcmljZUxldmVsEg0KBXJlc2V0GAYgASgIEiYKAnRzGAcgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcCqfAQoFRGVwdGgSFQoRREVQVEhfVU5TUEVDSUZJRUQQABILCgdERVBUSF8xEAESCwoHREVQVEhfNRACEgwKCERFUFRIXzEwEAMSDAoIREVQVEhfMjAQBBIMCghERVBUSF81MBAFEg0KCURFUFRIXzEwMBAGEg0KCURFUFRIXzIwMBAHEg0KCURFUFRIXzUwMBAIEg4KCkRFUFRIXzEwMDAQCTJtChBPcmRlcmJvb2tTZXJ2aWNlElcKDEdldE9yZGVyQm9vaxIhLm9yZGVyYm9vay52MS5HZXRPcmRlckJvb2tSZXF1ZXN0GiIub3JkZXJib29rLnYxLkdldE9yZGVyQm9va1Jlc3BvbnNlIgAaAEJGWkRnaXRodWIuY29tL0ZhYnJpYy1MYWJzL3BvbHllc3Rlci1zZGstZ28vZ2VuL29yZGVyYm9vay92MTtvcmRlcmJvb2t2MWIGcHJvdG8z\", [file_google_protobuf_timestamp, file_polyester_api_options]);\n\n/**\n * GetOrderBookRequest describes a ConnectRPC snapshot request.\n *\n * @generated from message orderbook.v1.GetOrderBookRequest\n */\nexport type GetOrderBookRequest = Message<\"orderbook.v1.GetOrderBookRequest\"> & {\n /**\n * Stable numeric pair ID from GetSpotConfig.\n *\n * @generated from field: uint32 symbol_id = 1;\n */\n symbolId: number;\n\n /**\n * Requested depth per side (number of price levels). Default is 50.\n *\n * @generated from field: orderbook.v1.Depth depth = 2;\n */\n depth: Depth;\n};\n\n/**\n * Describes the message orderbook.v1.GetOrderBookRequest.\n * Use `create(GetOrderBookRequestSchema)` to create a new message.\n */\nexport const GetOrderBookRequestSchema: GenMessage<GetOrderBookRequest> = /*@__PURE__*/\n messageDesc(file_orderbook_v1_orderbook, 0);\n\n/**\n * PriceLevel uses scaled integers for the binary (protobuf) API (low-latency).\n * REST surfaces expose decimal strings via DTO conversion.\n *\n * @generated from message orderbook.v1.PriceLevel\n */\nexport type PriceLevel = Message<\"orderbook.v1.PriceLevel\"> & {\n /**\n * Price in quote units scaled by 1e9.\n *\n * @generated from field: int64 price_ticks = 1;\n */\n priceTicks: bigint;\n\n /**\n * Quantity scaled by the pair's base_quantity_scale from GetSpotConfig.\n *\n * @generated from field: int64 qty_scaled = 2;\n */\n qtyScaled: bigint;\n};\n\n/**\n * Describes the message orderbook.v1.PriceLevel.\n * Use `create(PriceLevelSchema)` to create a new message.\n */\nexport const PriceLevelSchema: GenMessage<PriceLevel> = /*@__PURE__*/\n messageDesc(file_orderbook_v1_orderbook, 1);\n\n/**\n * GetOrderBookResponse is a depth snapshot for the binary (protobuf) API (scaled integers).\n * REST surfaces expose decimal strings via DTO conversion. A configured symbol\n * whose book is being built, or was invalidated, returns a successful snapshot\n * with available false and no levels: its book is unknown, not empty. Read\n * available before treating empty sides as no liquidity.\n *\n * @generated from message orderbook.v1.GetOrderBookResponse\n */\nexport type GetOrderBookResponse = Message<\"orderbook.v1.GetOrderBookResponse\"> & {\n /**\n * Numeric symbol identifier (client resolves to symbol string).\n *\n * @generated from field: uint32 symbol_id = 1;\n */\n symbolId: number;\n\n /**\n * Monotonic book sequence for this symbol.\n *\n * @generated from field: uint64 book_seq = 2;\n */\n bookSeq: bigint;\n\n /**\n * Best bid first; descending price. When available is true, empty means no\n * current liquidity; when it is false, always empty.\n *\n * @generated from field: repeated orderbook.v1.PriceLevel bids = 3;\n */\n bids: PriceLevel[];\n\n /**\n * Best ask first; ascending price. When available is true, empty means no\n * current liquidity; when it is false, always empty.\n *\n * @generated from field: repeated orderbook.v1.PriceLevel asks = 4;\n */\n asks: PriceLevel[];\n\n /**\n * Timestamp associated with this snapshot (best-effort).\n *\n * @generated from field: google.protobuf.Timestamp ts = 5;\n */\n ts?: Timestamp | undefined;\n\n /**\n * True when the book is current: bids and asks are its levels, and empty\n * sides mean no liquidity. False while the book is being built or after it\n * was invalidated: its levels are unknown, not empty, and the response\n * carries none. Request the snapshot again later.\n *\n * @generated from field: bool available = 6;\n */\n available: boolean;\n};\n\n/**\n * Describes the message orderbook.v1.GetOrderBookResponse.\n * Use `create(GetOrderBookResponseSchema)` to create a new message.\n */\nexport const GetOrderBookResponseSchema: GenMessage<GetOrderBookResponse> = /*@__PURE__*/\n messageDesc(file_orderbook_v1_orderbook, 2);\n\n/**\n * OrderBookDelta is an incremental update to the orderbook state of one depth\n * tier: the difference between two published views of the tier's top levels\n * per side. Uses scaled integers (binary protobuf) for realtime streaming\n * performance.\n *\n * Semantics:\n * - For each side, each [price_ticks] entry is a SET at that price:\n * - qty_scaled > 0 => set/replace that level quantity\n * - qty_scaled == 0 => remove that level from the tier's view\n * - reset=true indicates the book should be cleared before applying any levels.\n * A reset carrying the full view is sent periodically, currently about every\n * 30 seconds, and after a sequence gap.\n *\n * To start, subscribe, then fetch GetOrderBook with the tier's depth. Drop\n * deltas whose book_seq_end is at most the snapshot's book_seq, and apply the\n * first delta only when its book_seq_start equals that book_seq; then apply\n * each delta only when its book_seq_start equals the previous book_seq_end.\n * Otherwise, or after a gap, wait for the next reset.\n *\n * @generated from message orderbook.v1.OrderBookDelta\n */\nexport type OrderBookDelta = Message<\"orderbook.v1.OrderBookDelta\"> & {\n /**\n * Numeric symbol identifier.\n *\n * @generated from field: uint32 symbol_id = 1;\n */\n symbolId: number;\n\n /**\n * Book sequence of the view this update applies to: the previous update's\n * book_seq_end. Apply it only to a book at exactly this sequence. 0 when\n * reset=true.\n *\n * @generated from field: uint64 book_seq_start = 2;\n */\n bookSeqStart: bigint;\n\n /**\n * Book sequence of the view after this update. It can advance without any\n * change to the book. Consumers can retain it as the last applied sequence\n * and ignore updates that do not advance it.\n *\n * @generated from field: uint64 book_seq_end = 3;\n */\n bookSeqEnd: bigint;\n\n /**\n * Bid-side updates (SET semantics at price_ticks).\n *\n * @generated from field: repeated orderbook.v1.PriceLevel bids = 4;\n */\n bids: PriceLevel[];\n\n /**\n * Ask-side updates (SET semantics at price_ticks).\n *\n * @generated from field: repeated orderbook.v1.PriceLevel asks = 5;\n */\n asks: PriceLevel[];\n\n /**\n * If true, consumers should clear their local book state before applying\n * updates.\n *\n * @generated from field: bool reset = 6;\n */\n reset: boolean;\n\n /**\n * Timestamp associated with this update (best-effort).\n *\n * @generated from field: google.protobuf.Timestamp ts = 7;\n */\n ts?: Timestamp | undefined;\n};\n\n/**\n * Describes the message orderbook.v1.OrderBookDelta.\n * Use `create(OrderBookDeltaSchema)` to create a new message.\n */\nexport const OrderBookDeltaSchema: GenMessage<OrderBookDelta> = /*@__PURE__*/\n messageDesc(file_orderbook_v1_orderbook, 3);\n\n/**\n * Depth specifies the number of price levels per side.\n *\n * @generated from enum orderbook.v1.Depth\n */\nexport enum Depth {\n /**\n * Default depth (50 levels per side).\n *\n * @generated from enum value: DEPTH_UNSPECIFIED = 0;\n */\n DEPTH_UNSPECIFIED = 0,\n\n /**\n * 1 level per side (top of book / best bid-ask).\n *\n * @generated from enum value: DEPTH_1 = 1;\n */\n DEPTH_1 = 1,\n\n /**\n * 5 levels per side.\n *\n * @generated from enum value: DEPTH_5 = 2;\n */\n DEPTH_5 = 2,\n\n /**\n * 10 levels per side.\n *\n * @generated from enum value: DEPTH_10 = 3;\n */\n DEPTH_10 = 3,\n\n /**\n * 20 levels per side.\n *\n * @generated from enum value: DEPTH_20 = 4;\n */\n DEPTH_20 = 4,\n\n /**\n * 50 levels per side.\n *\n * @generated from enum value: DEPTH_50 = 5;\n */\n DEPTH_50 = 5,\n\n /**\n * 100 levels per side.\n *\n * @generated from enum value: DEPTH_100 = 6;\n */\n DEPTH_100 = 6,\n\n /**\n * 200 levels per side.\n *\n * @generated from enum value: DEPTH_200 = 7;\n */\n DEPTH_200 = 7,\n\n /**\n * 500 levels per side.\n *\n * @generated from enum value: DEPTH_500 = 8;\n */\n DEPTH_500 = 8,\n\n /**\n * 1000 levels per side.\n *\n * @generated from enum value: DEPTH_1000 = 9;\n */\n DEPTH_1000 = 9,\n}\n\n/**\n * Describes the enum orderbook.v1.Depth.\n */\nexport const DepthSchema: GenEnum<Depth> = /*@__PURE__*/\n enumDesc(file_orderbook_v1_orderbook, 0);\n\n/**\n * @generated from service orderbook.v1.OrderbookService\n */\nexport const OrderbookService: GenService<{\n /**\n * Retrieve a spot order book depth snapshot for a symbol.\n * Supports selectable depth per side and returns best bid/ask levels.\n *\n * @generated from rpc orderbook.v1.OrderbookService.GetOrderBook\n */\n getOrderBook: {\n methodKind: \"unary\";\n input: typeof GetOrderBookRequestSchema;\n output: typeof GetOrderBookResponseSchema;\n },\n}> = /*@__PURE__*/\n serviceDesc(file_orderbook_v1_orderbook, 0);\n\n"],"mappings":";;;;;;;;;;;;;;;;;;AAcA,MAAa,8BACX,uBAAS,4vCAA4vC,CAAC,gCAAgC,0BAA0B,CAAC;;;;;AA2Bn0C,MAAa,4BACX,0BAAY,6BAA6B,CAAC;;;;;AA4B5C,MAAa,mBACX,0BAAY,6BAA6B,CAAC;;;;;AAgE5C,MAAa,6BACX,0BAAY,6BAA6B,CAAC;;;;;AAoF5C,MAAa,uBACX,0BAAY,6BAA6B,CAAC;;;;;;AAO5C,IAAY,QAAL,yBAAA,OAAA;;;;;;CAML,MAAA,MAAA,uBAAA,KAAA;;;;;;CAOA,MAAA,MAAA,aAAA,KAAA;;;;;;CAOA,MAAA,MAAA,aAAA,KAAA;;;;;;CAOA,MAAA,MAAA,cAAA,KAAA;;;;;;CAOA,MAAA,MAAA,cAAA,KAAA;;;;;;CAOA,MAAA,MAAA,cAAA,KAAA;;;;;;CAOA,MAAA,MAAA,eAAA,KAAA;;;;;;CAOA,MAAA,MAAA,eAAA,KAAA;;;;;;CAOA,MAAA,MAAA,eAAA,KAAA;;;;;;CAOA,MAAA,MAAA,gBAAA,KAAA;;AACF,EAAA,CAAA,CAAA;;;;AAKA,MAAa,cACX,uBAAS,6BAA6B,CAAC;;;;AAKzC,MAAa,mBAaX,0BAAY,6BAA6B,CAAC"}
1
+ {"version":3,"file":"orderbook_pb.js","names":[],"sources":["../../../../src/gen/orderbook/v1/orderbook_pb.ts"],"sourcesContent":["// @generated by protoc-gen-es v2.13.0 with parameter \"target=ts,import_extension=js\"\n// @generated from file orderbook/v1/orderbook.proto (package orderbook.v1, syntax proto3)\n/* eslint-disable */\n\nimport type { GenFile, GenMessage, GenService } from \"@bufbuild/protobuf/codegenv2\";\nimport { 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 orderbook/v1/orderbook.proto.\n */\nexport const file_orderbook_v1_orderbook: GenFile = /*@__PURE__*/\n fileDesc(\"ChxvcmRlcmJvb2svdjEvb3JkZXJib29rLnByb3RvEgxvcmRlcmJvb2sudjEiOQoTR2V0T3JkZXJCb29rUmVxdWVzdBITCglzeW1ib2xfaWQYASABKA1CABINCgVkZXB0aBgDIAEoDSI1CgpQcmljZUxldmVsEhMKC3ByaWNlX3RpY2tzGAEgASgDEhIKCnF0eV9zY2FsZWQYAiABKAMi7QEKFEdldE9yZGVyQm9va1Jlc3BvbnNlEhEKCXN5bWJvbF9pZBgBIAEoDRIQCghib29rX3NlcRgCIAEoBBImCgRiaWRzGAMgAygLMhgub3JkZXJib29rLnYxLlByaWNlTGV2ZWwSJgoEYXNrcxgEIAMoCzIYLm9yZGVyYm9vay52MS5QcmljZUxldmVsEiYKAnRzGAUgASgLMhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIRCglhdmFpbGFibGUYBiABKAgSEgoKYm9va19lcG9jaBgHIAEoBBIRCgltYXhfZGVwdGgYCCABKA0i2AEKDk9yZGVyQm9va0RlbHRhEhEKCXN5bWJvbF9pZBgBIAEoDRIWCg5ib29rX3NlcV9zdGFydBgCIAEoBBIUCgxib29rX3NlcV9lbmQYAyABKAQSJgoEYmlkcxgEIAMoCzIYLm9yZGVyYm9vay52MS5QcmljZUxldmVsEiYKBGFza3MYBSADKAsyGC5vcmRlcmJvb2sudjEuUHJpY2VMZXZlbBINCgVyZXNldBgGIAEoCBImCgJ0cxgHIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXAybQoQT3JkZXJib29rU2VydmljZRJXCgxHZXRPcmRlckJvb2sSIS5vcmRlcmJvb2sudjEuR2V0T3JkZXJCb29rUmVxdWVzdBoiLm9yZGVyYm9vay52MS5HZXRPcmRlckJvb2tSZXNwb25zZSIAGgBCRlpEZ2l0aHViLmNvbS9GYWJyaWMtTGFicy9wb2x5ZXN0ZXItc2RrLWdvL2dlbi9vcmRlcmJvb2svdjE7b3JkZXJib29rdjFiBnByb3RvMw==\", [file_google_protobuf_timestamp, file_polyester_api_options]);\n\n/**\n * GetOrderBookRequest describes a ConnectRPC snapshot request.\n *\n * @generated from message orderbook.v1.GetOrderBookRequest\n */\nexport type GetOrderBookRequest = Message<\"orderbook.v1.GetOrderBookRequest\"> & {\n /**\n * Stable numeric pair ID from GetSpotConfig.\n *\n * @generated from field: uint32 symbol_id = 1;\n */\n symbolId: number;\n\n /**\n * Number of price levels per side, from 1 to the max_depth every response\n * reports. 0 (unset) selects the default of 50. A depth above max_depth is\n * rejected with INVALID_ARGUMENT, never truncated.\n *\n * @generated from field: uint32 depth = 3;\n */\n depth: number;\n};\n\n/**\n * Describes the message orderbook.v1.GetOrderBookRequest.\n * Use `create(GetOrderBookRequestSchema)` to create a new message.\n */\nexport const GetOrderBookRequestSchema: GenMessage<GetOrderBookRequest> = /*@__PURE__*/\n messageDesc(file_orderbook_v1_orderbook, 0);\n\n/**\n * PriceLevel uses scaled integers for the binary (protobuf) API (low-latency).\n * REST surfaces expose decimal strings via DTO conversion.\n *\n * @generated from message orderbook.v1.PriceLevel\n */\nexport type PriceLevel = Message<\"orderbook.v1.PriceLevel\"> & {\n /**\n * Price in quote units scaled by 1e9.\n *\n * @generated from field: int64 price_ticks = 1;\n */\n priceTicks: bigint;\n\n /**\n * Quantity scaled by the pair's base_quantity_scale from GetSpotConfig.\n *\n * @generated from field: int64 qty_scaled = 2;\n */\n qtyScaled: bigint;\n};\n\n/**\n * Describes the message orderbook.v1.PriceLevel.\n * Use `create(PriceLevelSchema)` to create a new message.\n */\nexport const PriceLevelSchema: GenMessage<PriceLevel> = /*@__PURE__*/\n messageDesc(file_orderbook_v1_orderbook, 1);\n\n/**\n * GetOrderBookResponse is a depth snapshot for the binary (protobuf) API (scaled integers).\n * REST surfaces expose decimal strings via DTO conversion. A configured symbol\n * whose book is being built, or was invalidated, returns a successful snapshot\n * with available false and no levels: its book is unknown, not empty. Read\n * available before treating empty sides as no liquidity.\n *\n * @generated from message orderbook.v1.GetOrderBookResponse\n */\nexport type GetOrderBookResponse = Message<\"orderbook.v1.GetOrderBookResponse\"> & {\n /**\n * Numeric symbol identifier (client resolves to symbol string).\n *\n * @generated from field: uint32 symbol_id = 1;\n */\n symbolId: number;\n\n /**\n * Book sequence of this snapshot within book_epoch. Monotonic within one\n * epoch; compare it only with sequences of the same epoch.\n *\n * @generated from field: uint64 book_seq = 2;\n */\n bookSeq: bigint;\n\n /**\n * Best bid first; descending price. When available is true, empty means no\n * current liquidity; when it is false, always empty.\n *\n * @generated from field: repeated orderbook.v1.PriceLevel bids = 3;\n */\n bids: PriceLevel[];\n\n /**\n * Best ask first; ascending price. When available is true, empty means no\n * current liquidity; when it is false, always empty.\n *\n * @generated from field: repeated orderbook.v1.PriceLevel asks = 4;\n */\n asks: PriceLevel[];\n\n /**\n * Timestamp associated with this snapshot (best-effort).\n *\n * @generated from field: google.protobuf.Timestamp ts = 5;\n */\n ts?: Timestamp | undefined;\n\n /**\n * True when the book is current: bids and asks are its levels, and empty\n * sides mean no liquidity. False while the book is being built or after it\n * was invalidated: its levels are unknown, not empty, and the response\n * carries none. Request the snapshot again later.\n *\n * @generated from field: bool available = 6;\n */\n available: boolean;\n\n /**\n * Epoch of book_seq. Order snapshots by (book_epoch, book_seq): a higher\n * epoch is newer whatever its book_seq, and a new epoch may restart\n * book_seq. Discard a snapshot whose epoch is older than the newest one\n * seen for the symbol. 0 while available is false.\n *\n * @generated from field: uint64 book_epoch = 7;\n */\n bookEpoch: bigint;\n\n /**\n * Largest depth per side the service accepts, the upper bound of the\n * request's depth. Set in every response, available or not.\n *\n * @generated from field: uint32 max_depth = 8;\n */\n maxDepth: number;\n};\n\n/**\n * Describes the message orderbook.v1.GetOrderBookResponse.\n * Use `create(GetOrderBookResponseSchema)` to create a new message.\n */\nexport const GetOrderBookResponseSchema: GenMessage<GetOrderBookResponse> = /*@__PURE__*/\n messageDesc(file_orderbook_v1_orderbook, 2);\n\n/**\n * OrderBookDelta is an incremental update to the orderbook state of one depth\n * tier: the difference between two published views of the tier's top levels\n * per side. Uses scaled integers (binary protobuf) for realtime streaming\n * performance.\n *\n * Semantics:\n * - For each side, each [price_ticks] entry is a SET at that price:\n * - qty_scaled > 0 => set/replace that level quantity\n * - qty_scaled == 0 => remove that level from the tier's view\n * - reset=true indicates the book should be cleared before applying any levels.\n * A reset carrying the full view is sent periodically, currently about every\n * 30 seconds, and after a sequence gap.\n *\n * To start, subscribe, then fetch GetOrderBook with the tier's depth. Drop\n * deltas whose book_seq_end is at most the snapshot's book_seq, and apply the\n * first delta only when its book_seq_start equals that book_seq; then apply\n * each delta only when its book_seq_start equals the previous book_seq_end.\n * Otherwise, or after a gap, wait for the next reset.\n *\n * @generated from message orderbook.v1.OrderBookDelta\n */\nexport type OrderBookDelta = Message<\"orderbook.v1.OrderBookDelta\"> & {\n /**\n * Numeric symbol identifier.\n *\n * @generated from field: uint32 symbol_id = 1;\n */\n symbolId: number;\n\n /**\n * Book sequence of the view this update applies to: the previous update's\n * book_seq_end. Apply it only to a book at exactly this sequence. 0 when\n * reset=true.\n *\n * @generated from field: uint64 book_seq_start = 2;\n */\n bookSeqStart: bigint;\n\n /**\n * Book sequence of the view after this update. It can advance without any\n * change to the book. Consumers can retain it as the last applied sequence\n * and ignore updates that do not advance it.\n *\n * @generated from field: uint64 book_seq_end = 3;\n */\n bookSeqEnd: bigint;\n\n /**\n * Bid-side updates (SET semantics at price_ticks).\n *\n * @generated from field: repeated orderbook.v1.PriceLevel bids = 4;\n */\n bids: PriceLevel[];\n\n /**\n * Ask-side updates (SET semantics at price_ticks).\n *\n * @generated from field: repeated orderbook.v1.PriceLevel asks = 5;\n */\n asks: PriceLevel[];\n\n /**\n * If true, consumers should clear their local book state before applying\n * updates.\n *\n * @generated from field: bool reset = 6;\n */\n reset: boolean;\n\n /**\n * Timestamp associated with this update (best-effort).\n *\n * @generated from field: google.protobuf.Timestamp ts = 7;\n */\n ts?: Timestamp | undefined;\n};\n\n/**\n * Describes the message orderbook.v1.OrderBookDelta.\n * Use `create(OrderBookDeltaSchema)` to create a new message.\n */\nexport const OrderBookDeltaSchema: GenMessage<OrderBookDelta> = /*@__PURE__*/\n messageDesc(file_orderbook_v1_orderbook, 3);\n\n/**\n * @generated from service orderbook.v1.OrderbookService\n */\nexport const OrderbookService: GenService<{\n /**\n * Retrieve a spot order book depth snapshot for a symbol.\n * Supports a selectable depth per side, up to the max_depth each response\n * reports, and returns best bid/ask levels.\n *\n * @generated from rpc orderbook.v1.OrderbookService.GetOrderBook\n */\n getOrderBook: {\n methodKind: \"unary\";\n input: typeof GetOrderBookRequestSchema;\n output: typeof GetOrderBookResponseSchema;\n },\n}> = /*@__PURE__*/\n serviceDesc(file_orderbook_v1_orderbook, 0);\n\n"],"mappings":";;;;;;;;;;;;;;;;AAcA,MAAa,8BACX,uBAAS,4jCAA4jC,CAAC,gCAAgC,0BAA0B,CAAC;;;;;AA6BnoC,MAAa,4BACX,0BAAY,6BAA6B,CAAC;;;;;AA4B5C,MAAa,mBACX,0BAAY,6BAA6B,CAAC;;;;;AAmF5C,MAAa,6BACX,0BAAY,6BAA6B,CAAC;;;;;AAoF5C,MAAa,uBACX,0BAAY,6BAA6B,CAAC;;;;AAK5C,MAAa,mBAcX,0BAAY,6BAA6B,CAAC"}