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
|
@@ -74,14 +74,14 @@ class poloniex extends poloniex$1 {
|
|
|
74
74
|
},
|
|
75
75
|
});
|
|
76
76
|
}
|
|
77
|
+
/**
|
|
78
|
+
* @ignore
|
|
79
|
+
* @method
|
|
80
|
+
* @description authenticates the user to access private web socket channels
|
|
81
|
+
* @see https://api-docs.poloniex.com/spot/websocket/authentication
|
|
82
|
+
* @returns {object} response from exchange
|
|
83
|
+
*/
|
|
77
84
|
async authenticate(params = {}) {
|
|
78
|
-
/**
|
|
79
|
-
* @ignore
|
|
80
|
-
* @method
|
|
81
|
-
* @description authenticates the user to access private web socket channels
|
|
82
|
-
* @see https://api-docs.poloniex.com/spot/websocket/authentication
|
|
83
|
-
* @returns {object} response from exchange
|
|
84
|
-
*/
|
|
85
85
|
this.checkRequiredCredentials();
|
|
86
86
|
const timestamp = this.numberToString(this.milliseconds());
|
|
87
87
|
const url = this.urls['api']['ws']['private'];
|
|
@@ -129,17 +129,18 @@ class poloniex extends poloniex$1 {
|
|
|
129
129
|
}
|
|
130
130
|
return future;
|
|
131
131
|
}
|
|
132
|
+
/**
|
|
133
|
+
* @ignore
|
|
134
|
+
* @method
|
|
135
|
+
* @description Connects to a websocket channel
|
|
136
|
+
* @param {string} name name of the channel
|
|
137
|
+
* @param {string} messageHash unique identifier for the message
|
|
138
|
+
* @param {boolean} isPrivate true for the authenticated url, false for the public url
|
|
139
|
+
* @param {string[]} [symbols] CCXT market symbols
|
|
140
|
+
* @param {object} [params] extra parameters specific to the poloniex api
|
|
141
|
+
* @returns {object} data from the websocket stream
|
|
142
|
+
*/
|
|
132
143
|
async subscribe(name, messageHash, isPrivate, symbols = undefined, params = {}) {
|
|
133
|
-
/**
|
|
134
|
-
* @ignore
|
|
135
|
-
* @method
|
|
136
|
-
* @description Connects to a websocket channel
|
|
137
|
-
* @param {string} name name of the channel
|
|
138
|
-
* @param {boolean} isPrivate true for the authenticated url, false for the public url
|
|
139
|
-
* @param {string[]|undefined} symbols CCXT market symbols
|
|
140
|
-
* @param {object} [params] extra parameters specific to the poloniex api
|
|
141
|
-
* @returns {object} data from the websocket stream
|
|
142
|
-
*/
|
|
143
144
|
const publicOrPrivate = isPrivate ? 'private' : 'public';
|
|
144
145
|
const url = this.urls['api']['ws'][publicOrPrivate];
|
|
145
146
|
const subscribe = {
|
|
@@ -162,16 +163,15 @@ class poloniex extends poloniex$1 {
|
|
|
162
163
|
const request = this.extend(subscribe, params);
|
|
163
164
|
return await this.watch(url, messageHash, request, messageHash);
|
|
164
165
|
}
|
|
166
|
+
/**
|
|
167
|
+
* @ignore
|
|
168
|
+
* @method
|
|
169
|
+
* @description Connects to a websocket channel
|
|
170
|
+
* @param {string} name name of the channel
|
|
171
|
+
* @param {object} [params] extra parameters specific to the poloniex api
|
|
172
|
+
* @returns {object} data from the websocket stream
|
|
173
|
+
*/
|
|
165
174
|
async tradeRequest(name, params = {}) {
|
|
166
|
-
/**
|
|
167
|
-
* @ignore
|
|
168
|
-
* @method
|
|
169
|
-
* @description Connects to a websocket channel
|
|
170
|
-
* @param {string} name name of the channel
|
|
171
|
-
* @param {string[]|undefined} symbols CCXT market symbols
|
|
172
|
-
* @param {object} [params] extra parameters specific to the poloniex api
|
|
173
|
-
* @returns {object} data from the websocket stream
|
|
174
|
-
*/
|
|
175
175
|
const url = this.urls['api']['ws']['private'];
|
|
176
176
|
const messageHash = this.nonce().toString();
|
|
177
177
|
const subscribe = {
|
|
@@ -181,29 +181,29 @@ class poloniex extends poloniex$1 {
|
|
|
181
181
|
};
|
|
182
182
|
return await this.watch(url, messageHash, subscribe, messageHash);
|
|
183
183
|
}
|
|
184
|
+
/**
|
|
185
|
+
* @method
|
|
186
|
+
* @name poloniex#createOrderWs
|
|
187
|
+
* @see https://api-docs.poloniex.com/spot/websocket/trade-request#create-order
|
|
188
|
+
* @description create a trade order
|
|
189
|
+
* @param {string} symbol unified symbol of the market to create an order in
|
|
190
|
+
* @param {string} type 'market' or 'limit'
|
|
191
|
+
* @param {string} side 'buy' or 'sell'
|
|
192
|
+
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
193
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
194
|
+
* @param {object} [params] extra parameters specific to the poloniex api endpoint
|
|
195
|
+
* @param {string} [params.timeInForce] GTC (default), IOC, FOK
|
|
196
|
+
* @param {string} [params.clientOrderId] Maximum 64-character length.*
|
|
197
|
+
* @param {float} [params.cost] *spot market buy only* the quote quantity that can be used as an alternative for the amount
|
|
198
|
+
*
|
|
199
|
+
* EXCHANGE SPECIFIC PARAMETERS
|
|
200
|
+
* @param {string} [params.amount] quote units for the order
|
|
201
|
+
* @param {boolean} [params.allowBorrow] allow order to be placed by borrowing funds (Default: false)
|
|
202
|
+
* @param {string} [params.stpMode] self-trade prevention, defaults to expire_taker, none: enable self-trade; expire_taker: taker order will be canceled when self-trade happens
|
|
203
|
+
* @param {string} [params.slippageTolerance] used to control the maximum slippage ratio, the value range is greater than 0 and less than 1
|
|
204
|
+
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
205
|
+
*/
|
|
184
206
|
async createOrderWs(symbol, type, side, amount, price = undefined, params = {}) {
|
|
185
|
-
/**
|
|
186
|
-
* @method
|
|
187
|
-
* @name poloniex#createOrderWs
|
|
188
|
-
* @see https://api-docs.poloniex.com/spot/websocket/trade-request#create-order
|
|
189
|
-
* @description create a trade order
|
|
190
|
-
* @param {string} symbol unified symbol of the market to create an order in
|
|
191
|
-
* @param {string} type 'market' or 'limit'
|
|
192
|
-
* @param {string} side 'buy' or 'sell'
|
|
193
|
-
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
194
|
-
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
195
|
-
* @param {object} [params] extra parameters specific to the poloniex api endpoint
|
|
196
|
-
* @param {string} [params.timeInForce] GTC (default), IOC, FOK
|
|
197
|
-
* @param {string} [params.clientOrderId] Maximum 64-character length.*
|
|
198
|
-
* @param {float} [params.cost] *spot market buy only* the quote quantity that can be used as an alternative for the amount
|
|
199
|
-
*
|
|
200
|
-
* EXCHANGE SPECIFIC PARAMETERS
|
|
201
|
-
* @param {string} [params.amount] quote units for the order
|
|
202
|
-
* @param {boolean} [params.allowBorrow] allow order to be placed by borrowing funds (Default: false)
|
|
203
|
-
* @param {string} [params.stpMode] self-trade prevention, defaults to expire_taker, none: enable self-trade; expire_taker: taker order will be canceled when self-trade happens
|
|
204
|
-
* @param {string} [params.slippageTolerance] used to control the maximum slippage ratio, the value range is greater than 0 and less than 1
|
|
205
|
-
* @returns {object} an [order structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
206
|
-
*/
|
|
207
207
|
await this.loadMarkets();
|
|
208
208
|
await this.authenticate();
|
|
209
209
|
const market = this.market(symbol);
|
|
@@ -251,18 +251,18 @@ class poloniex extends poloniex$1 {
|
|
|
251
251
|
}
|
|
252
252
|
return await this.tradeRequest('createOrder', this.extend(request, params));
|
|
253
253
|
}
|
|
254
|
+
/**
|
|
255
|
+
* @method
|
|
256
|
+
* @name poloniex#cancelOrderWs
|
|
257
|
+
* @see https://api-docs.poloniex.com/spot/websocket/trade-request#cancel-multiple-orders
|
|
258
|
+
* @description cancel multiple orders
|
|
259
|
+
* @param {string} id order id
|
|
260
|
+
* @param {string} [symbol] unified market symbol
|
|
261
|
+
* @param {object} [params] extra parameters specific to the poloniex api endpoint
|
|
262
|
+
* @param {string} [params.clientOrderId] client order id
|
|
263
|
+
* @returns {object} an list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
264
|
+
*/
|
|
254
265
|
async cancelOrderWs(id, symbol = undefined, params = {}) {
|
|
255
|
-
/**
|
|
256
|
-
* @method
|
|
257
|
-
* @name poloniex#cancelOrderWs
|
|
258
|
-
* @see https://api-docs.poloniex.com/spot/websocket/trade-request#cancel-multiple-orders
|
|
259
|
-
* @description cancel multiple orders
|
|
260
|
-
* @param {string} id order id
|
|
261
|
-
* @param {string} [symbol] unified market symbol
|
|
262
|
-
* @param {object} [params] extra parameters specific to the poloniex api endpoint
|
|
263
|
-
* @param {string} [params.clientOrderId] client order id
|
|
264
|
-
* @returns {object} an list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
265
|
-
*/
|
|
266
266
|
const clientOrderId = this.safeString(params, 'clientOrderId');
|
|
267
267
|
if (clientOrderId !== undefined) {
|
|
268
268
|
const clientOrderIds = this.safeValue(params, 'clientOrderId', []);
|
|
@@ -270,18 +270,18 @@ class poloniex extends poloniex$1 {
|
|
|
270
270
|
}
|
|
271
271
|
return await this.cancelOrdersWs([id], symbol, params);
|
|
272
272
|
}
|
|
273
|
+
/**
|
|
274
|
+
* @method
|
|
275
|
+
* @name poloniex#cancelOrdersWs
|
|
276
|
+
* @see https://api-docs.poloniex.com/spot/websocket/trade-request#cancel-multiple-orders
|
|
277
|
+
* @description cancel multiple orders
|
|
278
|
+
* @param {string[]} ids order ids
|
|
279
|
+
* @param {string} symbol unified market symbol, default is undefined
|
|
280
|
+
* @param {object} [params] extra parameters specific to the poloniex api endpoint
|
|
281
|
+
* @param {string[]} [params.clientOrderIds] client order ids
|
|
282
|
+
* @returns {object} an list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
283
|
+
*/
|
|
273
284
|
async cancelOrdersWs(ids, symbol = undefined, params = {}) {
|
|
274
|
-
/**
|
|
275
|
-
* @method
|
|
276
|
-
* @name poloniex#cancelOrdersWs
|
|
277
|
-
* @see https://api-docs.poloniex.com/spot/websocket/trade-request#cancel-multiple-orders
|
|
278
|
-
* @description cancel multiple orders
|
|
279
|
-
* @param {string[]} ids order ids
|
|
280
|
-
* @param {string} symbol unified market symbol, default is undefined
|
|
281
|
-
* @param {object} [params] extra parameters specific to the poloniex api endpoint
|
|
282
|
-
* @param {string[]} [params.clientOrderIds] client order ids
|
|
283
|
-
* @returns {object} an list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
284
|
-
*/
|
|
285
285
|
await this.loadMarkets();
|
|
286
286
|
await this.authenticate();
|
|
287
287
|
const request = {
|
|
@@ -289,16 +289,16 @@ class poloniex extends poloniex$1 {
|
|
|
289
289
|
};
|
|
290
290
|
return await this.tradeRequest('cancelOrders', this.extend(request, params));
|
|
291
291
|
}
|
|
292
|
+
/**
|
|
293
|
+
* @method
|
|
294
|
+
* @name poloniex#cancelAllOrdersWs
|
|
295
|
+
* @see https://api-docs.poloniex.com/spot/websocket/trade-request#cancel-all-orders
|
|
296
|
+
* @description cancel all open orders of a type. Only applicable to Option in Portfolio Margin mode, and MMP privilege is required.
|
|
297
|
+
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
298
|
+
* @param {object} [params] extra parameters specific to the poloniex api endpoint
|
|
299
|
+
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
300
|
+
*/
|
|
292
301
|
async cancelAllOrdersWs(symbol = undefined, params = {}) {
|
|
293
|
-
/**
|
|
294
|
-
* @method
|
|
295
|
-
* @name poloniex#cancelAllOrdersWs
|
|
296
|
-
* @see https://api-docs.poloniex.com/spot/websocket/trade-request#cancel-all-orders
|
|
297
|
-
* @description cancel all open orders of a type. Only applicable to Option in Portfolio Margin mode, and MMP privilege is required.
|
|
298
|
-
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
299
|
-
* @param {object} [params] extra parameters specific to the poloniex api endpoint
|
|
300
|
-
* @returns {object[]} a list of [order structures]{@link https://github.com/ccxt/ccxt/wiki/Manual#order-structure}
|
|
301
|
-
*/
|
|
302
302
|
await this.loadMarkets();
|
|
303
303
|
await this.authenticate();
|
|
304
304
|
return await this.tradeRequest('cancelAllOrders', params);
|
|
@@ -325,19 +325,19 @@ class poloniex extends poloniex$1 {
|
|
|
325
325
|
}
|
|
326
326
|
client.resolve(orders, messageHash);
|
|
327
327
|
}
|
|
328
|
+
/**
|
|
329
|
+
* @method
|
|
330
|
+
* @name poloniex#watchOHLCV
|
|
331
|
+
* @description watches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
332
|
+
* @see https://api-docs.poloniex.com/spot/websocket/market-data#candlesticks
|
|
333
|
+
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
334
|
+
* @param {string} timeframe the length of time each candle represents
|
|
335
|
+
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
336
|
+
* @param {int} [limit] the maximum amount of candles to fetch
|
|
337
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
338
|
+
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
339
|
+
*/
|
|
328
340
|
async watchOHLCV(symbol, timeframe = '1m', since = undefined, limit = undefined, params = {}) {
|
|
329
|
-
/**
|
|
330
|
-
* @method
|
|
331
|
-
* @name poloniex#watchOHLCV
|
|
332
|
-
* @description watches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
333
|
-
* @see https://api-docs.poloniex.com/spot/websocket/market-data#candlesticks
|
|
334
|
-
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
335
|
-
* @param {string} timeframe the length of time each candle represents
|
|
336
|
-
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
337
|
-
* @param {int} [limit] the maximum amount of candles to fetch
|
|
338
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
339
|
-
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
340
|
-
*/
|
|
341
341
|
await this.loadMarkets();
|
|
342
342
|
const timeframes = this.safeValue(this.options, 'timeframes', {});
|
|
343
343
|
const channel = this.safeString(timeframes, timeframe, timeframe);
|
|
@@ -350,31 +350,31 @@ class poloniex extends poloniex$1 {
|
|
|
350
350
|
}
|
|
351
351
|
return this.filterBySinceLimit(ohlcv, since, limit, 0, true);
|
|
352
352
|
}
|
|
353
|
+
/**
|
|
354
|
+
* @method
|
|
355
|
+
* @name poloniex#watchTicker
|
|
356
|
+
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
357
|
+
* @see https://api-docs.poloniex.com/spot/websocket/market-data#ticker
|
|
358
|
+
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
359
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
360
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
361
|
+
*/
|
|
353
362
|
async watchTicker(symbol, params = {}) {
|
|
354
|
-
/**
|
|
355
|
-
* @method
|
|
356
|
-
* @name poloniex#watchTicker
|
|
357
|
-
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
358
|
-
* @see https://api-docs.poloniex.com/spot/websocket/market-data#ticker
|
|
359
|
-
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
360
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
361
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
362
|
-
*/
|
|
363
363
|
await this.loadMarkets();
|
|
364
364
|
symbol = this.symbol(symbol);
|
|
365
365
|
const tickers = await this.watchTickers([symbol], params);
|
|
366
366
|
return this.safeValue(tickers, symbol);
|
|
367
367
|
}
|
|
368
|
+
/**
|
|
369
|
+
* @method
|
|
370
|
+
* @name poloniex#watchTickers
|
|
371
|
+
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
372
|
+
* @see https://api-docs.poloniex.com/spot/websocket/market-data#ticker
|
|
373
|
+
* @param {string[]} symbols
|
|
374
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
375
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
376
|
+
*/
|
|
368
377
|
async watchTickers(symbols = undefined, params = {}) {
|
|
369
|
-
/**
|
|
370
|
-
* @method
|
|
371
|
-
* @name poloniex#watchTicker
|
|
372
|
-
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
373
|
-
* @see https://api-docs.poloniex.com/spot/websocket/market-data#ticker
|
|
374
|
-
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
375
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
376
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
377
|
-
*/
|
|
378
378
|
await this.loadMarkets();
|
|
379
379
|
const name = 'ticker';
|
|
380
380
|
symbols = this.marketSymbols(symbols);
|
|
@@ -384,32 +384,32 @@ class poloniex extends poloniex$1 {
|
|
|
384
384
|
}
|
|
385
385
|
return this.filterByArray(this.tickers, 'symbol', symbols);
|
|
386
386
|
}
|
|
387
|
+
/**
|
|
388
|
+
* @method
|
|
389
|
+
* @name poloniex#watchTrades
|
|
390
|
+
* @description get the list of most recent trades for a particular symbol
|
|
391
|
+
* @see https://api-docs.poloniex.com/spot/websocket/market-data#trades
|
|
392
|
+
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
393
|
+
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
394
|
+
* @param {int} [limit] the maximum amount of trades to fetch
|
|
395
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
396
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
397
|
+
*/
|
|
387
398
|
async watchTrades(symbol, since = undefined, limit = undefined, params = {}) {
|
|
388
|
-
/**
|
|
389
|
-
* @method
|
|
390
|
-
* @name poloniex#watchTrades
|
|
391
|
-
* @description get the list of most recent trades for a particular symbol
|
|
392
|
-
* @see https://api-docs.poloniex.com/spot/websocket/market-data#trades
|
|
393
|
-
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
394
|
-
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
395
|
-
* @param {int} [limit] the maximum amount of trades to fetch
|
|
396
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
397
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
398
|
-
*/
|
|
399
399
|
return await this.watchTradesForSymbols([symbol], since, limit, params);
|
|
400
400
|
}
|
|
401
|
+
/**
|
|
402
|
+
* @method
|
|
403
|
+
* @name poloniex#watchTradesForSymbols
|
|
404
|
+
* @description get the list of most recent trades for a list of symbols
|
|
405
|
+
* @see https://api-docs.poloniex.com/spot/websocket/market-data#trades
|
|
406
|
+
* @param {string[]} symbols unified symbol of the market to fetch trades for
|
|
407
|
+
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
408
|
+
* @param {int} [limit] the maximum amount of trades to fetch
|
|
409
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
410
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
411
|
+
*/
|
|
401
412
|
async watchTradesForSymbols(symbols, since = undefined, limit = undefined, params = {}) {
|
|
402
|
-
/**
|
|
403
|
-
* @method
|
|
404
|
-
* @name poloniex#watchTradesForSymbols
|
|
405
|
-
* @description get the list of most recent trades for a list of symbols
|
|
406
|
-
* @see https://api-docs.poloniex.com/spot/websocket/market-data#trades
|
|
407
|
-
* @param {string[]} symbols unified symbol of the market to fetch trades for
|
|
408
|
-
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
409
|
-
* @param {int} [limit] the maximum amount of trades to fetch
|
|
410
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
411
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
412
|
-
*/
|
|
413
413
|
await this.loadMarkets();
|
|
414
414
|
symbols = this.marketSymbols(symbols, undefined, false, true, true);
|
|
415
415
|
const name = 'trades';
|
|
@@ -437,17 +437,17 @@ class poloniex extends poloniex$1 {
|
|
|
437
437
|
}
|
|
438
438
|
return this.filterBySinceLimit(trades, since, limit, 'timestamp', true);
|
|
439
439
|
}
|
|
440
|
+
/**
|
|
441
|
+
* @method
|
|
442
|
+
* @name poloniex#watchOrderBook
|
|
443
|
+
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
444
|
+
* @see https://api-docs.poloniex.com/spot/websocket/market-data#book-level-2
|
|
445
|
+
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
446
|
+
* @param {int} [limit] not used by poloniex watchOrderBook
|
|
447
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
448
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
449
|
+
*/
|
|
440
450
|
async watchOrderBook(symbol, limit = undefined, params = {}) {
|
|
441
|
-
/**
|
|
442
|
-
* @method
|
|
443
|
-
* @name poloniex#watchOrderBook
|
|
444
|
-
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
445
|
-
* @see https://api-docs.poloniex.com/spot/websocket/market-data#book-level-2
|
|
446
|
-
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
447
|
-
* @param {int} [limit] not used by poloniex watchOrderBook
|
|
448
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
449
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
450
|
-
*/
|
|
451
451
|
await this.loadMarkets();
|
|
452
452
|
const watchOrderBookOptions = this.safeValue(this.options, 'watchOrderBook');
|
|
453
453
|
let name = this.safeString(watchOrderBookOptions, 'name', 'book_lv2');
|
|
@@ -455,18 +455,18 @@ class poloniex extends poloniex$1 {
|
|
|
455
455
|
const orderbook = await this.subscribe(name, name, false, [symbol], params);
|
|
456
456
|
return orderbook.limit();
|
|
457
457
|
}
|
|
458
|
+
/**
|
|
459
|
+
* @method
|
|
460
|
+
* @name poloniex#watchOrders
|
|
461
|
+
* @description watches information on multiple orders made by the user
|
|
462
|
+
* @see https://api-docs.poloniex.com/spot/websocket/order
|
|
463
|
+
* @param {string} symbol unified market symbol of the market orders were made in
|
|
464
|
+
* @param {int} [since] not used by poloniex watchOrders
|
|
465
|
+
* @param {int} [limit] not used by poloniex watchOrders
|
|
466
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
467
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
468
|
+
*/
|
|
458
469
|
async watchOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
459
|
-
/**
|
|
460
|
-
* @method
|
|
461
|
-
* @name poloniex#watchOrders
|
|
462
|
-
* @description watches information on multiple orders made by the user
|
|
463
|
-
* @see https://api-docs.poloniex.com/spot/websocket/order
|
|
464
|
-
* @param {string} symbol unified market symbol of the market orders were made in
|
|
465
|
-
* @param {int} [since] not used by poloniex watchOrders
|
|
466
|
-
* @param {int} [limit] not used by poloniex watchOrders
|
|
467
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
468
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
469
|
-
*/
|
|
470
470
|
await this.loadMarkets();
|
|
471
471
|
const name = 'orders';
|
|
472
472
|
await this.authenticate();
|
|
@@ -480,18 +480,18 @@ class poloniex extends poloniex$1 {
|
|
|
480
480
|
}
|
|
481
481
|
return this.filterBySinceLimit(orders, since, limit, 'timestamp', true);
|
|
482
482
|
}
|
|
483
|
+
/**
|
|
484
|
+
* @method
|
|
485
|
+
* @name poloniex#watchMyTrades
|
|
486
|
+
* @description watches information on multiple trades made by the user using orders stream
|
|
487
|
+
* @see https://api-docs.poloniex.com/spot/websocket/order
|
|
488
|
+
* @param {string} symbol unified market symbol of the market orders were made in
|
|
489
|
+
* @param {int} [since] not used by poloniex watchMyTrades
|
|
490
|
+
* @param {int} [limit] not used by poloniex watchMyTrades
|
|
491
|
+
* @param {object} [params] extra parameters specific to the poloniex strean
|
|
492
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
493
|
+
*/
|
|
483
494
|
async watchMyTrades(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
484
|
-
/**
|
|
485
|
-
* @method
|
|
486
|
-
* @name poloniex#watchMyTrades
|
|
487
|
-
* @description watches information on multiple trades made by the user using orders stream
|
|
488
|
-
* @see https://api-docs.poloniex.com/spot/websocket/order
|
|
489
|
-
* @param {string} symbol unified market symbol of the market orders were made in
|
|
490
|
-
* @param {int} [since] not used by poloniex watchMyTrades
|
|
491
|
-
* @param {int} [limit] not used by poloniex watchMyTrades
|
|
492
|
-
* @param {object} [params] extra parameters specific to the poloniex strean
|
|
493
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
494
|
-
*/
|
|
495
495
|
await this.loadMarkets();
|
|
496
496
|
const name = 'orders';
|
|
497
497
|
const messageHash = 'myTrades';
|
|
@@ -506,15 +506,15 @@ class poloniex extends poloniex$1 {
|
|
|
506
506
|
}
|
|
507
507
|
return this.filterBySinceLimit(trades, since, limit, 'timestamp', true);
|
|
508
508
|
}
|
|
509
|
+
/**
|
|
510
|
+
* @method
|
|
511
|
+
* @name poloniex#watchBalance
|
|
512
|
+
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
513
|
+
* @see https://api-docs.poloniex.com/spot/websocket/balance
|
|
514
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
515
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
516
|
+
*/
|
|
509
517
|
async watchBalance(params = {}) {
|
|
510
|
-
/**
|
|
511
|
-
* @method
|
|
512
|
-
* @name poloniex#watchBalance
|
|
513
|
-
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
514
|
-
* @see https://api-docs.poloniex.com/spot/websocket/balance
|
|
515
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
516
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
517
|
-
*/
|
|
518
518
|
await this.loadMarkets();
|
|
519
519
|
const name = 'balances';
|
|
520
520
|
await this.authenticate();
|
|
@@ -132,18 +132,18 @@ class poloniexfutures extends poloniexfutures$1 {
|
|
|
132
132
|
this.options['requestId'] = requestId;
|
|
133
133
|
return requestId;
|
|
134
134
|
}
|
|
135
|
+
/**
|
|
136
|
+
* @ignore
|
|
137
|
+
* @method
|
|
138
|
+
* @description Connects to a websocket channel
|
|
139
|
+
* @param {string} name name of the channel and suscriptionHash
|
|
140
|
+
* @param {bool} isPrivate true for the authenticated url, false for the public url
|
|
141
|
+
* @param {string} symbol is required for all public channels, not required for private channels (except position)
|
|
142
|
+
* @param {object} subscription subscription parameters
|
|
143
|
+
* @param {object} [params] extra parameters specific to the poloniex api
|
|
144
|
+
* @returns {object} data from the websocket stream
|
|
145
|
+
*/
|
|
135
146
|
async subscribe(name, isPrivate, symbol = undefined, subscription = undefined, params = {}) {
|
|
136
|
-
/**
|
|
137
|
-
* @ignore
|
|
138
|
-
* @method
|
|
139
|
-
* @description Connects to a websocket channel
|
|
140
|
-
* @param {string} name name of the channel and suscriptionHash
|
|
141
|
-
* @param {bool} isPrivate true for the authenticated url, false for the public url
|
|
142
|
-
* @param {string} symbol is required for all public channels, not required for private channels (except position)
|
|
143
|
-
* @param {object} subscription subscription parameters
|
|
144
|
-
* @param {object} [params] extra parameters specific to the poloniex api
|
|
145
|
-
* @returns {object} data from the websocket stream
|
|
146
|
-
*/
|
|
147
147
|
const url = await this.negotiate(isPrivate);
|
|
148
148
|
if (symbol !== undefined) {
|
|
149
149
|
const market = this.market(symbol);
|
|
@@ -235,33 +235,33 @@ class poloniexfutures extends poloniexfutures$1 {
|
|
|
235
235
|
const messageHash = this.safeString(message, 'id');
|
|
236
236
|
client.resolve(message, messageHash);
|
|
237
237
|
}
|
|
238
|
+
/**
|
|
239
|
+
* @method
|
|
240
|
+
* @name poloniexfutures#watchTicker
|
|
241
|
+
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
242
|
+
* @see https://api-docs.poloniex.com/futures/websocket/public#get-real-time-symbol-ticker
|
|
243
|
+
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
244
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
245
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
246
|
+
*/
|
|
238
247
|
async watchTicker(symbol, params = {}) {
|
|
239
|
-
/**
|
|
240
|
-
* @method
|
|
241
|
-
* @name poloniexfutures#watchTicker
|
|
242
|
-
* @description watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
243
|
-
* @see https://api-docs.poloniex.com/futures/websocket/public#get-real-time-symbol-ticker
|
|
244
|
-
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
245
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
246
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
247
|
-
*/
|
|
248
248
|
await this.loadMarkets();
|
|
249
249
|
symbol = this.symbol(symbol);
|
|
250
250
|
const name = '/contractMarket/ticker';
|
|
251
251
|
return await this.subscribe(name, false, symbol, undefined, params);
|
|
252
252
|
}
|
|
253
|
+
/**
|
|
254
|
+
* @method
|
|
255
|
+
* @name poloniexfutures#watchTrades
|
|
256
|
+
* @description get the list of most recent trades for a particular symbol
|
|
257
|
+
* @see https://api-docs.poloniex.com/futures/websocket/public#full-matching-engine-datalevel-3
|
|
258
|
+
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
259
|
+
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
260
|
+
* @param {int} [limit] the maximum amount of trades to fetch
|
|
261
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
262
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
263
|
+
*/
|
|
253
264
|
async watchTrades(symbol, since = undefined, limit = undefined, params = {}) {
|
|
254
|
-
/**
|
|
255
|
-
* @method
|
|
256
|
-
* @name poloniexfutures#watchTrades
|
|
257
|
-
* @description get the list of most recent trades for a particular symbol
|
|
258
|
-
* @see https://api-docs.poloniex.com/futures/websocket/public#full-matching-engine-datalevel-3
|
|
259
|
-
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
260
|
-
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
261
|
-
* @param {int} [limit] the maximum amount of trades to fetch
|
|
262
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
263
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
264
|
-
*/
|
|
265
265
|
await this.loadMarkets();
|
|
266
266
|
const options = this.safeValue(this.options, 'watchTrades');
|
|
267
267
|
let name = this.safeString(options, 'method', '/contractMarket/execution'); // can also be /contractMarket/snapshot
|
|
@@ -273,18 +273,18 @@ class poloniexfutures extends poloniexfutures$1 {
|
|
|
273
273
|
}
|
|
274
274
|
return this.filterBySinceLimit(trades, since, limit, 'timestamp', true);
|
|
275
275
|
}
|
|
276
|
+
/**
|
|
277
|
+
* @method
|
|
278
|
+
* @name poloniexfutures#watchOrderBook
|
|
279
|
+
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
280
|
+
* @see https://api-docs.poloniex.com/futures/websocket/public#level-2-market-data
|
|
281
|
+
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
282
|
+
* @param {int} [limit] not used by poloniexfutures watchOrderBook
|
|
283
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
284
|
+
* @param {string} [params.method] the method to use. Defaults to /contractMarket/level2 can also be /contractMarket/level3v2 to receive the raw stream of orders
|
|
285
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
286
|
+
*/
|
|
276
287
|
async watchOrderBook(symbol, limit = undefined, params = {}) {
|
|
277
|
-
/**
|
|
278
|
-
* @method
|
|
279
|
-
* @name poloniexfutures#watchOrderBook
|
|
280
|
-
* @description watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
281
|
-
* @see https://api-docs.poloniex.com/futures/websocket/public#level-2-market-data
|
|
282
|
-
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
283
|
-
* @param {int} [limit] not used by poloniexfutures watchOrderBook
|
|
284
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
285
|
-
* @param {string} [params.method] the method to use. Defaults to /contractMarket/level2 can also be /contractMarket/level3v2 to receive the raw stream of orders
|
|
286
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
287
|
-
*/
|
|
288
288
|
await this.loadMarkets();
|
|
289
289
|
const options = this.safeValue(this.options, 'watchOrderBook');
|
|
290
290
|
let name = this.safeString(options, 'method', '/contractMarket/level2'); // can also be /contractMarket/level2, /contractMarket/level2Depth5:{symbol}, /contractMarket/level2Depth50:{symbol}
|
|
@@ -303,19 +303,19 @@ class poloniexfutures extends poloniexfutures$1 {
|
|
|
303
303
|
const orderbook = await this.subscribe(name, false, symbol, subscription, params);
|
|
304
304
|
return orderbook.limit();
|
|
305
305
|
}
|
|
306
|
+
/**
|
|
307
|
+
* @method
|
|
308
|
+
* @name poloniexfutures#watchOrders
|
|
309
|
+
* @description watches information on multiple orders made by the user
|
|
310
|
+
* @see https://api-docs.poloniex.com/futures/websocket/user-messages#private-messages
|
|
311
|
+
* @param {string} symbol filter by unified market symbol of the market orders were made in
|
|
312
|
+
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
313
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
314
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
315
|
+
* @param {string} [params.method] the method to use will default to /contractMarket/tradeOrders. Set to /contractMarket/advancedOrders to watch stop orders
|
|
316
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
317
|
+
*/
|
|
306
318
|
async watchOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
307
|
-
/**
|
|
308
|
-
* @method
|
|
309
|
-
* @name poloniexfutures#watchOrders
|
|
310
|
-
* @description watches information on multiple orders made by the user
|
|
311
|
-
* @see https://api-docs.poloniex.com/futures/websocket/user-messages#private-messages
|
|
312
|
-
* @param {string} symbol filter by unified market symbol of the market orders were made in
|
|
313
|
-
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
314
|
-
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
315
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
316
|
-
* @param {string} [params.method] the method to use will default to /contractMarket/tradeOrders. Set to /contractMarket/advancedOrders to watch stop orders
|
|
317
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
318
|
-
*/
|
|
319
319
|
await this.loadMarkets();
|
|
320
320
|
const options = this.safeValue(this.options, 'watchOrders');
|
|
321
321
|
const name = this.safeString(options, 'method', '/contractMarket/tradeOrders');
|
|
@@ -330,15 +330,15 @@ class poloniexfutures extends poloniexfutures$1 {
|
|
|
330
330
|
}
|
|
331
331
|
return orders;
|
|
332
332
|
}
|
|
333
|
+
/**
|
|
334
|
+
* @method
|
|
335
|
+
* @name poloniexfutures#watchBalance
|
|
336
|
+
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
337
|
+
* @see https://api-docs.poloniex.com/futures/websocket/user-messages#account-balance-events
|
|
338
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
339
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
340
|
+
*/
|
|
333
341
|
async watchBalance(params = {}) {
|
|
334
|
-
/**
|
|
335
|
-
* @method
|
|
336
|
-
* @name poloniexfutures#watchBalance
|
|
337
|
-
* @description watch balance and get the amount of funds available for trading or funds locked in orders
|
|
338
|
-
* @see https://api-docs.poloniex.com/futures/websocket/user-messages#account-balance-events
|
|
339
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
340
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
341
|
-
*/
|
|
342
342
|
await this.loadMarkets();
|
|
343
343
|
const name = '/contractAccount/wallet';
|
|
344
344
|
return await this.subscribe(name, true, undefined, undefined, params);
|