tardis-machine 17.0.0 → 18.0.0

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 (792) hide show
  1. package/bin/tardis-machine.js +68 -57
  2. package/dist/tardismachine.d.ts.map +1 -1
  3. package/dist/tardismachine.js +13 -6
  4. package/dist/tardismachine.js.map +1 -1
  5. package/node_modules/debug/LICENSE +20 -0
  6. package/node_modules/debug/README.md +481 -0
  7. package/node_modules/debug/package.json +64 -0
  8. package/node_modules/debug/src/browser.js +272 -0
  9. package/node_modules/debug/src/common.js +292 -0
  10. package/node_modules/debug/src/index.js +10 -0
  11. package/node_modules/debug/src/node.js +263 -0
  12. package/node_modules/follow-redirects/LICENSE +18 -0
  13. package/node_modules/follow-redirects/README.md +157 -0
  14. package/node_modules/follow-redirects/debug.js +15 -0
  15. package/node_modules/follow-redirects/http.js +1 -0
  16. package/node_modules/follow-redirects/https.js +1 -0
  17. package/node_modules/follow-redirects/index.js +709 -0
  18. package/node_modules/follow-redirects/package.json +58 -0
  19. package/node_modules/long/LICENSE +202 -0
  20. package/node_modules/long/README.md +286 -0
  21. package/node_modules/long/index.d.ts +2 -0
  22. package/node_modules/long/index.js +1581 -0
  23. package/node_modules/long/package.json +58 -0
  24. package/node_modules/long/types.d.ts +474 -0
  25. package/node_modules/long/umd/index.d.ts +3 -0
  26. package/node_modules/long/umd/index.js +1622 -0
  27. package/node_modules/long/umd/package.json +3 -0
  28. package/node_modules/long/umd/types.d.ts +474 -0
  29. package/node_modules/ms/index.js +162 -0
  30. package/node_modules/ms/license.md +21 -0
  31. package/node_modules/ms/package.json +38 -0
  32. package/node_modules/ms/readme.md +59 -0
  33. package/node_modules/protobufjs/LICENSE +39 -0
  34. package/node_modules/protobufjs/README.md +440 -0
  35. package/node_modules/protobufjs/dist/light/protobuf.js +9276 -0
  36. package/node_modules/protobufjs/dist/light/protobuf.js.map +1 -0
  37. package/node_modules/protobufjs/dist/light/protobuf.min.js +8 -0
  38. package/node_modules/protobufjs/dist/light/protobuf.min.js.map +1 -0
  39. package/node_modules/protobufjs/dist/minimal/protobuf.js +3556 -0
  40. package/node_modules/protobufjs/dist/minimal/protobuf.js.map +1 -0
  41. package/node_modules/protobufjs/dist/minimal/protobuf.min.js +8 -0
  42. package/node_modules/protobufjs/dist/minimal/protobuf.min.js.map +1 -0
  43. package/node_modules/protobufjs/dist/protobuf.js +11233 -0
  44. package/node_modules/protobufjs/dist/protobuf.js.map +1 -0
  45. package/node_modules/protobufjs/dist/protobuf.min.js +8 -0
  46. package/node_modules/protobufjs/dist/protobuf.min.js.map +1 -0
  47. package/node_modules/protobufjs/ext/README.md +70 -0
  48. package/node_modules/protobufjs/ext/debug/README.md +4 -0
  49. package/node_modules/protobufjs/ext/debug/index.js +71 -0
  50. package/node_modules/protobufjs/ext/descriptor/README.md +5 -0
  51. package/node_modules/protobufjs/ext/descriptor/index.d.ts +2 -0
  52. package/node_modules/protobufjs/ext/descriptor/index.js +2 -0
  53. package/node_modules/protobufjs/ext/descriptor.d.ts +87 -0
  54. package/node_modules/protobufjs/ext/descriptor.generated.d.ts +417 -0
  55. package/node_modules/protobufjs/ext/descriptor.js +1356 -0
  56. package/node_modules/protobufjs/ext/protojson.LICENSE +201 -0
  57. package/node_modules/protobufjs/ext/protojson.d.ts +20 -0
  58. package/node_modules/protobufjs/ext/protojson.generated.d.ts +49 -0
  59. package/node_modules/protobufjs/ext/protojson.js +951 -0
  60. package/node_modules/protobufjs/ext/textformat.d.ts +19 -0
  61. package/node_modules/protobufjs/ext/textformat.generated.d.ts +33 -0
  62. package/node_modules/protobufjs/ext/textformat.js +1276 -0
  63. package/node_modules/protobufjs/google/LICENSE +27 -0
  64. package/node_modules/protobufjs/google/README.md +1 -0
  65. package/node_modules/protobufjs/google/api/annotations.json +85 -0
  66. package/node_modules/protobufjs/google/api/annotations.proto +11 -0
  67. package/node_modules/protobufjs/google/api/http.json +87 -0
  68. package/node_modules/protobufjs/google/api/http.proto +31 -0
  69. package/node_modules/protobufjs/google/protobuf/api.json +124 -0
  70. package/node_modules/protobufjs/google/protobuf/api.proto +34 -0
  71. package/node_modules/protobufjs/google/protobuf/compiler/plugin.json +126 -0
  72. package/node_modules/protobufjs/google/protobuf/compiler/plugin.proto +47 -0
  73. package/node_modules/protobufjs/google/protobuf/descriptor.json +1465 -0
  74. package/node_modules/protobufjs/google/protobuf/descriptor.proto +527 -0
  75. package/node_modules/protobufjs/google/protobuf/source_context.json +21 -0
  76. package/node_modules/protobufjs/google/protobuf/source_context.proto +7 -0
  77. package/node_modules/protobufjs/google/protobuf/type.json +209 -0
  78. package/node_modules/protobufjs/google/protobuf/type.proto +89 -0
  79. package/node_modules/protobufjs/index.d.ts +3203 -0
  80. package/node_modules/protobufjs/index.js +4 -0
  81. package/node_modules/protobufjs/light.d.ts +2 -0
  82. package/node_modules/protobufjs/light.js +4 -0
  83. package/node_modules/protobufjs/minimal.d.ts +2 -0
  84. package/node_modules/protobufjs/minimal.js +4 -0
  85. package/node_modules/protobufjs/package.json +93 -0
  86. package/node_modules/protobufjs/src/common.js +405 -0
  87. package/node_modules/protobufjs/src/converter.js +352 -0
  88. package/node_modules/protobufjs/src/decoder.js +279 -0
  89. package/node_modules/protobufjs/src/encoder.js +123 -0
  90. package/node_modules/protobufjs/src/enum.js +239 -0
  91. package/node_modules/protobufjs/src/field.js +505 -0
  92. package/node_modules/protobufjs/src/index-light.js +104 -0
  93. package/node_modules/protobufjs/src/index-minimal.js +35 -0
  94. package/node_modules/protobufjs/src/index.js +12 -0
  95. package/node_modules/protobufjs/src/mapfield.js +144 -0
  96. package/node_modules/protobufjs/src/message.js +137 -0
  97. package/node_modules/protobufjs/src/method.js +183 -0
  98. package/node_modules/protobufjs/src/namespace.js +574 -0
  99. package/node_modules/protobufjs/src/object.js +392 -0
  100. package/node_modules/protobufjs/src/oneof.js +233 -0
  101. package/node_modules/protobufjs/src/parse.js +1111 -0
  102. package/node_modules/protobufjs/src/reader.js +788 -0
  103. package/node_modules/protobufjs/src/reader_buffer.js +77 -0
  104. package/node_modules/protobufjs/src/root.js +424 -0
  105. package/node_modules/protobufjs/src/roots.js +18 -0
  106. package/node_modules/protobufjs/src/rpc/service.js +155 -0
  107. package/node_modules/protobufjs/src/rpc.js +36 -0
  108. package/node_modules/protobufjs/src/service.js +206 -0
  109. package/node_modules/protobufjs/src/tokenize.js +421 -0
  110. package/node_modules/protobufjs/src/type.js +676 -0
  111. package/node_modules/protobufjs/src/types.js +196 -0
  112. package/node_modules/protobufjs/src/typescript.js +25 -0
  113. package/node_modules/protobufjs/src/util/aspromise.d.ts +13 -0
  114. package/node_modules/protobufjs/src/util/aspromise.js +52 -0
  115. package/node_modules/protobufjs/src/util/base64.d.ts +32 -0
  116. package/node_modules/protobufjs/src/util/base64.js +146 -0
  117. package/node_modules/protobufjs/src/util/codegen.d.ts +31 -0
  118. package/node_modules/protobufjs/src/util/codegen.js +118 -0
  119. package/node_modules/protobufjs/src/util/eventemitter.d.ts +45 -0
  120. package/node_modules/protobufjs/src/util/eventemitter.js +86 -0
  121. package/node_modules/protobufjs/src/util/fetch.d.ts +56 -0
  122. package/node_modules/protobufjs/src/util/fetch.js +112 -0
  123. package/node_modules/protobufjs/src/util/float.d.ts +83 -0
  124. package/node_modules/protobufjs/src/util/float.js +335 -0
  125. package/node_modules/protobufjs/src/util/fs.js +11 -0
  126. package/node_modules/protobufjs/src/util/longbits.js +204 -0
  127. package/node_modules/protobufjs/src/util/minimal.js +511 -0
  128. package/node_modules/protobufjs/src/util/path.d.ts +22 -0
  129. package/node_modules/protobufjs/src/util/path.js +100 -0
  130. package/node_modules/protobufjs/src/util/patterns.js +7 -0
  131. package/node_modules/protobufjs/src/util/pool.d.ts +32 -0
  132. package/node_modules/protobufjs/src/util/pool.js +48 -0
  133. package/node_modules/protobufjs/src/util/utf8.d.ts +24 -0
  134. package/node_modules/protobufjs/src/util/utf8.js +190 -0
  135. package/node_modules/protobufjs/src/util.js +264 -0
  136. package/node_modules/protobufjs/src/verifier.js +185 -0
  137. package/node_modules/protobufjs/src/wrappers.js +106 -0
  138. package/node_modules/protobufjs/src/writer.js +700 -0
  139. package/node_modules/protobufjs/src/writer_buffer.js +100 -0
  140. package/node_modules/protobufjs/tsconfig.json +6 -0
  141. package/node_modules/tardis-dev/LICENSE +373 -0
  142. package/node_modules/tardis-dev/README.md +275 -0
  143. package/node_modules/tardis-dev/dist/apikeyaccessinfo.d.ts +11 -0
  144. package/node_modules/tardis-dev/dist/apikeyaccessinfo.d.ts.map +1 -0
  145. package/node_modules/tardis-dev/dist/apikeyaccessinfo.js +13 -0
  146. package/node_modules/tardis-dev/dist/apikeyaccessinfo.js.map +1 -0
  147. package/node_modules/tardis-dev/dist/binarysplit.d.ts +8 -0
  148. package/node_modules/tardis-dev/dist/binarysplit.d.ts.map +1 -0
  149. package/node_modules/tardis-dev/dist/binarysplit.js +41 -0
  150. package/node_modules/tardis-dev/dist/binarysplit.js.map +1 -0
  151. package/node_modules/tardis-dev/dist/boundedqueue.d.ts +19 -0
  152. package/node_modules/tardis-dev/dist/boundedqueue.d.ts.map +1 -0
  153. package/node_modules/tardis-dev/dist/boundedqueue.js +96 -0
  154. package/node_modules/tardis-dev/dist/boundedqueue.js.map +1 -0
  155. package/node_modules/tardis-dev/dist/clearcache.d.ts +4 -0
  156. package/node_modules/tardis-dev/dist/clearcache.d.ts.map +1 -0
  157. package/node_modules/tardis-dev/dist/clearcache.js +48 -0
  158. package/node_modules/tardis-dev/dist/clearcache.js.map +1 -0
  159. package/node_modules/tardis-dev/dist/combine.d.ts +14 -0
  160. package/node_modules/tardis-dev/dist/combine.d.ts.map +1 -0
  161. package/node_modules/tardis-dev/dist/combine.js +97 -0
  162. package/node_modules/tardis-dev/dist/combine.js.map +1 -0
  163. package/node_modules/tardis-dev/dist/computable/booksnapshot.d.ts +14 -0
  164. package/node_modules/tardis-dev/dist/computable/booksnapshot.d.ts.map +1 -0
  165. package/node_modules/tardis-dev/dist/computable/booksnapshot.js +248 -0
  166. package/node_modules/tardis-dev/dist/computable/booksnapshot.js.map +1 -0
  167. package/node_modules/tardis-dev/dist/computable/computable.d.ts +8 -0
  168. package/node_modules/tardis-dev/dist/computable/computable.d.ts.map +1 -0
  169. package/node_modules/tardis-dev/dist/computable/computable.js +72 -0
  170. package/node_modules/tardis-dev/dist/computable/computable.js.map +1 -0
  171. package/node_modules/tardis-dev/dist/computable/context.d.ts +4 -0
  172. package/node_modules/tardis-dev/dist/computable/context.d.ts.map +1 -0
  173. package/node_modules/tardis-dev/dist/computable/context.js +9 -0
  174. package/node_modules/tardis-dev/dist/computable/context.js.map +1 -0
  175. package/node_modules/tardis-dev/dist/computable/index.d.ts +4 -0
  176. package/node_modules/tardis-dev/dist/computable/index.d.ts.map +1 -0
  177. package/node_modules/tardis-dev/dist/computable/index.js +4 -0
  178. package/node_modules/tardis-dev/dist/computable/index.js.map +1 -0
  179. package/node_modules/tardis-dev/dist/computable/tradebar.d.ts +11 -0
  180. package/node_modules/tardis-dev/dist/computable/tradebar.d.ts.map +1 -0
  181. package/node_modules/tardis-dev/dist/computable/tradebar.js +132 -0
  182. package/node_modules/tardis-dev/dist/computable/tradebar.js.map +1 -0
  183. package/node_modules/tardis-dev/dist/consts.d.ts +66 -0
  184. package/node_modules/tardis-dev/dist/consts.d.ts.map +1 -0
  185. package/node_modules/tardis-dev/dist/consts.js +573 -0
  186. package/node_modules/tardis-dev/dist/consts.js.map +1 -0
  187. package/node_modules/tardis-dev/dist/debug.d.ts +3 -0
  188. package/node_modules/tardis-dev/dist/debug.d.ts.map +1 -0
  189. package/node_modules/tardis-dev/dist/debug.js +3 -0
  190. package/node_modules/tardis-dev/dist/debug.js.map +1 -0
  191. package/node_modules/tardis-dev/dist/downloaddatasets.d.ts +25 -0
  192. package/node_modules/tardis-dev/dist/downloaddatasets.d.ts.map +1 -0
  193. package/node_modules/tardis-dev/dist/downloaddatasets.js +118 -0
  194. package/node_modules/tardis-dev/dist/downloaddatasets.js.map +1 -0
  195. package/node_modules/tardis-dev/dist/exchangedetails.d.ts +91 -0
  196. package/node_modules/tardis-dev/dist/exchangedetails.d.ts.map +1 -0
  197. package/node_modules/tardis-dev/dist/exchangedetails.js +8 -0
  198. package/node_modules/tardis-dev/dist/exchangedetails.js.map +1 -0
  199. package/node_modules/tardis-dev/dist/filter.d.ts +8 -0
  200. package/node_modules/tardis-dev/dist/filter.d.ts.map +1 -0
  201. package/node_modules/tardis-dev/dist/filter.js +51 -0
  202. package/node_modules/tardis-dev/dist/filter.js.map +1 -0
  203. package/node_modules/tardis-dev/dist/foreachconcurrent.d.ts +2 -0
  204. package/node_modules/tardis-dev/dist/foreachconcurrent.d.ts.map +1 -0
  205. package/node_modules/tardis-dev/dist/foreachconcurrent.js +28 -0
  206. package/node_modules/tardis-dev/dist/foreachconcurrent.js.map +1 -0
  207. package/node_modules/tardis-dev/dist/handy.d.ts +102 -0
  208. package/node_modules/tardis-dev/dist/handy.d.ts.map +1 -0
  209. package/node_modules/tardis-dev/dist/handy.js +706 -0
  210. package/node_modules/tardis-dev/dist/handy.js.map +1 -0
  211. package/node_modules/tardis-dev/dist/index.d.ts +17 -0
  212. package/node_modules/tardis-dev/dist/index.d.ts.map +1 -0
  213. package/node_modules/tardis-dev/dist/index.js +17 -0
  214. package/node_modules/tardis-dev/dist/index.js.map +1 -0
  215. package/node_modules/tardis-dev/dist/instrumentinfo.d.ts +105 -0
  216. package/node_modules/tardis-dev/dist/instrumentinfo.d.ts.map +1 -0
  217. package/node_modules/tardis-dev/dist/instrumentinfo.js +59 -0
  218. package/node_modules/tardis-dev/dist/instrumentinfo.js.map +1 -0
  219. package/node_modules/tardis-dev/dist/mappers/ascendex.d.ts +10 -0
  220. package/node_modules/tardis-dev/dist/mappers/ascendex.d.ts.map +1 -0
  221. package/node_modules/tardis-dev/dist/mappers/ascendex.js +146 -0
  222. package/node_modules/tardis-dev/dist/mappers/ascendex.js.map +1 -0
  223. package/node_modules/tardis-dev/dist/mappers/binance.d.ts +32 -0
  224. package/node_modules/tardis-dev/dist/mappers/binance.d.ts.map +1 -0
  225. package/node_modules/tardis-dev/dist/mappers/binance.js +420 -0
  226. package/node_modules/tardis-dev/dist/mappers/binance.js.map +1 -0
  227. package/node_modules/tardis-dev/dist/mappers/binancedex.d.ts +9 -0
  228. package/node_modules/tardis-dev/dist/mappers/binancedex.d.ts.map +1 -0
  229. package/node_modules/tardis-dev/dist/mappers/binancedex.js +120 -0
  230. package/node_modules/tardis-dev/dist/mappers/binancedex.js.map +1 -0
  231. package/node_modules/tardis-dev/dist/mappers/binanceeuropeanoptions.d.ts +10 -0
  232. package/node_modules/tardis-dev/dist/mappers/binanceeuropeanoptions.d.ts.map +1 -0
  233. package/node_modules/tardis-dev/dist/mappers/binanceeuropeanoptions.js +389 -0
  234. package/node_modules/tardis-dev/dist/mappers/binanceeuropeanoptions.js.map +1 -0
  235. package/node_modules/tardis-dev/dist/mappers/bitfinex.d.ts +16 -0
  236. package/node_modules/tardis-dev/dist/mappers/bitfinex.d.ts.map +1 -0
  237. package/node_modules/tardis-dev/dist/mappers/bitfinex.js +352 -0
  238. package/node_modules/tardis-dev/dist/mappers/bitfinex.js.map +1 -0
  239. package/node_modules/tardis-dev/dist/mappers/bitflyer.d.ts +9 -0
  240. package/node_modules/tardis-dev/dist/mappers/bitflyer.d.ts.map +1 -0
  241. package/node_modules/tardis-dev/dist/mappers/bitflyer.js +121 -0
  242. package/node_modules/tardis-dev/dist/mappers/bitflyer.js.map +1 -0
  243. package/node_modules/tardis-dev/dist/mappers/bitget.d.ts +16 -0
  244. package/node_modules/tardis-dev/dist/mappers/bitget.d.ts.map +1 -0
  245. package/node_modules/tardis-dev/dist/mappers/bitget.js +335 -0
  246. package/node_modules/tardis-dev/dist/mappers/bitget.js.map +1 -0
  247. package/node_modules/tardis-dev/dist/mappers/bitmex.d.ts +11 -0
  248. package/node_modules/tardis-dev/dist/mappers/bitmex.d.ts.map +1 -0
  249. package/node_modules/tardis-dev/dist/mappers/bitmex.js +248 -0
  250. package/node_modules/tardis-dev/dist/mappers/bitmex.js.map +1 -0
  251. package/node_modules/tardis-dev/dist/mappers/bitnomial.d.ts +8 -0
  252. package/node_modules/tardis-dev/dist/mappers/bitnomial.d.ts.map +1 -0
  253. package/node_modules/tardis-dev/dist/mappers/bitnomial.js +91 -0
  254. package/node_modules/tardis-dev/dist/mappers/bitnomial.js.map +1 -0
  255. package/node_modules/tardis-dev/dist/mappers/bitstamp.d.ts +8 -0
  256. package/node_modules/tardis-dev/dist/mappers/bitstamp.d.ts.map +1 -0
  257. package/node_modules/tardis-dev/dist/mappers/bitstamp.js +151 -0
  258. package/node_modules/tardis-dev/dist/mappers/bitstamp.js.map +1 -0
  259. package/node_modules/tardis-dev/dist/mappers/blockchaincom.d.ts +8 -0
  260. package/node_modules/tardis-dev/dist/mappers/blockchaincom.d.ts.map +1 -0
  261. package/node_modules/tardis-dev/dist/mappers/blockchaincom.js +65 -0
  262. package/node_modules/tardis-dev/dist/mappers/blockchaincom.js.map +1 -0
  263. package/node_modules/tardis-dev/dist/mappers/bullish.d.ts +11 -0
  264. package/node_modules/tardis-dev/dist/mappers/bullish.d.ts.map +1 -0
  265. package/node_modules/tardis-dev/dist/mappers/bullish.js +234 -0
  266. package/node_modules/tardis-dev/dist/mappers/bullish.js.map +1 -0
  267. package/node_modules/tardis-dev/dist/mappers/bybit.d.ts +66 -0
  268. package/node_modules/tardis-dev/dist/mappers/bybit.d.ts.map +1 -0
  269. package/node_modules/tardis-dev/dist/mappers/bybit.js +601 -0
  270. package/node_modules/tardis-dev/dist/mappers/bybit.js.map +1 -0
  271. package/node_modules/tardis-dev/dist/mappers/bybitspot.d.ts +96 -0
  272. package/node_modules/tardis-dev/dist/mappers/bybitspot.d.ts.map +1 -0
  273. package/node_modules/tardis-dev/dist/mappers/bybitspot.js +99 -0
  274. package/node_modules/tardis-dev/dist/mappers/bybitspot.js.map +1 -0
  275. package/node_modules/tardis-dev/dist/mappers/coinbase.d.ts +9 -0
  276. package/node_modules/tardis-dev/dist/mappers/coinbase.d.ts.map +1 -0
  277. package/node_modules/tardis-dev/dist/mappers/coinbase.js +176 -0
  278. package/node_modules/tardis-dev/dist/mappers/coinbase.js.map +1 -0
  279. package/node_modules/tardis-dev/dist/mappers/coinbaseinternational.d.ts +10 -0
  280. package/node_modules/tardis-dev/dist/mappers/coinbaseinternational.d.ts.map +1 -0
  281. package/node_modules/tardis-dev/dist/mappers/coinbaseinternational.js +210 -0
  282. package/node_modules/tardis-dev/dist/mappers/coinbaseinternational.js.map +1 -0
  283. package/node_modules/tardis-dev/dist/mappers/coinflex.d.ts +9 -0
  284. package/node_modules/tardis-dev/dist/mappers/coinflex.d.ts.map +1 -0
  285. package/node_modules/tardis-dev/dist/mappers/coinflex.js +111 -0
  286. package/node_modules/tardis-dev/dist/mappers/coinflex.js.map +1 -0
  287. package/node_modules/tardis-dev/dist/mappers/cryptocom.d.ts +25 -0
  288. package/node_modules/tardis-dev/dist/mappers/cryptocom.d.ts.map +1 -0
  289. package/node_modules/tardis-dev/dist/mappers/cryptocom.js +219 -0
  290. package/node_modules/tardis-dev/dist/mappers/cryptocom.js.map +1 -0
  291. package/node_modules/tardis-dev/dist/mappers/cryptofacilities.d.ts +11 -0
  292. package/node_modules/tardis-dev/dist/mappers/cryptofacilities.d.ts.map +1 -0
  293. package/node_modules/tardis-dev/dist/mappers/cryptofacilities.js +199 -0
  294. package/node_modules/tardis-dev/dist/mappers/cryptofacilities.js.map +1 -0
  295. package/node_modules/tardis-dev/dist/mappers/delta.d.ts +10 -0
  296. package/node_modules/tardis-dev/dist/mappers/delta.d.ts.map +1 -0
  297. package/node_modules/tardis-dev/dist/mappers/delta.js +205 -0
  298. package/node_modules/tardis-dev/dist/mappers/delta.js.map +1 -0
  299. package/node_modules/tardis-dev/dist/mappers/deribit.d.ts +12 -0
  300. package/node_modules/tardis-dev/dist/mappers/deribit.d.ts.map +1 -0
  301. package/node_modules/tardis-dev/dist/mappers/deribit.js +278 -0
  302. package/node_modules/tardis-dev/dist/mappers/deribit.js.map +1 -0
  303. package/node_modules/tardis-dev/dist/mappers/dydx.d.ts +9 -0
  304. package/node_modules/tardis-dev/dist/mappers/dydx.d.ts.map +1 -0
  305. package/node_modules/tardis-dev/dist/mappers/dydx.js +188 -0
  306. package/node_modules/tardis-dev/dist/mappers/dydx.js.map +1 -0
  307. package/node_modules/tardis-dev/dist/mappers/dydxv4.d.ts +10 -0
  308. package/node_modules/tardis-dev/dist/mappers/dydxv4.d.ts.map +1 -0
  309. package/node_modules/tardis-dev/dist/mappers/dydxv4.js +189 -0
  310. package/node_modules/tardis-dev/dist/mappers/dydxv4.js.map +1 -0
  311. package/node_modules/tardis-dev/dist/mappers/ftx.d.ts +16 -0
  312. package/node_modules/tardis-dev/dist/mappers/ftx.d.ts.map +1 -0
  313. package/node_modules/tardis-dev/dist/mappers/ftx.js +222 -0
  314. package/node_modules/tardis-dev/dist/mappers/ftx.js.map +1 -0
  315. package/node_modules/tardis-dev/dist/mappers/gateio.d.ts +9 -0
  316. package/node_modules/tardis-dev/dist/mappers/gateio.d.ts.map +1 -0
  317. package/node_modules/tardis-dev/dist/mappers/gateio.js +370 -0
  318. package/node_modules/tardis-dev/dist/mappers/gateio.js.map +1 -0
  319. package/node_modules/tardis-dev/dist/mappers/gateiofutures.d.ts +10 -0
  320. package/node_modules/tardis-dev/dist/mappers/gateiofutures.d.ts.map +1 -0
  321. package/node_modules/tardis-dev/dist/mappers/gateiofutures.js +183 -0
  322. package/node_modules/tardis-dev/dist/mappers/gateiofutures.js.map +1 -0
  323. package/node_modules/tardis-dev/dist/mappers/gemini.d.ts +9 -0
  324. package/node_modules/tardis-dev/dist/mappers/gemini.d.ts.map +1 -0
  325. package/node_modules/tardis-dev/dist/mappers/gemini.js +145 -0
  326. package/node_modules/tardis-dev/dist/mappers/gemini.js.map +1 -0
  327. package/node_modules/tardis-dev/dist/mappers/hitbtc.d.ts +8 -0
  328. package/node_modules/tardis-dev/dist/mappers/hitbtc.d.ts.map +1 -0
  329. package/node_modules/tardis-dev/dist/mappers/hitbtc.js +76 -0
  330. package/node_modules/tardis-dev/dist/mappers/hitbtc.js.map +1 -0
  331. package/node_modules/tardis-dev/dist/mappers/huobi.d.ts +125 -0
  332. package/node_modules/tardis-dev/dist/mappers/huobi.d.ts.map +1 -0
  333. package/node_modules/tardis-dev/dist/mappers/huobi.js +529 -0
  334. package/node_modules/tardis-dev/dist/mappers/huobi.js.map +1 -0
  335. package/node_modules/tardis-dev/dist/mappers/hyperliquid.d.ts +10 -0
  336. package/node_modules/tardis-dev/dist/mappers/hyperliquid.d.ts.map +1 -0
  337. package/node_modules/tardis-dev/dist/mappers/hyperliquid.js +161 -0
  338. package/node_modules/tardis-dev/dist/mappers/hyperliquid.js.map +1 -0
  339. package/node_modules/tardis-dev/dist/mappers/index.d.ts +788 -0
  340. package/node_modules/tardis-dev/dist/mappers/index.d.ts.map +1 -0
  341. package/node_modules/tardis-dev/dist/mappers/index.js +66 -0
  342. package/node_modules/tardis-dev/dist/mappers/index.js.map +1 -0
  343. package/node_modules/tardis-dev/dist/mappers/kraken.d.ts +9 -0
  344. package/node_modules/tardis-dev/dist/mappers/kraken.d.ts.map +1 -0
  345. package/node_modules/tardis-dev/dist/mappers/kraken.js +238 -0
  346. package/node_modules/tardis-dev/dist/mappers/kraken.js.map +1 -0
  347. package/node_modules/tardis-dev/dist/mappers/kucoin.d.ts +9 -0
  348. package/node_modules/tardis-dev/dist/mappers/kucoin.d.ts.map +1 -0
  349. package/node_modules/tardis-dev/dist/mappers/kucoin.js +237 -0
  350. package/node_modules/tardis-dev/dist/mappers/kucoin.js.map +1 -0
  351. package/node_modules/tardis-dev/dist/mappers/kucoinfutures.d.ts +10 -0
  352. package/node_modules/tardis-dev/dist/mappers/kucoinfutures.d.ts.map +1 -0
  353. package/node_modules/tardis-dev/dist/mappers/kucoinfutures.js +302 -0
  354. package/node_modules/tardis-dev/dist/mappers/kucoinfutures.js.map +1 -0
  355. package/node_modules/tardis-dev/dist/mappers/lighter.d.ts +11 -0
  356. package/node_modules/tardis-dev/dist/mappers/lighter.d.ts.map +1 -0
  357. package/node_modules/tardis-dev/dist/mappers/lighter.js +186 -0
  358. package/node_modules/tardis-dev/dist/mappers/lighter.js.map +1 -0
  359. package/node_modules/tardis-dev/dist/mappers/mapper.d.ts +32 -0
  360. package/node_modules/tardis-dev/dist/mappers/mapper.d.ts.map +1 -0
  361. package/node_modules/tardis-dev/dist/mappers/mapper.js +120 -0
  362. package/node_modules/tardis-dev/dist/mappers/mapper.js.map +1 -0
  363. package/node_modules/tardis-dev/dist/mappers/mexc.d.ts +122 -0
  364. package/node_modules/tardis-dev/dist/mappers/mexc.d.ts.map +1 -0
  365. package/node_modules/tardis-dev/dist/mappers/mexc.js +205 -0
  366. package/node_modules/tardis-dev/dist/mappers/mexc.js.map +1 -0
  367. package/node_modules/tardis-dev/dist/mappers/mexcfutures.d.ts +137 -0
  368. package/node_modules/tardis-dev/dist/mappers/mexcfutures.d.ts.map +1 -0
  369. package/node_modules/tardis-dev/dist/mappers/mexcfutures.js +225 -0
  370. package/node_modules/tardis-dev/dist/mappers/mexcfutures.js.map +1 -0
  371. package/node_modules/tardis-dev/dist/mappers/okex.d.ts +39 -0
  372. package/node_modules/tardis-dev/dist/mappers/okex.d.ts.map +1 -0
  373. package/node_modules/tardis-dev/dist/mappers/okex.js +913 -0
  374. package/node_modules/tardis-dev/dist/mappers/okex.js.map +1 -0
  375. package/node_modules/tardis-dev/dist/mappers/okexspreads.d.ts +69 -0
  376. package/node_modules/tardis-dev/dist/mappers/okexspreads.d.ts.map +1 -0
  377. package/node_modules/tardis-dev/dist/mappers/okexspreads.js +116 -0
  378. package/node_modules/tardis-dev/dist/mappers/okexspreads.js.map +1 -0
  379. package/node_modules/tardis-dev/dist/mappers/phemex.d.ts +9 -0
  380. package/node_modules/tardis-dev/dist/mappers/phemex.d.ts.map +1 -0
  381. package/node_modules/tardis-dev/dist/mappers/phemex.js +406 -0
  382. package/node_modules/tardis-dev/dist/mappers/phemex.js.map +1 -0
  383. package/node_modules/tardis-dev/dist/mappers/poloniex.d.ts +8 -0
  384. package/node_modules/tardis-dev/dist/mappers/poloniex.d.ts.map +1 -0
  385. package/node_modules/tardis-dev/dist/mappers/poloniex.js +207 -0
  386. package/node_modules/tardis-dev/dist/mappers/poloniex.js.map +1 -0
  387. package/node_modules/tardis-dev/dist/mappers/polymarket.d.ts +59 -0
  388. package/node_modules/tardis-dev/dist/mappers/polymarket.d.ts.map +1 -0
  389. package/node_modules/tardis-dev/dist/mappers/polymarket.js +121 -0
  390. package/node_modules/tardis-dev/dist/mappers/polymarket.js.map +1 -0
  391. package/node_modules/tardis-dev/dist/mappers/registry.d.ts +41 -0
  392. package/node_modules/tardis-dev/dist/mappers/registry.d.ts.map +1 -0
  393. package/node_modules/tardis-dev/dist/mappers/registry.js +111 -0
  394. package/node_modules/tardis-dev/dist/mappers/registry.js.map +1 -0
  395. package/node_modules/tardis-dev/dist/mappers/serum.d.ts +19 -0
  396. package/node_modules/tardis-dev/dist/mappers/serum.d.ts.map +1 -0
  397. package/node_modules/tardis-dev/dist/mappers/serum.js +127 -0
  398. package/node_modules/tardis-dev/dist/mappers/serum.js.map +1 -0
  399. package/node_modules/tardis-dev/dist/mappers/upbit.d.ts +8 -0
  400. package/node_modules/tardis-dev/dist/mappers/upbit.d.ts.map +1 -0
  401. package/node_modules/tardis-dev/dist/mappers/upbit.js +78 -0
  402. package/node_modules/tardis-dev/dist/mappers/upbit.js.map +1 -0
  403. package/node_modules/tardis-dev/dist/mappers/woox.d.ts +10 -0
  404. package/node_modules/tardis-dev/dist/mappers/woox.d.ts.map +1 -0
  405. package/node_modules/tardis-dev/dist/mappers/woox.js +488 -0
  406. package/node_modules/tardis-dev/dist/mappers/woox.js.map +1 -0
  407. package/node_modules/tardis-dev/dist/okexsymbols.d.ts +3 -0
  408. package/node_modules/tardis-dev/dist/okexsymbols.d.ts.map +1 -0
  409. package/node_modules/tardis-dev/dist/okexsymbols.js +10 -0
  410. package/node_modules/tardis-dev/dist/okexsymbols.js.map +1 -0
  411. package/node_modules/tardis-dev/dist/options.d.ts +13 -0
  412. package/node_modules/tardis-dev/dist/options.d.ts.map +1 -0
  413. package/node_modules/tardis-dev/dist/options.js +21 -0
  414. package/node_modules/tardis-dev/dist/options.js.map +1 -0
  415. package/node_modules/tardis-dev/dist/orderbook.d.ts +23 -0
  416. package/node_modules/tardis-dev/dist/orderbook.d.ts.map +1 -0
  417. package/node_modules/tardis-dev/dist/orderbook.js +133 -0
  418. package/node_modules/tardis-dev/dist/orderbook.js.map +1 -0
  419. package/node_modules/tardis-dev/dist/priceleveltree.d.ts +27 -0
  420. package/node_modules/tardis-dev/dist/priceleveltree.d.ts.map +1 -0
  421. package/node_modules/tardis-dev/dist/priceleveltree.js +165 -0
  422. package/node_modules/tardis-dev/dist/priceleveltree.js.map +1 -0
  423. package/node_modules/tardis-dev/dist/realtimefeeds/binance.d.ts +99 -0
  424. package/node_modules/tardis-dev/dist/realtimefeeds/binance.d.ts.map +1 -0
  425. package/node_modules/tardis-dev/dist/realtimefeeds/binance.js +370 -0
  426. package/node_modules/tardis-dev/dist/realtimefeeds/binance.js.map +1 -0
  427. package/node_modules/tardis-dev/dist/realtimefeeds/binancedex.d.ts +14 -0
  428. package/node_modules/tardis-dev/dist/realtimefeeds/binancedex.d.ts.map +1 -0
  429. package/node_modules/tardis-dev/dist/realtimefeeds/binancedex.js +53 -0
  430. package/node_modules/tardis-dev/dist/realtimefeeds/binancedex.js.map +1 -0
  431. package/node_modules/tardis-dev/dist/realtimefeeds/binanceeuropeanoptions.d.ts +14 -0
  432. package/node_modules/tardis-dev/dist/realtimefeeds/binanceeuropeanoptions.d.ts.map +1 -0
  433. package/node_modules/tardis-dev/dist/realtimefeeds/binanceeuropeanoptions.js +95 -0
  434. package/node_modules/tardis-dev/dist/realtimefeeds/binanceeuropeanoptions.js.map +1 -0
  435. package/node_modules/tardis-dev/dist/realtimefeeds/bitfinex.d.ts +36 -0
  436. package/node_modules/tardis-dev/dist/realtimefeeds/bitfinex.d.ts.map +1 -0
  437. package/node_modules/tardis-dev/dist/realtimefeeds/bitfinex.js +73 -0
  438. package/node_modules/tardis-dev/dist/realtimefeeds/bitfinex.js.map +1 -0
  439. package/node_modules/tardis-dev/dist/realtimefeeds/bitflyer.d.ts +9 -0
  440. package/node_modules/tardis-dev/dist/realtimefeeds/bitflyer.d.ts.map +1 -0
  441. package/node_modules/tardis-dev/dist/realtimefeeds/bitflyer.js +36 -0
  442. package/node_modules/tardis-dev/dist/realtimefeeds/bitflyer.js.map +1 -0
  443. package/node_modules/tardis-dev/dist/realtimefeeds/bitget.d.ts +19 -0
  444. package/node_modules/tardis-dev/dist/realtimefeeds/bitget.d.ts.map +1 -0
  445. package/node_modules/tardis-dev/dist/realtimefeeds/bitget.js +61 -0
  446. package/node_modules/tardis-dev/dist/realtimefeeds/bitget.js.map +1 -0
  447. package/node_modules/tardis-dev/dist/realtimefeeds/bitmex.d.ts +11 -0
  448. package/node_modules/tardis-dev/dist/realtimefeeds/bitmex.d.ts.map +1 -0
  449. package/node_modules/tardis-dev/dist/realtimefeeds/bitmex.js +37 -0
  450. package/node_modules/tardis-dev/dist/realtimefeeds/bitmex.js.map +1 -0
  451. package/node_modules/tardis-dev/dist/realtimefeeds/bitnomial.d.ts +11 -0
  452. package/node_modules/tardis-dev/dist/realtimefeeds/bitnomial.d.ts.map +1 -0
  453. package/node_modules/tardis-dev/dist/realtimefeeds/bitnomial.js +52 -0
  454. package/node_modules/tardis-dev/dist/realtimefeeds/bitnomial.js.map +1 -0
  455. package/node_modules/tardis-dev/dist/realtimefeeds/bitstamp.d.ts +10 -0
  456. package/node_modules/tardis-dev/dist/realtimefeeds/bitstamp.d.ts.map +1 -0
  457. package/node_modules/tardis-dev/dist/realtimefeeds/bitstamp.js +57 -0
  458. package/node_modules/tardis-dev/dist/realtimefeeds/bitstamp.js.map +1 -0
  459. package/node_modules/tardis-dev/dist/realtimefeeds/blockchaincom.d.ts +11 -0
  460. package/node_modules/tardis-dev/dist/realtimefeeds/blockchaincom.d.ts.map +1 -0
  461. package/node_modules/tardis-dev/dist/realtimefeeds/blockchaincom.js +37 -0
  462. package/node_modules/tardis-dev/dist/realtimefeeds/blockchaincom.js.map +1 -0
  463. package/node_modules/tardis-dev/dist/realtimefeeds/bullish.d.ts +18 -0
  464. package/node_modules/tardis-dev/dist/realtimefeeds/bullish.d.ts.map +1 -0
  465. package/node_modules/tardis-dev/dist/realtimefeeds/bullish.js +113 -0
  466. package/node_modules/tardis-dev/dist/realtimefeeds/bullish.js.map +1 -0
  467. package/node_modules/tardis-dev/dist/realtimefeeds/bybit.d.ts +28 -0
  468. package/node_modules/tardis-dev/dist/realtimefeeds/bybit.d.ts.map +1 -0
  469. package/node_modules/tardis-dev/dist/realtimefeeds/bybit.js +95 -0
  470. package/node_modules/tardis-dev/dist/realtimefeeds/bybit.js.map +1 -0
  471. package/node_modules/tardis-dev/dist/realtimefeeds/coinbase.d.ts +16 -0
  472. package/node_modules/tardis-dev/dist/realtimefeeds/coinbase.d.ts.map +1 -0
  473. package/node_modules/tardis-dev/dist/realtimefeeds/coinbase.js +98 -0
  474. package/node_modules/tardis-dev/dist/realtimefeeds/coinbase.js.map +1 -0
  475. package/node_modules/tardis-dev/dist/realtimefeeds/coinbaseinternational.d.ts +10 -0
  476. package/node_modules/tardis-dev/dist/realtimefeeds/coinbaseinternational.d.ts.map +1 -0
  477. package/node_modules/tardis-dev/dist/realtimefeeds/coinbaseinternational.js +47 -0
  478. package/node_modules/tardis-dev/dist/realtimefeeds/coinbaseinternational.js.map +1 -0
  479. package/node_modules/tardis-dev/dist/realtimefeeds/coinflex.d.ts +8 -0
  480. package/node_modules/tardis-dev/dist/realtimefeeds/coinflex.d.ts.map +1 -0
  481. package/node_modules/tardis-dev/dist/realtimefeeds/coinflex.js +23 -0
  482. package/node_modules/tardis-dev/dist/realtimefeeds/coinflex.js.map +1 -0
  483. package/node_modules/tardis-dev/dist/realtimefeeds/cryptocom.d.ts +10 -0
  484. package/node_modules/tardis-dev/dist/realtimefeeds/cryptocom.d.ts.map +1 -0
  485. package/node_modules/tardis-dev/dist/realtimefeeds/cryptocom.js +43 -0
  486. package/node_modules/tardis-dev/dist/realtimefeeds/cryptocom.js.map +1 -0
  487. package/node_modules/tardis-dev/dist/realtimefeeds/cryptofacilities.d.ts +9 -0
  488. package/node_modules/tardis-dev/dist/realtimefeeds/cryptofacilities.d.ts.map +1 -0
  489. package/node_modules/tardis-dev/dist/realtimefeeds/cryptofacilities.js +25 -0
  490. package/node_modules/tardis-dev/dist/realtimefeeds/cryptofacilities.js.map +1 -0
  491. package/node_modules/tardis-dev/dist/realtimefeeds/delta.d.ts +18 -0
  492. package/node_modules/tardis-dev/dist/realtimefeeds/delta.d.ts.map +1 -0
  493. package/node_modules/tardis-dev/dist/realtimefeeds/delta.js +29 -0
  494. package/node_modules/tardis-dev/dist/realtimefeeds/delta.js.map +1 -0
  495. package/node_modules/tardis-dev/dist/realtimefeeds/deribit.d.ts +13 -0
  496. package/node_modules/tardis-dev/dist/realtimefeeds/deribit.d.ts.map +1 -0
  497. package/node_modules/tardis-dev/dist/realtimefeeds/deribit.js +81 -0
  498. package/node_modules/tardis-dev/dist/realtimefeeds/deribit.js.map +1 -0
  499. package/node_modules/tardis-dev/dist/realtimefeeds/dydx.d.ts +8 -0
  500. package/node_modules/tardis-dev/dist/realtimefeeds/dydx.d.ts.map +1 -0
  501. package/node_modules/tardis-dev/dist/realtimefeeds/dydx.js +34 -0
  502. package/node_modules/tardis-dev/dist/realtimefeeds/dydx.js.map +1 -0
  503. package/node_modules/tardis-dev/dist/realtimefeeds/dydx_v4.d.ts +8 -0
  504. package/node_modules/tardis-dev/dist/realtimefeeds/dydx_v4.d.ts.map +1 -0
  505. package/node_modules/tardis-dev/dist/realtimefeeds/dydx_v4.js +33 -0
  506. package/node_modules/tardis-dev/dist/realtimefeeds/dydx_v4.js.map +1 -0
  507. package/node_modules/tardis-dev/dist/realtimefeeds/ftx.d.ts +33 -0
  508. package/node_modules/tardis-dev/dist/realtimefeeds/ftx.d.ts.map +1 -0
  509. package/node_modules/tardis-dev/dist/realtimefeeds/ftx.js +107 -0
  510. package/node_modules/tardis-dev/dist/realtimefeeds/ftx.js.map +1 -0
  511. package/node_modules/tardis-dev/dist/realtimefeeds/gateio.d.ts +9 -0
  512. package/node_modules/tardis-dev/dist/realtimefeeds/gateio.d.ts.map +1 -0
  513. package/node_modules/tardis-dev/dist/realtimefeeds/gateio.js +41 -0
  514. package/node_modules/tardis-dev/dist/realtimefeeds/gateio.js.map +1 -0
  515. package/node_modules/tardis-dev/dist/realtimefeeds/gateiofutures.d.ts +17 -0
  516. package/node_modules/tardis-dev/dist/realtimefeeds/gateiofutures.d.ts.map +1 -0
  517. package/node_modules/tardis-dev/dist/realtimefeeds/gateiofutures.js +68 -0
  518. package/node_modules/tardis-dev/dist/realtimefeeds/gateiofutures.js.map +1 -0
  519. package/node_modules/tardis-dev/dist/realtimefeeds/gemini.d.ts +9 -0
  520. package/node_modules/tardis-dev/dist/realtimefeeds/gemini.d.ts.map +1 -0
  521. package/node_modules/tardis-dev/dist/realtimefeeds/gemini.js +32 -0
  522. package/node_modules/tardis-dev/dist/realtimefeeds/gemini.js.map +1 -0
  523. package/node_modules/tardis-dev/dist/realtimefeeds/hitbtc.d.ts +12 -0
  524. package/node_modules/tardis-dev/dist/realtimefeeds/hitbtc.d.ts.map +1 -0
  525. package/node_modules/tardis-dev/dist/realtimefeeds/hitbtc.js +55 -0
  526. package/node_modules/tardis-dev/dist/realtimefeeds/hitbtc.js.map +1 -0
  527. package/node_modules/tardis-dev/dist/realtimefeeds/huobi.d.ts +108 -0
  528. package/node_modules/tardis-dev/dist/realtimefeeds/huobi.d.ts.map +1 -0
  529. package/node_modules/tardis-dev/dist/realtimefeeds/huobi.js +339 -0
  530. package/node_modules/tardis-dev/dist/realtimefeeds/huobi.js.map +1 -0
  531. package/node_modules/tardis-dev/dist/realtimefeeds/hyperliquid.d.ts +10 -0
  532. package/node_modules/tardis-dev/dist/realtimefeeds/hyperliquid.d.ts.map +1 -0
  533. package/node_modules/tardis-dev/dist/realtimefeeds/hyperliquid.js +34 -0
  534. package/node_modules/tardis-dev/dist/realtimefeeds/hyperliquid.js.map +1 -0
  535. package/node_modules/tardis-dev/dist/realtimefeeds/index.d.ts +6 -0
  536. package/node_modules/tardis-dev/dist/realtimefeeds/index.d.ts.map +1 -0
  537. package/node_modules/tardis-dev/dist/realtimefeeds/index.js +119 -0
  538. package/node_modules/tardis-dev/dist/realtimefeeds/index.js.map +1 -0
  539. package/node_modules/tardis-dev/dist/realtimefeeds/kraken.d.ts +10 -0
  540. package/node_modules/tardis-dev/dist/realtimefeeds/kraken.d.ts.map +1 -0
  541. package/node_modules/tardis-dev/dist/realtimefeeds/kraken.js +41 -0
  542. package/node_modules/tardis-dev/dist/realtimefeeds/kraken.js.map +1 -0
  543. package/node_modules/tardis-dev/dist/realtimefeeds/kucoin.d.ts +13 -0
  544. package/node_modules/tardis-dev/dist/realtimefeeds/kucoin.d.ts.map +1 -0
  545. package/node_modules/tardis-dev/dist/realtimefeeds/kucoin.js +66 -0
  546. package/node_modules/tardis-dev/dist/realtimefeeds/kucoin.js.map +1 -0
  547. package/node_modules/tardis-dev/dist/realtimefeeds/kucoinfutures.d.ts +25 -0
  548. package/node_modules/tardis-dev/dist/realtimefeeds/kucoinfutures.d.ts.map +1 -0
  549. package/node_modules/tardis-dev/dist/realtimefeeds/kucoinfutures.js +110 -0
  550. package/node_modules/tardis-dev/dist/realtimefeeds/kucoinfutures.js.map +1 -0
  551. package/node_modules/tardis-dev/dist/realtimefeeds/lighter.d.ts +8 -0
  552. package/node_modules/tardis-dev/dist/realtimefeeds/lighter.d.ts.map +1 -0
  553. package/node_modules/tardis-dev/dist/realtimefeeds/lighter.js +25 -0
  554. package/node_modules/tardis-dev/dist/realtimefeeds/lighter.js.map +1 -0
  555. package/node_modules/tardis-dev/dist/realtimefeeds/mango.d.ts +5 -0
  556. package/node_modules/tardis-dev/dist/realtimefeeds/mango.d.ts.map +1 -0
  557. package/node_modules/tardis-dev/dist/realtimefeeds/mango.js +5 -0
  558. package/node_modules/tardis-dev/dist/realtimefeeds/mango.js.map +1 -0
  559. package/node_modules/tardis-dev/dist/realtimefeeds/mexc.d.ts +35 -0
  560. package/node_modules/tardis-dev/dist/realtimefeeds/mexc.d.ts.map +1 -0
  561. package/node_modules/tardis-dev/dist/realtimefeeds/mexc.js +261 -0
  562. package/node_modules/tardis-dev/dist/realtimefeeds/mexc.js.map +1 -0
  563. package/node_modules/tardis-dev/dist/realtimefeeds/mexcfutures.d.ts +25 -0
  564. package/node_modules/tardis-dev/dist/realtimefeeds/mexcfutures.d.ts.map +1 -0
  565. package/node_modules/tardis-dev/dist/realtimefeeds/mexcfutures.js +203 -0
  566. package/node_modules/tardis-dev/dist/realtimefeeds/mexcfutures.js.map +1 -0
  567. package/node_modules/tardis-dev/dist/realtimefeeds/okex.d.ts +31 -0
  568. package/node_modules/tardis-dev/dist/realtimefeeds/okex.d.ts.map +1 -0
  569. package/node_modules/tardis-dev/dist/realtimefeeds/okex.js +147 -0
  570. package/node_modules/tardis-dev/dist/realtimefeeds/okex.js.map +1 -0
  571. package/node_modules/tardis-dev/dist/realtimefeeds/okexspreads.d.ts +11 -0
  572. package/node_modules/tardis-dev/dist/realtimefeeds/okexspreads.d.ts.map +1 -0
  573. package/node_modules/tardis-dev/dist/realtimefeeds/okexspreads.js +53 -0
  574. package/node_modules/tardis-dev/dist/realtimefeeds/okexspreads.js.map +1 -0
  575. package/node_modules/tardis-dev/dist/realtimefeeds/phemex.d.ts +14 -0
  576. package/node_modules/tardis-dev/dist/realtimefeeds/phemex.d.ts.map +1 -0
  577. package/node_modules/tardis-dev/dist/realtimefeeds/phemex.js +46 -0
  578. package/node_modules/tardis-dev/dist/realtimefeeds/phemex.js.map +1 -0
  579. package/node_modules/tardis-dev/dist/realtimefeeds/poloniex.d.ts +14 -0
  580. package/node_modules/tardis-dev/dist/realtimefeeds/poloniex.d.ts.map +1 -0
  581. package/node_modules/tardis-dev/dist/realtimefeeds/poloniex.js +28 -0
  582. package/node_modules/tardis-dev/dist/realtimefeeds/poloniex.js.map +1 -0
  583. package/node_modules/tardis-dev/dist/realtimefeeds/polymarket.d.ts +26 -0
  584. package/node_modules/tardis-dev/dist/realtimefeeds/polymarket.d.ts.map +1 -0
  585. package/node_modules/tardis-dev/dist/realtimefeeds/polymarket.js +92 -0
  586. package/node_modules/tardis-dev/dist/realtimefeeds/polymarket.js.map +1 -0
  587. package/node_modules/tardis-dev/dist/realtimefeeds/realtimefeed.d.ts +75 -0
  588. package/node_modules/tardis-dev/dist/realtimefeeds/realtimefeed.d.ts.map +1 -0
  589. package/node_modules/tardis-dev/dist/realtimefeeds/realtimefeed.js +423 -0
  590. package/node_modules/tardis-dev/dist/realtimefeeds/realtimefeed.js.map +1 -0
  591. package/node_modules/tardis-dev/dist/realtimefeeds/serum.d.ts +14 -0
  592. package/node_modules/tardis-dev/dist/realtimefeeds/serum.d.ts.map +1 -0
  593. package/node_modules/tardis-dev/dist/realtimefeeds/serum.js +58 -0
  594. package/node_modules/tardis-dev/dist/realtimefeeds/serum.js.map +1 -0
  595. package/node_modules/tardis-dev/dist/realtimefeeds/staratlas.d.ts +5 -0
  596. package/node_modules/tardis-dev/dist/realtimefeeds/staratlas.d.ts.map +1 -0
  597. package/node_modules/tardis-dev/dist/realtimefeeds/staratlas.js +5 -0
  598. package/node_modules/tardis-dev/dist/realtimefeeds/staratlas.js.map +1 -0
  599. package/node_modules/tardis-dev/dist/realtimefeeds/upbit.d.ts +8 -0
  600. package/node_modules/tardis-dev/dist/realtimefeeds/upbit.d.ts.map +1 -0
  601. package/node_modules/tardis-dev/dist/realtimefeeds/upbit.js +29 -0
  602. package/node_modules/tardis-dev/dist/realtimefeeds/upbit.js.map +1 -0
  603. package/node_modules/tardis-dev/dist/realtimefeeds/woox.d.ts +12 -0
  604. package/node_modules/tardis-dev/dist/realtimefeeds/woox.d.ts.map +1 -0
  605. package/node_modules/tardis-dev/dist/realtimefeeds/woox.js +77 -0
  606. package/node_modules/tardis-dev/dist/realtimefeeds/woox.js.map +1 -0
  607. package/node_modules/tardis-dev/dist/realtimeiterator.d.ts +10 -0
  608. package/node_modules/tardis-dev/dist/realtimeiterator.d.ts.map +1 -0
  609. package/node_modules/tardis-dev/dist/realtimeiterator.js +106 -0
  610. package/node_modules/tardis-dev/dist/realtimeiterator.js.map +1 -0
  611. package/node_modules/tardis-dev/dist/replay.d.ts +42 -0
  612. package/node_modules/tardis-dev/dist/replay.d.ts.map +1 -0
  613. package/node_modules/tardis-dev/dist/replay.js +417 -0
  614. package/node_modules/tardis-dev/dist/replay.js.map +1 -0
  615. package/node_modules/tardis-dev/dist/stream.d.ts +28 -0
  616. package/node_modules/tardis-dev/dist/stream.d.ts.map +1 -0
  617. package/node_modules/tardis-dev/dist/stream.js +112 -0
  618. package/node_modules/tardis-dev/dist/stream.js.map +1 -0
  619. package/node_modules/tardis-dev/dist/types.d.ts +154 -0
  620. package/node_modules/tardis-dev/dist/types.d.ts.map +1 -0
  621. package/node_modules/tardis-dev/dist/types.js +2 -0
  622. package/node_modules/tardis-dev/dist/types.js.map +1 -0
  623. package/node_modules/tardis-dev/dist/worker.d.ts +24 -0
  624. package/node_modules/tardis-dev/dist/worker.d.ts.map +1 -0
  625. package/node_modules/tardis-dev/dist/worker.js +143 -0
  626. package/node_modules/tardis-dev/dist/worker.js.map +1 -0
  627. package/node_modules/tardis-dev/example.js +171 -0
  628. package/node_modules/tardis-dev/package.json +85 -0
  629. package/node_modules/tardis-dev/src/apikeyaccessinfo.ts +25 -0
  630. package/node_modules/tardis-dev/src/binarysplit.ts +50 -0
  631. package/node_modules/tardis-dev/src/boundedqueue.ts +118 -0
  632. package/node_modules/tardis-dev/src/clearcache.ts +62 -0
  633. package/node_modules/tardis-dev/src/combine.ts +134 -0
  634. package/node_modules/tardis-dev/src/computable/booksnapshot.ts +327 -0
  635. package/node_modules/tardis-dev/src/computable/computable.ts +104 -0
  636. package/node_modules/tardis-dev/src/computable/context.ts +12 -0
  637. package/node_modules/tardis-dev/src/computable/index.ts +3 -0
  638. package/node_modules/tardis-dev/src/computable/tradebar.ts +173 -0
  639. package/node_modules/tardis-dev/src/consts.ts +623 -0
  640. package/node_modules/tardis-dev/src/debug.ts +3 -0
  641. package/node_modules/tardis-dev/src/downloaddatasets.ts +193 -0
  642. package/node_modules/tardis-dev/src/exchangedetails.ts +120 -0
  643. package/node_modules/tardis-dev/src/filter.ts +69 -0
  644. package/node_modules/tardis-dev/src/foreachconcurrent.ts +29 -0
  645. package/node_modules/tardis-dev/src/handy.ts +880 -0
  646. package/node_modules/tardis-dev/src/index.ts +16 -0
  647. package/node_modules/tardis-dev/src/instrumentinfo.ts +197 -0
  648. package/node_modules/tardis-dev/src/mappers/ascendex.ts +210 -0
  649. package/node_modules/tardis-dev/src/mappers/binance.ts +598 -0
  650. package/node_modules/tardis-dev/src/mappers/binancedex.ts +180 -0
  651. package/node_modules/tardis-dev/src/mappers/binanceeuropeanoptions.ts +624 -0
  652. package/node_modules/tardis-dev/src/mappers/bitfinex.ts +472 -0
  653. package/node_modules/tardis-dev/src/mappers/bitflyer.ts +199 -0
  654. package/node_modules/tardis-dev/src/mappers/bitget.ts +490 -0
  655. package/node_modules/tardis-dev/src/mappers/bitmex.ts +359 -0
  656. package/node_modules/tardis-dev/src/mappers/bitnomial.ts +134 -0
  657. package/node_modules/tardis-dev/src/mappers/bitstamp.ts +219 -0
  658. package/node_modules/tardis-dev/src/mappers/blockchaincom.ts +106 -0
  659. package/node_modules/tardis-dev/src/mappers/bullish.ts +392 -0
  660. package/node_modules/tardis-dev/src/mappers/bybit.ts +947 -0
  661. package/node_modules/tardis-dev/src/mappers/bybitspot.ts +129 -0
  662. package/node_modules/tardis-dev/src/mappers/coinbase.ts +259 -0
  663. package/node_modules/tardis-dev/src/mappers/coinbaseinternational.ts +338 -0
  664. package/node_modules/tardis-dev/src/mappers/coinflex.ts +175 -0
  665. package/node_modules/tardis-dev/src/mappers/cryptocom.ts +504 -0
  666. package/node_modules/tardis-dev/src/mappers/cryptofacilities.ts +319 -0
  667. package/node_modules/tardis-dev/src/mappers/delta.ts +315 -0
  668. package/node_modules/tardis-dev/src/mappers/deribit.ts +406 -0
  669. package/node_modules/tardis-dev/src/mappers/dydx.ts +330 -0
  670. package/node_modules/tardis-dev/src/mappers/dydxv4.ts +349 -0
  671. package/node_modules/tardis-dev/src/mappers/ftx.ts +307 -0
  672. package/node_modules/tardis-dev/src/mappers/gateio.ts +543 -0
  673. package/node_modules/tardis-dev/src/mappers/gateiofutures.ts +290 -0
  674. package/node_modules/tardis-dev/src/mappers/gemini.ts +225 -0
  675. package/node_modules/tardis-dev/src/mappers/hitbtc.ts +124 -0
  676. package/node_modules/tardis-dev/src/mappers/huobi.ts +815 -0
  677. package/node_modules/tardis-dev/src/mappers/hyperliquid.ts +248 -0
  678. package/node_modules/tardis-dev/src/mappers/index.ts +140 -0
  679. package/node_modules/tardis-dev/src/mappers/kraken.ts +382 -0
  680. package/node_modules/tardis-dev/src/mappers/kucoin.ts +353 -0
  681. package/node_modules/tardis-dev/src/mappers/kucoinfutures.ts +508 -0
  682. package/node_modules/tardis-dev/src/mappers/lighter.ts +363 -0
  683. package/node_modules/tardis-dev/src/mappers/mapper.ts +163 -0
  684. package/node_modules/tardis-dev/src/mappers/mexc.ts +324 -0
  685. package/node_modules/tardis-dev/src/mappers/mexcfutures.ts +352 -0
  686. package/node_modules/tardis-dev/src/mappers/okex.ts +1362 -0
  687. package/node_modules/tardis-dev/src/mappers/okexspreads.ts +172 -0
  688. package/node_modules/tardis-dev/src/mappers/phemex.ts +562 -0
  689. package/node_modules/tardis-dev/src/mappers/poloniex.ts +304 -0
  690. package/node_modules/tardis-dev/src/mappers/polymarket.ts +204 -0
  691. package/node_modules/tardis-dev/src/mappers/registry.ts +203 -0
  692. package/node_modules/tardis-dev/src/mappers/serum.ts +196 -0
  693. package/node_modules/tardis-dev/src/mappers/upbit.ts +117 -0
  694. package/node_modules/tardis-dev/src/mappers/woox.ts +700 -0
  695. package/node_modules/tardis-dev/src/okexsymbols.ts +10 -0
  696. package/node_modules/tardis-dev/src/options.ts +36 -0
  697. package/node_modules/tardis-dev/src/orderbook.ts +169 -0
  698. package/node_modules/tardis-dev/src/priceleveltree.ts +188 -0
  699. package/node_modules/tardis-dev/src/realtimefeeds/binance.ts +577 -0
  700. package/node_modules/tardis-dev/src/realtimefeeds/binancedex.ts +64 -0
  701. package/node_modules/tardis-dev/src/realtimefeeds/binanceeuropeanoptions.ts +132 -0
  702. package/node_modules/tardis-dev/src/realtimefeeds/bitfinex.ts +83 -0
  703. package/node_modules/tardis-dev/src/realtimefeeds/bitflyer.ts +41 -0
  704. package/node_modules/tardis-dev/src/realtimefeeds/bitget.ts +76 -0
  705. package/node_modules/tardis-dev/src/realtimefeeds/bitmex.ts +42 -0
  706. package/node_modules/tardis-dev/src/realtimefeeds/bitnomial.ts +60 -0
  707. package/node_modules/tardis-dev/src/realtimefeeds/bitstamp.ts +70 -0
  708. package/node_modules/tardis-dev/src/realtimefeeds/blockchaincom.ts +44 -0
  709. package/node_modules/tardis-dev/src/realtimefeeds/bullish.ts +140 -0
  710. package/node_modules/tardis-dev/src/realtimefeeds/bybit.ts +123 -0
  711. package/node_modules/tardis-dev/src/realtimefeeds/coinbase.ts +112 -0
  712. package/node_modules/tardis-dev/src/realtimefeeds/coinbaseinternational.ts +60 -0
  713. package/node_modules/tardis-dev/src/realtimefeeds/coinflex.ts +29 -0
  714. package/node_modules/tardis-dev/src/realtimefeeds/cryptocom.ts +49 -0
  715. package/node_modules/tardis-dev/src/realtimefeeds/cryptofacilities.ts +30 -0
  716. package/node_modules/tardis-dev/src/realtimefeeds/delta.ts +35 -0
  717. package/node_modules/tardis-dev/src/realtimefeeds/deribit.ts +95 -0
  718. package/node_modules/tardis-dev/src/realtimefeeds/dydx.ts +40 -0
  719. package/node_modules/tardis-dev/src/realtimefeeds/dydx_v4.ts +39 -0
  720. package/node_modules/tardis-dev/src/realtimefeeds/ftx.ts +137 -0
  721. package/node_modules/tardis-dev/src/realtimefeeds/gateio.ts +46 -0
  722. package/node_modules/tardis-dev/src/realtimefeeds/gateiofutures.ts +91 -0
  723. package/node_modules/tardis-dev/src/realtimefeeds/gemini.ts +38 -0
  724. package/node_modules/tardis-dev/src/realtimefeeds/hitbtc.ts +65 -0
  725. package/node_modules/tardis-dev/src/realtimefeeds/huobi.ts +435 -0
  726. package/node_modules/tardis-dev/src/realtimefeeds/hyperliquid.ts +41 -0
  727. package/node_modules/tardis-dev/src/realtimefeeds/index.ts +145 -0
  728. package/node_modules/tardis-dev/src/realtimefeeds/kraken.ts +48 -0
  729. package/node_modules/tardis-dev/src/realtimefeeds/kucoin.ts +80 -0
  730. package/node_modules/tardis-dev/src/realtimefeeds/kucoinfutures.ts +139 -0
  731. package/node_modules/tardis-dev/src/realtimefeeds/lighter.ts +31 -0
  732. package/node_modules/tardis-dev/src/realtimefeeds/mango.ts +5 -0
  733. package/node_modules/tardis-dev/src/realtimefeeds/mexc.ts +327 -0
  734. package/node_modules/tardis-dev/src/realtimefeeds/mexcfutures.ts +269 -0
  735. package/node_modules/tardis-dev/src/realtimefeeds/okex.ts +189 -0
  736. package/node_modules/tardis-dev/src/realtimefeeds/okexspreads.ts +64 -0
  737. package/node_modules/tardis-dev/src/realtimefeeds/phemex.ts +52 -0
  738. package/node_modules/tardis-dev/src/realtimefeeds/poloniex.ts +34 -0
  739. package/node_modules/tardis-dev/src/realtimefeeds/polymarket.ts +112 -0
  740. package/node_modules/tardis-dev/src/realtimefeeds/realtimefeed.ts +561 -0
  741. package/node_modules/tardis-dev/src/realtimefeeds/serum.ts +67 -0
  742. package/node_modules/tardis-dev/src/realtimefeeds/staratlas.ts +5 -0
  743. package/node_modules/tardis-dev/src/realtimefeeds/upbit.ts +35 -0
  744. package/node_modules/tardis-dev/src/realtimefeeds/woox.ts +110 -0
  745. package/node_modules/tardis-dev/src/realtimeiterator.ts +124 -0
  746. package/node_modules/tardis-dev/src/replay.ts +616 -0
  747. package/node_modules/tardis-dev/src/stream.ts +186 -0
  748. package/node_modules/tardis-dev/src/types.ts +178 -0
  749. package/node_modules/tardis-dev/src/worker.ts +221 -0
  750. package/node_modules/uWebSockets.js/ESM_wrapper.mjs +53 -0
  751. package/node_modules/uWebSockets.js/LICENSE +201 -0
  752. package/node_modules/uWebSockets.js/README.md +6 -0
  753. package/node_modules/uWebSockets.js/index.d.ts +468 -0
  754. package/node_modules/uWebSockets.js/package.json +12 -0
  755. package/node_modules/uWebSockets.js/source_commit +1 -0
  756. package/node_modules/uWebSockets.js/uws.js +76 -0
  757. package/node_modules/uWebSockets.js/uws_darwin_arm64_127.node +0 -0
  758. package/node_modules/uWebSockets.js/uws_darwin_arm64_137.node +0 -0
  759. package/node_modules/uWebSockets.js/uws_darwin_arm64_147.node +0 -0
  760. package/node_modules/uWebSockets.js/uws_darwin_x64_127.node +0 -0
  761. package/node_modules/uWebSockets.js/uws_darwin_x64_137.node +0 -0
  762. package/node_modules/uWebSockets.js/uws_darwin_x64_147.node +0 -0
  763. package/node_modules/uWebSockets.js/uws_linux_arm64_127.node +0 -0
  764. package/node_modules/uWebSockets.js/uws_linux_arm64_137.node +0 -0
  765. package/node_modules/uWebSockets.js/uws_linux_arm64_147.node +0 -0
  766. package/node_modules/uWebSockets.js/uws_linux_x64_127.node +0 -0
  767. package/node_modules/uWebSockets.js/uws_linux_x64_137.node +0 -0
  768. package/node_modules/uWebSockets.js/uws_linux_x64_147.node +0 -0
  769. package/node_modules/uWebSockets.js/uws_win32_x64_127.node +0 -0
  770. package/node_modules/uWebSockets.js/uws_win32_x64_137.node +0 -0
  771. package/node_modules/uWebSockets.js/uws_win32_x64_147.node +0 -0
  772. package/node_modules/ws/LICENSE +20 -0
  773. package/node_modules/ws/README.md +548 -0
  774. package/node_modules/ws/browser.js +8 -0
  775. package/node_modules/ws/index.js +22 -0
  776. package/node_modules/ws/lib/buffer-util.js +131 -0
  777. package/node_modules/ws/lib/constants.js +19 -0
  778. package/node_modules/ws/lib/event-target.js +292 -0
  779. package/node_modules/ws/lib/extension.js +203 -0
  780. package/node_modules/ws/lib/limiter.js +55 -0
  781. package/node_modules/ws/lib/permessage-deflate.js +528 -0
  782. package/node_modules/ws/lib/receiver.js +743 -0
  783. package/node_modules/ws/lib/sender.js +607 -0
  784. package/node_modules/ws/lib/stream.js +161 -0
  785. package/node_modules/ws/lib/subprotocol.js +62 -0
  786. package/node_modules/ws/lib/validation.js +152 -0
  787. package/node_modules/ws/lib/websocket-server.js +562 -0
  788. package/node_modules/ws/lib/websocket.js +1407 -0
  789. package/node_modules/ws/package.json +74 -0
  790. package/node_modules/ws/wrapper.mjs +21 -0
  791. package/package.json +8 -20
  792. package/src/tardismachine.ts +15 -7
