ccxt 4.4.30 → 4.4.32
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/README.md +9 -3
- package/dist/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/ace.js +123 -123
- package/dist/cjs/src/alpaca.js +237 -237
- package/dist/cjs/src/ascendex.js +342 -341
- package/dist/cjs/src/bigone.js +242 -242
- package/dist/cjs/src/binance.js +1339 -1291
- package/dist/cjs/src/bingx.js +639 -639
- package/dist/cjs/src/bit2c.js +111 -111
- package/dist/cjs/src/bitbank.js +142 -142
- package/dist/cjs/src/bitbns.js +140 -140
- package/dist/cjs/src/bitfinex.js +231 -231
- package/dist/cjs/src/bitfinex2.js +403 -403
- package/dist/cjs/src/bitflyer.js +184 -184
- package/dist/cjs/src/bitget.js +848 -846
- package/dist/cjs/src/bithumb.js +125 -124
- package/dist/cjs/src/bitmart.js +525 -525
- package/dist/cjs/src/bitmex.js +317 -317
- package/dist/cjs/src/bitopro.js +221 -221
- package/dist/cjs/src/bitrue.js +315 -315
- package/dist/cjs/src/bitso.js +220 -220
- package/dist/cjs/src/bitstamp.js +251 -251
- package/dist/cjs/src/bitteam.js +183 -183
- package/dist/cjs/src/bitvavo.js +247 -251
- package/dist/cjs/src/bl3p.js +82 -82
- package/dist/cjs/src/blockchaincom.js +211 -211
- package/dist/cjs/src/blofin.js +332 -331
- package/dist/cjs/src/btcalpha.js +166 -166
- package/dist/cjs/src/btcbox.js +108 -108
- package/dist/cjs/src/btcmarkets.js +198 -198
- package/dist/cjs/src/btcturk.js +124 -124
- package/dist/cjs/src/bybit.js +906 -900
- package/dist/cjs/src/cex.js +227 -226
- package/dist/cjs/src/coinbase.js +481 -481
- package/dist/cjs/src/coinbaseexchange.js +274 -274
- package/dist/cjs/src/coinbaseinternational.js +304 -304
- package/dist/cjs/src/coincatch.js +650 -650
- package/dist/cjs/src/coincheck.js +113 -113
- package/dist/cjs/src/coinex.js +611 -601
- package/dist/cjs/src/coinlist.js +304 -303
- package/dist/cjs/src/coinmate.js +162 -161
- package/dist/cjs/src/coinmetro.js +187 -187
- package/dist/cjs/src/coinone.js +124 -123
- package/dist/cjs/src/coinsph.js +237 -237
- package/dist/cjs/src/coinspot.js +82 -82
- package/dist/cjs/src/cryptocom.js +342 -341
- package/dist/cjs/src/currencycom.js +225 -224
- package/dist/cjs/src/delta.js +320 -320
- package/dist/cjs/src/deribit.js +411 -408
- package/dist/cjs/src/digifinex.js +432 -431
- package/dist/cjs/src/exmo.js +328 -327
- package/dist/cjs/src/gate.js +830 -791
- package/dist/cjs/src/gemini.js +199 -198
- package/dist/cjs/src/hashkey.js +520 -517
- package/dist/cjs/src/hitbtc.js +465 -462
- package/dist/cjs/src/hollaex.js +253 -252
- package/dist/cjs/src/htx.js +791 -848
- package/dist/cjs/src/huobijp.js +219 -218
- package/dist/cjs/src/hyperliquid.js +421 -417
- package/dist/cjs/src/idex.js +238 -237
- package/dist/cjs/src/independentreserve.js +133 -132
- package/dist/cjs/src/indodax.js +177 -171
- package/dist/cjs/src/kraken.js +381 -377
- package/dist/cjs/src/krakenfutures.js +285 -279
- package/dist/cjs/src/kucoin.js +632 -622
- package/dist/cjs/src/kucoinfutures.js +533 -457
- package/dist/cjs/src/kuna.js +283 -282
- package/dist/cjs/src/latoken.js +211 -210
- package/dist/cjs/src/lbank.js +268 -267
- package/dist/cjs/src/luno.js +174 -173
- package/dist/cjs/src/lykke.js +172 -171
- package/dist/cjs/src/mercado.js +123 -122
- package/dist/cjs/src/mexc.js +650 -646
- package/dist/cjs/src/ndax.js +229 -228
- package/dist/cjs/src/novadax.js +230 -229
- package/dist/cjs/src/oceanex.js +187 -186
- package/dist/cjs/src/okcoin.js +286 -285
- package/dist/cjs/src/okx.js +909 -904
- package/dist/cjs/src/onetrading.js +218 -218
- package/dist/cjs/src/oxfun.js +335 -334
- package/dist/cjs/src/p2b.js +154 -154
- package/dist/cjs/src/paradex.js +249 -244
- package/dist/cjs/src/paymium.js +101 -101
- package/dist/cjs/src/phemex.js +388 -390
- package/dist/cjs/src/poloniex.js +270 -270
- package/dist/cjs/src/poloniexfutures.js +250 -250
- package/dist/cjs/src/pro/alpaca.js +64 -64
- package/dist/cjs/src/pro/ascendex.js +64 -64
- package/dist/cjs/src/pro/binance.js +546 -543
- package/dist/cjs/src/pro/bingx.js +116 -116
- package/dist/cjs/src/pro/bitfinex.js +42 -42
- package/dist/cjs/src/pro/bitfinex2.js +66 -66
- package/dist/cjs/src/pro/bitget.js +188 -181
- package/dist/cjs/src/pro/bithumb.js +40 -40
- package/dist/cjs/src/pro/bitmart.js +121 -119
- package/dist/cjs/src/pro/bitmex.js +135 -133
- package/dist/cjs/src/pro/bitopro.js +49 -49
- package/dist/cjs/src/pro/bitrue.js +19 -19
- package/dist/cjs/src/pro/bitstamp.js +29 -29
- package/dist/cjs/src/pro/bitvavo.js +299 -301
- package/dist/cjs/src/pro/blockchaincom.js +62 -62
- package/dist/cjs/src/pro/blofin.js +132 -130
- package/dist/cjs/src/pro/bybit.js +317 -313
- package/dist/cjs/src/pro/cex.js +168 -168
- package/dist/cjs/src/pro/coinbase.js +93 -91
- package/dist/cjs/src/pro/coinbaseexchange.js +95 -95
- package/dist/cjs/src/pro/coinbaseinternational.js +111 -111
- package/dist/cjs/src/pro/coincatch.js +150 -143
- package/dist/cjs/src/pro/coincheck.js +21 -21
- package/dist/cjs/src/pro/coinex.js +110 -110
- package/dist/cjs/src/pro/coinone.js +30 -30
- package/dist/cjs/src/pro/cryptocom.js +227 -227
- package/dist/cjs/src/pro/currencycom.js +45 -45
- package/dist/cjs/src/pro/deribit.js +127 -127
- package/dist/cjs/src/pro/exmo.js +66 -66
- package/dist/cjs/src/pro/gate.js +287 -283
- package/dist/cjs/src/pro/gemini.js +74 -74
- package/dist/cjs/src/pro/hashkey.js +87 -85
- package/dist/cjs/src/pro/hitbtc.js +190 -190
- package/dist/cjs/src/pro/hollaex.js +51 -51
- package/dist/cjs/src/pro/htx.js +96 -94
- package/dist/cjs/src/pro/huobijp.js +38 -38
- package/dist/cjs/src/pro/hyperliquid.js +151 -150
- package/dist/cjs/src/pro/idex.js +48 -48
- package/dist/cjs/src/pro/independentreserve.js +19 -19
- package/dist/cjs/src/pro/kraken.js +167 -167
- package/dist/cjs/src/pro/krakenfutures.js +137 -138
- package/dist/cjs/src/pro/kucoin.js +167 -168
- package/dist/cjs/src/pro/kucoinfutures.js +147 -147
- package/dist/cjs/src/pro/lbank.js +95 -95
- package/dist/cjs/src/pro/luno.js +21 -21
- package/dist/cjs/src/pro/mexc.js +102 -103
- package/dist/cjs/src/pro/ndax.js +42 -42
- package/dist/cjs/src/pro/okcoin.js +61 -61
- package/dist/cjs/src/pro/okx.js +332 -330
- package/dist/cjs/src/pro/onetrading.js +71 -71
- package/dist/cjs/src/pro/oxfun.js +193 -191
- package/dist/cjs/src/pro/p2b.js +77 -77
- package/dist/cjs/src/pro/paradex.js +39 -39
- package/dist/cjs/src/pro/phemex.js +94 -94
- package/dist/cjs/src/pro/poloniex.js +171 -171
- package/dist/cjs/src/pro/poloniexfutures.js +62 -62
- package/dist/cjs/src/pro/probit.js +63 -63
- package/dist/cjs/src/pro/upbit.js +80 -80
- package/dist/cjs/src/pro/vertex.js +65 -63
- package/dist/cjs/src/pro/wazirx.js +70 -70
- package/dist/cjs/src/pro/whitebit.js +83 -83
- package/dist/cjs/src/pro/woo.js +106 -104
- package/dist/cjs/src/pro/woofipro.js +105 -103
- package/dist/cjs/src/pro/xt.js +119 -119
- package/dist/cjs/src/probit.js +229 -229
- package/dist/cjs/src/timex.js +198 -197
- package/dist/cjs/src/tokocrypto.js +214 -213
- package/dist/cjs/src/tradeogre.js +92 -91
- package/dist/cjs/src/upbit.js +243 -242
- package/dist/cjs/src/vertex.js +258 -258
- package/dist/cjs/src/wavesexchange.js +176 -172
- package/dist/cjs/src/wazirx.js +168 -168
- package/dist/cjs/src/whitebit.js +361 -361
- package/dist/cjs/src/woo.js +571 -572
- package/dist/cjs/src/woofipro.js +392 -391
- package/dist/cjs/src/xt.js +436 -435
- package/dist/cjs/src/yobit.js +159 -158
- package/dist/cjs/src/zaif.js +103 -103
- package/dist/cjs/src/zonda.js +168 -168
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/ace.d.ts +123 -0
- package/js/src/ace.js +123 -123
- package/js/src/alpaca.d.ts +237 -0
- package/js/src/alpaca.js +237 -237
- package/js/src/ascendex.d.ts +339 -0
- package/js/src/ascendex.js +342 -341
- package/js/src/base/types.d.ts +1 -0
- package/js/src/bigone.d.ts +242 -0
- package/js/src/bigone.js +242 -242
- package/js/src/binance.d.ts +1306 -0
- package/js/src/binance.js +1339 -1291
- package/js/src/bingx.d.ts +639 -0
- package/js/src/bingx.js +639 -639
- package/js/src/bit2c.d.ts +111 -0
- package/js/src/bit2c.js +111 -111
- package/js/src/bitbank.d.ts +142 -0
- package/js/src/bitbank.js +142 -142
- package/js/src/bitbns.d.ts +140 -0
- package/js/src/bitbns.js +140 -140
- package/js/src/bitfinex.d.ts +231 -0
- package/js/src/bitfinex.js +231 -231
- package/js/src/bitfinex2.d.ts +403 -0
- package/js/src/bitfinex2.js +403 -403
- package/js/src/bitflyer.d.ts +184 -0
- package/js/src/bitflyer.js +184 -184
- package/js/src/bitget.d.ts +846 -0
- package/js/src/bitget.js +848 -846
- package/js/src/bithumb.d.ts +125 -0
- package/js/src/bithumb.js +125 -124
- package/js/src/bitmart.d.ts +525 -0
- package/js/src/bitmart.js +525 -525
- package/js/src/bitmex.d.ts +317 -0
- package/js/src/bitmex.js +317 -317
- package/js/src/bitopro.d.ts +221 -0
- package/js/src/bitopro.js +221 -221
- package/js/src/bitrue.d.ts +315 -0
- package/js/src/bitrue.js +315 -315
- package/js/src/bitso.d.ts +220 -0
- package/js/src/bitso.js +220 -220
- package/js/src/bitstamp.d.ts +251 -0
- package/js/src/bitstamp.js +251 -251
- package/js/src/bitteam.d.ts +183 -0
- package/js/src/bitteam.js +183 -183
- package/js/src/bitvavo.d.ts +247 -0
- package/js/src/bitvavo.js +247 -251
- package/js/src/bl3p.d.ts +82 -0
- package/js/src/bl3p.js +82 -82
- package/js/src/blockchaincom.d.ts +211 -0
- package/js/src/blockchaincom.js +211 -211
- package/js/src/blofin.d.ts +332 -0
- package/js/src/blofin.js +332 -331
- package/js/src/btcalpha.d.ts +166 -0
- package/js/src/btcalpha.js +166 -166
- package/js/src/btcbox.d.ts +108 -0
- package/js/src/btcbox.js +108 -108
- package/js/src/btcmarkets.d.ts +198 -0
- package/js/src/btcmarkets.js +198 -198
- package/js/src/btcturk.d.ts +124 -0
- package/js/src/btcturk.js +124 -124
- package/js/src/bybit.d.ts +906 -1
- package/js/src/bybit.js +906 -900
- package/js/src/cex.d.ts +227 -0
- package/js/src/cex.js +227 -226
- package/js/src/coinbase.d.ts +481 -0
- package/js/src/coinbase.js +481 -481
- package/js/src/coinbaseexchange.d.ts +274 -0
- package/js/src/coinbaseexchange.js +274 -274
- package/js/src/coinbaseinternational.d.ts +304 -0
- package/js/src/coinbaseinternational.js +304 -304
- package/js/src/coincatch.d.ts +646 -0
- package/js/src/coincatch.js +650 -650
- package/js/src/coincheck.d.ts +113 -0
- package/js/src/coincheck.js +113 -113
- package/js/src/coinex.d.ts +603 -0
- package/js/src/coinex.js +611 -601
- package/js/src/coinlist.d.ts +304 -0
- package/js/src/coinlist.js +304 -303
- package/js/src/coinmate.d.ts +162 -0
- package/js/src/coinmate.js +162 -161
- package/js/src/coinmetro.d.ts +187 -0
- package/js/src/coinmetro.js +187 -187
- package/js/src/coinone.d.ts +124 -0
- package/js/src/coinone.js +124 -123
- package/js/src/coinsph.d.ts +237 -0
- package/js/src/coinsph.js +237 -237
- package/js/src/coinspot.d.ts +82 -0
- package/js/src/coinspot.js +82 -82
- package/js/src/cryptocom.d.ts +342 -0
- package/js/src/cryptocom.js +342 -341
- package/js/src/currencycom.d.ts +225 -0
- package/js/src/currencycom.js +225 -224
- package/js/src/delta.d.ts +320 -0
- package/js/src/delta.js +320 -320
- package/js/src/deribit.d.ts +411 -0
- package/js/src/deribit.js +411 -408
- package/js/src/digifinex.d.ts +430 -0
- package/js/src/digifinex.js +432 -431
- package/js/src/exmo.d.ts +328 -0
- package/js/src/exmo.js +328 -327
- package/js/src/gate.d.ts +803 -1
- package/js/src/gate.js +830 -791
- package/js/src/gemini.d.ts +199 -0
- package/js/src/gemini.js +199 -198
- package/js/src/hashkey.d.ts +516 -0
- package/js/src/hashkey.js +520 -517
- package/js/src/hitbtc.d.ts +465 -0
- package/js/src/hitbtc.js +465 -462
- package/js/src/hollaex.d.ts +253 -0
- package/js/src/hollaex.js +253 -252
- package/js/src/htx.d.ts +765 -2
- package/js/src/htx.js +791 -848
- package/js/src/huobijp.d.ts +219 -0
- package/js/src/huobijp.js +219 -218
- package/js/src/hyperliquid.d.ts +419 -0
- package/js/src/hyperliquid.js +421 -417
- package/js/src/idex.d.ts +238 -0
- package/js/src/idex.js +238 -237
- package/js/src/independentreserve.d.ts +133 -0
- package/js/src/independentreserve.js +133 -132
- package/js/src/indodax.d.ts +171 -0
- package/js/src/indodax.js +177 -171
- package/js/src/kraken.d.ts +381 -0
- package/js/src/kraken.js +381 -377
- package/js/src/krakenfutures.d.ts +282 -0
- package/js/src/krakenfutures.js +285 -279
- package/js/src/kucoin.d.ts +613 -0
- package/js/src/kucoin.js +632 -622
- package/js/src/kucoinfutures.d.ts +441 -0
- package/js/src/kucoinfutures.js +533 -457
- package/js/src/kuna.d.ts +283 -0
- package/js/src/kuna.js +283 -282
- package/js/src/latoken.d.ts +211 -0
- package/js/src/latoken.js +211 -210
- package/js/src/lbank.d.ts +268 -0
- package/js/src/lbank.js +268 -267
- package/js/src/luno.d.ts +174 -0
- package/js/src/luno.js +174 -173
- package/js/src/lykke.d.ts +172 -0
- package/js/src/lykke.js +172 -171
- package/js/src/mercado.d.ts +123 -0
- package/js/src/mercado.js +123 -122
- package/js/src/mexc.d.ts +647 -0
- package/js/src/mexc.js +650 -646
- package/js/src/ndax.d.ts +229 -0
- package/js/src/ndax.js +229 -228
- package/js/src/novadax.d.ts +230 -0
- package/js/src/novadax.js +230 -229
- package/js/src/oceanex.d.ts +187 -0
- package/js/src/oceanex.js +187 -186
- package/js/src/okcoin.d.ts +286 -0
- package/js/src/okcoin.js +286 -285
- package/js/src/okx.d.ts +907 -0
- package/js/src/okx.js +909 -904
- package/js/src/onetrading.d.ts +218 -0
- package/js/src/onetrading.js +218 -218
- package/js/src/oxfun.d.ts +336 -3
- package/js/src/oxfun.js +335 -334
- package/js/src/p2b.d.ts +154 -0
- package/js/src/p2b.js +154 -154
- package/js/src/paradex.d.ts +241 -0
- package/js/src/paradex.js +249 -244
- package/js/src/paymium.d.ts +101 -0
- package/js/src/paymium.js +101 -101
- package/js/src/phemex.d.ts +366 -0
- package/js/src/phemex.js +388 -390
- package/js/src/poloniex.d.ts +270 -0
- package/js/src/poloniex.js +270 -270
- package/js/src/poloniexfutures.d.ts +250 -0
- package/js/src/poloniexfutures.js +250 -250
- package/js/src/pro/alpaca.d.ts +64 -0
- package/js/src/pro/alpaca.js +64 -64
- package/js/src/pro/ascendex.d.ts +64 -0
- package/js/src/pro/ascendex.js +64 -64
- package/js/src/pro/binance.d.ts +546 -0
- package/js/src/pro/binance.js +546 -543
- package/js/src/pro/bingx.d.ts +116 -0
- package/js/src/pro/bingx.js +116 -116
- package/js/src/pro/bitfinex.d.ts +42 -0
- package/js/src/pro/bitfinex.js +42 -42
- package/js/src/pro/bitfinex2.d.ts +66 -0
- package/js/src/pro/bitfinex2.js +66 -66
- package/js/src/pro/bitget.d.ts +187 -0
- package/js/src/pro/bitget.js +188 -181
- package/js/src/pro/bithumb.d.ts +40 -0
- package/js/src/pro/bithumb.js +40 -40
- package/js/src/pro/bitmart.d.ts +121 -0
- package/js/src/pro/bitmart.js +121 -119
- package/js/src/pro/bitmex.d.ts +135 -0
- package/js/src/pro/bitmex.js +135 -133
- package/js/src/pro/bitopro.d.ts +49 -0
- package/js/src/pro/bitopro.js +49 -49
- package/js/src/pro/bitrue.d.ts +19 -0
- package/js/src/pro/bitrue.js +19 -19
- package/js/src/pro/bitstamp.d.ts +29 -0
- package/js/src/pro/bitstamp.js +29 -29
- package/js/src/pro/bitvavo.d.ts +254 -1
- package/js/src/pro/bitvavo.js +299 -301
- package/js/src/pro/blockchaincom.d.ts +62 -0
- package/js/src/pro/blockchaincom.js +62 -62
- package/js/src/pro/blofin.d.ts +132 -0
- package/js/src/pro/blofin.js +132 -130
- package/js/src/pro/bybit.d.ts +317 -0
- package/js/src/pro/bybit.js +317 -313
- package/js/src/pro/cex.d.ts +168 -0
- package/js/src/pro/cex.js +168 -168
- package/js/src/pro/coinbase.d.ts +93 -0
- package/js/src/pro/coinbase.js +93 -91
- package/js/src/pro/coinbaseexchange.d.ts +95 -0
- package/js/src/pro/coinbaseexchange.js +95 -95
- package/js/src/pro/coinbaseinternational.d.ts +111 -0
- package/js/src/pro/coinbaseinternational.js +111 -111
- package/js/src/pro/coincatch.d.ts +150 -0
- package/js/src/pro/coincatch.js +150 -143
- package/js/src/pro/coincheck.d.ts +21 -0
- package/js/src/pro/coincheck.js +21 -21
- package/js/src/pro/coinex.d.ts +110 -0
- package/js/src/pro/coinex.js +110 -110
- package/js/src/pro/coinone.d.ts +30 -0
- package/js/src/pro/coinone.js +30 -30
- package/js/src/pro/cryptocom.d.ts +227 -0
- package/js/src/pro/cryptocom.js +227 -227
- package/js/src/pro/currencycom.d.ts +45 -0
- package/js/src/pro/currencycom.js +45 -45
- package/js/src/pro/deribit.d.ts +127 -0
- package/js/src/pro/deribit.js +127 -127
- package/js/src/pro/exmo.d.ts +66 -0
- package/js/src/pro/exmo.js +66 -66
- package/js/src/pro/gate.d.ts +287 -0
- package/js/src/pro/gate.js +287 -283
- package/js/src/pro/gemini.d.ts +74 -0
- package/js/src/pro/gemini.js +74 -74
- package/js/src/pro/hashkey.d.ts +87 -0
- package/js/src/pro/hashkey.js +87 -85
- package/js/src/pro/hitbtc.d.ts +190 -0
- package/js/src/pro/hitbtc.js +190 -190
- package/js/src/pro/hollaex.d.ts +51 -0
- package/js/src/pro/hollaex.js +51 -51
- package/js/src/pro/htx.d.ts +96 -0
- package/js/src/pro/htx.js +96 -94
- package/js/src/pro/huobijp.d.ts +38 -0
- package/js/src/pro/huobijp.js +38 -38
- package/js/src/pro/hyperliquid.d.ts +151 -0
- package/js/src/pro/hyperliquid.js +151 -150
- package/js/src/pro/idex.d.ts +48 -0
- package/js/src/pro/idex.js +48 -48
- package/js/src/pro/independentreserve.d.ts +19 -0
- package/js/src/pro/independentreserve.js +19 -19
- package/js/src/pro/kraken.d.ts +167 -0
- package/js/src/pro/kraken.js +167 -167
- package/js/src/pro/krakenfutures.d.ts +137 -0
- package/js/src/pro/krakenfutures.js +137 -138
- package/js/src/pro/kucoin.d.ts +167 -0
- package/js/src/pro/kucoin.js +167 -168
- package/js/src/pro/kucoinfutures.d.ts +147 -0
- package/js/src/pro/kucoinfutures.js +147 -147
- package/js/src/pro/lbank.d.ts +95 -0
- package/js/src/pro/lbank.js +95 -95
- package/js/src/pro/luno.d.ts +21 -0
- package/js/src/pro/luno.js +21 -21
- package/js/src/pro/mexc.d.ts +101 -0
- package/js/src/pro/mexc.js +102 -103
- package/js/src/pro/ndax.d.ts +42 -0
- package/js/src/pro/ndax.js +42 -42
- package/js/src/pro/okcoin.d.ts +61 -0
- package/js/src/pro/okcoin.js +61 -61
- package/js/src/pro/okx.d.ts +332 -0
- package/js/src/pro/okx.js +332 -330
- package/js/src/pro/onetrading.d.ts +71 -0
- package/js/src/pro/onetrading.js +71 -71
- package/js/src/pro/oxfun.d.ts +193 -0
- package/js/src/pro/oxfun.js +193 -191
- package/js/src/pro/p2b.d.ts +77 -0
- package/js/src/pro/p2b.js +77 -77
- package/js/src/pro/paradex.d.ts +39 -0
- package/js/src/pro/paradex.js +39 -39
- package/js/src/pro/phemex.d.ts +94 -0
- package/js/src/pro/phemex.js +94 -94
- package/js/src/pro/poloniex.d.ts +171 -0
- package/js/src/pro/poloniex.js +171 -171
- package/js/src/pro/poloniexfutures.d.ts +62 -0
- package/js/src/pro/poloniexfutures.js +62 -62
- package/js/src/pro/probit.d.ts +63 -0
- package/js/src/pro/probit.js +63 -63
- package/js/src/pro/upbit.d.ts +80 -0
- package/js/src/pro/upbit.js +80 -80
- package/js/src/pro/vertex.d.ts +65 -0
- package/js/src/pro/vertex.js +65 -63
- package/js/src/pro/wazirx.d.ts +70 -0
- package/js/src/pro/wazirx.js +70 -70
- package/js/src/pro/whitebit.d.ts +83 -0
- package/js/src/pro/whitebit.js +83 -83
- package/js/src/pro/woo.d.ts +106 -0
- package/js/src/pro/woo.js +106 -104
- package/js/src/pro/woofipro.d.ts +105 -0
- package/js/src/pro/woofipro.js +105 -103
- package/js/src/pro/xt.d.ts +119 -0
- package/js/src/pro/xt.js +119 -119
- package/js/src/probit.d.ts +229 -0
- package/js/src/probit.js +229 -229
- package/js/src/timex.d.ts +198 -0
- package/js/src/timex.js +198 -197
- package/js/src/tokocrypto.d.ts +214 -0
- package/js/src/tokocrypto.js +214 -213
- package/js/src/tradeogre.d.ts +92 -0
- package/js/src/tradeogre.js +92 -91
- package/js/src/upbit.d.ts +243 -0
- package/js/src/upbit.js +243 -242
- package/js/src/vertex.d.ts +258 -0
- package/js/src/vertex.js +258 -258
- package/js/src/wavesexchange.d.ts +176 -0
- package/js/src/wavesexchange.js +176 -172
- package/js/src/wazirx.d.ts +168 -0
- package/js/src/wazirx.js +168 -168
- package/js/src/whitebit.d.ts +361 -0
- package/js/src/whitebit.js +361 -361
- package/js/src/woo.d.ts +571 -0
- package/js/src/woo.js +571 -572
- package/js/src/woofipro.d.ts +392 -0
- package/js/src/woofipro.js +392 -391
- package/js/src/xt.d.ts +439 -4
- package/js/src/xt.js +436 -435
- package/js/src/yobit.d.ts +159 -0
- package/js/src/yobit.js +159 -158
- package/js/src/zaif.d.ts +103 -0
- package/js/src/zaif.js +103 -103
- package/js/src/zonda.d.ts +168 -0
- package/js/src/zonda.js +168 -168
- package/package.json +1 -1
package/js/src/pro/oxfun.js
CHANGED
|
@@ -70,34 +70,34 @@ export default class oxfun extends oxfunRest {
|
|
|
70
70
|
};
|
|
71
71
|
return await this.watchMultiple(url, messageHashes, this.extend(request, params), messageHashes);
|
|
72
72
|
}
|
|
73
|
+
/**
|
|
74
|
+
* @method
|
|
75
|
+
* @name oxfun#watchTrades
|
|
76
|
+
* @description watches information on multiple trades made in a market
|
|
77
|
+
* @see https://docs.ox.fun/?json#trade
|
|
78
|
+
* @param {string} symbol unified market symbol of the market trades were made in
|
|
79
|
+
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
80
|
+
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
81
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
82
|
+
* @param {int|string} [params.tag] If given it will be echoed in the reply and the max size of tag is 32
|
|
83
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
84
|
+
*/
|
|
73
85
|
async watchTrades(symbol, since = undefined, limit = undefined, params = {}) {
|
|
74
|
-
/**
|
|
75
|
-
* @method
|
|
76
|
-
* @name oxfun#watchTrades
|
|
77
|
-
* @description watches information on multiple trades made in a market
|
|
78
|
-
* @see https://docs.ox.fun/?json#trade
|
|
79
|
-
* @param {string} symbol unified market symbol of the market trades were made in
|
|
80
|
-
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
81
|
-
* @param {int} [limit] the maximum number of trade structures to retrieve
|
|
82
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
83
|
-
* @param {int|string} [params.tag] If given it will be echoed in the reply and the max size of tag is 32
|
|
84
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
85
|
-
*/
|
|
86
86
|
return await this.watchTradesForSymbols([symbol], since, limit, params);
|
|
87
87
|
}
|
|
88
|
+
/**
|
|
89
|
+
* @method
|
|
90
|
+
* @name oxfun#watchTradesForSymbols
|
|
91
|
+
* @description get the list of most recent trades for a particular symbol
|
|
92
|
+
* @see https://docs.ox.fun/?json#trade
|
|
93
|
+
* @param {string[]} symbols
|
|
94
|
+
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
95
|
+
* @param {int} [limit] the maximum amount of trades to fetch
|
|
96
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
97
|
+
* @param {int|string} [params.tag] If given it will be echoed in the reply and the max size of tag is 32
|
|
98
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
99
|
+
*/
|
|
88
100
|
async watchTradesForSymbols(symbols, since = undefined, limit = undefined, params = {}) {
|
|
89
|
-
/**
|
|
90
|
-
* @method
|
|
91
|
-
* @name oxfun#watchTradesForSymbols
|
|
92
|
-
* @description get the list of most recent trades for a particular symbol
|
|
93
|
-
* @see https://docs.ox.fun/?json#trade
|
|
94
|
-
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
95
|
-
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
96
|
-
* @param {int} [limit] the maximum amount of trades to fetch
|
|
97
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
98
|
-
* @param {int|string} [params.tag] If given it will be echoed in the reply and the max size of tag is 32
|
|
99
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
100
|
-
*/
|
|
101
101
|
await this.loadMarkets();
|
|
102
102
|
symbols = this.marketSymbols(symbols, undefined, false);
|
|
103
103
|
const args = [];
|
|
@@ -181,20 +181,20 @@ export default class oxfun extends oxfunRest {
|
|
|
181
181
|
'fee': undefined,
|
|
182
182
|
});
|
|
183
183
|
}
|
|
184
|
+
/**
|
|
185
|
+
* @method
|
|
186
|
+
* @name oxfun#watchOHLCV
|
|
187
|
+
* @description watches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
188
|
+
* @see https://docs.ox.fun/?json#candles
|
|
189
|
+
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
190
|
+
* @param {string} timeframe the length of time each candle represents
|
|
191
|
+
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
192
|
+
* @param {int} [limit] the maximum amount of candles to fetch
|
|
193
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
194
|
+
* @param {int|string} [params.tag] If given it will be echoed in the reply and the max size of tag is 32
|
|
195
|
+
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
196
|
+
*/
|
|
184
197
|
async watchOHLCV(symbol, timeframe = '1m', since = undefined, limit = undefined, params = {}) {
|
|
185
|
-
/**
|
|
186
|
-
* @method
|
|
187
|
-
* @name oxfun#watchOHLCV
|
|
188
|
-
* @description watches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
189
|
-
* @see https://docs.ox.fun/?json#candles
|
|
190
|
-
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
191
|
-
* @param {string} timeframe the length of time each candle represents
|
|
192
|
-
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
193
|
-
* @param {int} [limit] the maximum amount of candles to fetch
|
|
194
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
195
|
-
* @param {int|string} [params.tag] If given it will be echoed in the reply and the max size of tag is 32
|
|
196
|
-
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
197
|
-
*/
|
|
198
198
|
await this.loadMarkets();
|
|
199
199
|
const market = this.market(symbol);
|
|
200
200
|
const timeframes = this.safeDict(this.options, 'timeframes', {});
|
|
@@ -212,19 +212,19 @@ export default class oxfun extends oxfunRest {
|
|
|
212
212
|
}
|
|
213
213
|
return this.filterBySinceLimit(ohlcvs, since, limit, 0, true);
|
|
214
214
|
}
|
|
215
|
+
/**
|
|
216
|
+
* @method
|
|
217
|
+
* @name oxfun#watchOHLCVForSymbols
|
|
218
|
+
* @description watches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
219
|
+
* @see https://docs.ox.fun/?json#candles
|
|
220
|
+
* @param {string[][]} symbolsAndTimeframes array of arrays containing unified symbols and timeframes to fetch OHLCV data for, example [['BTC/USDT', '1m'], ['LTC/USDT', '5m']]
|
|
221
|
+
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
222
|
+
* @param {int} [limit] the maximum amount of candles to fetch
|
|
223
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
224
|
+
* @param {int|string} [params.tag] If given it will be echoed in the reply and the max size of tag is 32
|
|
225
|
+
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
226
|
+
*/
|
|
215
227
|
async watchOHLCVForSymbols(symbolsAndTimeframes, since = undefined, limit = undefined, params = {}) {
|
|
216
|
-
/**
|
|
217
|
-
* @method
|
|
218
|
-
* @name oxfun#watchOHLCVForSymbols
|
|
219
|
-
* @description watches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
220
|
-
* @see https://docs.ox.fun/?json#candles
|
|
221
|
-
* @param {string[][]} symbolsAndTimeframes array of arrays containing unified symbols and timeframes to fetch OHLCV data for, example [['BTC/USDT', '1m'], ['LTC/USDT', '5m']]
|
|
222
|
-
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
223
|
-
* @param {int} [limit] the maximum amount of candles to fetch
|
|
224
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
225
|
-
* @param {int|string} [params.tag] If given it will be echoed in the reply and the max size of tag is 32
|
|
226
|
-
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
227
|
-
*/
|
|
228
228
|
const symbolsLength = symbolsAndTimeframes.length;
|
|
229
229
|
if (symbolsLength === 0 || !Array.isArray(symbolsAndTimeframes[0])) {
|
|
230
230
|
throw new ArgumentsRequired(this.id + " watchOHLCVForSymbols() requires a an array of symbols and timeframes, like [['BTC/USDT:OX', '1m'], ['OX/USDT', '5m']]");
|
|
@@ -320,33 +320,33 @@ export default class oxfun extends oxfunRest {
|
|
|
320
320
|
this.safeNumber(ohlcv, 6),
|
|
321
321
|
];
|
|
322
322
|
}
|
|
323
|
+
/**
|
|
324
|
+
* @method
|
|
325
|
+
* @name oxfun#watchOrderBook
|
|
326
|
+
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
327
|
+
* @see https://docs.ox.fun/?json#fixed-size-order-book
|
|
328
|
+
* @see https://docs.ox.fun/?json#full-order-book
|
|
329
|
+
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
330
|
+
* @param {int} [limit] the maximum amount of order book entries to return
|
|
331
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
332
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
333
|
+
*/
|
|
323
334
|
async watchOrderBook(symbol, limit = undefined, params = {}) {
|
|
324
|
-
/**
|
|
325
|
-
* @method
|
|
326
|
-
* @name oxfun#watchOrderBook
|
|
327
|
-
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
328
|
-
* @see https://docs.ox.fun/?json#fixed-size-order-book
|
|
329
|
-
* @see https://docs.ox.fun/?json#full-order-book
|
|
330
|
-
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
331
|
-
* @param {int} [limit] the maximum amount of order book entries to return
|
|
332
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
333
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
334
|
-
*/
|
|
335
335
|
return await this.watchOrderBookForSymbols([symbol], limit, params);
|
|
336
336
|
}
|
|
337
|
+
/**
|
|
338
|
+
* @method
|
|
339
|
+
* @name oxfun#watchOrderBookForSymbols
|
|
340
|
+
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
341
|
+
* @see https://docs.ox.fun/?json#fixed-size-order-book
|
|
342
|
+
* @see https://docs.ox.fun/?json#full-order-book
|
|
343
|
+
* @param {string[]} symbols unified array of symbols
|
|
344
|
+
* @param {int} [limit] the maximum amount of order book entries to return
|
|
345
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
346
|
+
* @param {int|string} [params.tag] If given it will be echoed in the reply and the max size of tag is 32
|
|
347
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
348
|
+
*/
|
|
337
349
|
async watchOrderBookForSymbols(symbols, limit = undefined, params = {}) {
|
|
338
|
-
/**
|
|
339
|
-
* @method
|
|
340
|
-
* @name oxfun#watchOrderBookForSymbols
|
|
341
|
-
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
342
|
-
* @see https://docs.ox.fun/?json#fixed-size-order-book
|
|
343
|
-
* @see https://docs.ox.fun/?json#full-order-book
|
|
344
|
-
* @param {string[]} symbols unified array of symbols
|
|
345
|
-
* @param {int} [limit] the maximum amount of order book entries to return
|
|
346
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
347
|
-
* @param {int|string} [params.tag] If given it will be echoed in the reply and the max size of tag is 32
|
|
348
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
349
|
-
*/
|
|
350
350
|
await this.loadMarkets();
|
|
351
351
|
symbols = this.marketSymbols(symbols);
|
|
352
352
|
let channel = 'depth';
|
|
@@ -415,31 +415,31 @@ export default class oxfun extends oxfunRest {
|
|
|
415
415
|
this.orderbooks[symbol] = orderbook;
|
|
416
416
|
client.resolve(orderbook, messageHash);
|
|
417
417
|
}
|
|
418
|
+
/**
|
|
419
|
+
* @method
|
|
420
|
+
* @name oxfun#watchTicker
|
|
421
|
+
* @see https://docs.ox.fun/?json#ticker
|
|
422
|
+
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
423
|
+
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
424
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
425
|
+
* @param {int|string} [params.tag] If given it will be echoed in the reply and the max size of tag is 32
|
|
426
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
427
|
+
*/
|
|
418
428
|
async watchTicker(symbol, params = {}) {
|
|
419
|
-
/**
|
|
420
|
-
* @method
|
|
421
|
-
* @name oxfun#watchTicker
|
|
422
|
-
* @see https://docs.ox.fun/?json#ticker
|
|
423
|
-
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
424
|
-
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
425
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
426
|
-
* @param {int|string} [params.tag] If given it will be echoed in the reply and the max size of tag is 32
|
|
427
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
428
|
-
*/
|
|
429
429
|
const ticker = await this.watchTickers([symbol], params);
|
|
430
430
|
return this.safeValue(ticker, symbol);
|
|
431
431
|
}
|
|
432
|
+
/**
|
|
433
|
+
* @method
|
|
434
|
+
* @name oxfun#watchTickers
|
|
435
|
+
* @see https://docs.ox.fun/?json#ticker
|
|
436
|
+
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
|
|
437
|
+
* @param {string[]} [symbols] unified symbol of the market to fetch the ticker for
|
|
438
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
439
|
+
* @param {int|string} [params.tag] If given it will be echoed in the reply and the max size of tag is 32
|
|
440
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
441
|
+
*/
|
|
432
442
|
async watchTickers(symbols = undefined, params = {}) {
|
|
433
|
-
/**
|
|
434
|
-
* @method
|
|
435
|
-
* @name oxfun#watchTickers
|
|
436
|
-
* @see https://docs.ox.fun/?json#ticker
|
|
437
|
-
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
|
|
438
|
-
* @param {string[]} [symbols] unified symbol of the market to fetch the ticker for
|
|
439
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
440
|
-
* @param {int|string} [params.tag] If given it will be echoed in the reply and the max size of tag is 32
|
|
441
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
442
|
-
*/
|
|
443
443
|
await this.loadMarkets();
|
|
444
444
|
const allSymbols = (symbols === undefined);
|
|
445
445
|
let sym = symbols;
|
|
@@ -500,16 +500,16 @@ export default class oxfun extends oxfunRest {
|
|
|
500
500
|
client.resolve(ticker, messageHash);
|
|
501
501
|
}
|
|
502
502
|
}
|
|
503
|
+
/**
|
|
504
|
+
* @method
|
|
505
|
+
* @name oxfun#watchBidsAsks
|
|
506
|
+
* @see https://docs.ox.fun/?json#best-bid-ask
|
|
507
|
+
* @description watches best bid & ask for symbols
|
|
508
|
+
* @param {string[]} symbols unified symbol of the market to fetch the ticker for
|
|
509
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
510
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
511
|
+
*/
|
|
503
512
|
async watchBidsAsks(symbols = undefined, params = {}) {
|
|
504
|
-
/**
|
|
505
|
-
* @method
|
|
506
|
-
* @name oxfun#watchBidsAsks
|
|
507
|
-
* @see https://docs.ox.fun/?json#best-bid-ask
|
|
508
|
-
* @description watches best bid & ask for symbols
|
|
509
|
-
* @param {string[]} symbols unified symbol of the market to fetch the ticker for
|
|
510
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
511
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
512
|
-
*/
|
|
513
513
|
await this.loadMarkets();
|
|
514
514
|
symbols = this.marketSymbols(symbols, undefined, false);
|
|
515
515
|
const messageHashes = [];
|
|
@@ -571,16 +571,16 @@ export default class oxfun extends oxfunRest {
|
|
|
571
571
|
'info': ticker,
|
|
572
572
|
}, market);
|
|
573
573
|
}
|
|
574
|
+
/**
|
|
575
|
+
* @method
|
|
576
|
+
* @name oxfun#watchBalance
|
|
577
|
+
* @see https://docs.ox.fun/?json#balance-channel
|
|
578
|
+
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
579
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
580
|
+
* @param {int|string} [params.tag] If given it will be echoed in the reply and the max size of tag is 32
|
|
581
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
582
|
+
*/
|
|
574
583
|
async watchBalance(params = {}) {
|
|
575
|
-
/**
|
|
576
|
-
* @method
|
|
577
|
-
* @name oxfun#watchBalance
|
|
578
|
-
* @see https://docs.ox.fun/?json#balance-channel
|
|
579
|
-
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
580
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
581
|
-
* @param {int|string} [params.tag] If given it will be echoed in the reply and the max size of tag is 32
|
|
582
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
583
|
-
*/
|
|
584
584
|
await this.loadMarkets();
|
|
585
585
|
this.authenticate();
|
|
586
586
|
const args = 'balance:all';
|
|
@@ -633,17 +633,19 @@ export default class oxfun extends oxfunRest {
|
|
|
633
633
|
this.balance = this.safeBalance(this.balance);
|
|
634
634
|
client.resolve(this.balance, 'balance');
|
|
635
635
|
}
|
|
636
|
+
/**
|
|
637
|
+
* @method
|
|
638
|
+
* @name oxfun#watchPositions
|
|
639
|
+
* @see https://docs.ox.fun/?json#position-channel
|
|
640
|
+
* @description watch all open positions
|
|
641
|
+
* @param {string[]|undefined} symbols list of unified market symbols
|
|
642
|
+
* @param since
|
|
643
|
+
* @param limit
|
|
644
|
+
* @param {object} params extra parameters specific to the exchange API endpoint
|
|
645
|
+
* @param {int|string} [params.tag] If given it will be echoed in the reply and the max size of tag is 32
|
|
646
|
+
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/en/latest/manual.html#position-structure}
|
|
647
|
+
*/
|
|
636
648
|
async watchPositions(symbols = undefined, since = undefined, limit = undefined, params = {}) {
|
|
637
|
-
/**
|
|
638
|
-
* @method
|
|
639
|
-
* @name oxfun#watchPositions
|
|
640
|
-
* @see https://docs.ox.fun/?json#position-channel
|
|
641
|
-
* @description watch all open positions
|
|
642
|
-
* @param {string[]|undefined} symbols list of unified market symbols
|
|
643
|
-
* @param {object} params extra parameters specific to the exchange API endpoint
|
|
644
|
-
* @param {int|string} [params.tag] If given it will be echoed in the reply and the max size of tag is 32
|
|
645
|
-
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/en/latest/manual.html#position-structure}
|
|
646
|
-
*/
|
|
647
649
|
await this.loadMarkets();
|
|
648
650
|
await this.authenticate();
|
|
649
651
|
const allSymbols = (symbols === undefined);
|
|
@@ -751,19 +753,19 @@ export default class oxfun extends oxfunRest {
|
|
|
751
753
|
'takeProfitPrice': undefined,
|
|
752
754
|
});
|
|
753
755
|
}
|
|
756
|
+
/**
|
|
757
|
+
* @method
|
|
758
|
+
* @name oxfun#watchOrders
|
|
759
|
+
* @description watches information on multiple orders made by the user
|
|
760
|
+
* @see https://docs.ox.fun/?json#order-channel
|
|
761
|
+
* @param {string} symbol unified market symbol of the market orders were made in
|
|
762
|
+
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
763
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
764
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
765
|
+
* @param {int|string} [params.tag] If given it will be echoed in the reply and the max size of tag is 32
|
|
766
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
767
|
+
*/
|
|
754
768
|
async watchOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
755
|
-
/**
|
|
756
|
-
* @method
|
|
757
|
-
* @name oxfun#watchOrders
|
|
758
|
-
* @description watches information on multiple orders made by the user
|
|
759
|
-
* @see https://docs.ox.fun/?json#order-channel
|
|
760
|
-
* @param {string} symbol unified market symbol of the market orders were made in
|
|
761
|
-
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
762
|
-
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
763
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
764
|
-
* @param {int|string} [params.tag] If given it will be echoed in the reply and the max size of tag is 32
|
|
765
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
766
|
-
*/
|
|
767
769
|
await this.loadMarkets();
|
|
768
770
|
await this.authenticate();
|
|
769
771
|
let messageHash = 'orders';
|
|
@@ -831,30 +833,30 @@ export default class oxfun extends oxfunRest {
|
|
|
831
833
|
client.resolve(this.orders, messageHash);
|
|
832
834
|
}
|
|
833
835
|
}
|
|
836
|
+
/**
|
|
837
|
+
* @method
|
|
838
|
+
* @name oxfun#createOrderWs
|
|
839
|
+
* @see https://docs.ox.fun/?json#order-commands
|
|
840
|
+
* @description create a trade order
|
|
841
|
+
* @param {string} symbol unified symbol of the market to create an order in
|
|
842
|
+
* @param {string} type 'market', 'limit', 'STOP_LIMIT' or 'STOP_MARKET'
|
|
843
|
+
* @param {string} side 'buy' or 'sell'
|
|
844
|
+
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
845
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
846
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
847
|
+
* @param {int} [params.clientOrderId] a unique id for the order
|
|
848
|
+
* @param {int} [params.timestamp] in milliseconds. If an order reaches the matching engine and the current timestamp exceeds timestamp + recvWindow, then the order will be rejected.
|
|
849
|
+
* @param {int} [params.recvWindow] in milliseconds. If an order reaches the matching engine and the current timestamp exceeds timestamp + recvWindow, then the order will be rejected. If timestamp is provided without recvWindow, then a default recvWindow of 1000ms is used.
|
|
850
|
+
* @param {float} [params.cost] the quote quantity that can be used as an alternative for the amount for market buy orders
|
|
851
|
+
* @param {float} [params.triggerPrice] The price at which a trigger order is triggered at
|
|
852
|
+
* @param {float} [params.limitPrice] Limit price for the STOP_LIMIT order
|
|
853
|
+
* @param {bool} [params.postOnly] if true, the order will only be posted if it will be a maker order
|
|
854
|
+
* @param {string} [params.timeInForce] GTC (default), IOC, FOK, PO, MAKER_ONLY or MAKER_ONLY_REPRICE (reprices order to the best maker only price if the specified price were to lead to a taker trade)
|
|
855
|
+
* @param {string} [params.selfTradePreventionMode] NONE, EXPIRE_MAKER, EXPIRE_TAKER or EXPIRE_BOTH for more info check here {@link https://docs.ox.fun/?json#self-trade-prevention-modes}
|
|
856
|
+
* @param {string} [params.displayQuantity] for an iceberg order, pass both quantity and displayQuantity fields in the order request
|
|
857
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
858
|
+
*/
|
|
834
859
|
async createOrderWs(symbol, type, side, amount, price = undefined, params = {}) {
|
|
835
|
-
/**
|
|
836
|
-
* @method
|
|
837
|
-
* @name oxfun#createOrderWs
|
|
838
|
-
* @see https://docs.ox.fun/?json#order-commands
|
|
839
|
-
* @description create a trade order
|
|
840
|
-
* @param {string} symbol unified symbol of the market to create an order in
|
|
841
|
-
* @param {string} type 'market', 'limit', 'STOP_LIMIT' or 'STOP_MARKET'
|
|
842
|
-
* @param {string} side 'buy' or 'sell'
|
|
843
|
-
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
844
|
-
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
845
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
846
|
-
* @param {int} [params.clientOrderId] a unique id for the order
|
|
847
|
-
* @param {int} [params.timestamp] in milliseconds. If an order reaches the matching engine and the current timestamp exceeds timestamp + recvWindow, then the order will be rejected.
|
|
848
|
-
* @param {int} [params.recvWindow] in milliseconds. If an order reaches the matching engine and the current timestamp exceeds timestamp + recvWindow, then the order will be rejected. If timestamp is provided without recvWindow, then a default recvWindow of 1000ms is used.
|
|
849
|
-
* @param {float} [params.cost] the quote quantity that can be used as an alternative for the amount for market buy orders
|
|
850
|
-
* @param {float} [params.triggerPrice] The price at which a trigger order is triggered at
|
|
851
|
-
* @param {float} [params.limitPrice] Limit price for the STOP_LIMIT order
|
|
852
|
-
* @param {bool} [params.postOnly] if true, the order will only be posted if it will be a maker order
|
|
853
|
-
* @param {string} [params.timeInForce] GTC (default), IOC, FOK, PO, MAKER_ONLY or MAKER_ONLY_REPRICE (reprices order to the best maker only price if the specified price were to lead to a taker trade)
|
|
854
|
-
* @param {string} [params.selfTradePreventionMode] NONE, EXPIRE_MAKER, EXPIRE_TAKER or EXPIRE_BOTH for more info check here {@link https://docs.ox.fun/?json#self-trade-prevention-modes}
|
|
855
|
-
* @param {string} [params.displayQuantity] for an iceberg order, pass both quantity and displayQuantity fields in the order request
|
|
856
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
857
|
-
*/
|
|
858
860
|
await this.loadMarkets();
|
|
859
861
|
await this.authenticate();
|
|
860
862
|
const messageHash = this.nonce().toString();
|
|
@@ -872,23 +874,23 @@ export default class oxfun extends oxfunRest {
|
|
|
872
874
|
const url = this.urls['api']['ws'];
|
|
873
875
|
return await this.watch(url, messageHash, request, messageHash);
|
|
874
876
|
}
|
|
877
|
+
/**
|
|
878
|
+
* @method
|
|
879
|
+
* @name oxfun#editOrderWs
|
|
880
|
+
* @description edit a trade order
|
|
881
|
+
* @see https://docs.ox.fun/?json#modify-order
|
|
882
|
+
* @param {string} id order id
|
|
883
|
+
* @param {string} symbol unified symbol of the market to create an order in
|
|
884
|
+
* @param {string} type 'market' or 'limit'
|
|
885
|
+
* @param {string} side 'buy' or 'sell'
|
|
886
|
+
* @param {float} amount how much of the currency you want to trade in units of the base currency
|
|
887
|
+
* @param {float|undefined} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
888
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
889
|
+
* @param {int} [params.timestamp] in milliseconds. If an order reaches the matching engine and the current timestamp exceeds timestamp + recvWindow, then the order will be rejected.
|
|
890
|
+
* @param {int} [params.recvWindow] in milliseconds. If an order reaches the matching engine and the current timestamp exceeds timestamp + recvWindow, then the order will be rejected. If timestamp is provided without recvWindow, then a default recvWindow of 1000ms is used.
|
|
891
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
892
|
+
*/
|
|
875
893
|
async editOrderWs(id, symbol, type, side, amount = undefined, price = undefined, params = {}) {
|
|
876
|
-
/**
|
|
877
|
-
* @method
|
|
878
|
-
* @name oxfun#editOrderWs
|
|
879
|
-
* @description edit a trade order
|
|
880
|
-
* @see https://docs.ox.fun/?json#modify-order
|
|
881
|
-
* @param {string} id order id
|
|
882
|
-
* @param {string} symbol unified symbol of the market to create an order in
|
|
883
|
-
* @param {string} type 'market' or 'limit'
|
|
884
|
-
* @param {string} side 'buy' or 'sell'
|
|
885
|
-
* @param {float} amount how much of the currency you want to trade in units of the base currency
|
|
886
|
-
* @param {float|undefined} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
887
|
-
* @param {int} [params.timestamp] in milliseconds. If an order reaches the matching engine and the current timestamp exceeds timestamp + recvWindow, then the order will be rejected.
|
|
888
|
-
* @param {int} [params.recvWindow] in milliseconds. If an order reaches the matching engine and the current timestamp exceeds timestamp + recvWindow, then the order will be rejected. If timestamp is provided without recvWindow, then a default recvWindow of 1000ms is used.
|
|
889
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
890
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
891
|
-
*/
|
|
892
894
|
await this.loadMarkets();
|
|
893
895
|
await this.authenticate();
|
|
894
896
|
const messageHash = this.nonce().toString();
|
|
@@ -950,17 +952,17 @@ export default class oxfun extends oxfunRest {
|
|
|
950
952
|
const order = this.parseOrder(data);
|
|
951
953
|
client.resolve(order, messageHash);
|
|
952
954
|
}
|
|
955
|
+
/**
|
|
956
|
+
* @method
|
|
957
|
+
* @name oxfun#cancelOrderWs
|
|
958
|
+
* @see https://docs.ox.fun/?json#cancel-order
|
|
959
|
+
* @description cancels an open order
|
|
960
|
+
* @param {string} id order id
|
|
961
|
+
* @param {string} symbol unified market symbol, default is undefined
|
|
962
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
963
|
+
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
964
|
+
*/
|
|
953
965
|
async cancelOrderWs(id, symbol = undefined, params = {}) {
|
|
954
|
-
/**
|
|
955
|
-
* @method
|
|
956
|
-
* @name oxfun#cancelOrderWs
|
|
957
|
-
* @see https://docs.ox.fun/?json#cancel-order
|
|
958
|
-
* @description cancels an open order
|
|
959
|
-
* @param {string} id order id
|
|
960
|
-
* @param {string} symbol unified market symbol, default is undefined
|
|
961
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
962
|
-
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
963
|
-
*/
|
|
964
966
|
if (symbol === undefined) {
|
|
965
967
|
throw new ArgumentsRequired(this.id + ' cancelOrderWs() requires a symbol argument');
|
|
966
968
|
}
|
|
@@ -979,17 +981,17 @@ export default class oxfun extends oxfunRest {
|
|
|
979
981
|
const url = this.urls['api']['ws'];
|
|
980
982
|
return await this.watch(url, messageHash, request, messageHash);
|
|
981
983
|
}
|
|
984
|
+
/**
|
|
985
|
+
* @method
|
|
986
|
+
* @name okx#cancelOrdersWs
|
|
987
|
+
* @see https://www.okx.com/docs-v5/en/#order-book-trading-trade-ws-mass-cancel-order
|
|
988
|
+
* @description cancel multiple orders
|
|
989
|
+
* @param {string[]} ids order ids
|
|
990
|
+
* @param {string} symbol unified market symbol, default is undefined
|
|
991
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
992
|
+
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
993
|
+
*/
|
|
982
994
|
async cancelOrdersWs(ids, symbol = undefined, params = {}) {
|
|
983
|
-
/**
|
|
984
|
-
* @method
|
|
985
|
-
* @name okx#cancelOrdersWs
|
|
986
|
-
* @see https://www.okx.com/docs-v5/en/#order-book-trading-trade-ws-mass-cancel-order
|
|
987
|
-
* @description cancel multiple orders
|
|
988
|
-
* @param {string[]} ids order ids
|
|
989
|
-
* @param {string} symbol unified market symbol, default is undefined
|
|
990
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
991
|
-
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
992
|
-
*/
|
|
993
995
|
const idsLength = ids.length;
|
|
994
996
|
if (idsLength > 20) {
|
|
995
997
|
throw new BadRequest(this.id + ' cancelOrdersWs() accepts up to 20 ids at a time');
|
package/js/src/pro/p2b.d.ts
CHANGED
|
@@ -3,12 +3,89 @@ import type { Int, OHLCV, OrderBook, Trade, Ticker, Strings, Tickers } from '../
|
|
|
3
3
|
import Client from '../base/ws/Client.js';
|
|
4
4
|
export default class p2b extends p2bRest {
|
|
5
5
|
describe(): any;
|
|
6
|
+
/**
|
|
7
|
+
* @ignore
|
|
8
|
+
* @method
|
|
9
|
+
* @description Connects to a websocket channel
|
|
10
|
+
* @param {string} name name of the channel
|
|
11
|
+
* @param {string} messageHash string to look up in handler
|
|
12
|
+
* @param {string[]|float[]} request endpoint parameters
|
|
13
|
+
* @param {object} [params] extra parameters specific to the p2b api
|
|
14
|
+
* @returns {object} data from the websocket stream
|
|
15
|
+
*/
|
|
6
16
|
subscribe(name: string, messageHash: string, request: any, params?: {}): Promise<any>;
|
|
17
|
+
/**
|
|
18
|
+
* @method
|
|
19
|
+
* @name p2b#watchOHLCV
|
|
20
|
+
* @description watches historical candlestick data containing the open, high, low, and close price, and the volume of a market. Can only subscribe to one timeframe at a time for each symbol
|
|
21
|
+
* @see https://github.com/P2B-team/P2B-WSS-Public/blob/main/wss_documentation.md#kline-candlestick
|
|
22
|
+
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
23
|
+
* @param {string} timeframe 15m, 30m, 1h or 1d
|
|
24
|
+
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
25
|
+
* @param {int} [limit] the maximum amount of candles to fetch
|
|
26
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
27
|
+
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
28
|
+
*/
|
|
7
29
|
watchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
|
|
30
|
+
/**
|
|
31
|
+
* @method
|
|
32
|
+
* @name p2b#watchTicker
|
|
33
|
+
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
34
|
+
* @see https://github.com/P2B-team/P2B-WSS-Public/blob/main/wss_documentation.md#last-price
|
|
35
|
+
* @see https://github.com/P2B-team/P2B-WSS-Public/blob/main/wss_documentation.md#market-status
|
|
36
|
+
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
37
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
38
|
+
* @param {object} [params.method] 'state' (default) or 'price'
|
|
39
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
40
|
+
*/
|
|
8
41
|
watchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
|
42
|
+
/**
|
|
43
|
+
* @method
|
|
44
|
+
* @name p2b#watchTickers
|
|
45
|
+
* @see https://github.com/P2B-team/P2B-WSS-Public/blob/main/wss_documentation.md#last-price
|
|
46
|
+
* @see https://github.com/P2B-team/P2B-WSS-Public/blob/main/wss_documentation.md#market-status
|
|
47
|
+
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list
|
|
48
|
+
* @param {string[]} [symbols] unified symbol of the market to fetch the ticker for
|
|
49
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
50
|
+
* @param {object} [params.method] 'state' (default) or 'price'
|
|
51
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
52
|
+
*/
|
|
9
53
|
watchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
|
|
54
|
+
/**
|
|
55
|
+
* @method
|
|
56
|
+
* @name p2b#watchTrades
|
|
57
|
+
* @description get the list of most recent trades for a particular symbol
|
|
58
|
+
* @see https://github.com/P2B-team/P2B-WSS-Public/blob/main/wss_documentation.md#deals
|
|
59
|
+
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
60
|
+
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
61
|
+
* @param {int} [limit] the maximum amount of trades to fetch
|
|
62
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
63
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
64
|
+
*/
|
|
10
65
|
watchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
66
|
+
/**
|
|
67
|
+
* @method
|
|
68
|
+
* @name p2b#watchTradesForSymbols
|
|
69
|
+
* @description get the list of most recent trades for a list of symbols
|
|
70
|
+
* @see https://github.com/P2B-team/P2B-WSS-Public/blob/main/wss_documentation.md#deals
|
|
71
|
+
* @param {string[]} symbols unified symbol of the market to fetch trades for
|
|
72
|
+
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
73
|
+
* @param {int} [limit] the maximum amount of trades to fetch
|
|
74
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
75
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
76
|
+
*/
|
|
11
77
|
watchTradesForSymbols(symbols: string[], since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
78
|
+
/**
|
|
79
|
+
* @method
|
|
80
|
+
* @name p2b#watchOrderBook
|
|
81
|
+
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
82
|
+
* @see https://github.com/P2B-team/P2B-WSS-Public/blob/main/wss_documentation.md#depth-of-market
|
|
83
|
+
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
84
|
+
* @param {int} [limit] 1-100, default=100
|
|
85
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
86
|
+
* @param {float} [params.interval] 0, 0.00000001, 0.0000001, 0.000001, 0.00001, 0.0001, 0.001, 0.01, 0.1, interval of precision for order, default=0.001
|
|
87
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
88
|
+
*/
|
|
12
89
|
watchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
13
90
|
handleOHLCV(client: Client, message: any): any;
|
|
14
91
|
handleTrade(client: Client, message: any): any;
|