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/dist/cjs/src/poloniex.js
CHANGED
|
@@ -414,21 +414,21 @@ class poloniex extends poloniex$1 {
|
|
|
414
414
|
this.safeNumber(ohlcv, 5),
|
|
415
415
|
];
|
|
416
416
|
}
|
|
417
|
+
/**
|
|
418
|
+
* @method
|
|
419
|
+
* @name poloniex#fetchOHLCV
|
|
420
|
+
* @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
421
|
+
* @see https://api-docs.poloniex.com/spot/api/public/market-data#candles
|
|
422
|
+
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
423
|
+
* @param {string} timeframe the length of time each candle represents
|
|
424
|
+
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
425
|
+
* @param {int} [limit] the maximum amount of candles to fetch
|
|
426
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
427
|
+
* @param {int} [params.until] timestamp in ms
|
|
428
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
429
|
+
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
430
|
+
*/
|
|
417
431
|
async fetchOHLCV(symbol, timeframe = '1m', since = undefined, limit = undefined, params = {}) {
|
|
418
|
-
/**
|
|
419
|
-
* @method
|
|
420
|
-
* @name poloniex#fetchOHLCV
|
|
421
|
-
* @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
422
|
-
* @see https://api-docs.poloniex.com/spot/api/public/market-data#candles
|
|
423
|
-
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
424
|
-
* @param {string} timeframe the length of time each candle represents
|
|
425
|
-
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
426
|
-
* @param {int} [limit] the maximum amount of candles to fetch
|
|
427
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
428
|
-
* @param {int} [params.until] timestamp in ms
|
|
429
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
430
|
-
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
431
|
-
*/
|
|
432
432
|
await this.loadMarkets();
|
|
433
433
|
let paginate = false;
|
|
434
434
|
[paginate, params] = this.handleOptionAndParams(params, 'fetchOHLCV', 'paginate', false);
|
|
@@ -479,15 +479,15 @@ class poloniex extends poloniex$1 {
|
|
|
479
479
|
}
|
|
480
480
|
return markets;
|
|
481
481
|
}
|
|
482
|
+
/**
|
|
483
|
+
* @method
|
|
484
|
+
* @name poloniex#fetchMarkets
|
|
485
|
+
* @description retrieves data on all markets for poloniex
|
|
486
|
+
* @see https://api-docs.poloniex.com/spot/api/public/reference-data#symbol-information
|
|
487
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
488
|
+
* @returns {object[]} an array of objects representing market data
|
|
489
|
+
*/
|
|
482
490
|
async fetchMarkets(params = {}) {
|
|
483
|
-
/**
|
|
484
|
-
* @method
|
|
485
|
-
* @name poloniex#fetchMarkets
|
|
486
|
-
* @description retrieves data on all markets for poloniex
|
|
487
|
-
* @see https://api-docs.poloniex.com/spot/api/public/reference-data#symbol-information
|
|
488
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
489
|
-
* @returns {object[]} an array of objects representing market data
|
|
490
|
-
*/
|
|
491
491
|
const markets = await this.publicGetMarkets(params);
|
|
492
492
|
//
|
|
493
493
|
// [
|
|
@@ -570,15 +570,15 @@ class poloniex extends poloniex$1 {
|
|
|
570
570
|
'info': market,
|
|
571
571
|
};
|
|
572
572
|
}
|
|
573
|
+
/**
|
|
574
|
+
* @method
|
|
575
|
+
* @name poloniex#fetchTime
|
|
576
|
+
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
577
|
+
* @see https://api-docs.poloniex.com/spot/api/public/reference-data#system-timestamp
|
|
578
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
579
|
+
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
580
|
+
*/
|
|
573
581
|
async fetchTime(params = {}) {
|
|
574
|
-
/**
|
|
575
|
-
* @method
|
|
576
|
-
* @name poloniex#fetchTime
|
|
577
|
-
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
578
|
-
* @see https://api-docs.poloniex.com/spot/api/public/reference-data#system-timestamp
|
|
579
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
580
|
-
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
581
|
-
*/
|
|
582
582
|
const response = await this.publicGetTimestamp(params);
|
|
583
583
|
return this.safeInteger(response, 'serverTime');
|
|
584
584
|
}
|
|
@@ -638,16 +638,16 @@ class poloniex extends poloniex$1 {
|
|
|
638
638
|
'info': ticker,
|
|
639
639
|
}, market);
|
|
640
640
|
}
|
|
641
|
+
/**
|
|
642
|
+
* @method
|
|
643
|
+
* @name poloniex#fetchTickers
|
|
644
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
645
|
+
* @see https://api-docs.poloniex.com/spot/api/public/market-data#ticker
|
|
646
|
+
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
647
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
648
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
649
|
+
*/
|
|
641
650
|
async fetchTickers(symbols = undefined, params = {}) {
|
|
642
|
-
/**
|
|
643
|
-
* @method
|
|
644
|
-
* @name poloniex#fetchTickers
|
|
645
|
-
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
646
|
-
* @see https://api-docs.poloniex.com/spot/api/public/market-data#ticker
|
|
647
|
-
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
648
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
649
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
650
|
-
*/
|
|
651
651
|
await this.loadMarkets();
|
|
652
652
|
symbols = this.marketSymbols(symbols);
|
|
653
653
|
const response = await this.publicGetMarketsTicker24h(params);
|
|
@@ -677,15 +677,15 @@ class poloniex extends poloniex$1 {
|
|
|
677
677
|
//
|
|
678
678
|
return this.parseTickers(response, symbols);
|
|
679
679
|
}
|
|
680
|
+
/**
|
|
681
|
+
* @method
|
|
682
|
+
* @name poloniex#fetchCurrencies
|
|
683
|
+
* @description fetches all available currencies on an exchange
|
|
684
|
+
* @see https://api-docs.poloniex.com/spot/api/public/reference-data#currency-information
|
|
685
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
686
|
+
* @returns {object} an associative dictionary of currencies
|
|
687
|
+
*/
|
|
680
688
|
async fetchCurrencies(params = {}) {
|
|
681
|
-
/**
|
|
682
|
-
* @method
|
|
683
|
-
* @name poloniex#fetchCurrencies
|
|
684
|
-
* @description fetches all available currencies on an exchange
|
|
685
|
-
* @see https://api-docs.poloniex.com/spot/api/public/reference-data#currency-information
|
|
686
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
687
|
-
* @returns {object} an associative dictionary of currencies
|
|
688
|
-
*/
|
|
689
689
|
const response = await this.publicGetCurrencies(this.extend(params, { 'includeMultiChainCurrencies': true }));
|
|
690
690
|
//
|
|
691
691
|
// [
|
|
@@ -815,16 +815,16 @@ class poloniex extends poloniex$1 {
|
|
|
815
815
|
}
|
|
816
816
|
return result;
|
|
817
817
|
}
|
|
818
|
+
/**
|
|
819
|
+
* @method
|
|
820
|
+
* @name poloniex#fetchTicker
|
|
821
|
+
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
822
|
+
* @see https://api-docs.poloniex.com/spot/api/public/market-data#ticker
|
|
823
|
+
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
824
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
825
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
826
|
+
*/
|
|
818
827
|
async fetchTicker(symbol, params = {}) {
|
|
819
|
-
/**
|
|
820
|
-
* @method
|
|
821
|
-
* @name poloniex#fetchTicker
|
|
822
|
-
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
823
|
-
* @see https://api-docs.poloniex.com/spot/api/public/market-data#ticker
|
|
824
|
-
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
825
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
826
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
827
|
-
*/
|
|
828
828
|
await this.loadMarkets();
|
|
829
829
|
const market = this.market(symbol);
|
|
830
830
|
const request = {
|
|
@@ -946,18 +946,18 @@ class poloniex extends poloniex$1 {
|
|
|
946
946
|
'fee': fee,
|
|
947
947
|
}, market);
|
|
948
948
|
}
|
|
949
|
+
/**
|
|
950
|
+
* @method
|
|
951
|
+
* @name poloniex#fetchTrades
|
|
952
|
+
* @description get the list of most recent trades for a particular symbol
|
|
953
|
+
* @see https://api-docs.poloniex.com/spot/api/public/market-data#trades
|
|
954
|
+
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
955
|
+
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
956
|
+
* @param {int} [limit] the maximum amount of trades to fetch
|
|
957
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
958
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
959
|
+
*/
|
|
949
960
|
async fetchTrades(symbol, since = undefined, limit = undefined, params = {}) {
|
|
950
|
-
/**
|
|
951
|
-
* @method
|
|
952
|
-
* @name poloniex#fetchTrades
|
|
953
|
-
* @description get the list of most recent trades for a particular symbol
|
|
954
|
-
* @see https://api-docs.poloniex.com/spot/api/public/market-data#trades
|
|
955
|
-
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
956
|
-
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
957
|
-
* @param {int} [limit] the maximum amount of trades to fetch
|
|
958
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
959
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
960
|
-
*/
|
|
961
961
|
await this.loadMarkets();
|
|
962
962
|
const market = this.market(symbol);
|
|
963
963
|
const request = {
|
|
@@ -982,20 +982,20 @@ class poloniex extends poloniex$1 {
|
|
|
982
982
|
//
|
|
983
983
|
return this.parseTrades(trades, market, since, limit);
|
|
984
984
|
}
|
|
985
|
+
/**
|
|
986
|
+
* @method
|
|
987
|
+
* @name poloniex#fetchMyTrades
|
|
988
|
+
* @description fetch all trades made by the user
|
|
989
|
+
* @see https://api-docs.poloniex.com/spot/api/private/trade#trade-history
|
|
990
|
+
* @param {string} symbol unified market symbol
|
|
991
|
+
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
992
|
+
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
993
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
994
|
+
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
995
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
996
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
997
|
+
*/
|
|
985
998
|
async fetchMyTrades(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
986
|
-
/**
|
|
987
|
-
* @method
|
|
988
|
-
* @name poloniex#fetchMyTrades
|
|
989
|
-
* @description fetch all trades made by the user
|
|
990
|
-
* @see https://api-docs.poloniex.com/spot/api/private/trade#trade-history
|
|
991
|
-
* @param {string} symbol unified market symbol
|
|
992
|
-
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
993
|
-
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
994
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
995
|
-
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
996
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
997
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
998
|
-
*/
|
|
999
999
|
await this.loadMarkets();
|
|
1000
1000
|
let paginate = false;
|
|
1001
1001
|
[paginate, params] = this.handleOptionAndParams(params, 'fetchMyTrades', 'paginate');
|
|
@@ -1195,20 +1195,20 @@ class poloniex extends poloniex$1 {
|
|
|
1195
1195
|
}
|
|
1196
1196
|
return result;
|
|
1197
1197
|
}
|
|
1198
|
+
/**
|
|
1199
|
+
* @method
|
|
1200
|
+
* @name poloniex#fetchOpenOrders
|
|
1201
|
+
* @description fetch all unfilled currently open orders
|
|
1202
|
+
* @see https://api-docs.poloniex.com/spot/api/private/order#open-orders
|
|
1203
|
+
* @see https://api-docs.poloniex.com/spot/api/private/smart-order#open-orders // trigger orders
|
|
1204
|
+
* @param {string} symbol unified market symbol
|
|
1205
|
+
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1206
|
+
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1207
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1208
|
+
* @param {boolean} [params.stop] set true to fetch trigger orders instead of regular orders
|
|
1209
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1210
|
+
*/
|
|
1198
1211
|
async fetchOpenOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1199
|
-
/**
|
|
1200
|
-
* @method
|
|
1201
|
-
* @name poloniex#fetchOpenOrders
|
|
1202
|
-
* @description fetch all unfilled currently open orders
|
|
1203
|
-
* @see https://api-docs.poloniex.com/spot/api/private/order#open-orders
|
|
1204
|
-
* @see https://api-docs.poloniex.com/spot/api/private/smart-order#open-orders // trigger orders
|
|
1205
|
-
* @param {string} symbol unified market symbol
|
|
1206
|
-
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1207
|
-
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1208
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1209
|
-
* @param {boolean} [params.stop] set true to fetch trigger orders instead of regular orders
|
|
1210
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1211
|
-
*/
|
|
1212
1212
|
await this.loadMarkets();
|
|
1213
1213
|
let market = undefined;
|
|
1214
1214
|
const request = {};
|
|
@@ -1254,23 +1254,23 @@ class poloniex extends poloniex$1 {
|
|
|
1254
1254
|
const extension = { 'status': 'open' };
|
|
1255
1255
|
return this.parseOrders(response, market, since, limit, extension);
|
|
1256
1256
|
}
|
|
1257
|
+
/**
|
|
1258
|
+
* @method
|
|
1259
|
+
* @name poloniex#createOrder
|
|
1260
|
+
* @description create a trade order
|
|
1261
|
+
* @see https://api-docs.poloniex.com/spot/api/private/order#create-order
|
|
1262
|
+
* @see https://api-docs.poloniex.com/spot/api/private/smart-order#create-order // trigger orders
|
|
1263
|
+
* @param {string} symbol unified symbol of the market to create an order in
|
|
1264
|
+
* @param {string} type 'market' or 'limit'
|
|
1265
|
+
* @param {string} side 'buy' or 'sell'
|
|
1266
|
+
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1267
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1268
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1269
|
+
* @param {float} [params.triggerPrice] *spot only* The price at which a trigger order is triggered at
|
|
1270
|
+
* @param {float} [params.cost] *spot market buy only* the quote quantity that can be used as an alternative for the amount
|
|
1271
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1272
|
+
*/
|
|
1257
1273
|
async createOrder(symbol, type, side, amount, price = undefined, params = {}) {
|
|
1258
|
-
/**
|
|
1259
|
-
* @method
|
|
1260
|
-
* @name poloniex#createOrder
|
|
1261
|
-
* @description create a trade order
|
|
1262
|
-
* @see https://api-docs.poloniex.com/spot/api/private/order#create-order
|
|
1263
|
-
* @see https://api-docs.poloniex.com/spot/api/private/smart-order#create-order // trigger orders
|
|
1264
|
-
* @param {string} symbol unified symbol of the market to create an order in
|
|
1265
|
-
* @param {string} type 'market' or 'limit'
|
|
1266
|
-
* @param {string} side 'buy' or 'sell'
|
|
1267
|
-
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1268
|
-
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1269
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1270
|
-
* @param {float} [params.triggerPrice] *spot only* The price at which a trigger order is triggered at
|
|
1271
|
-
* @param {float} [params.cost] *spot market buy only* the quote quantity that can be used as an alternative for the amount
|
|
1272
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1273
|
-
*/
|
|
1274
1274
|
await this.loadMarkets();
|
|
1275
1275
|
const market = this.market(symbol);
|
|
1276
1276
|
if (!market['spot']) {
|
|
@@ -1360,23 +1360,23 @@ class poloniex extends poloniex$1 {
|
|
|
1360
1360
|
// remember the timestamp before issuing the request
|
|
1361
1361
|
return [request, params];
|
|
1362
1362
|
}
|
|
1363
|
+
/**
|
|
1364
|
+
* @method
|
|
1365
|
+
* @name poloniex#editOrder
|
|
1366
|
+
* @description edit a trade order
|
|
1367
|
+
* @see https://api-docs.poloniex.com/spot/api/private/order#cancel-replace-order
|
|
1368
|
+
* @see https://api-docs.poloniex.com/spot/api/private/smart-order#cancel-replace-order
|
|
1369
|
+
* @param {string} id order id
|
|
1370
|
+
* @param {string} symbol unified symbol of the market to create an order in
|
|
1371
|
+
* @param {string} type 'market' or 'limit'
|
|
1372
|
+
* @param {string} side 'buy' or 'sell'
|
|
1373
|
+
* @param {float} [amount] how much of the currency you want to trade in units of the base currency
|
|
1374
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1375
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1376
|
+
* @param {float} [params.triggerPrice] The price at which a trigger order is triggered at
|
|
1377
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1378
|
+
*/
|
|
1363
1379
|
async editOrder(id, symbol, type, side, amount = undefined, price = undefined, params = {}) {
|
|
1364
|
-
/**
|
|
1365
|
-
* @method
|
|
1366
|
-
* @name poloniex#editOrder
|
|
1367
|
-
* @description edit a trade order
|
|
1368
|
-
* @see https://api-docs.poloniex.com/spot/api/private/order#cancel-replace-order
|
|
1369
|
-
* @see https://api-docs.poloniex.com/spot/api/private/smart-order#cancel-replace-order
|
|
1370
|
-
* @param {string} id order id
|
|
1371
|
-
* @param {string} symbol unified symbol of the market to create an order in
|
|
1372
|
-
* @param {string} type 'market' or 'limit'
|
|
1373
|
-
* @param {string} side 'buy' or 'sell'
|
|
1374
|
-
* @param {float} [amount] how much of the currency you want to trade in units of the base currency
|
|
1375
|
-
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1376
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1377
|
-
* @param {float} [params.triggerPrice] The price at which a trigger order is triggered at
|
|
1378
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1379
|
-
*/
|
|
1380
1380
|
await this.loadMarkets();
|
|
1381
1381
|
const market = this.market(symbol);
|
|
1382
1382
|
if (!market['spot']) {
|
|
@@ -1447,18 +1447,18 @@ class poloniex extends poloniex$1 {
|
|
|
1447
1447
|
//
|
|
1448
1448
|
return this.parseOrder(response);
|
|
1449
1449
|
}
|
|
1450
|
+
/**
|
|
1451
|
+
* @method
|
|
1452
|
+
* @name poloniex#cancelAllOrders
|
|
1453
|
+
* @description cancel all open orders
|
|
1454
|
+
* @see https://api-docs.poloniex.com/spot/api/private/order#cancel-all-orders
|
|
1455
|
+
* @see https://api-docs.poloniex.com/spot/api/private/smart-order#cancel-all-orders // trigger orders
|
|
1456
|
+
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
1457
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1458
|
+
* @param {boolean} [params.trigger] true if canceling trigger orders
|
|
1459
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1460
|
+
*/
|
|
1450
1461
|
async cancelAllOrders(symbol = undefined, params = {}) {
|
|
1451
|
-
/**
|
|
1452
|
-
* @method
|
|
1453
|
-
* @name poloniex#cancelAllOrders
|
|
1454
|
-
* @description cancel all open orders
|
|
1455
|
-
* @see https://api-docs.poloniex.com/spot/api/private/order#cancel-all-orders
|
|
1456
|
-
* @see https://api-docs.poloniex.com/spot/api/private/smart-order#cancel-all-orders // trigger orders
|
|
1457
|
-
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
1458
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1459
|
-
* @param {boolean} [params.trigger] true if canceling trigger orders
|
|
1460
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1461
|
-
*/
|
|
1462
1462
|
await this.loadMarkets();
|
|
1463
1463
|
const request = {
|
|
1464
1464
|
// 'accountTypes': 'SPOT',
|
|
@@ -1499,19 +1499,19 @@ class poloniex extends poloniex$1 {
|
|
|
1499
1499
|
//
|
|
1500
1500
|
return this.parseOrders(response, market);
|
|
1501
1501
|
}
|
|
1502
|
+
/**
|
|
1503
|
+
* @method
|
|
1504
|
+
* @name poloniex#fetchOrder
|
|
1505
|
+
* @description fetch an order by it's id
|
|
1506
|
+
* @see https://api-docs.poloniex.com/spot/api/private/order#order-details
|
|
1507
|
+
* @see https://api-docs.poloniex.com/spot/api/private/smart-order#open-orders // trigger orders
|
|
1508
|
+
* @param {string} id order id
|
|
1509
|
+
* @param {string} symbol unified market symbol, default is undefined
|
|
1510
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1511
|
+
* @param {boolean} [params.trigger] true if fetching a trigger order
|
|
1512
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1513
|
+
*/
|
|
1502
1514
|
async fetchOrder(id, symbol = undefined, params = {}) {
|
|
1503
|
-
/**
|
|
1504
|
-
* @method
|
|
1505
|
-
* @name poloniex#fetchOrder
|
|
1506
|
-
* @description fetch an order by it's id
|
|
1507
|
-
* @see https://api-docs.poloniex.com/spot/api/private/order#order-details
|
|
1508
|
-
* @see https://api-docs.poloniex.com/spot/api/private/smart-order#open-orders // trigger orders
|
|
1509
|
-
* @param {string} id order id
|
|
1510
|
-
* @param {string} symbol unified market symbol, default is undefined
|
|
1511
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1512
|
-
* @param {boolean} [params.trigger] true if fetching a trigger order
|
|
1513
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1514
|
-
*/
|
|
1515
1515
|
await this.loadMarkets();
|
|
1516
1516
|
id = id.toString();
|
|
1517
1517
|
const request = {
|
|
@@ -1558,19 +1558,19 @@ class poloniex extends poloniex$1 {
|
|
|
1558
1558
|
const indexed = this.indexBy(orders, 'id');
|
|
1559
1559
|
return (id in indexed) ? 'open' : 'closed';
|
|
1560
1560
|
}
|
|
1561
|
+
/**
|
|
1562
|
+
* @method
|
|
1563
|
+
* @name poloniex#fetchOrderTrades
|
|
1564
|
+
* @description fetch all the trades made from a single order
|
|
1565
|
+
* @see https://api-docs.poloniex.com/spot/api/private/trade#trades-by-order-id
|
|
1566
|
+
* @param {string} id order id
|
|
1567
|
+
* @param {string} symbol unified market symbol
|
|
1568
|
+
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1569
|
+
* @param {int} [limit] the maximum number of trades to retrieve
|
|
1570
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1571
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1572
|
+
*/
|
|
1561
1573
|
async fetchOrderTrades(id, symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1562
|
-
/**
|
|
1563
|
-
* @method
|
|
1564
|
-
* @name poloniex#fetchOrderTrades
|
|
1565
|
-
* @description fetch all the trades made from a single order
|
|
1566
|
-
* @see https://api-docs.poloniex.com/spot/api/private/trade#trades-by-order-id
|
|
1567
|
-
* @param {string} id order id
|
|
1568
|
-
* @param {string} symbol unified market symbol
|
|
1569
|
-
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1570
|
-
* @param {int} [limit] the maximum number of trades to retrieve
|
|
1571
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1572
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1573
|
-
*/
|
|
1574
1574
|
await this.loadMarkets();
|
|
1575
1575
|
const request = {
|
|
1576
1576
|
'id': id,
|
|
@@ -1620,15 +1620,15 @@ class poloniex extends poloniex$1 {
|
|
|
1620
1620
|
}
|
|
1621
1621
|
return this.safeBalance(result);
|
|
1622
1622
|
}
|
|
1623
|
+
/**
|
|
1624
|
+
* @method
|
|
1625
|
+
* @name poloniex#fetchBalance
|
|
1626
|
+
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
1627
|
+
* @see https://api-docs.poloniex.com/spot/api/private/account#all-account-balances
|
|
1628
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1629
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
1630
|
+
*/
|
|
1623
1631
|
async fetchBalance(params = {}) {
|
|
1624
|
-
/**
|
|
1625
|
-
* @method
|
|
1626
|
-
* @name poloniex#fetchBalance
|
|
1627
|
-
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
1628
|
-
* @see https://api-docs.poloniex.com/spot/api/private/account#all-account-balances
|
|
1629
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1630
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
1631
|
-
*/
|
|
1632
1632
|
await this.loadMarkets();
|
|
1633
1633
|
const request = {
|
|
1634
1634
|
'accountType': 'SPOT',
|
|
@@ -1652,15 +1652,15 @@ class poloniex extends poloniex$1 {
|
|
|
1652
1652
|
//
|
|
1653
1653
|
return this.parseBalance(response);
|
|
1654
1654
|
}
|
|
1655
|
+
/**
|
|
1656
|
+
* @method
|
|
1657
|
+
* @name poloniex#fetchTradingFees
|
|
1658
|
+
* @description fetch the trading fees for multiple markets
|
|
1659
|
+
* @see https://api-docs.poloniex.com/spot/api/private/account#fee-info
|
|
1660
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1661
|
+
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
1662
|
+
*/
|
|
1655
1663
|
async fetchTradingFees(params = {}) {
|
|
1656
|
-
/**
|
|
1657
|
-
* @method
|
|
1658
|
-
* @name poloniex#fetchTradingFees
|
|
1659
|
-
* @description fetch the trading fees for multiple markets
|
|
1660
|
-
* @see https://api-docs.poloniex.com/spot/api/private/account#fee-info
|
|
1661
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1662
|
-
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
1663
|
-
*/
|
|
1664
1664
|
await this.loadMarkets();
|
|
1665
1665
|
const response = await this.privateGetFeeinfo(params);
|
|
1666
1666
|
//
|
|
@@ -1685,17 +1685,17 @@ class poloniex extends poloniex$1 {
|
|
|
1685
1685
|
}
|
|
1686
1686
|
return result;
|
|
1687
1687
|
}
|
|
1688
|
+
/**
|
|
1689
|
+
* @method
|
|
1690
|
+
* @name poloniex#fetchOrderBook
|
|
1691
|
+
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
1692
|
+
* @see https://api-docs.poloniex.com/spot/api/public/market-data#order-book
|
|
1693
|
+
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
1694
|
+
* @param {int} [limit] the maximum amount of order book entries to return
|
|
1695
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1696
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
1697
|
+
*/
|
|
1688
1698
|
async fetchOrderBook(symbol, limit = undefined, params = {}) {
|
|
1689
|
-
/**
|
|
1690
|
-
* @method
|
|
1691
|
-
* @name poloniex#fetchOrderBook
|
|
1692
|
-
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
1693
|
-
* @see https://api-docs.poloniex.com/spot/api/public/market-data#order-book
|
|
1694
|
-
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
1695
|
-
* @param {int} [limit] the maximum amount of order book entries to return
|
|
1696
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1697
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
1698
|
-
*/
|
|
1699
1699
|
await this.loadMarkets();
|
|
1700
1700
|
const market = this.market(symbol);
|
|
1701
1701
|
const request = {
|
|
@@ -1742,16 +1742,16 @@ class poloniex extends poloniex$1 {
|
|
|
1742
1742
|
'nonce': undefined,
|
|
1743
1743
|
};
|
|
1744
1744
|
}
|
|
1745
|
+
/**
|
|
1746
|
+
* @method
|
|
1747
|
+
* @name poloniex#createDepositAddress
|
|
1748
|
+
* @description create a currency deposit address
|
|
1749
|
+
* @see https://api-docs.poloniex.com/spot/api/private/wallet#deposit-addresses
|
|
1750
|
+
* @param {string} code unified currency code of the currency for the deposit address
|
|
1751
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1752
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1753
|
+
*/
|
|
1745
1754
|
async createDepositAddress(code, params = {}) {
|
|
1746
|
-
/**
|
|
1747
|
-
* @method
|
|
1748
|
-
* @name poloniex#createDepositAddress
|
|
1749
|
-
* @description create a currency deposit address
|
|
1750
|
-
* @see https://api-docs.poloniex.com/spot/api/private/wallet#deposit-addresses
|
|
1751
|
-
* @param {string} code unified currency code of the currency for the deposit address
|
|
1752
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1753
|
-
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1754
|
-
*/
|
|
1755
1755
|
await this.loadMarkets();
|
|
1756
1756
|
const currency = this.currency(code);
|
|
1757
1757
|
const request = {
|
|
@@ -1793,16 +1793,16 @@ class poloniex extends poloniex$1 {
|
|
|
1793
1793
|
'info': response,
|
|
1794
1794
|
};
|
|
1795
1795
|
}
|
|
1796
|
+
/**
|
|
1797
|
+
* @method
|
|
1798
|
+
* @name poloniex#fetchDepositAddress
|
|
1799
|
+
* @description fetch the deposit address for a currency associated with this account
|
|
1800
|
+
* @see https://api-docs.poloniex.com/spot/api/private/wallet#deposit-addresses
|
|
1801
|
+
* @param {string} code unified currency code
|
|
1802
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1803
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1804
|
+
*/
|
|
1796
1805
|
async fetchDepositAddress(code, params = {}) {
|
|
1797
|
-
/**
|
|
1798
|
-
* @method
|
|
1799
|
-
* @name poloniex#fetchDepositAddress
|
|
1800
|
-
* @description fetch the deposit address for a currency associated with this account
|
|
1801
|
-
* @see https://api-docs.poloniex.com/spot/api/private/wallet#deposit-addresses
|
|
1802
|
-
* @param {string} code unified currency code
|
|
1803
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1804
|
-
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1805
|
-
*/
|
|
1806
1806
|
await this.loadMarkets();
|
|
1807
1807
|
const currency = this.currency(code);
|
|
1808
1808
|
const request = {
|
|
@@ -1844,19 +1844,19 @@ class poloniex extends poloniex$1 {
|
|
|
1844
1844
|
'tag': tag,
|
|
1845
1845
|
};
|
|
1846
1846
|
}
|
|
1847
|
+
/**
|
|
1848
|
+
* @method
|
|
1849
|
+
* @name poloniex#transfer
|
|
1850
|
+
* @description transfer currency internally between wallets on the same account
|
|
1851
|
+
* @see https://api-docs.poloniex.com/spot/api/private/account#accounts-transfer
|
|
1852
|
+
* @param {string} code unified currency code
|
|
1853
|
+
* @param {float} amount amount to transfer
|
|
1854
|
+
* @param {string} fromAccount account to transfer from
|
|
1855
|
+
* @param {string} toAccount account to transfer to
|
|
1856
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1857
|
+
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
|
|
1858
|
+
*/
|
|
1847
1859
|
async transfer(code, amount, fromAccount, toAccount, params = {}) {
|
|
1848
|
-
/**
|
|
1849
|
-
* @method
|
|
1850
|
-
* @name poloniex#transfer
|
|
1851
|
-
* @description transfer currency internally between wallets on the same account
|
|
1852
|
-
* @see https://api-docs.poloniex.com/spot/api/private/account#accounts-transfer
|
|
1853
|
-
* @param {string} code unified currency code
|
|
1854
|
-
* @param {float} amount amount to transfer
|
|
1855
|
-
* @param {string} fromAccount account to transfer from
|
|
1856
|
-
* @param {string} toAccount account to transfer to
|
|
1857
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1858
|
-
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
|
|
1859
|
-
*/
|
|
1860
1860
|
await this.loadMarkets();
|
|
1861
1861
|
const currency = this.currency(code);
|
|
1862
1862
|
const accountsByType = this.safeValue(this.options, 'accountsByType', {});
|
|
@@ -1894,19 +1894,19 @@ class poloniex extends poloniex$1 {
|
|
|
1894
1894
|
'status': undefined,
|
|
1895
1895
|
};
|
|
1896
1896
|
}
|
|
1897
|
+
/**
|
|
1898
|
+
* @method
|
|
1899
|
+
* @name poloniex#withdraw
|
|
1900
|
+
* @description make a withdrawal
|
|
1901
|
+
* @see https://api-docs.poloniex.com/spot/api/private/wallet#withdraw-currency
|
|
1902
|
+
* @param {string} code unified currency code
|
|
1903
|
+
* @param {float} amount the amount to withdraw
|
|
1904
|
+
* @param {string} address the address to withdraw to
|
|
1905
|
+
* @param {string} tag
|
|
1906
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1907
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1908
|
+
*/
|
|
1897
1909
|
async withdraw(code, amount, address, tag = undefined, params = {}) {
|
|
1898
|
-
/**
|
|
1899
|
-
* @method
|
|
1900
|
-
* @name poloniex#withdraw
|
|
1901
|
-
* @description make a withdrawal
|
|
1902
|
-
* @see https://api-docs.poloniex.com/spot/api/private/wallet#withdraw-currency
|
|
1903
|
-
* @param {string} code unified currency code
|
|
1904
|
-
* @param {float} amount the amount to withdraw
|
|
1905
|
-
* @param {string} address the address to withdraw to
|
|
1906
|
-
* @param {string} tag
|
|
1907
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1908
|
-
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1909
|
-
*/
|
|
1910
1910
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
1911
1911
|
this.checkAddress(address);
|
|
1912
1912
|
await this.loadMarkets();
|
|
@@ -2019,18 +2019,18 @@ class poloniex extends poloniex$1 {
|
|
|
2019
2019
|
//
|
|
2020
2020
|
return response;
|
|
2021
2021
|
}
|
|
2022
|
+
/**
|
|
2023
|
+
* @method
|
|
2024
|
+
* @name poloniex#fetchDepositsWithdrawals
|
|
2025
|
+
* @description fetch history of deposits and withdrawals
|
|
2026
|
+
* @see https://api-docs.poloniex.com/spot/api/private/wallet#wallets-activity-records
|
|
2027
|
+
* @param {string} [code] unified currency code for the currency of the deposit/withdrawals, default is undefined
|
|
2028
|
+
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
2029
|
+
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
2030
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2031
|
+
* @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2032
|
+
*/
|
|
2022
2033
|
async fetchDepositsWithdrawals(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2023
|
-
/**
|
|
2024
|
-
* @method
|
|
2025
|
-
* @name poloniex#fetchDepositsWithdrawals
|
|
2026
|
-
* @description fetch history of deposits and withdrawals
|
|
2027
|
-
* @see https://api-docs.poloniex.com/spot/api/private/wallet#wallets-activity-records
|
|
2028
|
-
* @param {string} [code] unified currency code for the currency of the deposit/withdrawals, default is undefined
|
|
2029
|
-
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
2030
|
-
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
2031
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2032
|
-
* @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2033
|
-
*/
|
|
2034
2034
|
await this.loadMarkets();
|
|
2035
2035
|
const response = await this.fetchTransactionsHelper(code, since, limit, params);
|
|
2036
2036
|
let currency = undefined;
|
|
@@ -2044,18 +2044,18 @@ class poloniex extends poloniex$1 {
|
|
|
2044
2044
|
const transactions = this.arrayConcat(depositTransactions, withdrawalTransactions);
|
|
2045
2045
|
return this.filterByCurrencySinceLimit(this.sortBy(transactions, 'timestamp'), code, since, limit);
|
|
2046
2046
|
}
|
|
2047
|
+
/**
|
|
2048
|
+
* @method
|
|
2049
|
+
* @name poloniex#fetchWithdrawals
|
|
2050
|
+
* @description fetch all withdrawals made from an account
|
|
2051
|
+
* @see https://api-docs.poloniex.com/spot/api/private/wallet#wallets-activity-records
|
|
2052
|
+
* @param {string} code unified currency code
|
|
2053
|
+
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
2054
|
+
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
2055
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2056
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2057
|
+
*/
|
|
2047
2058
|
async fetchWithdrawals(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2048
|
-
/**
|
|
2049
|
-
* @method
|
|
2050
|
-
* @name poloniex#fetchWithdrawals
|
|
2051
|
-
* @description fetch all withdrawals made from an account
|
|
2052
|
-
* @see https://api-docs.poloniex.com/spot/api/private/wallet#wallets-activity-records
|
|
2053
|
-
* @param {string} code unified currency code
|
|
2054
|
-
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
2055
|
-
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
2056
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2057
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2058
|
-
*/
|
|
2059
2059
|
const response = await this.fetchTransactionsHelper(code, since, limit, params);
|
|
2060
2060
|
let currency = undefined;
|
|
2061
2061
|
if (code !== undefined) {
|
|
@@ -2065,16 +2065,16 @@ class poloniex extends poloniex$1 {
|
|
|
2065
2065
|
const transactions = this.parseTransactions(withdrawals, currency, since, limit);
|
|
2066
2066
|
return this.filterByCurrencySinceLimit(transactions, code, since, limit);
|
|
2067
2067
|
}
|
|
2068
|
+
/**
|
|
2069
|
+
* @method
|
|
2070
|
+
* @name poloniex#fetchDepositWithdrawFees
|
|
2071
|
+
* @description fetch deposit and withdraw fees
|
|
2072
|
+
* @see https://api-docs.poloniex.com/spot/api/public/reference-data#currency-information
|
|
2073
|
+
* @param {string[]|undefined} codes list of unified currency codes
|
|
2074
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2075
|
+
* @returns {object[]} a list of [fees structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
2076
|
+
*/
|
|
2068
2077
|
async fetchDepositWithdrawFees(codes = undefined, params = {}) {
|
|
2069
|
-
/**
|
|
2070
|
-
* @method
|
|
2071
|
-
* @name poloniex#fetchDepositWithdrawFees
|
|
2072
|
-
* @description fetch deposit and withdraw fees
|
|
2073
|
-
* @see https://api-docs.poloniex.com/spot/api/public/reference-data#currency-information
|
|
2074
|
-
* @param {string[]|undefined} codes list of unified currency codes
|
|
2075
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2076
|
-
* @returns {object[]} a list of [fees structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
2077
|
-
*/
|
|
2078
2078
|
await this.loadMarkets();
|
|
2079
2079
|
const response = await this.publicGetCurrencies(this.extend(params, { 'includeMultiChainCurrencies': true }));
|
|
2080
2080
|
//
|
|
@@ -2190,18 +2190,18 @@ class poloniex extends poloniex$1 {
|
|
|
2190
2190
|
};
|
|
2191
2191
|
return depositWithdrawFee;
|
|
2192
2192
|
}
|
|
2193
|
+
/**
|
|
2194
|
+
* @method
|
|
2195
|
+
* @name poloniex#fetchDeposits
|
|
2196
|
+
* @description fetch all deposits made to an account
|
|
2197
|
+
* @see https://api-docs.poloniex.com/spot/api/private/wallet#wallets-activity-records
|
|
2198
|
+
* @param {string} code unified currency code
|
|
2199
|
+
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
2200
|
+
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
2201
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2202
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2203
|
+
*/
|
|
2193
2204
|
async fetchDeposits(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2194
|
-
/**
|
|
2195
|
-
* @method
|
|
2196
|
-
* @name poloniex#fetchDeposits
|
|
2197
|
-
* @description fetch all deposits made to an account
|
|
2198
|
-
* @see https://api-docs.poloniex.com/spot/api/private/wallet#wallets-activity-records
|
|
2199
|
-
* @param {string} code unified currency code
|
|
2200
|
-
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
2201
|
-
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
2202
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2203
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2204
|
-
*/
|
|
2205
2205
|
const response = await this.fetchTransactionsHelper(code, since, limit, params);
|
|
2206
2206
|
let currency = undefined;
|
|
2207
2207
|
if (code !== undefined) {
|