@@ -0,0 +1,370 @@
1
+ import { batch, getJSON, wait } from "../handy.js";
2
+ import { MultiConnectionRealTimeFeedBase, PoolingClientBase, RealTimeFeedBase } from "./realtimefeed.js";
3
+ const binanceHttpOptions = {
4
+ timeout: 10 * 1000,
5
+ retry: {
6
+ limit: 10,
7
+ statusCodes: [418, 429, 500, 403],
8
+ maxRetryAfter: 120 * 1000
9
+ }
10
+ };
11
+ const DEFAULT_OPEN_INTEREST_MIN_AVAILABLE_WEIGHT_BUFFER = 100;
12
+ const DEFAULT_OPEN_INTEREST_POLLING_INTERVAL_MS = 5 * 1000;
13
+ const OPEN_INTEREST_BATCH_SIZE = 10;
14
+ const OPEN_INTEREST_REQUEST_WEIGHT = 1;
15
+ const OPEN_INTEREST_POLLING_RECOVERY_MS = 1000;
16
+ const OPEN_INTEREST_MAX_POLLING_INTERVAL_MS = 60 * 1000;
17
+ const BINANCE_FUTURES_PUBLIC_CHANNELS = new Set(['bookTicker', 'depth', 'depthSnapshot', 'trade']);
18
+ const BINANCE_FUTURES_DEFAULT_WS_BASE_URL = 'wss://fstream.binance.com';
19
+ const BINANCE_FUTURES_PUBLIC_STREAM_PATH = '/public/stream';
20
+ const BINANCE_FUTURES_MARKET_STREAM_PATH = '/market/stream';
21
+ function parseBinanceWeightHeader(headerValue) {
22
+ if (headerValue === undefined) {
23
+ return undefined;
24
+ }
25
+ const parsed = Number.parseInt(headerValue, 10);
26
+ return Number.isFinite(parsed) ? parsed : undefined;
27
+ }
28
+ function getExchangeScopedNumberEnv(exchange, suffix, fallback) {
29
+ const envName = `${exchange.toUpperCase().replace(/-/g, '_')}_${suffix}`;
30
+ const rawValue = process.env[envName];
31
+ if (rawValue === undefined) {
32
+ return fallback;
33
+ }
34
+ const parsed = Number.parseInt(rawValue, 10);
35
+ return Number.isFinite(parsed) ? parsed : fallback;
36
+ }
37
+ function getExchangeScopedWssUrlEnv(exchange) {
38
+ const envName = `WSS_URL_${exchange.toUpperCase().replace(/-/g, '_')}`;
39
+ return process.env[envName];
40
+ }
41
+ function normalizeBinanceSplitWsBaseUrl(wssUrl) {
42
+ return wssUrl
43
+ .replace(/\/(public|market|private)\/stream$/u, '')
44
+ .replace(/\/stream$/u, '')
45
+ .replace(/\/(public|market|private)$/u, '');
46
+ }
47
+ function getBinanceFuturesWebSocketUrl(exchange, streamPath) {
48
+ const configuredWssUrl = getExchangeScopedWssUrlEnv(exchange) ?? BINANCE_FUTURES_DEFAULT_WS_BASE_URL;
49
+ const normalizedBaseUrl = normalizeBinanceSplitWsBaseUrl(configuredWssUrl);
50
+ return `${normalizedBaseUrl}${streamPath}`;
51
+ }
52
+ function getBinanceRequestWeightLimit(exchange, exchangeInfo) {
53
+ const configuredLimit = getExchangeScopedNumberEnv(exchange, 'REQUEST_WEIGHT_LIMIT', 0);
54
+ if (configuredLimit > 0) {
55
+ return configuredLimit;
56
+ }
57
+ const requestWeightLimit = exchangeInfo.rateLimits.find((d) => d.rateLimitType === 'REQUEST_WEIGHT')?.limit;
58
+ if (!requestWeightLimit) {
59
+ throw new Error('Failed to determine Binance REQUEST_WEIGHT limit');
60
+ }
61
+ return requestWeightLimit;
62
+ }
63
+ function getBinanceAvailableWeight(weightLimit, usedWeight, buffer) {
64
+ return weightLimit > 0 ? weightLimit - usedWeight - buffer : Infinity;
65
+ }
66
+ function getDelayToNextMinuteMS() {
67
+ const now = new Date();
68
+ return Math.max((61 - now.getUTCSeconds()) * 1000 - now.getUTCMilliseconds(), 1);
69
+ }
70
+ class BinanceRealTimeFeedBase extends MultiConnectionRealTimeFeedBase {
71
+ *_getRealTimeFeeds(exchange, filters, timeoutIntervalMS, onError) {
72
+ const wsFilters = filters.filter((f) => f.channel !== 'openInterest' && f.channel !== 'recentTrades' && f.channel !== 'fundingInfo' && f.channel !== 'insuranceBalance');
73
+ if (wsFilters.length > 0) {
74
+ yield new BinanceSingleConnectionRealTimeFeed(exchange, wsFilters, this.wssURL, this.httpURL, this.suffixes, this.depthRequestRequestWeight, timeoutIntervalMS, onError);
75
+ }
76
+ const openInterestFilters = filters.filter((f) => f.channel === 'openInterest');
77
+ if (openInterestFilters.length > 0) {
78
+ const instruments = openInterestFilters.flatMap((s) => s.symbols);
79
+ yield new BinanceFuturesOpenInterestClient(exchange, this.httpURL, instruments, onError);
80
+ }
81
+ }
82
+ }
83
+ class BinanceFuturesOpenInterestClient extends PoolingClientBase {
84
+ _exchange;
85
+ _httpURL;
86
+ _instruments;
87
+ _minPollingIntervalMS;
88
+ _minAvailableWeightBuffer;
89
+ _maxPollingIntervalMS;
90
+ _currentPollingIntervalMS;
91
+ _requestWeightLimit;
92
+ _usedWeight = 0;
93
+ constructor(_exchange, _httpURL, _instruments, onError) {
94
+ const minPollingIntervalMS = Math.max(getExchangeScopedNumberEnv(_exchange, 'OPEN_INTEREST_POLLING_INTERVAL_MS', DEFAULT_OPEN_INTEREST_POLLING_INTERVAL_MS), 1000);
95
+ super(_exchange, minPollingIntervalMS / 1000, onError);
96
+ this._exchange = _exchange;
97
+ this._httpURL = _httpURL;
98
+ this._instruments = _instruments;
99
+ this._minPollingIntervalMS = minPollingIntervalMS;
100
+ this._maxPollingIntervalMS = Math.max(this._minPollingIntervalMS, OPEN_INTEREST_MAX_POLLING_INTERVAL_MS);
101
+ this._currentPollingIntervalMS = minPollingIntervalMS;
102
+ this._requestWeightLimit = getExchangeScopedNumberEnv(_exchange, 'REQUEST_WEIGHT_LIMIT', 0);
103
+ this._minAvailableWeightBuffer = getExchangeScopedNumberEnv(_exchange, 'MIN_AVAILABLE_WEIGHT_BUFFER', DEFAULT_OPEN_INTEREST_MIN_AVAILABLE_WEIGHT_BUFFER);
104
+ }
105
+ getPoolingDelayMS() {
106
+ return this._currentPollingIntervalMS;
107
+ }
108
+ async poolDataToStream(outputStream) {
109
+ let waitedForRateLimit = false;
110
+ if (!this._requestWeightLimit) {
111
+ await this._initializeRateLimitInfo();
112
+ }
113
+ for (let index = 0; index < this._instruments.length;) {
114
+ if (outputStream.destroyed) {
115
+ return;
116
+ }
117
+ waitedForRateLimit = (await this._waitForAvailableWeight()) || waitedForRateLimit;
118
+ const batchSize = this._getBatchSize();
119
+ if (batchSize <= 0) {
120
+ break;
121
+ }
122
+ const instrumentsBatch = this._instruments.slice(index, index + batchSize);
123
+ index += instrumentsBatch.length;
124
+ const results = await Promise.allSettled(instrumentsBatch.map(async (instrument) => {
125
+ const openInterestResponse = await getJSON(`${this._httpURL}/openInterest?symbol=${instrument.toUpperCase()}`, binanceHttpOptions);
126
+ return {
127
+ instrument,
128
+ usedWeight: parseBinanceWeightHeader(openInterestResponse.headers['x-mbx-used-weight-1m']),
129
+ data: openInterestResponse.data
130
+ };
131
+ }));
132
+ let maxUsedWeight;
133
+ let fulfilledCount = 0;
134
+ for (const result of results) {
135
+ if (result.status === 'rejected') {
136
+ this._notifyError(result.reason);
137
+ continue;
138
+ }
139
+ fulfilledCount++;
140
+ maxUsedWeight = Math.max(maxUsedWeight ?? 0, result.value.usedWeight ?? 0);
141
+ if (outputStream.writable) {
142
+ outputStream.write({
143
+ stream: `${result.value.instrument.toLowerCase()}@openInterest`,
144
+ generated: true,
145
+ data: result.value.data
146
+ });
147
+ }
148
+ }
149
+ this._updateUsedWeight(maxUsedWeight || undefined, fulfilledCount * OPEN_INTEREST_REQUEST_WEIGHT);
150
+ }
151
+ if (waitedForRateLimit) {
152
+ this._currentPollingIntervalMS = Math.min(this._currentPollingIntervalMS + this._minPollingIntervalMS, this._maxPollingIntervalMS);
153
+ }
154
+ else {
155
+ this._currentPollingIntervalMS = Math.max(this._minPollingIntervalMS, this._currentPollingIntervalMS - OPEN_INTEREST_POLLING_RECOVERY_MS);
156
+ }
157
+ }
158
+ async _waitForAvailableWeight() {
159
+ const available = getBinanceAvailableWeight(this._requestWeightLimit, this._usedWeight, this._minAvailableWeightBuffer);
160
+ if (available >= OPEN_INTEREST_REQUEST_WEIGHT) {
161
+ return false;
162
+ }
163
+ const delayMS = getDelayToNextMinuteMS();
164
+ this.debug('open interest reached rate limit (limit: %s, used: %s, minimum available buffer: %s), waiting %s ms', this._requestWeightLimit, this._usedWeight, this._minAvailableWeightBuffer, delayMS);
165
+ await wait(delayMS);
166
+ // Binance request weight is tracked in a rolling 1-minute window. After waiting for the next minute
167
+ // we can resume and let the next REST response header refresh the exact current usage.
168
+ this._usedWeight = 0;
169
+ return true;
170
+ }
171
+ async _initializeRateLimitInfo() {
172
+ const exchangeInfoResponse = await getJSON(`${this._httpURL}/exchangeInfo`, binanceHttpOptions);
173
+ const exchangeInfo = exchangeInfoResponse.data;
174
+ this._requestWeightLimit = getBinanceRequestWeightLimit(this._exchange, exchangeInfo);
175
+ this._updateUsedWeight(parseBinanceWeightHeader(exchangeInfoResponse.headers['x-mbx-used-weight-1m']), OPEN_INTEREST_REQUEST_WEIGHT);
176
+ }
177
+ _getBatchSize() {
178
+ const available = getBinanceAvailableWeight(this._requestWeightLimit, this._usedWeight, this._minAvailableWeightBuffer);
179
+ return Math.min(OPEN_INTEREST_BATCH_SIZE, Math.max(0, Math.floor(available)));
180
+ }
181
+ _notifyError(error) {
182
+ const normalizedError = error instanceof Error ? error : new Error(String(error));
183
+ this.debug('open interest request error %o', normalizedError);
184
+ if (this.onError !== undefined) {
185
+ this.onError(normalizedError);
186
+ }
187
+ }
188
+ _updateUsedWeight(usedWeight, fallbackIncrement = OPEN_INTEREST_REQUEST_WEIGHT) {
189
+ if (usedWeight !== undefined) {
190
+ this._usedWeight = usedWeight;
191
+ return;
192
+ }
193
+ if (this._requestWeightLimit > 0 && fallbackIncrement > 0) {
194
+ this._usedWeight += fallbackIncrement;
195
+ }
196
+ }
197
+ }
198
+ class BinanceSingleConnectionRealTimeFeed extends RealTimeFeedBase {
199
+ wssURL;
200
+ _httpURL;
201
+ _suffixes;
202
+ _depthRequestRequestWeight;
203
+ constructor(exchange, filters, wssURL, _httpURL, _suffixes, _depthRequestRequestWeight, timeoutIntervalMS, onError) {
204
+ super(exchange, filters, timeoutIntervalMS, onError);
205
+ this.wssURL = wssURL;
206
+ this._httpURL = _httpURL;
207
+ this._suffixes = _suffixes;
208
+ this._depthRequestRequestWeight = _depthRequestRequestWeight;
209
+ }
210
+ mapToSubscribeMessages(filters) {
211
+ const payload = filters
212
+ .filter((f) => f.channel !== 'depthSnapshot')
213
+ .map((filter, index) => {
214
+ if (!filter.symbols || filter.symbols.length === 0) {
215
+ throw new Error('BinanceRealTimeFeed requires explicitly specified symbols when subscribing to live feed');
216
+ }
217
+ const suffix = this._suffixes[filter.channel];
218
+ const channel = suffix !== undefined ? `${filter.channel}@${suffix}` : filter.channel;
219
+ return {
220
+ method: 'SUBSCRIBE',
221
+ params: filter.symbols.map((symbol) => `${symbol}@${channel}`),
222
+ id: index + 1
223
+ };
224
+ });
225
+ return payload;
226
+ }
227
+ messageIsError(message) {
228
+ // subscription confirmation message
229
+ if (message.result === null) {
230
+ return false;
231
+ }
232
+ if (message.stream === undefined) {
233
+ return true;
234
+ }
235
+ if (message.error !== undefined) {
236
+ return true;
237
+ }
238
+ return false;
239
+ }
240
+ async provideManualSnapshots(filters, shouldCancel) {
241
+ const depthSnapshotFilter = filters.find((f) => f.channel === 'depthSnapshot');
242
+ if (!depthSnapshotFilter) {
243
+ return;
244
+ }
245
+ const exchangeInfoResponse = await getJSON(`${this._httpURL}/exchangeInfo`, binanceHttpOptions);
246
+ if (shouldCancel()) {
247
+ return;
248
+ }
249
+ const exchangeInfo = exchangeInfoResponse.data;
250
+ const DELAY_ENV = `${this._exchange.toUpperCase().replace(/-/g, '_')}_SNAPSHOTS_DELAY_MS`;
251
+ const currentWeightLimit = getBinanceRequestWeightLimit(this._exchange, exchangeInfo);
252
+ let usedWeight = Number.parseInt(exchangeInfoResponse.headers['x-mbx-used-weight-1m']);
253
+ this.debug('current x-mbx-used-weight-1m limit: %s, already used weight: %s', currentWeightLimit, usedWeight);
254
+ let concurrencyLimit = 4;
255
+ const CONCURRENCY_LIMIT_WEIGHT_ENV = `${this._exchange.toUpperCase().replace(/-/g, '_')}_CONCURRENCY_LIMIT`;
256
+ if (process.env[CONCURRENCY_LIMIT_WEIGHT_ENV] !== undefined) {
257
+ concurrencyLimit = Number.parseInt(process.env[CONCURRENCY_LIMIT_WEIGHT_ENV]);
258
+ }
259
+ this.debug('current snapshots requests concurrency limit: %s', concurrencyLimit);
260
+ const minWeightBuffer = getExchangeScopedNumberEnv(this._exchange, 'MIN_AVAILABLE_WEIGHT_BUFFER', 2 * concurrencyLimit * this._depthRequestRequestWeight);
261
+ for (const symbolsBatch of batch(depthSnapshotFilter.symbols, concurrencyLimit)) {
262
+ if (shouldCancel()) {
263
+ return;
264
+ }
265
+ this.debug('requesting manual snapshots for: %s', symbolsBatch);
266
+ const usedWeights = await Promise.all(symbolsBatch.map(async (symbol) => {
267
+ if (shouldCancel()) {
268
+ return 0;
269
+ }
270
+ const isOverRateLimit = getBinanceAvailableWeight(currentWeightLimit, usedWeight, minWeightBuffer) < 0;
271
+ if (isOverRateLimit) {
272
+ const delayMS = getDelayToNextMinuteMS();
273
+ this.debug('reached rate limit (x-mbx-used-weight-1m limit: %s, used weight: %s, minimum available weight buffer: %s), waiting: %s seconds', currentWeightLimit, usedWeight, minWeightBuffer, Math.ceil(delayMS / 1000));
274
+ await wait(delayMS);
275
+ }
276
+ if (shouldCancel()) {
277
+ return 0;
278
+ }
279
+ const depthSnapshotResponse = await getJSON(`${this._httpURL}/depth?symbol=${symbol.toUpperCase()}&limit=1000`, binanceHttpOptions);
280
+ if (shouldCancel()) {
281
+ return 0;
282
+ }
283
+ const snapshot = {
284
+ stream: `${symbol}@depthSnapshot`,
285
+ generated: true,
286
+ data: depthSnapshotResponse.data
287
+ };
288
+ this.manualSnapshotsBuffer.push(snapshot);
289
+ if (process.env[DELAY_ENV] !== undefined) {
290
+ const msToWait = Number.parseInt(process.env[DELAY_ENV]);
291
+ await wait(msToWait);
292
+ }
293
+ return Number.parseInt(depthSnapshotResponse.headers['x-mbx-used-weight-1m']);
294
+ }));
295
+ usedWeight = Math.max(...usedWeights);
296
+ this.debug('requested manual snapshots successfully for: %s, used weight: %s', symbolsBatch, usedWeight);
297
+ }
298
+ this.debug('requested all manual snapshots successfully');
299
+ }
300
+ }
301
+ class BinanceFuturesSingleConnectionRealTimeFeed extends BinanceSingleConnectionRealTimeFeed {
302
+ _streamPath;
303
+ constructor(exchange, filters, _streamPath, httpURL, suffixes, depthRequestRequestWeight, timeoutIntervalMS, onError) {
304
+ super(exchange, filters, getBinanceFuturesWebSocketUrl(exchange, _streamPath), httpURL, suffixes, depthRequestRequestWeight, timeoutIntervalMS, onError);
305
+ this._streamPath = _streamPath;
306
+ }
307
+ async getWebSocketUrl() {
308
+ return getBinanceFuturesWebSocketUrl(this._exchange, this._streamPath);
309
+ }
310
+ }
311
+ export class BinanceRealTimeFeed extends BinanceRealTimeFeedBase {
312
+ wssURL = 'wss://stream.binance.com/stream?timeUnit=microsecond';
313
+ httpURL = 'https://api.binance.com/api/v1';
314
+ suffixes = {
315
+ depth: '100ms'
316
+ };
317
+ depthRequestRequestWeight = 10;
318
+ }
319
+ export class BinanceJerseyRealTimeFeed extends BinanceRealTimeFeedBase {
320
+ wssURL = 'wss://stream.binance.je:9443/stream';
321
+ httpURL = 'https://api.binance.je/api/v1';
322
+ suffixes = {
323
+ depth: '100ms'
324
+ };
325
+ depthRequestRequestWeight = 10;
326
+ }
327
+ export class BinanceUSRealTimeFeed extends BinanceRealTimeFeedBase {
328
+ wssURL = 'wss://stream.binance.us:9443/stream';
329
+ httpURL = 'https://api.binance.us/api/v1';
330
+ suffixes = {
331
+ depth: '100ms'
332
+ };
333
+ depthRequestRequestWeight = 10;
334
+ }
335
+ export class BinanceFuturesRealTimeFeed extends BinanceRealTimeFeedBase {
336
+ wssURL = `${BINANCE_FUTURES_DEFAULT_WS_BASE_URL}${BINANCE_FUTURES_PUBLIC_STREAM_PATH}`;
337
+ httpURL = 'https://fapi.binance.com/fapi/v1';
338
+ suffixes = {
339
+ depth: '0ms',
340
+ markPrice: '1s'
341
+ };
342
+ depthRequestRequestWeight = 20;
343
+ *_getRealTimeFeeds(exchange, filters, timeoutIntervalMS, onError) {
344
+ const wsFilters = filters.filter((f) => f.channel !== 'openInterest' && f.channel !== 'recentTrades' && f.channel !== 'fundingInfo' && f.channel !== 'insuranceBalance');
345
+ const publicWsFilters = wsFilters.filter((f) => BINANCE_FUTURES_PUBLIC_CHANNELS.has(f.channel));
346
+ if (publicWsFilters.length > 0) {
347
+ yield new BinanceFuturesSingleConnectionRealTimeFeed(exchange, publicWsFilters, BINANCE_FUTURES_PUBLIC_STREAM_PATH, this.httpURL, this.suffixes, this.depthRequestRequestWeight, timeoutIntervalMS, onError);
348
+ }
349
+ const marketWsFilters = wsFilters.filter((f) => BINANCE_FUTURES_PUBLIC_CHANNELS.has(f.channel) === false);
350
+ if (marketWsFilters.length > 0) {
351
+ yield new BinanceFuturesSingleConnectionRealTimeFeed(exchange, marketWsFilters, BINANCE_FUTURES_MARKET_STREAM_PATH, this.httpURL, this.suffixes, this.depthRequestRequestWeight, timeoutIntervalMS, onError);
352
+ }
353
+ const openInterestFilters = filters.filter((f) => f.channel === 'openInterest');
354
+ if (openInterestFilters.length > 0) {
355
+ const instruments = openInterestFilters.flatMap((s) => s.symbols);
356
+ yield new BinanceFuturesOpenInterestClient(exchange, this.httpURL, instruments, onError);
357
+ }
358
+ }
359
+ }
360
+ export class BinanceDeliveryRealTimeFeed extends BinanceRealTimeFeedBase {
361
+ wssURL = 'wss://dstream.binance.com/stream';
362
+ httpURL = 'https://dapi.binance.com/dapi/v1';
363
+ suffixes = {
364
+ depth: '0ms',
365
+ markPrice: '1s',
366
+ indexPrice: '1s'
367
+ };
368
+ depthRequestRequestWeight = 20;
369
+ }
370
+ //# sourceMappingURL=binance.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"binance.js","sourceRoot":"","sources":["../../src/realtimefeeds/binance.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAElD,OAAO,EAAE,+BAA+B,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AAExG,MAAM,kBAAkB,GAAG;IACzB,OAAO,EAAE,EAAE,GAAG,IAAI;IAClB,KAAK,EAAE;QACL,KAAK,EAAE,EAAE;QACT,WAAW,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;QACjC,aAAa,EAAE,GAAG,GAAG,IAAI;KAC1B;CACF,CAAA;AAED,MAAM,iDAAiD,GAAG,GAAG,CAAA;AAC7D,MAAM,yCAAyC,GAAG,CAAC,GAAG,IAAI,CAAA;AAC1D,MAAM,wBAAwB,GAAG,EAAE,CAAA;AACnC,MAAM,4BAA4B,GAAG,CAAC,CAAA;AACtC,MAAM,iCAAiC,GAAG,IAAI,CAAA;AAC9C,MAAM,qCAAqC,GAAG,EAAE,GAAG,IAAI,CAAA;AACvD,MAAM,+BAA+B,GAAG,IAAI,GAAG,CAAC,CAAC,YAAY,EAAE,OAAO,EAAE,eAAe,EAAE,OAAO,CAAC,CAAC,CAAA;AAClG,MAAM,mCAAmC,GAAG,2BAA2B,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c,CAAC,CAAA;QAC/E,IAAI,mBAAmB,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACnC,MAAM,WAAW,GAAG,mBAAmB,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAQ,CAAC,CAAA;YAElE,MAAM,IAAI,gCAAgC,CAAC,QAAQ,EAAE,IAAI,CAAC,OAAO,EAAE,WAAW,EAAE,OAAO,CAAC,CAAA;QAC1F,CAAC;IACH,CAAC;CACF;AAED,MAAM,OAAO,2BAA4B,SAAQ,uBAAuB;IAC5D,MAAM,GAAG,kCAAkC,CAAA;IAC3C,OAAO,GAAG,kCAAkC,CAAA;IAE5C,QAAQ,GAAG;QACnB,KAAK,EAAE,KAAK;QACZ,SAAS,EAAE,IAAI;QACf,UAAU,EAAE,IAAI;KACjB,CAAA;IAES,yBAAyB,GAAG,EAAE,CAAA;CACzC"}
@@ -0,0 +1,14 @@
1
+ import { Filter } from '../types.ts';
2
+ import { RealTimeFeedBase } from './realtimefeed.ts';
3
+ export declare class BinanceDexRealTimeFeed extends RealTimeFeedBase {
4
+ protected wssURL: string;
5
+ protected httpURL: string;
6
+ protected mapToSubscribeMessages(filters: Filter<string>[]): {
7
+ method: string;
8
+ topic: string;
9
+ symbols: string[];
10
+ }[];
11
+ protected messageIsError(message: any): boolean;
12
+ protected provideManualSnapshots(filters: Filter<string>[], shouldCancel: () => boolean): Promise<void>;
13
+ }
14
+ //# sourceMappingURL=binancedex.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"binancedex.d.ts","sourceRoot":"","sources":["../../src/realtimefeeds/binancedex.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACpC,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AAEpD,qBAAa,sBAAuB,SAAQ,gBAAgB;IAC1D,SAAS,CAAC,MAAM,SAAiC;IACjD,SAAS,CAAC,OAAO,SAAmC;IAEpD,SAAS,CAAC,sBAAsB,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE;;;;;IAgB1D,SAAS,CAAC,cAAc,CAAC,OAAO,EAAE,GAAG,GAAG,OAAO;cAQ/B,sBAAsB,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,YAAY,EAAE,MAAM,OAAO;CA+B9F"}
@@ -0,0 +1,53 @@
1
+ import { getJSON } from "../handy.js";
2
+ import { RealTimeFeedBase } from "./realtimefeed.js";
3
+ export class BinanceDexRealTimeFeed extends RealTimeFeedBase {
4
+ wssURL = 'wss://dex.binance.org/api/ws';
5
+ httpURL = 'https://dex.binance.org/api/v1';
6
+ mapToSubscribeMessages(filters) {
7
+ return filters
8
+ .filter((f) => f.channel !== 'depthSnapshot')
9
+ .map((filter) => {
10
+ if (!filter.symbols || filter.symbols.length === 0) {
11
+ throw new Error('BinanceDexRealTimeFeed requires explicitly specified symbols when subscribing to live feed');
12
+ }
13
+ return {
14
+ method: 'subscribe',
15
+ topic: filter.channel,
16
+ symbols: filter.symbols
17
+ };
18
+ });
19
+ }
20
+ messageIsError(message) {
21
+ if (message.stream === undefined) {
22
+ return true;
23
+ }
24
+ return false;
25
+ }
26
+ async provideManualSnapshots(filters, shouldCancel) {
27
+ const depthSnapshotFilter = filters.find((f) => f.channel === 'depthSnapshot');
28
+ if (!depthSnapshotFilter) {
29
+ return;
30
+ }
31
+ this.debug('requesting manual snapshots for: %s', depthSnapshotFilter.symbols);
32
+ for (let symbol of depthSnapshotFilter.symbols) {
33
+ if (shouldCancel()) {
34
+ return;
35
+ }
36
+ const { data } = await getJSON(`${this.httpURL}/depth?symbol=${symbol}&limit=1000`);
37
+ if (shouldCancel()) {
38
+ return;
39
+ }
40
+ const snapshot = {
41
+ stream: `depthSnapshot`,
42
+ generated: true,
43
+ data: {
44
+ symbol,
45
+ ...data
46
+ }
47
+ };
48
+ this.manualSnapshotsBuffer.push(snapshot);
49
+ }
50
+ this.debug('requested manual snapshots successfully for: %s ', depthSnapshotFilter.symbols);
51
+ }
52
+ }
53
+ //# sourceMappingURL=binancedex.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"binancedex.js","sourceRoot":"","sources":["../../src/realtimefeeds/binancedex.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAErC,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AAEpD,MAAM,OAAO,sBAAuB,SAAQ,gBAAgB;IAChD,MAAM,GAAG,8BAA8B,CAAA;IACvC,OAAO,GAAG,gCAAgC,CAAA;IAE1C,sBAAsB,CAAC,OAAyB;QACxD,OAAO,OAAO;aACX,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,KAAK,eAAe,CAAC;aAC5C,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE;YACd,IAAI,CAAC,MAAM,CAAC,OAAO,IAAI,MAAM,CAAC,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;gBACnD,MAAM,IAAI,KAAK,CAAC,4FAA4F,CAAC,CAAA;YAC/G,CAAC;YAED,OAAO;gBACL,MAAM,EAAE,WAAW;gBACnB,KAAK,EAAE,MAAM,CAAC,OAAO;gBACrB,OAAO,EAAE,MAAM,CAAC,OAAO;aACxB,CAAA;QACH,CAAC,CAAC,CAAA;IACN,CAAC;IAES,cAAc,CAAC,OAAY;QACnC,IAAI,OAAO,CAAC,MAAM,KAAK,SAAS,EAAE,CAAC;YACjC,OAAO,IAAI,CAAA;QACb,CAAC;QAED,OAAO,KAAK,CAAA;IACd,CAAC;IAES,KAAK,CAAC,sBAAsB,CAAC,OAAyB,EAAE,YAA2B;QAC3F,MAAM,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,KAAK,eAAe,CAAC,CAAA;QAC9E,IAAI,CAAC,mBAAmB,EAAE,CAAC;YACzB,OAAM;QACR,CAAC;QACD,IAAI,CAAC,KAAK,CAAC,qCAAqC,EAAE,mBAAmB,CAAC,OAAQ,CAAC,CAAA;QAE/E,KAAK,IAAI,MAAM,IAAI,mBAAmB,CAAC,OAAQ,EAAE,CAAC;YAChD,IAAI,YAAY,EAAE,EAAE,CAAC;gBACnB,OAAM;YACR,CAAC;YAED,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,OAAO,CAAM,GAAG,IAAI,CAAC,OAAO,iBAAiB,MAAM,aAAa,CAAC,CAAA;YACxF,IAAI,YAAY,EAAE,EAAE,CAAC;gBACnB,OAAM;YACR,CAAC;YAED,MAAM,QAAQ,GAAG;gBACf,MAAM,EAAE,eAAe;gBACvB,SAAS,EAAE,IAAI;gBACf,IAAI,EAAE;oBACJ,MAAM;oBACN,GAAG,IAAI;iBACR;aACF,CAAA;YAED,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;QAC3C,CAAC;QAED,IAAI,CAAC,KAAK,CAAC,kDAAkD,EAAE,mBAAmB,CAAC,OAAQ,CAAC,CAAA;IAC9F,CAAC;CACF"}
@@ -0,0 +1,14 @@
1
+ import { Filter } from '../types.ts';
2
+ import { MultiConnectionRealTimeFeedBase, RealTimeFeedBase } from './realtimefeed.ts';
3
+ export declare class BinanceEuropeanOptionsRealTimeFeed extends MultiConnectionRealTimeFeedBase {
4
+ protected _getRealTimeFeeds(exchange: string, filters: Filter<string>[], timeoutIntervalMS?: number, onError?: (error: Error) => void): Generator<BinanceEuropeanOptionsSingleFeed, void, unknown>;
5
+ }
6
+ declare class BinanceEuropeanOptionsSingleFeed extends RealTimeFeedBase {
7
+ protected wssURL: string;
8
+ private readonly _allFilters;
9
+ constructor(wssURL: string, exchange: string, filters: Filter<string>[], _allFilters: Filter<string>[], timeoutIntervalMS: number | undefined, onError?: (error: Error) => void);
10
+ protected mapToSubscribeMessages(filters: Filter<string>[]): any[];
11
+ protected messageIsError(message: any): boolean;
12
+ }
13
+ export {};
14
+ //# sourceMappingURL=binanceeuropeanoptions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"binanceeuropeanoptions.d.ts","sourceRoot":"","sources":["../../src/realtimefeeds/binanceeuropeanoptions.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACpC,OAAO,EAAE,+BAA+B,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AAErF,qBAAa,kCAAmC,SAAQ,+BAA+B;IACrF,SAAS,CAAE,iBAAiB,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,iBAAiB,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI;CAiCvI;AAED,cAAM,gCAAiC,SAAQ,gBAAgB;IAE3D,SAAS,CAAC,MAAM,EAAE,MAAM;IAGxB,OAAO,CAAC,QAAQ,CAAC,WAAW;gBAHlB,MAAM,EAAE,MAAM,EACxB,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,EACR,WAAW,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,EAC9C,iBAAiB,EAAE,MAAM,GAAG,SAAS,EACrC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI;IAKlC,SAAS,CAAC,sBAAsB,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,GAAG,GAAG,EAAE;IAwElE,SAAS,CAAC,cAAc,CAAC,OAAO,EAAE,GAAG,GAAG,OAAO;CAOhD"}
@@ -0,0 +1,95 @@
1
+ import { onlyUnique } from "../handy.js";
2
+ import { MultiConnectionRealTimeFeedBase, RealTimeFeedBase } from "./realtimefeed.js";
3
+ export class BinanceEuropeanOptionsRealTimeFeed extends MultiConnectionRealTimeFeedBase {
4
+ *_getRealTimeFeeds(exchange, filters, timeoutIntervalMS, onError) {
5
+ // V2 API uses two separate WebSocket endpoints:
6
+ // 1. Public path: for optionTrade, depth20, bookTicker, optionTicker
7
+ // 2. Market path: for optionIndexPrice, optionMarkPrice, optionOpenInterest
8
+ const publicChannels = ['optionTrade', 'depth20', 'bookTicker', 'optionTicker'];
9
+ const marketChannels = ['optionIndexPrice', 'optionMarkPrice', 'optionOpenInterest'];
10
+ const publicFilters = filters.filter((f) => publicChannels.includes(f.channel));
11
+ const marketFilters = filters.filter((f) => marketChannels.includes(f.channel));
12
+ if (publicFilters.length > 0) {
13
+ yield new BinanceEuropeanOptionsSingleFeed('wss://fstream.binance.com/public/stream', exchange, publicFilters, filters, // Pass all filters so we can look up optionTicker when processing optionOpenInterest
14
+ timeoutIntervalMS, onError);
15
+ }
16
+ if (marketFilters.length > 0) {
17
+ yield new BinanceEuropeanOptionsSingleFeed('wss://fstream.binance.com/market/stream', exchange, marketFilters, filters, // Pass all filters so we can look up optionTicker when processing optionOpenInterest
18
+ timeoutIntervalMS, onError);
19
+ }
20
+ }
21
+ }
22
+ class BinanceEuropeanOptionsSingleFeed extends RealTimeFeedBase {
23
+ wssURL;
24
+ _allFilters;
25
+ constructor(wssURL, exchange, filters, _allFilters, timeoutIntervalMS, onError) {
26
+ super(exchange, filters, timeoutIntervalMS, onError);
27
+ this.wssURL = wssURL;
28
+ this._allFilters = _allFilters;
29
+ }
30
+ mapToSubscribeMessages(filters) {
31
+ const payload = filters.map((filter, index) => {
32
+ if (!filter.symbols || filter.symbols.length === 0) {
33
+ throw new Error('BinanceEuropeanOptionsRealTimeFeed requires explicitly specified symbols when subscribing to live feed');
34
+ }
35
+ return {
36
+ method: 'SUBSCRIBE',
37
+ params: filter.symbols
38
+ .map((symbol) => {
39
+ const lowerSymbol = symbol.toLowerCase();
40
+ // Public path channels - use lowercase symbol directly
41
+ if (filter.channel === 'optionTrade') {
42
+ return [`${lowerSymbol}@${filter.channel}`];
43
+ }
44
+ if (filter.channel === 'depth20') {
45
+ return [`${lowerSymbol}@${filter.channel}@100ms`];
46
+ }
47
+ if (filter.channel === 'bookTicker') {
48
+ return [`${lowerSymbol}@${filter.channel}`];
49
+ }
50
+ if (filter.channel === 'optionTicker') {
51
+ return [`${lowerSymbol}@${filter.channel}`];
52
+ }
53
+ // Market path channels - use lowercase underlying
54
+ if (filter.channel === 'optionIndexPrice' || filter.channel === 'optionMarkPrice') {
55
+ // Symbol is the underlying (e.g., 'btcusdt')
56
+ return [`${lowerSymbol}@${filter.channel}`];
57
+ }
58
+ if (filter.channel === 'optionOpenInterest') {
59
+ // Need to extract expirations from option symbols
60
+ // The symbol here is the underlying (e.g., 'btcusdt')
61
+ // We need to find all option symbols that match this underlying to extract expirations
62
+ // Look for optionTicker filter in all filters to get actual option symbols
63
+ const optionTickerFilter = this._allFilters.find((f) => f.channel === 'optionTicker');
64
+ if (optionTickerFilter !== undefined) {
65
+ // Extract expirations from option symbols that match this underlying
66
+ const underlyingBase = lowerSymbol.replace('usdt', '').toUpperCase();
67
+ const expirations = optionTickerFilter
68
+ .symbols.filter((s) => s.toUpperCase().startsWith(underlyingBase + '-'))
69
+ .map((s) => {
70
+ const symbolParts = s.split('-');
71
+ return symbolParts[1]; // Extract expiration (e.g., '251219')
72
+ })
73
+ .filter(onlyUnique)
74
+ .map((exp) => exp.toLowerCase());
75
+ return expirations.map((expiration) => {
76
+ return `${lowerSymbol}@${filter.channel}@${expiration}`;
77
+ });
78
+ }
79
+ }
80
+ return [`${lowerSymbol}@${filter.channel}`];
81
+ })
82
+ .flatMap((s) => s),
83
+ id: index + 1
84
+ };
85
+ });
86
+ return payload;
87
+ }
88
+ messageIsError(message) {
89
+ if (message.data !== undefined && message.data.e === 'error') {
90
+ return true;
91
+ }
92
+ return false;
93
+ }
94
+ }
95
+ //# sourceMappingURL=binanceeuropeanoptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"binanceeuropeanoptions.js","sourceRoot":"","sources":["../../src/realtimefeeds/binan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I,UAAU,EAAE,CAAA;4BACzD,CAAC,CAAC,CAAA;wBACJ,CAAC;oBACH,CAAC;oBAED,OAAO,CAAC,GAAG,WAAW,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC,CAAA;gBAC7C,CAAC,CAAC;qBACD,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;gBACpB,EAAE,EAAE,KAAK,GAAG,CAAC;aACd,CAAA;QACH,CAAC,CAAC,CAAA;QAEF,OAAO,OAAO,CAAA;IAChB,CAAC;IAES,cAAc,CAAC,OAAY;QACnC,IAAI,OAAO,CAAC,IAAI,KAAK,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC,KAAK,OAAO,EAAE,CAAC;YAC7D,OAAO,IAAI,CAAA;QACb,CAAC;QAED,OAAO,KAAK,CAAA;IACd,CAAC;CACF"}
@@ -0,0 +1,36 @@
1
+ import { Filter } from '../types.ts';
2
+ import { RealTimeFeedBase } from './realtimefeed.ts';
3
+ export declare class BitfinexRealTimeFeed extends RealTimeFeedBase {
4
+ protected wssURL: string;
5
+ protected mapToSubscribeMessages(filters: Filter<string>[]): ({
6
+ event: string;
7
+ flags: number;
8
+ } | {
9
+ event: string;
10
+ channel: string;
11
+ symbol: string;
12
+ len?: undefined;
13
+ prec?: undefined;
14
+ freq?: undefined;
15
+ key?: undefined;
16
+ } | {
17
+ event: string;
18
+ channel: string;
19
+ len: number;
20
+ prec: string;
21
+ freq: string;
22
+ symbol: string;
23
+ key?: undefined;
24
+ } | {
25
+ event: string;
26
+ channel: string;
27
+ key: string;
28
+ symbol?: undefined;
29
+ len?: undefined;
30
+ prec?: undefined;
31
+ freq?: undefined;
32
+ } | undefined)[];
33
+ protected messageIsError(message: any): boolean;
34
+ protected messageIsHeartbeat(message: any): boolean;
35
+ }
36
+ //# sourceMappingURL=bitfinex.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bitfinex.d.ts","sourceRoot":"","sources":["../../src/realtimefeeds/bitfinex.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACpC,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AAIpD,qBAAa,oBAAqB,SAAQ,gBAAgB;IACxD,SAAS,CAAC,MAAM,SAAoC;IAEpD,SAAS,CAAC,sBAAsB,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAmE1D,SAAS,CAAC,cAAc,CAAC,OAAO,EAAE,GAAG;IAIrC,SAAS,CAAC,kBAAkB,CAAC,OAAO,EAAE,GAAG;CAG1C"}