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.
- package/bin/tardis-machine.js +68 -57
- package/dist/tardismachine.d.ts.map +1 -1
- package/dist/tardismachine.js +13 -6
- package/dist/tardismachine.js.map +1 -1
- package/node_modules/debug/LICENSE +20 -0
- package/node_modules/debug/README.md +481 -0
- package/node_modules/debug/package.json +64 -0
- package/node_modules/debug/src/browser.js +272 -0
- package/node_modules/debug/src/common.js +292 -0
- package/node_modules/debug/src/index.js +10 -0
- package/node_modules/debug/src/node.js +263 -0
- package/node_modules/follow-redirects/LICENSE +18 -0
- package/node_modules/follow-redirects/README.md +157 -0
- package/node_modules/follow-redirects/debug.js +15 -0
- package/node_modules/follow-redirects/http.js +1 -0
- package/node_modules/follow-redirects/https.js +1 -0
- package/node_modules/follow-redirects/index.js +709 -0
- package/node_modules/follow-redirects/package.json +58 -0
- package/node_modules/long/LICENSE +202 -0
- package/node_modules/long/README.md +286 -0
- package/node_modules/long/index.d.ts +2 -0
- package/node_modules/long/index.js +1581 -0
- package/node_modules/long/package.json +58 -0
- package/node_modules/long/types.d.ts +474 -0
- package/node_modules/long/umd/index.d.ts +3 -0
- package/node_modules/long/umd/index.js +1622 -0
- package/node_modules/long/umd/package.json +3 -0
- package/node_modules/long/umd/types.d.ts +474 -0
- package/node_modules/ms/index.js +162 -0
- package/node_modules/ms/license.md +21 -0
- package/node_modules/ms/package.json +38 -0
- package/node_modules/ms/readme.md +59 -0
- package/node_modules/protobufjs/LICENSE +39 -0
- package/node_modules/protobufjs/README.md +440 -0
- package/node_modules/protobufjs/dist/light/protobuf.js +9276 -0
- package/node_modules/protobufjs/dist/light/protobuf.js.map +1 -0
- package/node_modules/protobufjs/dist/light/protobuf.min.js +8 -0
- package/node_modules/protobufjs/dist/light/protobuf.min.js.map +1 -0
- package/node_modules/protobufjs/dist/minimal/protobuf.js +3556 -0
- package/node_modules/protobufjs/dist/minimal/protobuf.js.map +1 -0
- package/node_modules/protobufjs/dist/minimal/protobuf.min.js +8 -0
- package/node_modules/protobufjs/dist/minimal/protobuf.min.js.map +1 -0
- package/node_modules/protobufjs/dist/protobuf.js +11233 -0
- package/node_modules/protobufjs/dist/protobuf.js.map +1 -0
- package/node_modules/protobufjs/dist/protobuf.min.js +8 -0
- package/node_modules/protobufjs/dist/protobuf.min.js.map +1 -0
- package/node_modules/protobufjs/ext/README.md +70 -0
- package/node_modules/protobufjs/ext/debug/README.md +4 -0
- package/node_modules/protobufjs/ext/debug/index.js +71 -0
- package/node_modules/protobufjs/ext/descriptor/README.md +5 -0
- package/node_modules/protobufjs/ext/descriptor/index.d.ts +2 -0
- package/node_modules/protobufjs/ext/descriptor/index.js +2 -0
- package/node_modules/protobufjs/ext/descriptor.d.ts +87 -0
- package/node_modules/protobufjs/ext/descriptor.generated.d.ts +417 -0
- package/node_modules/protobufjs/ext/descriptor.js +1356 -0
- package/node_modules/protobufjs/ext/protojson.LICENSE +201 -0
- package/node_modules/protobufjs/ext/protojson.d.ts +20 -0
- package/node_modules/protobufjs/ext/protojson.generated.d.ts +49 -0
- package/node_modules/protobufjs/ext/protojson.js +951 -0
- package/node_modules/protobufjs/ext/textformat.d.ts +19 -0
- package/node_modules/protobufjs/ext/textformat.generated.d.ts +33 -0
- package/node_modules/protobufjs/ext/textformat.js +1276 -0
- package/node_modules/protobufjs/google/LICENSE +27 -0
- package/node_modules/protobufjs/google/README.md +1 -0
- package/node_modules/protobufjs/google/api/annotations.json +85 -0
- package/node_modules/protobufjs/google/api/annotations.proto +11 -0
- package/node_modules/protobufjs/google/api/http.json +87 -0
- package/node_modules/protobufjs/google/api/http.proto +31 -0
- package/node_modules/protobufjs/google/protobuf/api.json +124 -0
- package/node_modules/protobufjs/google/protobuf/api.proto +34 -0
- package/node_modules/protobufjs/google/protobuf/compiler/plugin.json +126 -0
- package/node_modules/protobufjs/google/protobuf/compiler/plugin.proto +47 -0
- package/node_modules/protobufjs/google/protobuf/descriptor.json +1465 -0
- package/node_modules/protobufjs/google/protobuf/descriptor.proto +527 -0
- package/node_modules/protobufjs/google/protobuf/source_context.json +21 -0
- package/node_modules/protobufjs/google/protobuf/source_context.proto +7 -0
- package/node_modules/protobufjs/google/protobuf/type.json +209 -0
- package/node_modules/protobufjs/google/protobuf/type.proto +89 -0
- package/node_modules/protobufjs/index.d.ts +3203 -0
- package/node_modules/protobufjs/index.js +4 -0
- package/node_modules/protobufjs/light.d.ts +2 -0
- package/node_modules/protobufjs/light.js +4 -0
- package/node_modules/protobufjs/minimal.d.ts +2 -0
- package/node_modules/protobufjs/minimal.js +4 -0
- package/node_modules/protobufjs/package.json +93 -0
- package/node_modules/protobufjs/src/common.js +405 -0
- package/node_modules/protobufjs/src/converter.js +352 -0
- package/node_modules/protobufjs/src/decoder.js +279 -0
- package/node_modules/protobufjs/src/encoder.js +123 -0
- package/node_modules/protobufjs/src/enum.js +239 -0
- package/node_modules/protobufjs/src/field.js +505 -0
- package/node_modules/protobufjs/src/index-light.js +104 -0
- package/node_modules/protobufjs/src/index-minimal.js +35 -0
- package/node_modules/protobufjs/src/index.js +12 -0
- package/node_modules/protobufjs/src/mapfield.js +144 -0
- package/node_modules/protobufjs/src/message.js +137 -0
- package/node_modules/protobufjs/src/method.js +183 -0
- package/node_modules/protobufjs/src/namespace.js +574 -0
- package/node_modules/protobufjs/src/object.js +392 -0
- package/node_modules/protobufjs/src/oneof.js +233 -0
- package/node_modules/protobufjs/src/parse.js +1111 -0
- package/node_modules/protobufjs/src/reader.js +788 -0
- package/node_modules/protobufjs/src/reader_buffer.js +77 -0
- package/node_modules/protobufjs/src/root.js +424 -0
- package/node_modules/protobufjs/src/roots.js +18 -0
- package/node_modules/protobufjs/src/rpc/service.js +155 -0
- package/node_modules/protobufjs/src/rpc.js +36 -0
- package/node_modules/protobufjs/src/service.js +206 -0
- package/node_modules/protobufjs/src/tokenize.js +421 -0
- package/node_modules/protobufjs/src/type.js +676 -0
- package/node_modules/protobufjs/src/types.js +196 -0
- package/node_modules/protobufjs/src/typescript.js +25 -0
- package/node_modules/protobufjs/src/util/aspromise.d.ts +13 -0
- package/node_modules/protobufjs/src/util/aspromise.js +52 -0
- package/node_modules/protobufjs/src/util/base64.d.ts +32 -0
- package/node_modules/protobufjs/src/util/base64.js +146 -0
- package/node_modules/protobufjs/src/util/codegen.d.ts +31 -0
- package/node_modules/protobufjs/src/util/codegen.js +118 -0
- package/node_modules/protobufjs/src/util/eventemitter.d.ts +45 -0
- package/node_modules/protobufjs/src/util/eventemitter.js +86 -0
- package/node_modules/protobufjs/src/util/fetch.d.ts +56 -0
- package/node_modules/protobufjs/src/util/fetch.js +112 -0
- package/node_modules/protobufjs/src/util/float.d.ts +83 -0
- package/node_modules/protobufjs/src/util/float.js +335 -0
- package/node_modules/protobufjs/src/util/fs.js +11 -0
- package/node_modules/protobufjs/src/util/longbits.js +204 -0
- package/node_modules/protobufjs/src/util/minimal.js +511 -0
- package/node_modules/protobufjs/src/util/path.d.ts +22 -0
- package/node_modules/protobufjs/src/util/path.js +100 -0
- package/node_modules/protobufjs/src/util/patterns.js +7 -0
- package/node_modules/protobufjs/src/util/pool.d.ts +32 -0
- package/node_modules/protobufjs/src/util/pool.js +48 -0
- package/node_modules/protobufjs/src/util/utf8.d.ts +24 -0
- package/node_modules/protobufjs/src/util/utf8.js +190 -0
- package/node_modules/protobufjs/src/util.js +264 -0
- package/node_modules/protobufjs/src/verifier.js +185 -0
- package/node_modules/protobufjs/src/wrappers.js +106 -0
- package/node_modules/protobufjs/src/writer.js +700 -0
- package/node_modules/protobufjs/src/writer_buffer.js +100 -0
- package/node_modules/protobufjs/tsconfig.json +6 -0
- package/node_modules/tardis-dev/LICENSE +373 -0
- package/node_modules/tardis-dev/README.md +275 -0
- package/node_modules/tardis-dev/dist/apikeyaccessinfo.d.ts +11 -0
- package/node_modules/tardis-dev/dist/apikeyaccessinfo.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/apikeyaccessinfo.js +13 -0
- package/node_modules/tardis-dev/dist/apikeyaccessinfo.js.map +1 -0
- package/node_modules/tardis-dev/dist/binarysplit.d.ts +8 -0
- package/node_modules/tardis-dev/dist/binarysplit.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/binarysplit.js +41 -0
- package/node_modules/tardis-dev/dist/binarysplit.js.map +1 -0
- package/node_modules/tardis-dev/dist/boundedqueue.d.ts +19 -0
- package/node_modules/tardis-dev/dist/boundedqueue.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/boundedqueue.js +96 -0
- package/node_modules/tardis-dev/dist/boundedqueue.js.map +1 -0
- package/node_modules/tardis-dev/dist/clearcache.d.ts +4 -0
- package/node_modules/tardis-dev/dist/clearcache.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/clearcache.js +48 -0
- package/node_modules/tardis-dev/dist/clearcache.js.map +1 -0
- package/node_modules/tardis-dev/dist/combine.d.ts +14 -0
- package/node_modules/tardis-dev/dist/combine.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/combine.js +97 -0
- package/node_modules/tardis-dev/dist/combine.js.map +1 -0
- package/node_modules/tardis-dev/dist/computable/booksnapshot.d.ts +14 -0
- package/node_modules/tardis-dev/dist/computable/booksnapshot.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/computable/booksnapshot.js +248 -0
- package/node_modules/tardis-dev/dist/computable/booksnapshot.js.map +1 -0
- package/node_modules/tardis-dev/dist/computable/computable.d.ts +8 -0
- package/node_modules/tardis-dev/dist/computable/computable.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/computable/computable.js +72 -0
- package/node_modules/tardis-dev/dist/computable/computable.js.map +1 -0
- package/node_modules/tardis-dev/dist/computable/context.d.ts +4 -0
- package/node_modules/tardis-dev/dist/computable/context.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/computable/context.js +9 -0
- package/node_modules/tardis-dev/dist/computable/context.js.map +1 -0
- package/node_modules/tardis-dev/dist/computable/index.d.ts +4 -0
- package/node_modules/tardis-dev/dist/computable/index.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/computable/index.js +4 -0
- package/node_modules/tardis-dev/dist/computable/index.js.map +1 -0
- package/node_modules/tardis-dev/dist/computable/tradebar.d.ts +11 -0
- package/node_modules/tardis-dev/dist/computable/tradebar.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/computable/tradebar.js +132 -0
- package/node_modules/tardis-dev/dist/computable/tradebar.js.map +1 -0
- package/node_modules/tardis-dev/dist/consts.d.ts +66 -0
- package/node_modules/tardis-dev/dist/consts.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/consts.js +573 -0
- package/node_modules/tardis-dev/dist/consts.js.map +1 -0
- package/node_modules/tardis-dev/dist/debug.d.ts +3 -0
- package/node_modules/tardis-dev/dist/debug.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/debug.js +3 -0
- package/node_modules/tardis-dev/dist/debug.js.map +1 -0
- package/node_modules/tardis-dev/dist/downloaddatasets.d.ts +25 -0
- package/node_modules/tardis-dev/dist/downloaddatasets.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/downloaddatasets.js +118 -0
- package/node_modules/tardis-dev/dist/downloaddatasets.js.map +1 -0
- package/node_modules/tardis-dev/dist/exchangedetails.d.ts +91 -0
- package/node_modules/tardis-dev/dist/exchangedetails.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/exchangedetails.js +8 -0
- package/node_modules/tardis-dev/dist/exchangedetails.js.map +1 -0
- package/node_modules/tardis-dev/dist/filter.d.ts +8 -0
- package/node_modules/tardis-dev/dist/filter.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/filter.js +51 -0
- package/node_modules/tardis-dev/dist/filter.js.map +1 -0
- package/node_modules/tardis-dev/dist/foreachconcurrent.d.ts +2 -0
- package/node_modules/tardis-dev/dist/foreachconcurrent.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/foreachconcurrent.js +28 -0
- package/node_modules/tardis-dev/dist/foreachconcurrent.js.map +1 -0
- package/node_modules/tardis-dev/dist/handy.d.ts +102 -0
- package/node_modules/tardis-dev/dist/handy.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/handy.js +706 -0
- package/node_modules/tardis-dev/dist/handy.js.map +1 -0
- package/node_modules/tardis-dev/dist/index.d.ts +17 -0
- package/node_modules/tardis-dev/dist/index.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/index.js +17 -0
- package/node_modules/tardis-dev/dist/index.js.map +1 -0
- package/node_modules/tardis-dev/dist/instrumentinfo.d.ts +105 -0
- package/node_modules/tardis-dev/dist/instrumentinfo.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/instrumentinfo.js +59 -0
- package/node_modules/tardis-dev/dist/instrumentinfo.js.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/ascendex.d.ts +10 -0
- package/node_modules/tardis-dev/dist/mappers/ascendex.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/ascendex.js +146 -0
- package/node_modules/tardis-dev/dist/mappers/ascendex.js.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/binance.d.ts +32 -0
- package/node_modules/tardis-dev/dist/mappers/binance.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/binance.js +420 -0
- package/node_modules/tardis-dev/dist/mappers/binance.js.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/binancedex.d.ts +9 -0
- package/node_modules/tardis-dev/dist/mappers/binancedex.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/binancedex.js +120 -0
- package/node_modules/tardis-dev/dist/mappers/binancedex.js.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/binanceeuropeanoptions.d.ts +10 -0
- package/node_modules/tardis-dev/dist/mappers/binanceeuropeanoptions.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/binanceeuropeanoptions.js +389 -0
- package/node_modules/tardis-dev/dist/mappers/binanceeuropeanoptions.js.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/bitfinex.d.ts +16 -0
- package/node_modules/tardis-dev/dist/mappers/bitfinex.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/bitfinex.js +352 -0
- package/node_modules/tardis-dev/dist/mappers/bitfinex.js.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/bitflyer.d.ts +9 -0
- package/node_modules/tardis-dev/dist/mappers/bitflyer.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/bitflyer.js +121 -0
- package/node_modules/tardis-dev/dist/mappers/bitflyer.js.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/bitget.d.ts +16 -0
- package/node_modules/tardis-dev/dist/mappers/bitget.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/bitget.js +335 -0
- package/node_modules/tardis-dev/dist/mappers/bitget.js.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/bitmex.d.ts +11 -0
- package/node_modules/tardis-dev/dist/mappers/bitmex.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/bitmex.js +248 -0
- package/node_modules/tardis-dev/dist/mappers/bitmex.js.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/bitnomial.d.ts +8 -0
- package/node_modules/tardis-dev/dist/mappers/bitnomial.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/bitnomial.js +91 -0
- package/node_modules/tardis-dev/dist/mappers/bitnomial.js.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/bitstamp.d.ts +8 -0
- package/node_modules/tardis-dev/dist/mappers/bitstamp.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/bitstamp.js +151 -0
- package/node_modules/tardis-dev/dist/mappers/bitstamp.js.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/blockchaincom.d.ts +8 -0
- package/node_modules/tardis-dev/dist/mappers/blockchaincom.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/blockchaincom.js +65 -0
- package/node_modules/tardis-dev/dist/mappers/blockchaincom.js.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/bullish.d.ts +11 -0
- package/node_modules/tardis-dev/dist/mappers/bullish.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/bullish.js +234 -0
- package/node_modules/tardis-dev/dist/mappers/bullish.js.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/bybit.d.ts +66 -0
- package/node_modules/tardis-dev/dist/mappers/bybit.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/bybit.js +601 -0
- package/node_modules/tardis-dev/dist/mappers/bybit.js.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/bybitspot.d.ts +96 -0
- package/node_modules/tardis-dev/dist/mappers/bybitspot.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/bybitspot.js +99 -0
- package/node_modules/tardis-dev/dist/mappers/bybitspot.js.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/coinbase.d.ts +9 -0
- package/node_modules/tardis-dev/dist/mappers/coinbase.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/coinbase.js +176 -0
- package/node_modules/tardis-dev/dist/mappers/coinbase.js.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/coinbaseinternational.d.ts +10 -0
- package/node_modules/tardis-dev/dist/mappers/coinbaseinternational.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/coinbaseinternational.js +210 -0
- package/node_modules/tardis-dev/dist/mappers/coinbaseinternational.js.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/coinflex.d.ts +9 -0
- package/node_modules/tardis-dev/dist/mappers/coinflex.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/coinflex.js +111 -0
- package/node_modules/tardis-dev/dist/mappers/coinflex.js.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/cryptocom.d.ts +25 -0
- package/node_modules/tardis-dev/dist/mappers/cryptocom.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/cryptocom.js +219 -0
- package/node_modules/tardis-dev/dist/mappers/cryptocom.js.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/cryptofacilities.d.ts +11 -0
- package/node_modules/tardis-dev/dist/mappers/cryptofacilities.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/cryptofacilities.js +199 -0
- package/node_modules/tardis-dev/dist/mappers/cryptofacilities.js.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/delta.d.ts +10 -0
- package/node_modules/tardis-dev/dist/mappers/delta.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/delta.js +205 -0
- package/node_modules/tardis-dev/dist/mappers/delta.js.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/deribit.d.ts +12 -0
- package/node_modules/tardis-dev/dist/mappers/deribit.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/deribit.js +278 -0
- package/node_modules/tardis-dev/dist/mappers/deribit.js.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/dydx.d.ts +9 -0
- package/node_modules/tardis-dev/dist/mappers/dydx.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/dydx.js +188 -0
- package/node_modules/tardis-dev/dist/mappers/dydx.js.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/dydxv4.d.ts +10 -0
- package/node_modules/tardis-dev/dist/mappers/dydxv4.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/dydxv4.js +189 -0
- package/node_modules/tardis-dev/dist/mappers/dydxv4.js.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/ftx.d.ts +16 -0
- package/node_modules/tardis-dev/dist/mappers/ftx.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/ftx.js +222 -0
- package/node_modules/tardis-dev/dist/mappers/ftx.js.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/gateio.d.ts +9 -0
- package/node_modules/tardis-dev/dist/mappers/gateio.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/gateio.js +370 -0
- package/node_modules/tardis-dev/dist/mappers/gateio.js.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/gateiofutures.d.ts +10 -0
- package/node_modules/tardis-dev/dist/mappers/gateiofutures.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/gateiofutures.js +183 -0
- package/node_modules/tardis-dev/dist/mappers/gateiofutures.js.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/gemini.d.ts +9 -0
- package/node_modules/tardis-dev/dist/mappers/gemini.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/gemini.js +145 -0
- package/node_modules/tardis-dev/dist/mappers/gemini.js.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/hitbtc.d.ts +8 -0
- package/node_modules/tardis-dev/dist/mappers/hitbtc.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/hitbtc.js +76 -0
- package/node_modules/tardis-dev/dist/mappers/hitbtc.js.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/huobi.d.ts +125 -0
- package/node_modules/tardis-dev/dist/mappers/huobi.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/huobi.js +529 -0
- package/node_modules/tardis-dev/dist/mappers/huobi.js.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/hyperliquid.d.ts +10 -0
- package/node_modules/tardis-dev/dist/mappers/hyperliquid.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/hyperliquid.js +161 -0
- package/node_modules/tardis-dev/dist/mappers/hyperliquid.js.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/index.d.ts +788 -0
- package/node_modules/tardis-dev/dist/mappers/index.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/index.js +66 -0
- package/node_modules/tardis-dev/dist/mappers/index.js.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/kraken.d.ts +9 -0
- package/node_modules/tardis-dev/dist/mappers/kraken.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/kraken.js +238 -0
- package/node_modules/tardis-dev/dist/mappers/kraken.js.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/kucoin.d.ts +9 -0
- package/node_modules/tardis-dev/dist/mappers/kucoin.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/kucoin.js +237 -0
- package/node_modules/tardis-dev/dist/mappers/kucoin.js.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/kucoinfutures.d.ts +10 -0
- package/node_modules/tardis-dev/dist/mappers/kucoinfutures.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/kucoinfutures.js +302 -0
- package/node_modules/tardis-dev/dist/mappers/kucoinfutures.js.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/lighter.d.ts +11 -0
- package/node_modules/tardis-dev/dist/mappers/lighter.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/lighter.js +186 -0
- package/node_modules/tardis-dev/dist/mappers/lighter.js.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/mapper.d.ts +32 -0
- package/node_modules/tardis-dev/dist/mappers/mapper.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/mapper.js +120 -0
- package/node_modules/tardis-dev/dist/mappers/mapper.js.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/mexc.d.ts +122 -0
- package/node_modules/tardis-dev/dist/mappers/mexc.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/mexc.js +205 -0
- package/node_modules/tardis-dev/dist/mappers/mexc.js.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/mexcfutures.d.ts +137 -0
- package/node_modules/tardis-dev/dist/mappers/mexcfutures.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/mexcfutures.js +225 -0
- package/node_modules/tardis-dev/dist/mappers/mexcfutures.js.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/okex.d.ts +39 -0
- package/node_modules/tardis-dev/dist/mappers/okex.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/okex.js +913 -0
- package/node_modules/tardis-dev/dist/mappers/okex.js.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/okexspreads.d.ts +69 -0
- package/node_modules/tardis-dev/dist/mappers/okexspreads.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/okexspreads.js +116 -0
- package/node_modules/tardis-dev/dist/mappers/okexspreads.js.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/phemex.d.ts +9 -0
- package/node_modules/tardis-dev/dist/mappers/phemex.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/phemex.js +406 -0
- package/node_modules/tardis-dev/dist/mappers/phemex.js.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/poloniex.d.ts +8 -0
- package/node_modules/tardis-dev/dist/mappers/poloniex.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/poloniex.js +207 -0
- package/node_modules/tardis-dev/dist/mappers/poloniex.js.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/polymarket.d.ts +59 -0
- package/node_modules/tardis-dev/dist/mappers/polymarket.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/polymarket.js +121 -0
- package/node_modules/tardis-dev/dist/mappers/polymarket.js.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/registry.d.ts +41 -0
- package/node_modules/tardis-dev/dist/mappers/registry.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/registry.js +111 -0
- package/node_modules/tardis-dev/dist/mappers/registry.js.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/serum.d.ts +19 -0
- package/node_modules/tardis-dev/dist/mappers/serum.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/serum.js +127 -0
- package/node_modules/tardis-dev/dist/mappers/serum.js.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/upbit.d.ts +8 -0
- package/node_modules/tardis-dev/dist/mappers/upbit.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/upbit.js +78 -0
- package/node_modules/tardis-dev/dist/mappers/upbit.js.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/woox.d.ts +10 -0
- package/node_modules/tardis-dev/dist/mappers/woox.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/mappers/woox.js +488 -0
- package/node_modules/tardis-dev/dist/mappers/woox.js.map +1 -0
- package/node_modules/tardis-dev/dist/okexsymbols.d.ts +3 -0
- package/node_modules/tardis-dev/dist/okexsymbols.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/okexsymbols.js +10 -0
- package/node_modules/tardis-dev/dist/okexsymbols.js.map +1 -0
- package/node_modules/tardis-dev/dist/options.d.ts +13 -0
- package/node_modules/tardis-dev/dist/options.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/options.js +21 -0
- package/node_modules/tardis-dev/dist/options.js.map +1 -0
- package/node_modules/tardis-dev/dist/orderbook.d.ts +23 -0
- package/node_modules/tardis-dev/dist/orderbook.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/orderbook.js +133 -0
- package/node_modules/tardis-dev/dist/orderbook.js.map +1 -0
- package/node_modules/tardis-dev/dist/priceleveltree.d.ts +27 -0
- package/node_modules/tardis-dev/dist/priceleveltree.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/priceleveltree.js +165 -0
- package/node_modules/tardis-dev/dist/priceleveltree.js.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/binance.d.ts +99 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/binance.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/binance.js +370 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/binance.js.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/binancedex.d.ts +14 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/binancedex.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/binancedex.js +53 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/binancedex.js.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/binanceeuropeanoptions.d.ts +14 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/binanceeuropeanoptions.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/binanceeuropeanoptions.js +95 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/binanceeuropeanoptions.js.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/bitfinex.d.ts +36 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/bitfinex.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/bitfinex.js +73 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/bitfinex.js.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/bitflyer.d.ts +9 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/bitflyer.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/bitflyer.js +36 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/bitflyer.js.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/bitget.d.ts +19 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/bitget.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/bitget.js +61 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/bitget.js.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/bitmex.d.ts +11 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/bitmex.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/bitmex.js +37 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/bitmex.js.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/bitnomial.d.ts +11 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/bitnomial.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/bitnomial.js +52 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/bitnomial.js.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/bitstamp.d.ts +10 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/bitstamp.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/bitstamp.js +57 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/bitstamp.js.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/blockchaincom.d.ts +11 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/blockchaincom.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/blockchaincom.js +37 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/blockchaincom.js.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/bullish.d.ts +18 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/bullish.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/bullish.js +113 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/bullish.js.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/bybit.d.ts +28 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/bybit.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/bybit.js +95 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/bybit.js.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/coinbase.d.ts +16 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/coinbase.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/coinbase.js +98 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/coinbase.js.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/coinbaseinternational.d.ts +10 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/coinbaseinternational.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/coinbaseinternational.js +47 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/coinbaseinternational.js.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/coinflex.d.ts +8 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/coinflex.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/coinflex.js +23 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/coinflex.js.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/cryptocom.d.ts +10 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/cryptocom.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/cryptocom.js +43 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/cryptocom.js.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/cryptofacilities.d.ts +9 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/cryptofacilities.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/cryptofacilities.js +25 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/cryptofacilities.js.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/delta.d.ts +18 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/delta.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/delta.js +29 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/delta.js.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/deribit.d.ts +13 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/deribit.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/deribit.js +81 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/deribit.js.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/dydx.d.ts +8 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/dydx.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/dydx.js +34 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/dydx.js.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/dydx_v4.d.ts +8 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/dydx_v4.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/dydx_v4.js +33 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/dydx_v4.js.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/ftx.d.ts +33 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/ftx.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/ftx.js +107 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/ftx.js.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/gateio.d.ts +9 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/gateio.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/gateio.js +41 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/gateio.js.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/gateiofutures.d.ts +17 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/gateiofutures.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/gateiofutures.js +68 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/gateiofutures.js.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/gemini.d.ts +9 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/gemini.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/gemini.js +32 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/gemini.js.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/hitbtc.d.ts +12 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/hitbtc.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/hitbtc.js +55 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/hitbtc.js.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/huobi.d.ts +108 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/huobi.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/huobi.js +339 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/huobi.js.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/hyperliquid.d.ts +10 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/hyperliquid.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/hyperliquid.js +34 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/hyperliquid.js.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/index.d.ts +6 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/index.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/index.js +119 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/index.js.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/kraken.d.ts +10 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/kraken.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/kraken.js +41 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/kraken.js.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/kucoin.d.ts +13 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/kucoin.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/kucoin.js +66 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/kucoin.js.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/kucoinfutures.d.ts +25 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/kucoinfutures.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/kucoinfutures.js +110 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/kucoinfutures.js.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/lighter.d.ts +8 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/lighter.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/lighter.js +25 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/lighter.js.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/mango.d.ts +5 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/mango.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/mango.js +5 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/mango.js.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/mexc.d.ts +35 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/mexc.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/mexc.js +261 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/mexc.js.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/mexcfutures.d.ts +25 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/mexcfutures.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/mexcfutures.js +203 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/mexcfutures.js.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/okex.d.ts +31 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/okex.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/okex.js +147 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/okex.js.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/okexspreads.d.ts +11 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/okexspreads.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/okexspreads.js +53 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/okexspreads.js.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/phemex.d.ts +14 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/phemex.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/phemex.js +46 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/phemex.js.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/poloniex.d.ts +14 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/poloniex.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/poloniex.js +28 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/poloniex.js.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/polymarket.d.ts +26 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/polymarket.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/polymarket.js +92 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/polymarket.js.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/realtimefeed.d.ts +75 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/realtimefeed.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/realtimefeed.js +423 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/realtimefeed.js.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/serum.d.ts +14 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/serum.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/serum.js +58 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/serum.js.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/staratlas.d.ts +5 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/staratlas.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/staratlas.js +5 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/staratlas.js.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/upbit.d.ts +8 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/upbit.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/upbit.js +29 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/upbit.js.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/woox.d.ts +12 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/woox.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/woox.js +77 -0
- package/node_modules/tardis-dev/dist/realtimefeeds/woox.js.map +1 -0
- package/node_modules/tardis-dev/dist/realtimeiterator.d.ts +10 -0
- package/node_modules/tardis-dev/dist/realtimeiterator.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/realtimeiterator.js +106 -0
- package/node_modules/tardis-dev/dist/realtimeiterator.js.map +1 -0
- package/node_modules/tardis-dev/dist/replay.d.ts +42 -0
- package/node_modules/tardis-dev/dist/replay.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/replay.js +417 -0
- package/node_modules/tardis-dev/dist/replay.js.map +1 -0
- package/node_modules/tardis-dev/dist/stream.d.ts +28 -0
- package/node_modules/tardis-dev/dist/stream.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/stream.js +112 -0
- package/node_modules/tardis-dev/dist/stream.js.map +1 -0
- package/node_modules/tardis-dev/dist/types.d.ts +154 -0
- package/node_modules/tardis-dev/dist/types.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/types.js +2 -0
- package/node_modules/tardis-dev/dist/types.js.map +1 -0
- package/node_modules/tardis-dev/dist/worker.d.ts +24 -0
- package/node_modules/tardis-dev/dist/worker.d.ts.map +1 -0
- package/node_modules/tardis-dev/dist/worker.js +143 -0
- package/node_modules/tardis-dev/dist/worker.js.map +1 -0
- package/node_modules/tardis-dev/example.js +171 -0
- package/node_modules/tardis-dev/package.json +85 -0
- package/node_modules/tardis-dev/src/apikeyaccessinfo.ts +25 -0
- package/node_modules/tardis-dev/src/binarysplit.ts +50 -0
- package/node_modules/tardis-dev/src/boundedqueue.ts +118 -0
- package/node_modules/tardis-dev/src/clearcache.ts +62 -0
- package/node_modules/tardis-dev/src/combine.ts +134 -0
- package/node_modules/tardis-dev/src/computable/booksnapshot.ts +327 -0
- package/node_modules/tardis-dev/src/computable/computable.ts +104 -0
- package/node_modules/tardis-dev/src/computable/context.ts +12 -0
- package/node_modules/tardis-dev/src/computable/index.ts +3 -0
- package/node_modules/tardis-dev/src/computable/tradebar.ts +173 -0
- package/node_modules/tardis-dev/src/consts.ts +623 -0
- package/node_modules/tardis-dev/src/debug.ts +3 -0
- package/node_modules/tardis-dev/src/downloaddatasets.ts +193 -0
- package/node_modules/tardis-dev/src/exchangedetails.ts +120 -0
- package/node_modules/tardis-dev/src/filter.ts +69 -0
- package/node_modules/tardis-dev/src/foreachconcurrent.ts +29 -0
- package/node_modules/tardis-dev/src/handy.ts +880 -0
- package/node_modules/tardis-dev/src/index.ts +16 -0
- package/node_modules/tardis-dev/src/instrumentinfo.ts +197 -0
- package/node_modules/tardis-dev/src/mappers/ascendex.ts +210 -0
- package/node_modules/tardis-dev/src/mappers/binance.ts +598 -0
- package/node_modules/tardis-dev/src/mappers/binancedex.ts +180 -0
- package/node_modules/tardis-dev/src/mappers/binanceeuropeanoptions.ts +624 -0
- package/node_modules/tardis-dev/src/mappers/bitfinex.ts +472 -0
- package/node_modules/tardis-dev/src/mappers/bitflyer.ts +199 -0
- package/node_modules/tardis-dev/src/mappers/bitget.ts +490 -0
- package/node_modules/tardis-dev/src/mappers/bitmex.ts +359 -0
- package/node_modules/tardis-dev/src/mappers/bitnomial.ts +134 -0
- package/node_modules/tardis-dev/src/mappers/bitstamp.ts +219 -0
- package/node_modules/tardis-dev/src/mappers/blockchaincom.ts +106 -0
- package/node_modules/tardis-dev/src/mappers/bullish.ts +392 -0
- package/node_modules/tardis-dev/src/mappers/bybit.ts +947 -0
- package/node_modules/tardis-dev/src/mappers/bybitspot.ts +129 -0
- package/node_modules/tardis-dev/src/mappers/coinbase.ts +259 -0
- package/node_modules/tardis-dev/src/mappers/coinbaseinternational.ts +338 -0
- package/node_modules/tardis-dev/src/mappers/coinflex.ts +175 -0
- package/node_modules/tardis-dev/src/mappers/cryptocom.ts +504 -0
- package/node_modules/tardis-dev/src/mappers/cryptofacilities.ts +319 -0
- package/node_modules/tardis-dev/src/mappers/delta.ts +315 -0
- package/node_modules/tardis-dev/src/mappers/deribit.ts +406 -0
- package/node_modules/tardis-dev/src/mappers/dydx.ts +330 -0
- package/node_modules/tardis-dev/src/mappers/dydxv4.ts +349 -0
- package/node_modules/tardis-dev/src/mappers/ftx.ts +307 -0
- package/node_modules/tardis-dev/src/mappers/gateio.ts +543 -0
- package/node_modules/tardis-dev/src/mappers/gateiofutures.ts +290 -0
- package/node_modules/tardis-dev/src/mappers/gemini.ts +225 -0
- package/node_modules/tardis-dev/src/mappers/hitbtc.ts +124 -0
- package/node_modules/tardis-dev/src/mappers/huobi.ts +815 -0
- package/node_modules/tardis-dev/src/mappers/hyperliquid.ts +248 -0
- package/node_modules/tardis-dev/src/mappers/index.ts +140 -0
- package/node_modules/tardis-dev/src/mappers/kraken.ts +382 -0
- package/node_modules/tardis-dev/src/mappers/kucoin.ts +353 -0
- package/node_modules/tardis-dev/src/mappers/kucoinfutures.ts +508 -0
- package/node_modules/tardis-dev/src/mappers/lighter.ts +363 -0
- package/node_modules/tardis-dev/src/mappers/mapper.ts +163 -0
- package/node_modules/tardis-dev/src/mappers/mexc.ts +324 -0
- package/node_modules/tardis-dev/src/mappers/mexcfutures.ts +352 -0
- package/node_modules/tardis-dev/src/mappers/okex.ts +1362 -0
- package/node_modules/tardis-dev/src/mappers/okexspreads.ts +172 -0
- package/node_modules/tardis-dev/src/mappers/phemex.ts +562 -0
- package/node_modules/tardis-dev/src/mappers/poloniex.ts +304 -0
- package/node_modules/tardis-dev/src/mappers/polymarket.ts +204 -0
- package/node_modules/tardis-dev/src/mappers/registry.ts +203 -0
- package/node_modules/tardis-dev/src/mappers/serum.ts +196 -0
- package/node_modules/tardis-dev/src/mappers/upbit.ts +117 -0
- package/node_modules/tardis-dev/src/mappers/woox.ts +700 -0
- package/node_modules/tardis-dev/src/okexsymbols.ts +10 -0
- package/node_modules/tardis-dev/src/options.ts +36 -0
- package/node_modules/tardis-dev/src/orderbook.ts +169 -0
- package/node_modules/tardis-dev/src/priceleveltree.ts +188 -0
- package/node_modules/tardis-dev/src/realtimefeeds/binance.ts +577 -0
- package/node_modules/tardis-dev/src/realtimefeeds/binancedex.ts +64 -0
- package/node_modules/tardis-dev/src/realtimefeeds/binanceeuropeanoptions.ts +132 -0
- package/node_modules/tardis-dev/src/realtimefeeds/bitfinex.ts +83 -0
- package/node_modules/tardis-dev/src/realtimefeeds/bitflyer.ts +41 -0
- package/node_modules/tardis-dev/src/realtimefeeds/bitget.ts +76 -0
- package/node_modules/tardis-dev/src/realtimefeeds/bitmex.ts +42 -0
- package/node_modules/tardis-dev/src/realtimefeeds/bitnomial.ts +60 -0
- package/node_modules/tardis-dev/src/realtimefeeds/bitstamp.ts +70 -0
- package/node_modules/tardis-dev/src/realtimefeeds/blockchaincom.ts +44 -0
- package/node_modules/tardis-dev/src/realtimefeeds/bullish.ts +140 -0
- package/node_modules/tardis-dev/src/realtimefeeds/bybit.ts +123 -0
- package/node_modules/tardis-dev/src/realtimefeeds/coinbase.ts +112 -0
- package/node_modules/tardis-dev/src/realtimefeeds/coinbaseinternational.ts +60 -0
- package/node_modules/tardis-dev/src/realtimefeeds/coinflex.ts +29 -0
- package/node_modules/tardis-dev/src/realtimefeeds/cryptocom.ts +49 -0
- package/node_modules/tardis-dev/src/realtimefeeds/cryptofacilities.ts +30 -0
- package/node_modules/tardis-dev/src/realtimefeeds/delta.ts +35 -0
- package/node_modules/tardis-dev/src/realtimefeeds/deribit.ts +95 -0
- package/node_modules/tardis-dev/src/realtimefeeds/dydx.ts +40 -0
- package/node_modules/tardis-dev/src/realtimefeeds/dydx_v4.ts +39 -0
- package/node_modules/tardis-dev/src/realtimefeeds/ftx.ts +137 -0
- package/node_modules/tardis-dev/src/realtimefeeds/gateio.ts +46 -0
- package/node_modules/tardis-dev/src/realtimefeeds/gateiofutures.ts +91 -0
- package/node_modules/tardis-dev/src/realtimefeeds/gemini.ts +38 -0
- package/node_modules/tardis-dev/src/realtimefeeds/hitbtc.ts +65 -0
- package/node_modules/tardis-dev/src/realtimefeeds/huobi.ts +435 -0
- package/node_modules/tardis-dev/src/realtimefeeds/hyperliquid.ts +41 -0
- package/node_modules/tardis-dev/src/realtimefeeds/index.ts +145 -0
- package/node_modules/tardis-dev/src/realtimefeeds/kraken.ts +48 -0
- package/node_modules/tardis-dev/src/realtimefeeds/kucoin.ts +80 -0
- package/node_modules/tardis-dev/src/realtimefeeds/kucoinfutures.ts +139 -0
- package/node_modules/tardis-dev/src/realtimefeeds/lighter.ts +31 -0
- package/node_modules/tardis-dev/src/realtimefeeds/mango.ts +5 -0
- package/node_modules/tardis-dev/src/realtimefeeds/mexc.ts +327 -0
- package/node_modules/tardis-dev/src/realtimefeeds/mexcfutures.ts +269 -0
- package/node_modules/tardis-dev/src/realtimefeeds/okex.ts +189 -0
- package/node_modules/tardis-dev/src/realtimefeeds/okexspreads.ts +64 -0
- package/node_modules/tardis-dev/src/realtimefeeds/phemex.ts +52 -0
- package/node_modules/tardis-dev/src/realtimefeeds/poloniex.ts +34 -0
- package/node_modules/tardis-dev/src/realtimefeeds/polymarket.ts +112 -0
- package/node_modules/tardis-dev/src/realtimefeeds/realtimefeed.ts +561 -0
- package/node_modules/tardis-dev/src/realtimefeeds/serum.ts +67 -0
- package/node_modules/tardis-dev/src/realtimefeeds/staratlas.ts +5 -0
- package/node_modules/tardis-dev/src/realtimefeeds/upbit.ts +35 -0
- package/node_modules/tardis-dev/src/realtimefeeds/woox.ts +110 -0
- package/node_modules/tardis-dev/src/realtimeiterator.ts +124 -0
- package/node_modules/tardis-dev/src/replay.ts +616 -0
- package/node_modules/tardis-dev/src/stream.ts +186 -0
- package/node_modules/tardis-dev/src/types.ts +178 -0
- package/node_modules/tardis-dev/src/worker.ts +221 -0
- package/node_modules/uWebSockets.js/ESM_wrapper.mjs +53 -0
- package/node_modules/uWebSockets.js/LICENSE +201 -0
- package/node_modules/uWebSockets.js/README.md +6 -0
- package/node_modules/uWebSockets.js/index.d.ts +468 -0
- package/node_modules/uWebSockets.js/package.json +12 -0
- package/node_modules/uWebSockets.js/source_commit +1 -0
- package/node_modules/uWebSockets.js/uws.js +76 -0
- package/node_modules/uWebSockets.js/uws_darwin_arm64_127.node +0 -0
- package/node_modules/uWebSockets.js/uws_darwin_arm64_137.node +0 -0
- package/node_modules/uWebSockets.js/uws_darwin_arm64_147.node +0 -0
- package/node_modules/uWebSockets.js/uws_darwin_x64_127.node +0 -0
- package/node_modules/uWebSockets.js/uws_darwin_x64_137.node +0 -0
- package/node_modules/uWebSockets.js/uws_darwin_x64_147.node +0 -0
- package/node_modules/uWebSockets.js/uws_linux_arm64_127.node +0 -0
- package/node_modules/uWebSockets.js/uws_linux_arm64_137.node +0 -0
- package/node_modules/uWebSockets.js/uws_linux_arm64_147.node +0 -0
- package/node_modules/uWebSockets.js/uws_linux_x64_127.node +0 -0
- package/node_modules/uWebSockets.js/uws_linux_x64_137.node +0 -0
- package/node_modules/uWebSockets.js/uws_linux_x64_147.node +0 -0
- package/node_modules/uWebSockets.js/uws_win32_x64_127.node +0 -0
- package/node_modules/uWebSockets.js/uws_win32_x64_137.node +0 -0
- package/node_modules/uWebSockets.js/uws_win32_x64_147.node +0 -0
- package/node_modules/ws/LICENSE +20 -0
- package/node_modules/ws/README.md +548 -0
- package/node_modules/ws/browser.js +8 -0
- package/node_modules/ws/index.js +22 -0
- package/node_modules/ws/lib/buffer-util.js +131 -0
- package/node_modules/ws/lib/constants.js +19 -0
- package/node_modules/ws/lib/event-target.js +292 -0
- package/node_modules/ws/lib/extension.js +203 -0
- package/node_modules/ws/lib/limiter.js +55 -0
- package/node_modules/ws/lib/permessage-deflate.js +528 -0
- package/node_modules/ws/lib/receiver.js +743 -0
- package/node_modules/ws/lib/sender.js +607 -0
- package/node_modules/ws/lib/stream.js +161 -0
- package/node_modules/ws/lib/subprotocol.js +62 -0
- package/node_modules/ws/lib/validation.js +152 -0
- package/node_modules/ws/lib/websocket-server.js +562 -0
- package/node_modules/ws/lib/websocket.js +1407 -0
- package/node_modules/ws/package.json +74 -0
- package/node_modules/ws/wrapper.mjs +21 -0
- package/package.json +8 -20
- package/src/tardismachine.ts +15 -7
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
const isNullOrUndefined = (input) => input === undefined || input === null;
|
|
2
|
+
export class PendingTickerInfoHelper {
|
|
3
|
+
_pendingTickers = new Map();
|
|
4
|
+
getPendingTickerInfo(symbol, exchange) {
|
|
5
|
+
let pendingTickerInfo = this._pendingTickers.get(symbol);
|
|
6
|
+
if (pendingTickerInfo === undefined) {
|
|
7
|
+
pendingTickerInfo = new PendingDerivativeTickerInfo(symbol, exchange);
|
|
8
|
+
this._pendingTickers.set(symbol, pendingTickerInfo);
|
|
9
|
+
}
|
|
10
|
+
return pendingTickerInfo;
|
|
11
|
+
}
|
|
12
|
+
hasPendingTickerInfo(symbol) {
|
|
13
|
+
return this._pendingTickers.has(symbol);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
class PendingDerivativeTickerInfo {
|
|
17
|
+
_pendingTicker;
|
|
18
|
+
_hasChanged;
|
|
19
|
+
constructor(symbol, exchange) {
|
|
20
|
+
this._pendingTicker = {
|
|
21
|
+
type: 'derivative_ticker',
|
|
22
|
+
symbol,
|
|
23
|
+
exchange,
|
|
24
|
+
lastPrice: undefined,
|
|
25
|
+
openInterest: undefined,
|
|
26
|
+
fundingRate: undefined,
|
|
27
|
+
fundingTimestamp: undefined,
|
|
28
|
+
predictedFundingRate: undefined,
|
|
29
|
+
indexPrice: undefined,
|
|
30
|
+
markPrice: undefined,
|
|
31
|
+
timestamp: undefined,
|
|
32
|
+
localTimestamp: new Date()
|
|
33
|
+
};
|
|
34
|
+
this._hasChanged = false;
|
|
35
|
+
}
|
|
36
|
+
getCurrentFundingTimestamp() {
|
|
37
|
+
return this._pendingTicker.fundingTimestamp;
|
|
38
|
+
}
|
|
39
|
+
updateOpenInterest(openInterest) {
|
|
40
|
+
if (isNullOrUndefined(openInterest)) {
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
if (this._pendingTicker.openInterest !== openInterest) {
|
|
44
|
+
this._pendingTicker.openInterest = openInterest;
|
|
45
|
+
this._hasChanged = true;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
updateMarkPrice(markPrice) {
|
|
49
|
+
if (isNullOrUndefined(markPrice)) {
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
if (this._pendingTicker.markPrice !== markPrice) {
|
|
53
|
+
this._pendingTicker.markPrice = markPrice;
|
|
54
|
+
this._hasChanged = true;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
updateFundingRate(fundingRate) {
|
|
58
|
+
if (isNullOrUndefined(fundingRate)) {
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
if (this._pendingTicker.fundingRate !== fundingRate) {
|
|
62
|
+
this._pendingTicker.fundingRate = fundingRate;
|
|
63
|
+
this._hasChanged = true;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
updatePredictedFundingRate(predictedFundingRate) {
|
|
67
|
+
if (isNullOrUndefined(predictedFundingRate)) {
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
if (this._pendingTicker.predictedFundingRate !== predictedFundingRate) {
|
|
71
|
+
this._pendingTicker.predictedFundingRate = predictedFundingRate;
|
|
72
|
+
this._hasChanged = true;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
updateFundingTimestamp(fundingTimestamp) {
|
|
76
|
+
if (isNullOrUndefined(fundingTimestamp)) {
|
|
77
|
+
return;
|
|
78
|
+
}
|
|
79
|
+
if (this._pendingTicker.fundingTimestamp === undefined ||
|
|
80
|
+
this._pendingTicker.fundingTimestamp.valueOf() !== fundingTimestamp.valueOf()) {
|
|
81
|
+
this._pendingTicker.fundingTimestamp = fundingTimestamp;
|
|
82
|
+
this._hasChanged = true;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
updateIndexPrice(indexPrice) {
|
|
86
|
+
if (isNullOrUndefined(indexPrice)) {
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
if (this._pendingTicker.indexPrice !== indexPrice) {
|
|
90
|
+
this._pendingTicker.indexPrice = indexPrice;
|
|
91
|
+
this._hasChanged = true;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
updateLastPrice(lastPrice) {
|
|
95
|
+
if (isNullOrUndefined(lastPrice)) {
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
if (this._pendingTicker.lastPrice !== lastPrice) {
|
|
99
|
+
this._pendingTicker.lastPrice = lastPrice;
|
|
100
|
+
this._hasChanged = true;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
updateTimestamp(timestamp) {
|
|
104
|
+
if (this._pendingTicker.timestamp === undefined || this._pendingTicker.timestamp.valueOf() <= timestamp.valueOf()) {
|
|
105
|
+
this._pendingTicker.timestamp = timestamp;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
hasChanged() {
|
|
109
|
+
return this._hasChanged;
|
|
110
|
+
}
|
|
111
|
+
getSnapshot(localTimestamp) {
|
|
112
|
+
this._hasChanged = false;
|
|
113
|
+
this._pendingTicker.localTimestamp = localTimestamp;
|
|
114
|
+
if (this._pendingTicker.timestamp === undefined) {
|
|
115
|
+
this._pendingTicker.timestamp = localTimestamp;
|
|
116
|
+
}
|
|
117
|
+
return { ...this._pendingTicker };
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
//# sourceMappingURL=mapper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapper.js","sourceRoot":"","sources":["../../src/mappers/mapper.ts"],"names":[],"mappings":"AAgBA,MAAM,iBAAiB,GAAG,CAAC,KAAuC,EAA6B,EAAE,CAAC,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI,CAAA;AAEvI,MAAM,OAAO,uBAAuB;IACjB,eAAe,GAA6C,IAAI,GAAG,EAAE,CAAA;IAE/E,oBAAoB,CAAC,MAAc,EAAE,QAAkB;QAC5D,IAAI,iBAAiB,GAAG,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,MAAM,CAAC,CAAA;QACxD,IAAI,iBAAiB,KAAK,SAAS,EAAE,CAAC;YACpC,iBAAiB,GAAG,IAAI,2BAA2B,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAA;YACrE,IAAI,CAAC,eAA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U,EAAE,CAAC;YAClD,IAAI,CAAC,cAAc,CAAC,UAAU,GAAG,UAAU,CAAA;YAC3C,IAAI,CAAC,WAAW,GAAG,IAAI,CAAA;QACzB,CAAC;IACH,CAAC;IAEM,eAAe,CAAC,SAAoC;QACzD,IAAI,iBAAiB,CAAC,SAAS,CAAC,EAAE,CAAC;YACjC,OAAM;QACR,CAAC;QAED,IAAI,IAAI,CAAC,cAAc,CAAC,SAAS,KAAK,SAAS,EAAE,CAAC;YAChD,IAAI,CAAC,cAAc,CAAC,SAAS,GAAG,SAAS,CAAA;YACzC,IAAI,CAAC,WAAW,GAAG,IAAI,CAAA;QACzB,CAAC;IACH,CAAC;IAEM,eAAe,CAAC,SAAe;QACpC,IAAI,IAAI,CAAC,cAAc,CAAC,SAAS,KAAK,SAAS,IAAI,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,OAAO,EAAE,IAAI,SAAS,CAAC,OAAO,EAAE,EAAE,CAAC;YAClH,IAAI,CAAC,cAAc,CAAC,SAAS,GAAG,SAAS,CAAA;QAC3C,CAAC;IACH,CAAC;IAEM,UAAU;QACf,OAAO,IAAI,CAAC,WAAW,CAAA;IACzB,CAAC;IAEM,WAAW,CAAC,cAAoB;QACrC,IAAI,CAAC,WAAW,GAAG,KAAK,CAAA;QACxB,IAAI,CAAC,cAAc,CAAC,cAAc,GAAG,cAAc,CAAA;QAEnD,IAAI,IAAI,CAAC,cAAc,CAAC,SAAS,KAAK,SAAS,EAAE,CAAC;YAChD,IAAI,CAAC,cAAc,CAAC,SAAS,GAAG,cAAc,CAAA;QAChD,CAAC;QAED,OAAO,EAAE,GAAG,IAAI,CAAC,cAAc,EAAE,CAAA;IACnC,CAAC;CACF"}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { BookChange, BookTicker, Trade } from '../types.ts';
|
|
2
|
+
import { Mapper } from './mapper.ts';
|
|
3
|
+
export declare const mexcMappers: {
|
|
4
|
+
mexc: {
|
|
5
|
+
trades: import("./registry.ts").MapperCreator<"bitmex" | "deribit" | "binance-futures" | "binance-delivery" | "binance-european-options" | "binance" | "ftx" | "okex-futures" | "okex-options" | "okex-swap" | "okex" | "okex-spreads" | "huobi-dm" | "huobi-dm-swap" | "huobi-dm-linear-swap" | "huobi" | "bitfinex-derivatives" | "bitfinex" | "coinbase" | "coinbase-international" | "cryptofacilities" | "kraken" | "bitstamp" | "gemini" | "poloniex" | "bybit" | "bybit-spot" | "bybit-options" | "phemex" | "delta" | "ftx-us" | "binance-us" | "gate-io-futures" | "mexc-futures" | "gate-io" | "okcoin" | "bitflyer" | "hitbtc" | "coinflex" | "binance-jersey" | "binance-dex" | "upbit" | "ascendex" | "dydx" | "dydx-v4" | "serum" | "mango" | "huobi-dm-options" | "star-atlas" | "crypto-com" | "kucoin" | "kucoin-futures" | "bitnomial" | "woo-x" | "blockchain-com" | "bitget" | "bitget-futures" | "hyperliquid" | "lighter" | "bullish" | "mexc" | "polymarket", Trade>;
|
|
6
|
+
bookChanges: import("./registry.ts").MapperCreator<"bitmex" | "deribit" | "binance-futures" | "binance-delivery" | "binance-european-options" | "binance" | "ftx" | "okex-futures" | "okex-options" | "okex-swap" | "okex" | "okex-spreads" | "huobi-dm" | "huobi-dm-swap" | "huobi-dm-linear-swap" | "huobi" | "bitfinex-derivatives" | "bitfinex" | "coinbase" | "coinbase-international" | "cryptofacilities" | "kraken" | "bitstamp" | "gemini" | "poloniex" | "bybit" | "bybit-spot" | "bybit-options" | "phemex" | "delta" | "ftx-us" | "binance-us" | "gate-io-futures" | "mexc-futures" | "gate-io" | "okcoin" | "bitflyer" | "hitbtc" | "coinflex" | "binance-jersey" | "binance-dex" | "upbit" | "ascendex" | "dydx" | "dydx-v4" | "serum" | "mango" | "huobi-dm-options" | "star-atlas" | "crypto-com" | "kucoin" | "kucoin-futures" | "bitnomial" | "woo-x" | "blockchain-com" | "bitget" | "bitget-futures" | "hyperliquid" | "lighter" | "bullish" | "mexc" | "polymarket", BookChange>;
|
|
7
|
+
bookTickers: import("./registry.ts").MapperCreator<"bitmex" | "deribit" | "binance-futures" | "binance-delivery" | "binance-european-options" | "binance" | "ftx" | "okex-futures" | "okex-options" | "okex-swap" | "okex" | "okex-spreads" | "huobi-dm" | "huobi-dm-swap" | "huobi-dm-linear-swap" | "huobi" | "bitfinex-derivatives" | "bitfinex" | "coinbase" | "coinbase-international" | "cryptofacilities" | "kraken" | "bitstamp" | "gemini" | "poloniex" | "bybit" | "bybit-spot" | "bybit-options" | "phemex" | "delta" | "ftx-us" | "binance-us" | "gate-io-futures" | "mexc-futures" | "gate-io" | "okcoin" | "bitflyer" | "hitbtc" | "coinflex" | "binance-jersey" | "binance-dex" | "upbit" | "ascendex" | "dydx" | "dydx-v4" | "serum" | "mango" | "huobi-dm-options" | "star-atlas" | "crypto-com" | "kucoin" | "kucoin-futures" | "bitnomial" | "woo-x" | "blockchain-com" | "bitget" | "bitget-futures" | "hyperliquid" | "lighter" | "bullish" | "mexc" | "polymarket", BookTicker>;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export declare class MexcTradesMapper implements Mapper<'mexc', Trade> {
|
|
11
|
+
private readonly channel;
|
|
12
|
+
canHandle(message: MexcTradeMessage | MexcControlMessage): boolean;
|
|
13
|
+
getFilters(symbols?: string[]): {
|
|
14
|
+
readonly channel: "spot@public.aggre.deals.v3.api.pb@10ms";
|
|
15
|
+
readonly symbols: string[] | undefined;
|
|
16
|
+
}[];
|
|
17
|
+
map(message: MexcTradeMessage, localTimestamp: Date): IterableIterator<Trade>;
|
|
18
|
+
}
|
|
19
|
+
export declare class MexcBookChangeMapper implements Mapper<'mexc', BookChange> {
|
|
20
|
+
private readonly channel;
|
|
21
|
+
private readonly snapshotChannel;
|
|
22
|
+
private readonly symbolDepthInfo;
|
|
23
|
+
private readonly ignoreBookSnapshotOverlapError;
|
|
24
|
+
constructor({ ignoreBookSnapshotOverlapError }: {
|
|
25
|
+
ignoreBookSnapshotOverlapError: boolean;
|
|
26
|
+
});
|
|
27
|
+
canHandle(message: MexcDepthSnapshotMessage | MexcDepthUpdateMessage): boolean;
|
|
28
|
+
getFilters(symbols?: string[]): ({
|
|
29
|
+
readonly channel: "spot@public.aggre.depth.v3.api.pb@10ms";
|
|
30
|
+
readonly symbols: string[] | undefined;
|
|
31
|
+
} | {
|
|
32
|
+
readonly channel: "spot@public.aggre.depth.snapshot.v3.api.pb@10ms";
|
|
33
|
+
readonly symbols: string[] | undefined;
|
|
34
|
+
})[];
|
|
35
|
+
map(message: MexcDepthSnapshotMessage | MexcDepthUpdateMessage, localTimestamp: Date): IterableIterator<BookChange>;
|
|
36
|
+
private applyLevel;
|
|
37
|
+
private mapBookLevel;
|
|
38
|
+
private mapDepthSnapshotLevel;
|
|
39
|
+
private getDepthInfoFor;
|
|
40
|
+
}
|
|
41
|
+
export declare class MexcBookTickerMapper implements Mapper<'mexc', BookTicker> {
|
|
42
|
+
private readonly channel;
|
|
43
|
+
canHandle(message: MexcBookTickerMessage | MexcControlMessage): boolean;
|
|
44
|
+
getFilters(symbols?: string[]): {
|
|
45
|
+
readonly channel: "spot@public.aggre.bookTicker.v3.api.pb@10ms";
|
|
46
|
+
readonly symbols: string[] | undefined;
|
|
47
|
+
}[];
|
|
48
|
+
map(message: MexcBookTickerMessage, localTimestamp: Date): IterableIterator<BookTicker>;
|
|
49
|
+
}
|
|
50
|
+
type MexcControlMessage = {
|
|
51
|
+
channel?: undefined;
|
|
52
|
+
id?: number;
|
|
53
|
+
code?: number;
|
|
54
|
+
msg?: string;
|
|
55
|
+
};
|
|
56
|
+
type MexcMappedChannel = 'spot@public.aggre.deals.v3.api.pb@10ms' | 'spot@public.aggre.depth.v3.api.pb@10ms' | 'spot@public.aggre.depth.snapshot.v3.api.pb@10ms' | 'spot@public.aggre.bookTicker.v3.api.pb@10ms';
|
|
57
|
+
type MexcChannelWithSymbol<TChannel extends MexcMappedChannel> = `${TChannel}@${string}`;
|
|
58
|
+
type MexcProtobufMessage<TChannel extends MexcMappedChannel> = {
|
|
59
|
+
channel: MexcChannelWithSymbol<TChannel>;
|
|
60
|
+
symbol: string;
|
|
61
|
+
symbolId?: string;
|
|
62
|
+
createTime?: string | number;
|
|
63
|
+
sendTime: string | number;
|
|
64
|
+
};
|
|
65
|
+
type MexcTradeMessage = MexcProtobufMessage<'spot@public.aggre.deals.v3.api.pb@10ms'> & {
|
|
66
|
+
publicAggreDeals: {
|
|
67
|
+
eventType: 'spot@public.aggre.deals.v3.api.pb@10ms';
|
|
68
|
+
deals: MexcTrade[];
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
type MexcTrade = {
|
|
72
|
+
price: string;
|
|
73
|
+
quantity: string;
|
|
74
|
+
tradeType: MexcTradeType;
|
|
75
|
+
time: string | number;
|
|
76
|
+
tradeId?: string;
|
|
77
|
+
};
|
|
78
|
+
declare enum MexcTradeType {
|
|
79
|
+
Buy = 1,
|
|
80
|
+
Sell = 2
|
|
81
|
+
}
|
|
82
|
+
export type MexcDepthSnapshotMessage = {
|
|
83
|
+
channel: MexcChannelWithSymbol<'spot@public.aggre.depth.snapshot.v3.api.pb@10ms'>;
|
|
84
|
+
symbol: string;
|
|
85
|
+
generated: true;
|
|
86
|
+
publicAggreDepthsSnapshot: MexcAggreDepthsSnapshot;
|
|
87
|
+
};
|
|
88
|
+
type MexcAggreDepthsSnapshot = {
|
|
89
|
+
asks: MexcDepthSnapshotLevel[];
|
|
90
|
+
bids: MexcDepthSnapshotLevel[];
|
|
91
|
+
lastUpdateId: number;
|
|
92
|
+
timestamp: number;
|
|
93
|
+
};
|
|
94
|
+
type MexcDepthSnapshotLevel = [string, string];
|
|
95
|
+
type MexcDepthUpdateMessage = MexcProtobufMessage<'spot@public.aggre.depth.v3.api.pb@10ms'> & {
|
|
96
|
+
generated?: undefined;
|
|
97
|
+
publicAggreDepths: MexcAggreDepths;
|
|
98
|
+
};
|
|
99
|
+
type MexcAggreDepths = {
|
|
100
|
+
eventType: 'spot@public.aggre.depth.v3.api.pb@10ms';
|
|
101
|
+
asks?: MexcPriceLevel[];
|
|
102
|
+
bids?: MexcPriceLevel[];
|
|
103
|
+
fromVersion: string;
|
|
104
|
+
toVersion: string;
|
|
105
|
+
lastOrderCreateTime?: string | number;
|
|
106
|
+
};
|
|
107
|
+
type MexcPriceLevel = {
|
|
108
|
+
price: string;
|
|
109
|
+
quantity: string;
|
|
110
|
+
};
|
|
111
|
+
type MexcBookTickerMessage = MexcProtobufMessage<'spot@public.aggre.bookTicker.v3.api.pb@10ms'> & {
|
|
112
|
+
publicAggreBookTicker: {
|
|
113
|
+
bidPrice?: string;
|
|
114
|
+
bidQuantity?: string;
|
|
115
|
+
askPrice?: string;
|
|
116
|
+
askQuantity?: string;
|
|
117
|
+
version?: string;
|
|
118
|
+
lastOrderCreateTime?: string | number;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
export {};
|
|
122
|
+
//# sourceMappingURL=mexc.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mexc.d.ts","sourceRoot":"","sources":["../../src/mappers/mexc.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAkB,UAAU,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AAC3E,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AAGpC,eAAO,MAAM,WAAW;;;;;;CAMtB,CAAA;AAEF,qBAAa,gBAAiB,YAAW,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC;IAC5D,OAAO,CAAC,QAAQ,CAAC,OAAO,CAA2C;IAEnE,SAAS,CAAC,OAAO,EAAE,gBAAgB,GAAG,kBAAkB;IAIxD,UAAU,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE;;;;IAI5B,GAAG,CAAC,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,IAAI,GAAG,gBAAgB,CAAC,KAAK,CAAC;CAe/E;AAED,qBAAa,oBAAqB,YAAW,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC;IACrE,OAA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,EAAE,SAAS,CAAA;IACrB,iBAAiB,EAAE,eAAe,CAAA;CACnC,CAAA;AAED,KAAK,eAAe,GAAG;IACrB,SAAS,EAAE,wCAAwC,CAAA;IACnD,IAAI,CAAC,EAAE,cAAc,EAAE,CAAA;IACvB,IAAI,CAAC,EAAE,cAAc,EAAE,CAAA;IACvB,WAAW,EAAE,MAAM,CAAA;IACnB,SAAS,EAAE,MAAM,CAAA;IACjB,mBAAmB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;CACtC,CAAA;AAED,KAAK,cAAc,GAAG;IACpB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,KAAK,qBAAqB,GAAG,mBAAmB,CAAC,6CAA6C,CAAC,GAAG;IAChG,qBAAqB,EAAE;QACrB,QAAQ,CAAC,EAAE,MAAM,CAAA;QACjB,WAAW,CAAC,EAAE,MAAM,CAAA;QACpB,QAAQ,CAAC,EAAE,MAAM,CAAA;QACjB,WAAW,CAAC,EAAE,MAAM,CAAA;QACpB,OAAO,CAAC,EAAE,MAAM,CAAA;QAChB,mBAAmB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;KACtC,CAAA;CACF,CAAA"}
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
import { debug } from "../debug.js";
|
|
2
|
+
import { asNumberOrUndefined, CircularBuffer, upperCaseSymbols } from "../handy.js";
|
|
3
|
+
import { exchangeMappers, isRealTime } from "./registry.js";
|
|
4
|
+
export const mexcMappers = exchangeMappers({
|
|
5
|
+
mexc: {
|
|
6
|
+
trades: () => new MexcTradesMapper(),
|
|
7
|
+
bookChanges: (localTimestamp) => new MexcBookChangeMapper({ ignoreBookSnapshotOverlapError: isRealTime(localTimestamp) === false }),
|
|
8
|
+
bookTickers: () => new MexcBookTickerMapper()
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
export class MexcTradesMapper {
|
|
12
|
+
channel = 'spot@public.aggre.deals.v3.api.pb@10ms';
|
|
13
|
+
canHandle(message) {
|
|
14
|
+
return message.channel?.startsWith(`${this.channel}@`) === true && 'publicAggreDeals' in message;
|
|
15
|
+
}
|
|
16
|
+
getFilters(symbols) {
|
|
17
|
+
return [{ channel: this.channel, symbols: upperCaseSymbols(symbols) }];
|
|
18
|
+
}
|
|
19
|
+
*map(message, localTimestamp) {
|
|
20
|
+
for (const trade of message.publicAggreDeals.deals) {
|
|
21
|
+
yield {
|
|
22
|
+
type: 'trade',
|
|
23
|
+
symbol: message.symbol,
|
|
24
|
+
exchange: 'mexc',
|
|
25
|
+
id: trade.tradeId,
|
|
26
|
+
price: Number(trade.price),
|
|
27
|
+
amount: Number(trade.quantity),
|
|
28
|
+
side: trade.tradeType === MexcTradeType.Buy ? 'buy' : 'sell',
|
|
29
|
+
timestamp: new Date(Number(trade.time)),
|
|
30
|
+
localTimestamp
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
export class MexcBookChangeMapper {
|
|
36
|
+
channel = 'spot@public.aggre.depth.v3.api.pb@10ms';
|
|
37
|
+
snapshotChannel = 'spot@public.aggre.depth.snapshot.v3.api.pb@10ms';
|
|
38
|
+
symbolDepthInfo = {};
|
|
39
|
+
ignoreBookSnapshotOverlapError;
|
|
40
|
+
constructor({ ignoreBookSnapshotOverlapError }) {
|
|
41
|
+
this.ignoreBookSnapshotOverlapError = ignoreBookSnapshotOverlapError;
|
|
42
|
+
}
|
|
43
|
+
canHandle(message) {
|
|
44
|
+
return message.generated === true
|
|
45
|
+
? message.channel?.startsWith(`${this.snapshotChannel}@`) === true && 'publicAggreDepthsSnapshot' in message
|
|
46
|
+
: message.channel?.startsWith(`${this.channel}@`) === true && 'publicAggreDepths' in message;
|
|
47
|
+
}
|
|
48
|
+
getFilters(symbols) {
|
|
49
|
+
const normalizedSymbols = upperCaseSymbols(symbols);
|
|
50
|
+
return [
|
|
51
|
+
{ channel: this.channel, symbols: normalizedSymbols },
|
|
52
|
+
{ channel: this.snapshotChannel, symbols: normalizedSymbols }
|
|
53
|
+
];
|
|
54
|
+
}
|
|
55
|
+
*map(message, localTimestamp) {
|
|
56
|
+
const depthInfo = this.getDepthInfoFor(message.symbol);
|
|
57
|
+
if (message.generated === true) {
|
|
58
|
+
if (depthInfo.snapshotEmitted) {
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
let currentBookVersion = Number(message.publicAggreDepthsSnapshot.lastUpdateId);
|
|
62
|
+
const bids = message.publicAggreDepthsSnapshot.bids.map(this.mapDepthSnapshotLevel);
|
|
63
|
+
const asks = message.publicAggreDepthsSnapshot.asks.map(this.mapDepthSnapshotLevel);
|
|
64
|
+
for (const update of depthInfo.updates.items()) {
|
|
65
|
+
const fromVersion = Number(update.publicAggreDepths.fromVersion);
|
|
66
|
+
const toVersion = Number(update.publicAggreDepths.toVersion);
|
|
67
|
+
if (currentBookVersion >= toVersion) {
|
|
68
|
+
continue;
|
|
69
|
+
}
|
|
70
|
+
if (!depthInfo.isContinuityValidated) {
|
|
71
|
+
if (fromVersion > currentBookVersion + 1 || toVersion < currentBookVersion + 1) {
|
|
72
|
+
const message = `MEXC depth snapshot has no overlap with first update, update ${JSON.stringify(update)}, currentBookVersion: ${currentBookVersion}`;
|
|
73
|
+
if (this.ignoreBookSnapshotOverlapError) {
|
|
74
|
+
depthInfo.isContinuityValidated = true;
|
|
75
|
+
debug(message);
|
|
76
|
+
}
|
|
77
|
+
else {
|
|
78
|
+
throw new Error(message);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
else {
|
|
82
|
+
depthInfo.isContinuityValidated = true;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
for (const bid of update.publicAggreDepths.bids ?? []) {
|
|
86
|
+
this.applyLevel(bids, this.mapBookLevel(bid));
|
|
87
|
+
}
|
|
88
|
+
for (const ask of update.publicAggreDepths.asks ?? []) {
|
|
89
|
+
this.applyLevel(asks, this.mapBookLevel(ask));
|
|
90
|
+
}
|
|
91
|
+
currentBookVersion = toVersion;
|
|
92
|
+
}
|
|
93
|
+
depthInfo.updates.clear();
|
|
94
|
+
depthInfo.currentBookVersion = currentBookVersion;
|
|
95
|
+
depthInfo.snapshotEmitted = true;
|
|
96
|
+
yield {
|
|
97
|
+
type: 'book_change',
|
|
98
|
+
symbol: message.symbol,
|
|
99
|
+
exchange: 'mexc',
|
|
100
|
+
isSnapshot: true,
|
|
101
|
+
bids,
|
|
102
|
+
asks,
|
|
103
|
+
timestamp: new Date(Number(message.publicAggreDepthsSnapshot.timestamp)),
|
|
104
|
+
localTimestamp
|
|
105
|
+
};
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
if (!depthInfo.snapshotEmitted) {
|
|
109
|
+
depthInfo.updates.append(message);
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
const fromVersion = Number(message.publicAggreDepths.fromVersion);
|
|
113
|
+
const toVersion = Number(message.publicAggreDepths.toVersion);
|
|
114
|
+
if (toVersion <= depthInfo.currentBookVersion) {
|
|
115
|
+
return;
|
|
116
|
+
}
|
|
117
|
+
if (!depthInfo.isContinuityValidated) {
|
|
118
|
+
if (fromVersion > depthInfo.currentBookVersion + 1 || toVersion < depthInfo.currentBookVersion + 1) {
|
|
119
|
+
const errorMessage = `MEXC depth snapshot has no overlap with first update, update ${JSON.stringify(message)}, currentBookVersion: ${depthInfo.currentBookVersion}`;
|
|
120
|
+
if (this.ignoreBookSnapshotOverlapError) {
|
|
121
|
+
depthInfo.isContinuityValidated = true;
|
|
122
|
+
debug(errorMessage);
|
|
123
|
+
}
|
|
124
|
+
else {
|
|
125
|
+
throw new Error(errorMessage);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
else {
|
|
129
|
+
depthInfo.isContinuityValidated = true;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
depthInfo.currentBookVersion = toVersion;
|
|
133
|
+
yield {
|
|
134
|
+
type: 'book_change',
|
|
135
|
+
symbol: message.symbol,
|
|
136
|
+
exchange: 'mexc',
|
|
137
|
+
isSnapshot: false,
|
|
138
|
+
bids: (message.publicAggreDepths.bids ?? []).map(this.mapBookLevel),
|
|
139
|
+
asks: (message.publicAggreDepths.asks ?? []).map(this.mapBookLevel),
|
|
140
|
+
timestamp: new Date(Number(message.sendTime)),
|
|
141
|
+
localTimestamp
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
applyLevel(bookSide, levelUpdate) {
|
|
145
|
+
const existingIndex = bookSide.findIndex((level) => level.price === levelUpdate.price);
|
|
146
|
+
if (levelUpdate.amount === 0) {
|
|
147
|
+
if (existingIndex !== -1) {
|
|
148
|
+
bookSide.splice(existingIndex, 1);
|
|
149
|
+
}
|
|
150
|
+
return;
|
|
151
|
+
}
|
|
152
|
+
if (existingIndex === -1) {
|
|
153
|
+
bookSide.push(levelUpdate);
|
|
154
|
+
}
|
|
155
|
+
else {
|
|
156
|
+
bookSide[existingIndex] = levelUpdate;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
mapBookLevel(level) {
|
|
160
|
+
return {
|
|
161
|
+
price: Number(level.price),
|
|
162
|
+
amount: Number(level.quantity)
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
mapDepthSnapshotLevel([price, quantity]) {
|
|
166
|
+
return {
|
|
167
|
+
price: Number(price),
|
|
168
|
+
amount: Number(quantity)
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
getDepthInfoFor(symbol) {
|
|
172
|
+
if (this.symbolDepthInfo[symbol] === undefined) {
|
|
173
|
+
this.symbolDepthInfo[symbol] = { updates: new CircularBuffer(2000) };
|
|
174
|
+
}
|
|
175
|
+
return this.symbolDepthInfo[symbol];
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
export class MexcBookTickerMapper {
|
|
179
|
+
channel = 'spot@public.aggre.bookTicker.v3.api.pb@10ms';
|
|
180
|
+
canHandle(message) {
|
|
181
|
+
return message.channel?.startsWith(`${this.channel}@`) === true && 'publicAggreBookTicker' in message;
|
|
182
|
+
}
|
|
183
|
+
getFilters(symbols) {
|
|
184
|
+
return [{ channel: this.channel, symbols: upperCaseSymbols(symbols) }];
|
|
185
|
+
}
|
|
186
|
+
*map(message, localTimestamp) {
|
|
187
|
+
yield {
|
|
188
|
+
type: 'book_ticker',
|
|
189
|
+
symbol: message.symbol,
|
|
190
|
+
exchange: 'mexc',
|
|
191
|
+
askAmount: asNumberOrUndefined(message.publicAggreBookTicker.askQuantity),
|
|
192
|
+
askPrice: asNumberOrUndefined(message.publicAggreBookTicker.askPrice),
|
|
193
|
+
bidAmount: asNumberOrUndefined(message.publicAggreBookTicker.bidQuantity),
|
|
194
|
+
bidPrice: asNumberOrUndefined(message.publicAggreBookTicker.bidPrice),
|
|
195
|
+
timestamp: new Date(Number(message.sendTime)),
|
|
196
|
+
localTimestamp
|
|
197
|
+
};
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
var MexcTradeType;
|
|
201
|
+
(function (MexcTradeType) {
|
|
202
|
+
MexcTradeType[MexcTradeType["Buy"] = 1] = "Buy";
|
|
203
|
+
MexcTradeType[MexcTradeType["Sell"] = 2] = "Sell";
|
|
204
|
+
})(MexcTradeType || (MexcTradeType = {}));
|
|
205
|
+
//# sourceMappingURL=mexc.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mexc.js","sourceRoot":"","sources":["../../src/mappers/mexc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AACnC,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAGnF,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAE3D,MAAM,CAAC,MAAM,WAAW,GAAG,eAAe,CAAC;IACzC,IAAI,EAAE;QACJ,MAAM,EAAE,GAAG,EAAE,CAAC,IAAI,gBAAgB,EAAE;QACpC,WAAW,EA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A8B,EAAE,cAAoB;QACvD,MAAM;YACJ,IAAI,EAAE,aAAa;YACnB,MAAM,EAAE,OAAO,CAAC,MAAM;YACtB,QAAQ,EAAE,MAAM;YAChB,SAAS,EAAE,mBAAmB,CAAC,OAAO,CAAC,qBAAqB,CAAC,WAAW,CAAC;YACzE,QAAQ,EAAE,mBAAmB,CAAC,OAAO,CAAC,qBAAqB,CAAC,QAAQ,CAAC;YACrE,SAAS,EAAE,mBAAmB,CAAC,OAAO,CAAC,qBAAqB,CAAC,WAAW,CAAC;YACzE,QAAQ,EAAE,mBAAmB,CAAC,OAAO,CAAC,qBAAqB,CAAC,QAAQ,CAAC;YACrE,SAAS,EAAE,IAAI,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;YAC7C,cAAc;SACf,CAAA;IACH,CAAC;CACF;AAuCD,IAAK,aAGJ;AAHD,WAAK,aAAa;IAChB,+CAAO,CAAA;IACP,iDAAQ,CAAA;AACV,CAAC,EAHI,aAAa,KAAb,aAAa,QAGjB"}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { BookChange, DerivativeTicker, Trade } from '../types.ts';
|
|
2
|
+
import { Mapper } from './mapper.ts';
|
|
3
|
+
export declare const mexcFuturesMappers: {
|
|
4
|
+
'mexc-futures': {
|
|
5
|
+
trades: import("./registry.ts").MapperCreator<"bitmex" | "deribit" | "binance-futures" | "binance-delivery" | "binance-european-options" | "binance" | "ftx" | "okex-futures" | "okex-options" | "okex-swap" | "okex" | "okex-spreads" | "huobi-dm" | "huobi-dm-swap" | "huobi-dm-linear-swap" | "huobi" | "bitfinex-derivatives" | "bitfinex" | "coinbase" | "coinbase-international" | "cryptofacilities" | "kraken" | "bitstamp" | "gemini" | "poloniex" | "bybit" | "bybit-spot" | "bybit-options" | "phemex" | "delta" | "ftx-us" | "binance-us" | "gate-io-futures" | "mexc-futures" | "gate-io" | "okcoin" | "bitflyer" | "hitbtc" | "coinflex" | "binance-jersey" | "binance-dex" | "upbit" | "ascendex" | "dydx" | "dydx-v4" | "serum" | "mango" | "huobi-dm-options" | "star-atlas" | "crypto-com" | "kucoin" | "kucoin-futures" | "bitnomial" | "woo-x" | "blockchain-com" | "bitget" | "bitget-futures" | "hyperliquid" | "lighter" | "bullish" | "mexc" | "polymarket", Trade>;
|
|
6
|
+
bookChanges: import("./registry.ts").MapperCreator<"bitmex" | "deribit" | "binance-futures" | "binance-delivery" | "binance-european-options" | "binance" | "ftx" | "okex-futures" | "okex-options" | "okex-swap" | "okex" | "okex-spreads" | "huobi-dm" | "huobi-dm-swap" | "huobi-dm-linear-swap" | "huobi" | "bitfinex-derivatives" | "bitfinex" | "coinbase" | "coinbase-international" | "cryptofacilities" | "kraken" | "bitstamp" | "gemini" | "poloniex" | "bybit" | "bybit-spot" | "bybit-options" | "phemex" | "delta" | "ftx-us" | "binance-us" | "gate-io-futures" | "mexc-futures" | "gate-io" | "okcoin" | "bitflyer" | "hitbtc" | "coinflex" | "binance-jersey" | "binance-dex" | "upbit" | "ascendex" | "dydx" | "dydx-v4" | "serum" | "mango" | "huobi-dm-options" | "star-atlas" | "crypto-com" | "kucoin" | "kucoin-futures" | "bitnomial" | "woo-x" | "blockchain-com" | "bitget" | "bitget-futures" | "hyperliquid" | "lighter" | "bullish" | "mexc" | "polymarket", BookChange>;
|
|
7
|
+
derivativeTickers: import("./registry.ts").MapperCreator<"bitmex" | "deribit" | "binance-futures" | "binance-delivery" | "binance-european-options" | "binance" | "ftx" | "okex-futures" | "okex-options" | "okex-swap" | "okex" | "okex-spreads" | "huobi-dm" | "huobi-dm-swap" | "huobi-dm-linear-swap" | "huobi" | "bitfinex-derivatives" | "bitfinex" | "coinbase" | "coinbase-international" | "cryptofacilities" | "kraken" | "bitstamp" | "gemini" | "poloniex" | "bybit" | "bybit-spot" | "bybit-options" | "phemex" | "delta" | "ftx-us" | "binance-us" | "gate-io-futures" | "mexc-futures" | "gate-io" | "okcoin" | "bitflyer" | "hitbtc" | "coinflex" | "binance-jersey" | "binance-dex" | "upbit" | "ascendex" | "dydx" | "dydx-v4" | "serum" | "mango" | "huobi-dm-options" | "star-atlas" | "crypto-com" | "kucoin" | "kucoin-futures" | "bitnomial" | "woo-x" | "blockchain-com" | "bitget" | "bitget-futures" | "hyperliquid" | "lighter" | "bullish" | "mexc" | "polymarket", DerivativeTicker>;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export declare class MexcFuturesTradesMapper implements Mapper<'mexc-futures', Trade> {
|
|
11
|
+
canHandle(message: MexcFuturesDealMessage): boolean;
|
|
12
|
+
getFilters(symbols?: string[]): {
|
|
13
|
+
readonly channel: "push.deal";
|
|
14
|
+
readonly symbols: string[] | undefined;
|
|
15
|
+
}[];
|
|
16
|
+
map(message: MexcFuturesDealMessage, localTimestamp: Date): IterableIterator<Trade>;
|
|
17
|
+
}
|
|
18
|
+
export declare class MexcFuturesBookChangeMapper implements Mapper<'mexc-futures', BookChange> {
|
|
19
|
+
private readonly symbolDepthInfo;
|
|
20
|
+
private readonly ignoreBookSnapshotOverlapError;
|
|
21
|
+
constructor({ ignoreBookSnapshotOverlapError }: {
|
|
22
|
+
ignoreBookSnapshotOverlapError: boolean;
|
|
23
|
+
});
|
|
24
|
+
canHandle(message: MexcFuturesDepthMessage): message is MexcFuturesDepthSnapshotMessage | MexcFuturesDepthUpdateMessage;
|
|
25
|
+
getFilters(symbols?: string[]): ({
|
|
26
|
+
readonly channel: "push.depth";
|
|
27
|
+
readonly symbols: string[] | undefined;
|
|
28
|
+
} | {
|
|
29
|
+
readonly channel: "push.depth.snapshot";
|
|
30
|
+
readonly symbols: string[] | undefined;
|
|
31
|
+
})[];
|
|
32
|
+
map(message: MexcFuturesDepthMessage, localTimestamp: Date): IterableIterator<BookChange>;
|
|
33
|
+
private getFirstVersion;
|
|
34
|
+
private getLastVersion;
|
|
35
|
+
private applyLevel;
|
|
36
|
+
private mapBookLevel;
|
|
37
|
+
private getSymbolDepthInfo;
|
|
38
|
+
}
|
|
39
|
+
export declare class MexcFuturesDerivativeTickerMapper implements Mapper<'mexc-futures', DerivativeTicker> {
|
|
40
|
+
private readonly pendingTickerInfoHelper;
|
|
41
|
+
canHandle(message: MexcFuturesTickerMessage | MexcFuturesFundingRateMessage): boolean;
|
|
42
|
+
getFilters(symbols?: string[]): ({
|
|
43
|
+
readonly channel: "push.ticker";
|
|
44
|
+
readonly symbols: string[] | undefined;
|
|
45
|
+
} | {
|
|
46
|
+
readonly channel: "push.funding.rate";
|
|
47
|
+
readonly symbols: string[] | undefined;
|
|
48
|
+
})[];
|
|
49
|
+
map(message: MexcFuturesTickerMessage | MexcFuturesFundingRateMessage, localTimestamp: Date): IterableIterator<DerivativeTicker>;
|
|
50
|
+
}
|
|
51
|
+
declare const MEXC_FUTURES_MAPPED_PUSH_CHANNELS: readonly ["push.deal", "push.depth", "push.depth.snapshot", "push.ticker", "push.index.price", "push.fair.price", "push.funding.rate"];
|
|
52
|
+
type MexcFuturesMappedPushChannel = (typeof MEXC_FUTURES_MAPPED_PUSH_CHANNELS)[number];
|
|
53
|
+
type MexcFuturesMessage<TChannel extends MexcFuturesMappedPushChannel, TData> = {
|
|
54
|
+
channel: TChannel;
|
|
55
|
+
symbol: string;
|
|
56
|
+
ts: number;
|
|
57
|
+
data: TData;
|
|
58
|
+
};
|
|
59
|
+
type MexcFuturesDealMessage = MexcFuturesMessage<'push.deal', {
|
|
60
|
+
p: number;
|
|
61
|
+
v: number;
|
|
62
|
+
T: MexcFuturesTradeSide;
|
|
63
|
+
O: MexcFuturesOpenCloseFlag;
|
|
64
|
+
M: MexcFuturesSelfTrade;
|
|
65
|
+
t: number;
|
|
66
|
+
i: string;
|
|
67
|
+
cts?: string;
|
|
68
|
+
}[]>;
|
|
69
|
+
declare enum MexcFuturesTradeSide {
|
|
70
|
+
Buy = 1,
|
|
71
|
+
Sell = 2
|
|
72
|
+
}
|
|
73
|
+
declare enum MexcFuturesOpenCloseFlag {
|
|
74
|
+
NewPosition = 1,
|
|
75
|
+
ReducePosition = 2,
|
|
76
|
+
Unchanged = 3
|
|
77
|
+
}
|
|
78
|
+
declare enum MexcFuturesSelfTrade {
|
|
79
|
+
Yes = 1,
|
|
80
|
+
No = 2
|
|
81
|
+
}
|
|
82
|
+
type MexcFuturesDepthMessage = MexcFuturesDepthSnapshotMessage | MexcFuturesDepthUpdateMessage;
|
|
83
|
+
export type MexcFuturesDepthSnapshotMessage = {
|
|
84
|
+
channel: 'push.depth.snapshot';
|
|
85
|
+
symbol: string;
|
|
86
|
+
generated: true;
|
|
87
|
+
data: MexcFuturesDepthSnapshotData;
|
|
88
|
+
};
|
|
89
|
+
export type MexcFuturesDepthSnapshotData = {
|
|
90
|
+
asks: MexcFuturesDepthLevel[];
|
|
91
|
+
bids: MexcFuturesDepthLevel[];
|
|
92
|
+
cts?: number | null;
|
|
93
|
+
timestamp: number;
|
|
94
|
+
version: number;
|
|
95
|
+
};
|
|
96
|
+
type MexcFuturesDepthUpdateMessage = MexcFuturesMessage<'push.depth', MexcFuturesDepthUpdateData> & {
|
|
97
|
+
generated?: undefined;
|
|
98
|
+
};
|
|
99
|
+
export type MexcFuturesDepthUpdateData = {
|
|
100
|
+
asks: MexcFuturesDepthLevel[];
|
|
101
|
+
bids: MexcFuturesDepthLevel[];
|
|
102
|
+
begin?: number | null;
|
|
103
|
+
cts?: number;
|
|
104
|
+
end?: number | null;
|
|
105
|
+
version: number;
|
|
106
|
+
};
|
|
107
|
+
export type MexcFuturesDepthLevel = [price: number, quantity: number, ordersCount: number];
|
|
108
|
+
type MexcFuturesTickerMessage = MexcFuturesMessage<'push.ticker', {
|
|
109
|
+
ask1: number;
|
|
110
|
+
bid1: number;
|
|
111
|
+
contractId?: number;
|
|
112
|
+
fairPrice: number;
|
|
113
|
+
fundingRate: number;
|
|
114
|
+
high24Price: number;
|
|
115
|
+
indexPrice: number;
|
|
116
|
+
lastPrice: number;
|
|
117
|
+
lower24Price: number;
|
|
118
|
+
maxBidPrice: number;
|
|
119
|
+
minAskPrice: number;
|
|
120
|
+
riseFallRate: number;
|
|
121
|
+
riseFallValue: number;
|
|
122
|
+
symbol: string;
|
|
123
|
+
timestamp: number;
|
|
124
|
+
holdVol: number;
|
|
125
|
+
volume24: number;
|
|
126
|
+
amount24?: number;
|
|
127
|
+
riseFallRates?: number[];
|
|
128
|
+
riseFallRatesOfTimezone?: number[];
|
|
129
|
+
zone?: string;
|
|
130
|
+
}>;
|
|
131
|
+
type MexcFuturesFundingRateMessage = MexcFuturesMessage<'push.funding.rate', {
|
|
132
|
+
rate: number;
|
|
133
|
+
symbol: string;
|
|
134
|
+
nextSettleTime?: number;
|
|
135
|
+
}>;
|
|
136
|
+
export {};
|
|
137
|
+
//# sourceMappingURL=mexcfutures.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mexcfutures.d.ts","sourceRoot":"","sources":["../../src/mappers/mexcfutures.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AACjE,OAAO,EAAE,MAAM,EAA2B,MAAM,aAAa,CAAA;AAG7D,eAAO,MAAM,kBAAkB;;;;;;CAO7B,CAAA;AAEF,qBAAa,uBAAwB,YAAW,MAAM,CAAC,cAAc,EAAE,KAAK,CAAC;IAC3E,SAAS,CAAC,OAAO,EAAE,sBAAsB;IAIzC,UAAU,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE;;;;IAI5B,GAAG,CAAC,OAAO,EAAE,sBAAsB,EAAE,cAAc,EAAE,IAAI,GAAG,gBAAgB,CAAC,KAAK,CAAC;CAerF;AAED,qBAAa,2BAA4B,YAAW,MAAM,CAAC,cAAc,EAAE,UAAU,CAAC;IACpF,OAAO,CAAC,QAAQ,CAAC,eAAe,CAA2C;IAC3E,OAAO,CAAC,QAAQ,CAAC,8BAA8B,CAAS;gBAE5C,EAAE,8BAA8B,EAAE,EAAE;QAAE,8BAA8B,EAAE,OAAO,CAAA;KAAE;I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