ccxt 4.4.30 → 4.4.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -3
- package/dist/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/ace.js +123 -123
- package/dist/cjs/src/alpaca.js +237 -237
- package/dist/cjs/src/ascendex.js +342 -341
- package/dist/cjs/src/bigone.js +242 -242
- package/dist/cjs/src/binance.js +1339 -1291
- package/dist/cjs/src/bingx.js +639 -639
- package/dist/cjs/src/bit2c.js +111 -111
- package/dist/cjs/src/bitbank.js +142 -142
- package/dist/cjs/src/bitbns.js +140 -140
- package/dist/cjs/src/bitfinex.js +231 -231
- package/dist/cjs/src/bitfinex2.js +403 -403
- package/dist/cjs/src/bitflyer.js +184 -184
- package/dist/cjs/src/bitget.js +848 -846
- package/dist/cjs/src/bithumb.js +125 -124
- package/dist/cjs/src/bitmart.js +525 -525
- package/dist/cjs/src/bitmex.js +317 -317
- package/dist/cjs/src/bitopro.js +221 -221
- package/dist/cjs/src/bitrue.js +315 -315
- package/dist/cjs/src/bitso.js +220 -220
- package/dist/cjs/src/bitstamp.js +251 -251
- package/dist/cjs/src/bitteam.js +183 -183
- package/dist/cjs/src/bitvavo.js +247 -251
- package/dist/cjs/src/bl3p.js +82 -82
- package/dist/cjs/src/blockchaincom.js +211 -211
- package/dist/cjs/src/blofin.js +332 -331
- package/dist/cjs/src/btcalpha.js +166 -166
- package/dist/cjs/src/btcbox.js +108 -108
- package/dist/cjs/src/btcmarkets.js +198 -198
- package/dist/cjs/src/btcturk.js +124 -124
- package/dist/cjs/src/bybit.js +906 -900
- package/dist/cjs/src/cex.js +227 -226
- package/dist/cjs/src/coinbase.js +481 -481
- package/dist/cjs/src/coinbaseexchange.js +274 -274
- package/dist/cjs/src/coinbaseinternational.js +304 -304
- package/dist/cjs/src/coincatch.js +650 -650
- package/dist/cjs/src/coincheck.js +113 -113
- package/dist/cjs/src/coinex.js +611 -601
- package/dist/cjs/src/coinlist.js +304 -303
- package/dist/cjs/src/coinmate.js +162 -161
- package/dist/cjs/src/coinmetro.js +187 -187
- package/dist/cjs/src/coinone.js +124 -123
- package/dist/cjs/src/coinsph.js +237 -237
- package/dist/cjs/src/coinspot.js +82 -82
- package/dist/cjs/src/cryptocom.js +342 -341
- package/dist/cjs/src/currencycom.js +225 -224
- package/dist/cjs/src/delta.js +320 -320
- package/dist/cjs/src/deribit.js +411 -408
- package/dist/cjs/src/digifinex.js +432 -431
- package/dist/cjs/src/exmo.js +328 -327
- package/dist/cjs/src/gate.js +830 -791
- package/dist/cjs/src/gemini.js +199 -198
- package/dist/cjs/src/hashkey.js +520 -517
- package/dist/cjs/src/hitbtc.js +465 -462
- package/dist/cjs/src/hollaex.js +253 -252
- package/dist/cjs/src/htx.js +791 -848
- package/dist/cjs/src/huobijp.js +219 -218
- package/dist/cjs/src/hyperliquid.js +421 -417
- package/dist/cjs/src/idex.js +238 -237
- package/dist/cjs/src/independentreserve.js +133 -132
- package/dist/cjs/src/indodax.js +177 -171
- package/dist/cjs/src/kraken.js +381 -377
- package/dist/cjs/src/krakenfutures.js +285 -279
- package/dist/cjs/src/kucoin.js +632 -622
- package/dist/cjs/src/kucoinfutures.js +533 -457
- package/dist/cjs/src/kuna.js +283 -282
- package/dist/cjs/src/latoken.js +211 -210
- package/dist/cjs/src/lbank.js +268 -267
- package/dist/cjs/src/luno.js +174 -173
- package/dist/cjs/src/lykke.js +172 -171
- package/dist/cjs/src/mercado.js +123 -122
- package/dist/cjs/src/mexc.js +650 -646
- package/dist/cjs/src/ndax.js +229 -228
- package/dist/cjs/src/novadax.js +230 -229
- package/dist/cjs/src/oceanex.js +187 -186
- package/dist/cjs/src/okcoin.js +286 -285
- package/dist/cjs/src/okx.js +909 -904
- package/dist/cjs/src/onetrading.js +218 -218
- package/dist/cjs/src/oxfun.js +335 -334
- package/dist/cjs/src/p2b.js +154 -154
- package/dist/cjs/src/paradex.js +249 -244
- package/dist/cjs/src/paymium.js +101 -101
- package/dist/cjs/src/phemex.js +388 -390
- package/dist/cjs/src/poloniex.js +270 -270
- package/dist/cjs/src/poloniexfutures.js +250 -250
- package/dist/cjs/src/pro/alpaca.js +64 -64
- package/dist/cjs/src/pro/ascendex.js +64 -64
- package/dist/cjs/src/pro/binance.js +546 -543
- package/dist/cjs/src/pro/bingx.js +116 -116
- package/dist/cjs/src/pro/bitfinex.js +42 -42
- package/dist/cjs/src/pro/bitfinex2.js +66 -66
- package/dist/cjs/src/pro/bitget.js +188 -181
- package/dist/cjs/src/pro/bithumb.js +40 -40
- package/dist/cjs/src/pro/bitmart.js +121 -119
- package/dist/cjs/src/pro/bitmex.js +135 -133
- package/dist/cjs/src/pro/bitopro.js +49 -49
- package/dist/cjs/src/pro/bitrue.js +19 -19
- package/dist/cjs/src/pro/bitstamp.js +29 -29
- package/dist/cjs/src/pro/bitvavo.js +299 -301
- package/dist/cjs/src/pro/blockchaincom.js +62 -62
- package/dist/cjs/src/pro/blofin.js +132 -130
- package/dist/cjs/src/pro/bybit.js +317 -313
- package/dist/cjs/src/pro/cex.js +168 -168
- package/dist/cjs/src/pro/coinbase.js +93 -91
- package/dist/cjs/src/pro/coinbaseexchange.js +95 -95
- package/dist/cjs/src/pro/coinbaseinternational.js +111 -111
- package/dist/cjs/src/pro/coincatch.js +150 -143
- package/dist/cjs/src/pro/coincheck.js +21 -21
- package/dist/cjs/src/pro/coinex.js +110 -110
- package/dist/cjs/src/pro/coinone.js +30 -30
- package/dist/cjs/src/pro/cryptocom.js +227 -227
- package/dist/cjs/src/pro/currencycom.js +45 -45
- package/dist/cjs/src/pro/deribit.js +127 -127
- package/dist/cjs/src/pro/exmo.js +66 -66
- package/dist/cjs/src/pro/gate.js +287 -283
- package/dist/cjs/src/pro/gemini.js +74 -74
- package/dist/cjs/src/pro/hashkey.js +87 -85
- package/dist/cjs/src/pro/hitbtc.js +190 -190
- package/dist/cjs/src/pro/hollaex.js +51 -51
- package/dist/cjs/src/pro/htx.js +96 -94
- package/dist/cjs/src/pro/huobijp.js +38 -38
- package/dist/cjs/src/pro/hyperliquid.js +151 -150
- package/dist/cjs/src/pro/idex.js +48 -48
- package/dist/cjs/src/pro/independentreserve.js +19 -19
- package/dist/cjs/src/pro/kraken.js +167 -167
- package/dist/cjs/src/pro/krakenfutures.js +137 -138
- package/dist/cjs/src/pro/kucoin.js +167 -168
- package/dist/cjs/src/pro/kucoinfutures.js +147 -147
- package/dist/cjs/src/pro/lbank.js +95 -95
- package/dist/cjs/src/pro/luno.js +21 -21
- package/dist/cjs/src/pro/mexc.js +102 -103
- package/dist/cjs/src/pro/ndax.js +42 -42
- package/dist/cjs/src/pro/okcoin.js +61 -61
- package/dist/cjs/src/pro/okx.js +332 -330
- package/dist/cjs/src/pro/onetrading.js +71 -71
- package/dist/cjs/src/pro/oxfun.js +193 -191
- package/dist/cjs/src/pro/p2b.js +77 -77
- package/dist/cjs/src/pro/paradex.js +39 -39
- package/dist/cjs/src/pro/phemex.js +94 -94
- package/dist/cjs/src/pro/poloniex.js +171 -171
- package/dist/cjs/src/pro/poloniexfutures.js +62 -62
- package/dist/cjs/src/pro/probit.js +63 -63
- package/dist/cjs/src/pro/upbit.js +80 -80
- package/dist/cjs/src/pro/vertex.js +65 -63
- package/dist/cjs/src/pro/wazirx.js +70 -70
- package/dist/cjs/src/pro/whitebit.js +83 -83
- package/dist/cjs/src/pro/woo.js +106 -104
- package/dist/cjs/src/pro/woofipro.js +105 -103
- package/dist/cjs/src/pro/xt.js +119 -119
- package/dist/cjs/src/probit.js +229 -229
- package/dist/cjs/src/timex.js +198 -197
- package/dist/cjs/src/tokocrypto.js +214 -213
- package/dist/cjs/src/tradeogre.js +92 -91
- package/dist/cjs/src/upbit.js +243 -242
- package/dist/cjs/src/vertex.js +258 -258
- package/dist/cjs/src/wavesexchange.js +176 -172
- package/dist/cjs/src/wazirx.js +168 -168
- package/dist/cjs/src/whitebit.js +361 -361
- package/dist/cjs/src/woo.js +571 -572
- package/dist/cjs/src/woofipro.js +392 -391
- package/dist/cjs/src/xt.js +436 -435
- package/dist/cjs/src/yobit.js +159 -158
- package/dist/cjs/src/zaif.js +103 -103
- package/dist/cjs/src/zonda.js +168 -168
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/ace.d.ts +123 -0
- package/js/src/ace.js +123 -123
- package/js/src/alpaca.d.ts +237 -0
- package/js/src/alpaca.js +237 -237
- package/js/src/ascendex.d.ts +339 -0
- package/js/src/ascendex.js +342 -341
- package/js/src/base/types.d.ts +1 -0
- package/js/src/bigone.d.ts +242 -0
- package/js/src/bigone.js +242 -242
- package/js/src/binance.d.ts +1306 -0
- package/js/src/binance.js +1339 -1291
- package/js/src/bingx.d.ts +639 -0
- package/js/src/bingx.js +639 -639
- package/js/src/bit2c.d.ts +111 -0
- package/js/src/bit2c.js +111 -111
- package/js/src/bitbank.d.ts +142 -0
- package/js/src/bitbank.js +142 -142
- package/js/src/bitbns.d.ts +140 -0
- package/js/src/bitbns.js +140 -140
- package/js/src/bitfinex.d.ts +231 -0
- package/js/src/bitfinex.js +231 -231
- package/js/src/bitfinex2.d.ts +403 -0
- package/js/src/bitfinex2.js +403 -403
- package/js/src/bitflyer.d.ts +184 -0
- package/js/src/bitflyer.js +184 -184
- package/js/src/bitget.d.ts +846 -0
- package/js/src/bitget.js +848 -846
- package/js/src/bithumb.d.ts +125 -0
- package/js/src/bithumb.js +125 -124
- package/js/src/bitmart.d.ts +525 -0
- package/js/src/bitmart.js +525 -525
- package/js/src/bitmex.d.ts +317 -0
- package/js/src/bitmex.js +317 -317
- package/js/src/bitopro.d.ts +221 -0
- package/js/src/bitopro.js +221 -221
- package/js/src/bitrue.d.ts +315 -0
- package/js/src/bitrue.js +315 -315
- package/js/src/bitso.d.ts +220 -0
- package/js/src/bitso.js +220 -220
- package/js/src/bitstamp.d.ts +251 -0
- package/js/src/bitstamp.js +251 -251
- package/js/src/bitteam.d.ts +183 -0
- package/js/src/bitteam.js +183 -183
- package/js/src/bitvavo.d.ts +247 -0
- package/js/src/bitvavo.js +247 -251
- package/js/src/bl3p.d.ts +82 -0
- package/js/src/bl3p.js +82 -82
- package/js/src/blockchaincom.d.ts +211 -0
- package/js/src/blockchaincom.js +211 -211
- package/js/src/blofin.d.ts +332 -0
- package/js/src/blofin.js +332 -331
- package/js/src/btcalpha.d.ts +166 -0
- package/js/src/btcalpha.js +166 -166
- package/js/src/btcbox.d.ts +108 -0
- package/js/src/btcbox.js +108 -108
- package/js/src/btcmarkets.d.ts +198 -0
- package/js/src/btcmarkets.js +198 -198
- package/js/src/btcturk.d.ts +124 -0
- package/js/src/btcturk.js +124 -124
- package/js/src/bybit.d.ts +906 -1
- package/js/src/bybit.js +906 -900
- package/js/src/cex.d.ts +227 -0
- package/js/src/cex.js +227 -226
- package/js/src/coinbase.d.ts +481 -0
- package/js/src/coinbase.js +481 -481
- package/js/src/coinbaseexchange.d.ts +274 -0
- package/js/src/coinbaseexchange.js +274 -274
- package/js/src/coinbaseinternational.d.ts +304 -0
- package/js/src/coinbaseinternational.js +304 -304
- package/js/src/coincatch.d.ts +646 -0
- package/js/src/coincatch.js +650 -650
- package/js/src/coincheck.d.ts +113 -0
- package/js/src/coincheck.js +113 -113
- package/js/src/coinex.d.ts +603 -0
- package/js/src/coinex.js +611 -601
- package/js/src/coinlist.d.ts +304 -0
- package/js/src/coinlist.js +304 -303
- package/js/src/coinmate.d.ts +162 -0
- package/js/src/coinmate.js +162 -161
- package/js/src/coinmetro.d.ts +187 -0
- package/js/src/coinmetro.js +187 -187
- package/js/src/coinone.d.ts +124 -0
- package/js/src/coinone.js +124 -123
- package/js/src/coinsph.d.ts +237 -0
- package/js/src/coinsph.js +237 -237
- package/js/src/coinspot.d.ts +82 -0
- package/js/src/coinspot.js +82 -82
- package/js/src/cryptocom.d.ts +342 -0
- package/js/src/cryptocom.js +342 -341
- package/js/src/currencycom.d.ts +225 -0
- package/js/src/currencycom.js +225 -224
- package/js/src/delta.d.ts +320 -0
- package/js/src/delta.js +320 -320
- package/js/src/deribit.d.ts +411 -0
- package/js/src/deribit.js +411 -408
- package/js/src/digifinex.d.ts +430 -0
- package/js/src/digifinex.js +432 -431
- package/js/src/exmo.d.ts +328 -0
- package/js/src/exmo.js +328 -327
- package/js/src/gate.d.ts +803 -1
- package/js/src/gate.js +830 -791
- package/js/src/gemini.d.ts +199 -0
- package/js/src/gemini.js +199 -198
- package/js/src/hashkey.d.ts +516 -0
- package/js/src/hashkey.js +520 -517
- package/js/src/hitbtc.d.ts +465 -0
- package/js/src/hitbtc.js +465 -462
- package/js/src/hollaex.d.ts +253 -0
- package/js/src/hollaex.js +253 -252
- package/js/src/htx.d.ts +765 -2
- package/js/src/htx.js +791 -848
- package/js/src/huobijp.d.ts +219 -0
- package/js/src/huobijp.js +219 -218
- package/js/src/hyperliquid.d.ts +419 -0
- package/js/src/hyperliquid.js +421 -417
- package/js/src/idex.d.ts +238 -0
- package/js/src/idex.js +238 -237
- package/js/src/independentreserve.d.ts +133 -0
- package/js/src/independentreserve.js +133 -132
- package/js/src/indodax.d.ts +171 -0
- package/js/src/indodax.js +177 -171
- package/js/src/kraken.d.ts +381 -0
- package/js/src/kraken.js +381 -377
- package/js/src/krakenfutures.d.ts +282 -0
- package/js/src/krakenfutures.js +285 -279
- package/js/src/kucoin.d.ts +613 -0
- package/js/src/kucoin.js +632 -622
- package/js/src/kucoinfutures.d.ts +441 -0
- package/js/src/kucoinfutures.js +533 -457
- package/js/src/kuna.d.ts +283 -0
- package/js/src/kuna.js +283 -282
- package/js/src/latoken.d.ts +211 -0
- package/js/src/latoken.js +211 -210
- package/js/src/lbank.d.ts +268 -0
- package/js/src/lbank.js +268 -267
- package/js/src/luno.d.ts +174 -0
- package/js/src/luno.js +174 -173
- package/js/src/lykke.d.ts +172 -0
- package/js/src/lykke.js +172 -171
- package/js/src/mercado.d.ts +123 -0
- package/js/src/mercado.js +123 -122
- package/js/src/mexc.d.ts +647 -0
- package/js/src/mexc.js +650 -646
- package/js/src/ndax.d.ts +229 -0
- package/js/src/ndax.js +229 -228
- package/js/src/novadax.d.ts +230 -0
- package/js/src/novadax.js +230 -229
- package/js/src/oceanex.d.ts +187 -0
- package/js/src/oceanex.js +187 -186
- package/js/src/okcoin.d.ts +286 -0
- package/js/src/okcoin.js +286 -285
- package/js/src/okx.d.ts +907 -0
- package/js/src/okx.js +909 -904
- package/js/src/onetrading.d.ts +218 -0
- package/js/src/onetrading.js +218 -218
- package/js/src/oxfun.d.ts +336 -3
- package/js/src/oxfun.js +335 -334
- package/js/src/p2b.d.ts +154 -0
- package/js/src/p2b.js +154 -154
- package/js/src/paradex.d.ts +241 -0
- package/js/src/paradex.js +249 -244
- package/js/src/paymium.d.ts +101 -0
- package/js/src/paymium.js +101 -101
- package/js/src/phemex.d.ts +366 -0
- package/js/src/phemex.js +388 -390
- package/js/src/poloniex.d.ts +270 -0
- package/js/src/poloniex.js +270 -270
- package/js/src/poloniexfutures.d.ts +250 -0
- package/js/src/poloniexfutures.js +250 -250
- package/js/src/pro/alpaca.d.ts +64 -0
- package/js/src/pro/alpaca.js +64 -64
- package/js/src/pro/ascendex.d.ts +64 -0
- package/js/src/pro/ascendex.js +64 -64
- package/js/src/pro/binance.d.ts +546 -0
- package/js/src/pro/binance.js +546 -543
- package/js/src/pro/bingx.d.ts +116 -0
- package/js/src/pro/bingx.js +116 -116
- package/js/src/pro/bitfinex.d.ts +42 -0
- package/js/src/pro/bitfinex.js +42 -42
- package/js/src/pro/bitfinex2.d.ts +66 -0
- package/js/src/pro/bitfinex2.js +66 -66
- package/js/src/pro/bitget.d.ts +187 -0
- package/js/src/pro/bitget.js +188 -181
- package/js/src/pro/bithumb.d.ts +40 -0
- package/js/src/pro/bithumb.js +40 -40
- package/js/src/pro/bitmart.d.ts +121 -0
- package/js/src/pro/bitmart.js +121 -119
- package/js/src/pro/bitmex.d.ts +135 -0
- package/js/src/pro/bitmex.js +135 -133
- package/js/src/pro/bitopro.d.ts +49 -0
- package/js/src/pro/bitopro.js +49 -49
- package/js/src/pro/bitrue.d.ts +19 -0
- package/js/src/pro/bitrue.js +19 -19
- package/js/src/pro/bitstamp.d.ts +29 -0
- package/js/src/pro/bitstamp.js +29 -29
- package/js/src/pro/bitvavo.d.ts +254 -1
- package/js/src/pro/bitvavo.js +299 -301
- package/js/src/pro/blockchaincom.d.ts +62 -0
- package/js/src/pro/blockchaincom.js +62 -62
- package/js/src/pro/blofin.d.ts +132 -0
- package/js/src/pro/blofin.js +132 -130
- package/js/src/pro/bybit.d.ts +317 -0
- package/js/src/pro/bybit.js +317 -313
- package/js/src/pro/cex.d.ts +168 -0
- package/js/src/pro/cex.js +168 -168
- package/js/src/pro/coinbase.d.ts +93 -0
- package/js/src/pro/coinbase.js +93 -91
- package/js/src/pro/coinbaseexchange.d.ts +95 -0
- package/js/src/pro/coinbaseexchange.js +95 -95
- package/js/src/pro/coinbaseinternational.d.ts +111 -0
- package/js/src/pro/coinbaseinternational.js +111 -111
- package/js/src/pro/coincatch.d.ts +150 -0
- package/js/src/pro/coincatch.js +150 -143
- package/js/src/pro/coincheck.d.ts +21 -0
- package/js/src/pro/coincheck.js +21 -21
- package/js/src/pro/coinex.d.ts +110 -0
- package/js/src/pro/coinex.js +110 -110
- package/js/src/pro/coinone.d.ts +30 -0
- package/js/src/pro/coinone.js +30 -30
- package/js/src/pro/cryptocom.d.ts +227 -0
- package/js/src/pro/cryptocom.js +227 -227
- package/js/src/pro/currencycom.d.ts +45 -0
- package/js/src/pro/currencycom.js +45 -45
- package/js/src/pro/deribit.d.ts +127 -0
- package/js/src/pro/deribit.js +127 -127
- package/js/src/pro/exmo.d.ts +66 -0
- package/js/src/pro/exmo.js +66 -66
- package/js/src/pro/gate.d.ts +287 -0
- package/js/src/pro/gate.js +287 -283
- package/js/src/pro/gemini.d.ts +74 -0
- package/js/src/pro/gemini.js +74 -74
- package/js/src/pro/hashkey.d.ts +87 -0
- package/js/src/pro/hashkey.js +87 -85
- package/js/src/pro/hitbtc.d.ts +190 -0
- package/js/src/pro/hitbtc.js +190 -190
- package/js/src/pro/hollaex.d.ts +51 -0
- package/js/src/pro/hollaex.js +51 -51
- package/js/src/pro/htx.d.ts +96 -0
- package/js/src/pro/htx.js +96 -94
- package/js/src/pro/huobijp.d.ts +38 -0
- package/js/src/pro/huobijp.js +38 -38
- package/js/src/pro/hyperliquid.d.ts +151 -0
- package/js/src/pro/hyperliquid.js +151 -150
- package/js/src/pro/idex.d.ts +48 -0
- package/js/src/pro/idex.js +48 -48
- package/js/src/pro/independentreserve.d.ts +19 -0
- package/js/src/pro/independentreserve.js +19 -19
- package/js/src/pro/kraken.d.ts +167 -0
- package/js/src/pro/kraken.js +167 -167
- package/js/src/pro/krakenfutures.d.ts +137 -0
- package/js/src/pro/krakenfutures.js +137 -138
- package/js/src/pro/kucoin.d.ts +167 -0
- package/js/src/pro/kucoin.js +167 -168
- package/js/src/pro/kucoinfutures.d.ts +147 -0
- package/js/src/pro/kucoinfutures.js +147 -147
- package/js/src/pro/lbank.d.ts +95 -0
- package/js/src/pro/lbank.js +95 -95
- package/js/src/pro/luno.d.ts +21 -0
- package/js/src/pro/luno.js +21 -21
- package/js/src/pro/mexc.d.ts +101 -0
- package/js/src/pro/mexc.js +102 -103
- package/js/src/pro/ndax.d.ts +42 -0
- package/js/src/pro/ndax.js +42 -42
- package/js/src/pro/okcoin.d.ts +61 -0
- package/js/src/pro/okcoin.js +61 -61
- package/js/src/pro/okx.d.ts +332 -0
- package/js/src/pro/okx.js +332 -330
- package/js/src/pro/onetrading.d.ts +71 -0
- package/js/src/pro/onetrading.js +71 -71
- package/js/src/pro/oxfun.d.ts +193 -0
- package/js/src/pro/oxfun.js +193 -191
- package/js/src/pro/p2b.d.ts +77 -0
- package/js/src/pro/p2b.js +77 -77
- package/js/src/pro/paradex.d.ts +39 -0
- package/js/src/pro/paradex.js +39 -39
- package/js/src/pro/phemex.d.ts +94 -0
- package/js/src/pro/phemex.js +94 -94
- package/js/src/pro/poloniex.d.ts +171 -0
- package/js/src/pro/poloniex.js +171 -171
- package/js/src/pro/poloniexfutures.d.ts +62 -0
- package/js/src/pro/poloniexfutures.js +62 -62
- package/js/src/pro/probit.d.ts +63 -0
- package/js/src/pro/probit.js +63 -63
- package/js/src/pro/upbit.d.ts +80 -0
- package/js/src/pro/upbit.js +80 -80
- package/js/src/pro/vertex.d.ts +65 -0
- package/js/src/pro/vertex.js +65 -63
- package/js/src/pro/wazirx.d.ts +70 -0
- package/js/src/pro/wazirx.js +70 -70
- package/js/src/pro/whitebit.d.ts +83 -0
- package/js/src/pro/whitebit.js +83 -83
- package/js/src/pro/woo.d.ts +106 -0
- package/js/src/pro/woo.js +106 -104
- package/js/src/pro/woofipro.d.ts +105 -0
- package/js/src/pro/woofipro.js +105 -103
- package/js/src/pro/xt.d.ts +119 -0
- package/js/src/pro/xt.js +119 -119
- package/js/src/probit.d.ts +229 -0
- package/js/src/probit.js +229 -229
- package/js/src/timex.d.ts +198 -0
- package/js/src/timex.js +198 -197
- package/js/src/tokocrypto.d.ts +214 -0
- package/js/src/tokocrypto.js +214 -213
- package/js/src/tradeogre.d.ts +92 -0
- package/js/src/tradeogre.js +92 -91
- package/js/src/upbit.d.ts +243 -0
- package/js/src/upbit.js +243 -242
- package/js/src/vertex.d.ts +258 -0
- package/js/src/vertex.js +258 -258
- package/js/src/wavesexchange.d.ts +176 -0
- package/js/src/wavesexchange.js +176 -172
- package/js/src/wazirx.d.ts +168 -0
- package/js/src/wazirx.js +168 -168
- package/js/src/whitebit.d.ts +361 -0
- package/js/src/whitebit.js +361 -361
- package/js/src/woo.d.ts +571 -0
- package/js/src/woo.js +571 -572
- package/js/src/woofipro.d.ts +392 -0
- package/js/src/woofipro.js +392 -391
- package/js/src/xt.d.ts +439 -4
- package/js/src/xt.js +436 -435
- package/js/src/yobit.d.ts +159 -0
- package/js/src/yobit.js +159 -158
- package/js/src/zaif.d.ts +103 -0
- package/js/src/zaif.js +103 -103
- package/js/src/zonda.d.ts +168 -0
- package/js/src/zonda.js +168 -168
- package/package.json +1 -1
package/js/src/poloniex.js
CHANGED
|
@@ -417,21 +417,21 @@ export default class poloniex extends Exchange {
|
|
|
417
417
|
this.safeNumber(ohlcv, 5),
|
|
418
418
|
];
|
|
419
419
|
}
|
|
420
|
+
/**
|
|
421
|
+
* @method
|
|
422
|
+
* @name poloniex#fetchOHLCV
|
|
423
|
+
* @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
424
|
+
* @see https://api-docs.poloniex.com/spot/api/public/market-data#candles
|
|
425
|
+
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
426
|
+
* @param {string} timeframe the length of time each candle represents
|
|
427
|
+
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
428
|
+
* @param {int} [limit] the maximum amount of candles to fetch
|
|
429
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
430
|
+
* @param {int} [params.until] timestamp in ms
|
|
431
|
+
* @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)
|
|
432
|
+
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
433
|
+
*/
|
|
420
434
|
async fetchOHLCV(symbol, timeframe = '1m', since = undefined, limit = undefined, params = {}) {
|
|
421
|
-
/**
|
|
422
|
-
* @method
|
|
423
|
-
* @name poloniex#fetchOHLCV
|
|
424
|
-
* @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
425
|
-
* @see https://api-docs.poloniex.com/spot/api/public/market-data#candles
|
|
426
|
-
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
427
|
-
* @param {string} timeframe the length of time each candle represents
|
|
428
|
-
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
429
|
-
* @param {int} [limit] the maximum amount of candles to fetch
|
|
430
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
431
|
-
* @param {int} [params.until] timestamp in ms
|
|
432
|
-
* @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)
|
|
433
|
-
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
434
|
-
*/
|
|
435
435
|
await this.loadMarkets();
|
|
436
436
|
let paginate = false;
|
|
437
437
|
[paginate, params] = this.handleOptionAndParams(params, 'fetchOHLCV', 'paginate', false);
|
|
@@ -482,15 +482,15 @@ export default class poloniex extends Exchange {
|
|
|
482
482
|
}
|
|
483
483
|
return markets;
|
|
484
484
|
}
|
|
485
|
+
/**
|
|
486
|
+
* @method
|
|
487
|
+
* @name poloniex#fetchMarkets
|
|
488
|
+
* @description retrieves data on all markets for poloniex
|
|
489
|
+
* @see https://api-docs.poloniex.com/spot/api/public/reference-data#symbol-information
|
|
490
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
491
|
+
* @returns {object[]} an array of objects representing market data
|
|
492
|
+
*/
|
|
485
493
|
async fetchMarkets(params = {}) {
|
|
486
|
-
/**
|
|
487
|
-
* @method
|
|
488
|
-
* @name poloniex#fetchMarkets
|
|
489
|
-
* @description retrieves data on all markets for poloniex
|
|
490
|
-
* @see https://api-docs.poloniex.com/spot/api/public/reference-data#symbol-information
|
|
491
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
492
|
-
* @returns {object[]} an array of objects representing market data
|
|
493
|
-
*/
|
|
494
494
|
const markets = await this.publicGetMarkets(params);
|
|
495
495
|
//
|
|
496
496
|
// [
|
|
@@ -573,15 +573,15 @@ export default class poloniex extends Exchange {
|
|
|
573
573
|
'info': market,
|
|
574
574
|
};
|
|
575
575
|
}
|
|
576
|
+
/**
|
|
577
|
+
* @method
|
|
578
|
+
* @name poloniex#fetchTime
|
|
579
|
+
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
580
|
+
* @see https://api-docs.poloniex.com/spot/api/public/reference-data#system-timestamp
|
|
581
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
582
|
+
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
583
|
+
*/
|
|
576
584
|
async fetchTime(params = {}) {
|
|
577
|
-
/**
|
|
578
|
-
* @method
|
|
579
|
-
* @name poloniex#fetchTime
|
|
580
|
-
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
581
|
-
* @see https://api-docs.poloniex.com/spot/api/public/reference-data#system-timestamp
|
|
582
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
583
|
-
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
584
|
-
*/
|
|
585
585
|
const response = await this.publicGetTimestamp(params);
|
|
586
586
|
return this.safeInteger(response, 'serverTime');
|
|
587
587
|
}
|
|
@@ -641,16 +641,16 @@ export default class poloniex extends Exchange {
|
|
|
641
641
|
'info': ticker,
|
|
642
642
|
}, market);
|
|
643
643
|
}
|
|
644
|
+
/**
|
|
645
|
+
* @method
|
|
646
|
+
* @name poloniex#fetchTickers
|
|
647
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
648
|
+
* @see https://api-docs.poloniex.com/spot/api/public/market-data#ticker
|
|
649
|
+
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
650
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
651
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
652
|
+
*/
|
|
644
653
|
async fetchTickers(symbols = undefined, params = {}) {
|
|
645
|
-
/**
|
|
646
|
-
* @method
|
|
647
|
-
* @name poloniex#fetchTickers
|
|
648
|
-
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
649
|
-
* @see https://api-docs.poloniex.com/spot/api/public/market-data#ticker
|
|
650
|
-
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
651
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
652
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
653
|
-
*/
|
|
654
654
|
await this.loadMarkets();
|
|
655
655
|
symbols = this.marketSymbols(symbols);
|
|
656
656
|
const response = await this.publicGetMarketsTicker24h(params);
|
|
@@ -680,15 +680,15 @@ export default class poloniex extends Exchange {
|
|
|
680
680
|
//
|
|
681
681
|
return this.parseTickers(response, symbols);
|
|
682
682
|
}
|
|
683
|
+
/**
|
|
684
|
+
* @method
|
|
685
|
+
* @name poloniex#fetchCurrencies
|
|
686
|
+
* @description fetches all available currencies on an exchange
|
|
687
|
+
* @see https://api-docs.poloniex.com/spot/api/public/reference-data#currency-information
|
|
688
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
689
|
+
* @returns {object} an associative dictionary of currencies
|
|
690
|
+
*/
|
|
683
691
|
async fetchCurrencies(params = {}) {
|
|
684
|
-
/**
|
|
685
|
-
* @method
|
|
686
|
-
* @name poloniex#fetchCurrencies
|
|
687
|
-
* @description fetches all available currencies on an exchange
|
|
688
|
-
* @see https://api-docs.poloniex.com/spot/api/public/reference-data#currency-information
|
|
689
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
690
|
-
* @returns {object} an associative dictionary of currencies
|
|
691
|
-
*/
|
|
692
692
|
const response = await this.publicGetCurrencies(this.extend(params, { 'includeMultiChainCurrencies': true }));
|
|
693
693
|
//
|
|
694
694
|
// [
|
|
@@ -818,16 +818,16 @@ export default class poloniex extends Exchange {
|
|
|
818
818
|
}
|
|
819
819
|
return result;
|
|
820
820
|
}
|
|
821
|
+
/**
|
|
822
|
+
* @method
|
|
823
|
+
* @name poloniex#fetchTicker
|
|
824
|
+
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
825
|
+
* @see https://api-docs.poloniex.com/spot/api/public/market-data#ticker
|
|
826
|
+
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
827
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
828
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
829
|
+
*/
|
|
821
830
|
async fetchTicker(symbol, params = {}) {
|
|
822
|
-
/**
|
|
823
|
-
* @method
|
|
824
|
-
* @name poloniex#fetchTicker
|
|
825
|
-
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
826
|
-
* @see https://api-docs.poloniex.com/spot/api/public/market-data#ticker
|
|
827
|
-
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
828
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
829
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
830
|
-
*/
|
|
831
831
|
await this.loadMarkets();
|
|
832
832
|
const market = this.market(symbol);
|
|
833
833
|
const request = {
|
|
@@ -949,18 +949,18 @@ export default class poloniex extends Exchange {
|
|
|
949
949
|
'fee': fee,
|
|
950
950
|
}, market);
|
|
951
951
|
}
|
|
952
|
+
/**
|
|
953
|
+
* @method
|
|
954
|
+
* @name poloniex#fetchTrades
|
|
955
|
+
* @description get the list of most recent trades for a particular symbol
|
|
956
|
+
* @see https://api-docs.poloniex.com/spot/api/public/market-data#trades
|
|
957
|
+
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
958
|
+
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
959
|
+
* @param {int} [limit] the maximum amount of trades to fetch
|
|
960
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
961
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
962
|
+
*/
|
|
952
963
|
async fetchTrades(symbol, since = undefined, limit = undefined, params = {}) {
|
|
953
|
-
/**
|
|
954
|
-
* @method
|
|
955
|
-
* @name poloniex#fetchTrades
|
|
956
|
-
* @description get the list of most recent trades for a particular symbol
|
|
957
|
-
* @see https://api-docs.poloniex.com/spot/api/public/market-data#trades
|
|
958
|
-
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
959
|
-
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
960
|
-
* @param {int} [limit] the maximum amount of trades to fetch
|
|
961
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
962
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
963
|
-
*/
|
|
964
964
|
await this.loadMarkets();
|
|
965
965
|
const market = this.market(symbol);
|
|
966
966
|
const request = {
|
|
@@ -985,20 +985,20 @@ export default class poloniex extends Exchange {
|
|
|
985
985
|
//
|
|
986
986
|
return this.parseTrades(trades, market, since, limit);
|
|
987
987
|
}
|
|
988
|
+
/**
|
|
989
|
+
* @method
|
|
990
|
+
* @name poloniex#fetchMyTrades
|
|
991
|
+
* @description fetch all trades made by the user
|
|
992
|
+
* @see https://api-docs.poloniex.com/spot/api/private/trade#trade-history
|
|
993
|
+
* @param {string} symbol unified market symbol
|
|
994
|
+
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
995
|
+
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
996
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
997
|
+
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
998
|
+
* @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)
|
|
999
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1000
|
+
*/
|
|
988
1001
|
async fetchMyTrades(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
989
|
-
/**
|
|
990
|
-
* @method
|
|
991
|
-
* @name poloniex#fetchMyTrades
|
|
992
|
-
* @description fetch all trades made by the user
|
|
993
|
-
* @see https://api-docs.poloniex.com/spot/api/private/trade#trade-history
|
|
994
|
-
* @param {string} symbol unified market symbol
|
|
995
|
-
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
996
|
-
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
997
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
998
|
-
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
999
|
-
* @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)
|
|
1000
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1001
|
-
*/
|
|
1002
1002
|
await this.loadMarkets();
|
|
1003
1003
|
let paginate = false;
|
|
1004
1004
|
[paginate, params] = this.handleOptionAndParams(params, 'fetchMyTrades', 'paginate');
|
|
@@ -1198,20 +1198,20 @@ export default class poloniex extends Exchange {
|
|
|
1198
1198
|
}
|
|
1199
1199
|
return result;
|
|
1200
1200
|
}
|
|
1201
|
+
/**
|
|
1202
|
+
* @method
|
|
1203
|
+
* @name poloniex#fetchOpenOrders
|
|
1204
|
+
* @description fetch all unfilled currently open orders
|
|
1205
|
+
* @see https://api-docs.poloniex.com/spot/api/private/order#open-orders
|
|
1206
|
+
* @see https://api-docs.poloniex.com/spot/api/private/smart-order#open-orders // trigger orders
|
|
1207
|
+
* @param {string} symbol unified market symbol
|
|
1208
|
+
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1209
|
+
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1210
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1211
|
+
* @param {boolean} [params.stop] set true to fetch trigger orders instead of regular orders
|
|
1212
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1213
|
+
*/
|
|
1201
1214
|
async fetchOpenOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1202
|
-
/**
|
|
1203
|
-
* @method
|
|
1204
|
-
* @name poloniex#fetchOpenOrders
|
|
1205
|
-
* @description fetch all unfilled currently open orders
|
|
1206
|
-
* @see https://api-docs.poloniex.com/spot/api/private/order#open-orders
|
|
1207
|
-
* @see https://api-docs.poloniex.com/spot/api/private/smart-order#open-orders // trigger orders
|
|
1208
|
-
* @param {string} symbol unified market symbol
|
|
1209
|
-
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1210
|
-
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1211
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1212
|
-
* @param {boolean} [params.stop] set true to fetch trigger orders instead of regular orders
|
|
1213
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1214
|
-
*/
|
|
1215
1215
|
await this.loadMarkets();
|
|
1216
1216
|
let market = undefined;
|
|
1217
1217
|
const request = {};
|
|
@@ -1257,23 +1257,23 @@ export default class poloniex extends Exchange {
|
|
|
1257
1257
|
const extension = { 'status': 'open' };
|
|
1258
1258
|
return this.parseOrders(response, market, since, limit, extension);
|
|
1259
1259
|
}
|
|
1260
|
+
/**
|
|
1261
|
+
* @method
|
|
1262
|
+
* @name poloniex#createOrder
|
|
1263
|
+
* @description create a trade order
|
|
1264
|
+
* @see https://api-docs.poloniex.com/spot/api/private/order#create-order
|
|
1265
|
+
* @see https://api-docs.poloniex.com/spot/api/private/smart-order#create-order // trigger orders
|
|
1266
|
+
* @param {string} symbol unified symbol of the market to create an order in
|
|
1267
|
+
* @param {string} type 'market' or 'limit'
|
|
1268
|
+
* @param {string} side 'buy' or 'sell'
|
|
1269
|
+
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1270
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1271
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1272
|
+
* @param {float} [params.triggerPrice] *spot only* The price at which a trigger order is triggered at
|
|
1273
|
+
* @param {float} [params.cost] *spot market buy only* the quote quantity that can be used as an alternative for the amount
|
|
1274
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1275
|
+
*/
|
|
1260
1276
|
async createOrder(symbol, type, side, amount, price = undefined, params = {}) {
|
|
1261
|
-
/**
|
|
1262
|
-
* @method
|
|
1263
|
-
* @name poloniex#createOrder
|
|
1264
|
-
* @description create a trade order
|
|
1265
|
-
* @see https://api-docs.poloniex.com/spot/api/private/order#create-order
|
|
1266
|
-
* @see https://api-docs.poloniex.com/spot/api/private/smart-order#create-order // trigger orders
|
|
1267
|
-
* @param {string} symbol unified symbol of the market to create an order in
|
|
1268
|
-
* @param {string} type 'market' or 'limit'
|
|
1269
|
-
* @param {string} side 'buy' or 'sell'
|
|
1270
|
-
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1271
|
-
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1272
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1273
|
-
* @param {float} [params.triggerPrice] *spot only* The price at which a trigger order is triggered at
|
|
1274
|
-
* @param {float} [params.cost] *spot market buy only* the quote quantity that can be used as an alternative for the amount
|
|
1275
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1276
|
-
*/
|
|
1277
1277
|
await this.loadMarkets();
|
|
1278
1278
|
const market = this.market(symbol);
|
|
1279
1279
|
if (!market['spot']) {
|
|
@@ -1363,23 +1363,23 @@ export default class poloniex extends Exchange {
|
|
|
1363
1363
|
// remember the timestamp before issuing the request
|
|
1364
1364
|
return [request, params];
|
|
1365
1365
|
}
|
|
1366
|
+
/**
|
|
1367
|
+
* @method
|
|
1368
|
+
* @name poloniex#editOrder
|
|
1369
|
+
* @description edit a trade order
|
|
1370
|
+
* @see https://api-docs.poloniex.com/spot/api/private/order#cancel-replace-order
|
|
1371
|
+
* @see https://api-docs.poloniex.com/spot/api/private/smart-order#cancel-replace-order
|
|
1372
|
+
* @param {string} id order id
|
|
1373
|
+
* @param {string} symbol unified symbol of the market to create an order in
|
|
1374
|
+
* @param {string} type 'market' or 'limit'
|
|
1375
|
+
* @param {string} side 'buy' or 'sell'
|
|
1376
|
+
* @param {float} [amount] how much of the currency you want to trade in units of the base currency
|
|
1377
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1378
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1379
|
+
* @param {float} [params.triggerPrice] The price at which a trigger order is triggered at
|
|
1380
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1381
|
+
*/
|
|
1366
1382
|
async editOrder(id, symbol, type, side, amount = undefined, price = undefined, params = {}) {
|
|
1367
|
-
/**
|
|
1368
|
-
* @method
|
|
1369
|
-
* @name poloniex#editOrder
|
|
1370
|
-
* @description edit a trade order
|
|
1371
|
-
* @see https://api-docs.poloniex.com/spot/api/private/order#cancel-replace-order
|
|
1372
|
-
* @see https://api-docs.poloniex.com/spot/api/private/smart-order#cancel-replace-order
|
|
1373
|
-
* @param {string} id order id
|
|
1374
|
-
* @param {string} symbol unified symbol of the market to create an order in
|
|
1375
|
-
* @param {string} type 'market' or 'limit'
|
|
1376
|
-
* @param {string} side 'buy' or 'sell'
|
|
1377
|
-
* @param {float} [amount] how much of the currency you want to trade in units of the base currency
|
|
1378
|
-
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1379
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1380
|
-
* @param {float} [params.triggerPrice] The price at which a trigger order is triggered at
|
|
1381
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1382
|
-
*/
|
|
1383
1383
|
await this.loadMarkets();
|
|
1384
1384
|
const market = this.market(symbol);
|
|
1385
1385
|
if (!market['spot']) {
|
|
@@ -1450,18 +1450,18 @@ export default class poloniex extends Exchange {
|
|
|
1450
1450
|
//
|
|
1451
1451
|
return this.parseOrder(response);
|
|
1452
1452
|
}
|
|
1453
|
+
/**
|
|
1454
|
+
* @method
|
|
1455
|
+
* @name poloniex#cancelAllOrders
|
|
1456
|
+
* @description cancel all open orders
|
|
1457
|
+
* @see https://api-docs.poloniex.com/spot/api/private/order#cancel-all-orders
|
|
1458
|
+
* @see https://api-docs.poloniex.com/spot/api/private/smart-order#cancel-all-orders // trigger orders
|
|
1459
|
+
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
1460
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1461
|
+
* @param {boolean} [params.trigger] true if canceling trigger orders
|
|
1462
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1463
|
+
*/
|
|
1453
1464
|
async cancelAllOrders(symbol = undefined, params = {}) {
|
|
1454
|
-
/**
|
|
1455
|
-
* @method
|
|
1456
|
-
* @name poloniex#cancelAllOrders
|
|
1457
|
-
* @description cancel all open orders
|
|
1458
|
-
* @see https://api-docs.poloniex.com/spot/api/private/order#cancel-all-orders
|
|
1459
|
-
* @see https://api-docs.poloniex.com/spot/api/private/smart-order#cancel-all-orders // trigger orders
|
|
1460
|
-
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
1461
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1462
|
-
* @param {boolean} [params.trigger] true if canceling trigger orders
|
|
1463
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1464
|
-
*/
|
|
1465
1465
|
await this.loadMarkets();
|
|
1466
1466
|
const request = {
|
|
1467
1467
|
// 'accountTypes': 'SPOT',
|
|
@@ -1502,19 +1502,19 @@ export default class poloniex extends Exchange {
|
|
|
1502
1502
|
//
|
|
1503
1503
|
return this.parseOrders(response, market);
|
|
1504
1504
|
}
|
|
1505
|
+
/**
|
|
1506
|
+
* @method
|
|
1507
|
+
* @name poloniex#fetchOrder
|
|
1508
|
+
* @description fetch an order by it's id
|
|
1509
|
+
* @see https://api-docs.poloniex.com/spot/api/private/order#order-details
|
|
1510
|
+
* @see https://api-docs.poloniex.com/spot/api/private/smart-order#open-orders // trigger orders
|
|
1511
|
+
* @param {string} id order id
|
|
1512
|
+
* @param {string} symbol unified market symbol, default is undefined
|
|
1513
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1514
|
+
* @param {boolean} [params.trigger] true if fetching a trigger order
|
|
1515
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1516
|
+
*/
|
|
1505
1517
|
async fetchOrder(id, symbol = undefined, params = {}) {
|
|
1506
|
-
/**
|
|
1507
|
-
* @method
|
|
1508
|
-
* @name poloniex#fetchOrder
|
|
1509
|
-
* @description fetch an order by it's id
|
|
1510
|
-
* @see https://api-docs.poloniex.com/spot/api/private/order#order-details
|
|
1511
|
-
* @see https://api-docs.poloniex.com/spot/api/private/smart-order#open-orders // trigger orders
|
|
1512
|
-
* @param {string} id order id
|
|
1513
|
-
* @param {string} symbol unified market symbol, default is undefined
|
|
1514
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1515
|
-
* @param {boolean} [params.trigger] true if fetching a trigger order
|
|
1516
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1517
|
-
*/
|
|
1518
1518
|
await this.loadMarkets();
|
|
1519
1519
|
id = id.toString();
|
|
1520
1520
|
const request = {
|
|
@@ -1561,19 +1561,19 @@ export default class poloniex extends Exchange {
|
|
|
1561
1561
|
const indexed = this.indexBy(orders, 'id');
|
|
1562
1562
|
return (id in indexed) ? 'open' : 'closed';
|
|
1563
1563
|
}
|
|
1564
|
+
/**
|
|
1565
|
+
* @method
|
|
1566
|
+
* @name poloniex#fetchOrderTrades
|
|
1567
|
+
* @description fetch all the trades made from a single order
|
|
1568
|
+
* @see https://api-docs.poloniex.com/spot/api/private/trade#trades-by-order-id
|
|
1569
|
+
* @param {string} id order id
|
|
1570
|
+
* @param {string} symbol unified market symbol
|
|
1571
|
+
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1572
|
+
* @param {int} [limit] the maximum number of trades to retrieve
|
|
1573
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1574
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1575
|
+
*/
|
|
1564
1576
|
async fetchOrderTrades(id, symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1565
|
-
/**
|
|
1566
|
-
* @method
|
|
1567
|
-
* @name poloniex#fetchOrderTrades
|
|
1568
|
-
* @description fetch all the trades made from a single order
|
|
1569
|
-
* @see https://api-docs.poloniex.com/spot/api/private/trade#trades-by-order-id
|
|
1570
|
-
* @param {string} id order id
|
|
1571
|
-
* @param {string} symbol unified market symbol
|
|
1572
|
-
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1573
|
-
* @param {int} [limit] the maximum number of trades to retrieve
|
|
1574
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1575
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1576
|
-
*/
|
|
1577
1577
|
await this.loadMarkets();
|
|
1578
1578
|
const request = {
|
|
1579
1579
|
'id': id,
|
|
@@ -1623,15 +1623,15 @@ export default class poloniex extends Exchange {
|
|
|
1623
1623
|
}
|
|
1624
1624
|
return this.safeBalance(result);
|
|
1625
1625
|
}
|
|
1626
|
+
/**
|
|
1627
|
+
* @method
|
|
1628
|
+
* @name poloniex#fetchBalance
|
|
1629
|
+
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
1630
|
+
* @see https://api-docs.poloniex.com/spot/api/private/account#all-account-balances
|
|
1631
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1632
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
1633
|
+
*/
|
|
1626
1634
|
async fetchBalance(params = {}) {
|
|
1627
|
-
/**
|
|
1628
|
-
* @method
|
|
1629
|
-
* @name poloniex#fetchBalance
|
|
1630
|
-
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
1631
|
-
* @see https://api-docs.poloniex.com/spot/api/private/account#all-account-balances
|
|
1632
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1633
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
1634
|
-
*/
|
|
1635
1635
|
await this.loadMarkets();
|
|
1636
1636
|
const request = {
|
|
1637
1637
|
'accountType': 'SPOT',
|
|
@@ -1655,15 +1655,15 @@ export default class poloniex extends Exchange {
|
|
|
1655
1655
|
//
|
|
1656
1656
|
return this.parseBalance(response);
|
|
1657
1657
|
}
|
|
1658
|
+
/**
|
|
1659
|
+
* @method
|
|
1660
|
+
* @name poloniex#fetchTradingFees
|
|
1661
|
+
* @description fetch the trading fees for multiple markets
|
|
1662
|
+
* @see https://api-docs.poloniex.com/spot/api/private/account#fee-info
|
|
1663
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1664
|
+
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
1665
|
+
*/
|
|
1658
1666
|
async fetchTradingFees(params = {}) {
|
|
1659
|
-
/**
|
|
1660
|
-
* @method
|
|
1661
|
-
* @name poloniex#fetchTradingFees
|
|
1662
|
-
* @description fetch the trading fees for multiple markets
|
|
1663
|
-
* @see https://api-docs.poloniex.com/spot/api/private/account#fee-info
|
|
1664
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1665
|
-
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
1666
|
-
*/
|
|
1667
1667
|
await this.loadMarkets();
|
|
1668
1668
|
const response = await this.privateGetFeeinfo(params);
|
|
1669
1669
|
//
|
|
@@ -1688,17 +1688,17 @@ export default class poloniex extends Exchange {
|
|
|
1688
1688
|
}
|
|
1689
1689
|
return result;
|
|
1690
1690
|
}
|
|
1691
|
+
/**
|
|
1692
|
+
* @method
|
|
1693
|
+
* @name poloniex#fetchOrderBook
|
|
1694
|
+
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
1695
|
+
* @see https://api-docs.poloniex.com/spot/api/public/market-data#order-book
|
|
1696
|
+
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
1697
|
+
* @param {int} [limit] the maximum amount of order book entries to return
|
|
1698
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1699
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
1700
|
+
*/
|
|
1691
1701
|
async fetchOrderBook(symbol, limit = undefined, params = {}) {
|
|
1692
|
-
/**
|
|
1693
|
-
* @method
|
|
1694
|
-
* @name poloniex#fetchOrderBook
|
|
1695
|
-
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
1696
|
-
* @see https://api-docs.poloniex.com/spot/api/public/market-data#order-book
|
|
1697
|
-
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
1698
|
-
* @param {int} [limit] the maximum amount of order book entries to return
|
|
1699
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1700
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
1701
|
-
*/
|
|
1702
1702
|
await this.loadMarkets();
|
|
1703
1703
|
const market = this.market(symbol);
|
|
1704
1704
|
const request = {
|
|
@@ -1745,16 +1745,16 @@ export default class poloniex extends Exchange {
|
|
|
1745
1745
|
'nonce': undefined,
|
|
1746
1746
|
};
|
|
1747
1747
|
}
|
|
1748
|
+
/**
|
|
1749
|
+
* @method
|
|
1750
|
+
* @name poloniex#createDepositAddress
|
|
1751
|
+
* @description create a currency deposit address
|
|
1752
|
+
* @see https://api-docs.poloniex.com/spot/api/private/wallet#deposit-addresses
|
|
1753
|
+
* @param {string} code unified currency code of the currency for the deposit address
|
|
1754
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1755
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1756
|
+
*/
|
|
1748
1757
|
async createDepositAddress(code, params = {}) {
|
|
1749
|
-
/**
|
|
1750
|
-
* @method
|
|
1751
|
-
* @name poloniex#createDepositAddress
|
|
1752
|
-
* @description create a currency deposit address
|
|
1753
|
-
* @see https://api-docs.poloniex.com/spot/api/private/wallet#deposit-addresses
|
|
1754
|
-
* @param {string} code unified currency code of the currency for the deposit address
|
|
1755
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1756
|
-
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1757
|
-
*/
|
|
1758
1758
|
await this.loadMarkets();
|
|
1759
1759
|
const currency = this.currency(code);
|
|
1760
1760
|
const request = {
|
|
@@ -1796,16 +1796,16 @@ export default class poloniex extends Exchange {
|
|
|
1796
1796
|
'info': response,
|
|
1797
1797
|
};
|
|
1798
1798
|
}
|
|
1799
|
+
/**
|
|
1800
|
+
* @method
|
|
1801
|
+
* @name poloniex#fetchDepositAddress
|
|
1802
|
+
* @description fetch the deposit address for a currency associated with this account
|
|
1803
|
+
* @see https://api-docs.poloniex.com/spot/api/private/wallet#deposit-addresses
|
|
1804
|
+
* @param {string} code unified currency code
|
|
1805
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1806
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1807
|
+
*/
|
|
1799
1808
|
async fetchDepositAddress(code, params = {}) {
|
|
1800
|
-
/**
|
|
1801
|
-
* @method
|
|
1802
|
-
* @name poloniex#fetchDepositAddress
|
|
1803
|
-
* @description fetch the deposit address for a currency associated with this account
|
|
1804
|
-
* @see https://api-docs.poloniex.com/spot/api/private/wallet#deposit-addresses
|
|
1805
|
-
* @param {string} code unified currency code
|
|
1806
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1807
|
-
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1808
|
-
*/
|
|
1809
1809
|
await this.loadMarkets();
|
|
1810
1810
|
const currency = this.currency(code);
|
|
1811
1811
|
const request = {
|
|
@@ -1847,19 +1847,19 @@ export default class poloniex extends Exchange {
|
|
|
1847
1847
|
'tag': tag,
|
|
1848
1848
|
};
|
|
1849
1849
|
}
|
|
1850
|
+
/**
|
|
1851
|
+
* @method
|
|
1852
|
+
* @name poloniex#transfer
|
|
1853
|
+
* @description transfer currency internally between wallets on the same account
|
|
1854
|
+
* @see https://api-docs.poloniex.com/spot/api/private/account#accounts-transfer
|
|
1855
|
+
* @param {string} code unified currency code
|
|
1856
|
+
* @param {float} amount amount to transfer
|
|
1857
|
+
* @param {string} fromAccount account to transfer from
|
|
1858
|
+
* @param {string} toAccount account to transfer to
|
|
1859
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1860
|
+
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
|
|
1861
|
+
*/
|
|
1850
1862
|
async transfer(code, amount, fromAccount, toAccount, params = {}) {
|
|
1851
|
-
/**
|
|
1852
|
-
* @method
|
|
1853
|
-
* @name poloniex#transfer
|
|
1854
|
-
* @description transfer currency internally between wallets on the same account
|
|
1855
|
-
* @see https://api-docs.poloniex.com/spot/api/private/account#accounts-transfer
|
|
1856
|
-
* @param {string} code unified currency code
|
|
1857
|
-
* @param {float} amount amount to transfer
|
|
1858
|
-
* @param {string} fromAccount account to transfer from
|
|
1859
|
-
* @param {string} toAccount account to transfer to
|
|
1860
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1861
|
-
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
|
|
1862
|
-
*/
|
|
1863
1863
|
await this.loadMarkets();
|
|
1864
1864
|
const currency = this.currency(code);
|
|
1865
1865
|
const accountsByType = this.safeValue(this.options, 'accountsByType', {});
|
|
@@ -1897,19 +1897,19 @@ export default class poloniex extends Exchange {
|
|
|
1897
1897
|
'status': undefined,
|
|
1898
1898
|
};
|
|
1899
1899
|
}
|
|
1900
|
+
/**
|
|
1901
|
+
* @method
|
|
1902
|
+
* @name poloniex#withdraw
|
|
1903
|
+
* @description make a withdrawal
|
|
1904
|
+
* @see https://api-docs.poloniex.com/spot/api/private/wallet#withdraw-currency
|
|
1905
|
+
* @param {string} code unified currency code
|
|
1906
|
+
* @param {float} amount the amount to withdraw
|
|
1907
|
+
* @param {string} address the address to withdraw to
|
|
1908
|
+
* @param {string} tag
|
|
1909
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1910
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1911
|
+
*/
|
|
1900
1912
|
async withdraw(code, amount, address, tag = undefined, params = {}) {
|
|
1901
|
-
/**
|
|
1902
|
-
* @method
|
|
1903
|
-
* @name poloniex#withdraw
|
|
1904
|
-
* @description make a withdrawal
|
|
1905
|
-
* @see https://api-docs.poloniex.com/spot/api/private/wallet#withdraw-currency
|
|
1906
|
-
* @param {string} code unified currency code
|
|
1907
|
-
* @param {float} amount the amount to withdraw
|
|
1908
|
-
* @param {string} address the address to withdraw to
|
|
1909
|
-
* @param {string} tag
|
|
1910
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1911
|
-
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1912
|
-
*/
|
|
1913
1913
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
1914
1914
|
this.checkAddress(address);
|
|
1915
1915
|
await this.loadMarkets();
|
|
@@ -2022,18 +2022,18 @@ export default class poloniex extends Exchange {
|
|
|
2022
2022
|
//
|
|
2023
2023
|
return response;
|
|
2024
2024
|
}
|
|
2025
|
+
/**
|
|
2026
|
+
* @method
|
|
2027
|
+
* @name poloniex#fetchDepositsWithdrawals
|
|
2028
|
+
* @description fetch history of deposits and withdrawals
|
|
2029
|
+
* @see https://api-docs.poloniex.com/spot/api/private/wallet#wallets-activity-records
|
|
2030
|
+
* @param {string} [code] unified currency code for the currency of the deposit/withdrawals, default is undefined
|
|
2031
|
+
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
2032
|
+
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
2033
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2034
|
+
* @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2035
|
+
*/
|
|
2025
2036
|
async fetchDepositsWithdrawals(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2026
|
-
/**
|
|
2027
|
-
* @method
|
|
2028
|
-
* @name poloniex#fetchDepositsWithdrawals
|
|
2029
|
-
* @description fetch history of deposits and withdrawals
|
|
2030
|
-
* @see https://api-docs.poloniex.com/spot/api/private/wallet#wallets-activity-records
|
|
2031
|
-
* @param {string} [code] unified currency code for the currency of the deposit/withdrawals, default is undefined
|
|
2032
|
-
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
2033
|
-
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
2034
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2035
|
-
* @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2036
|
-
*/
|
|
2037
2037
|
await this.loadMarkets();
|
|
2038
2038
|
const response = await this.fetchTransactionsHelper(code, since, limit, params);
|
|
2039
2039
|
let currency = undefined;
|
|
@@ -2047,18 +2047,18 @@ export default class poloniex extends Exchange {
|
|
|
2047
2047
|
const transactions = this.arrayConcat(depositTransactions, withdrawalTransactions);
|
|
2048
2048
|
return this.filterByCurrencySinceLimit(this.sortBy(transactions, 'timestamp'), code, since, limit);
|
|
2049
2049
|
}
|
|
2050
|
+
/**
|
|
2051
|
+
* @method
|
|
2052
|
+
* @name poloniex#fetchWithdrawals
|
|
2053
|
+
* @description fetch all withdrawals made from an account
|
|
2054
|
+
* @see https://api-docs.poloniex.com/spot/api/private/wallet#wallets-activity-records
|
|
2055
|
+
* @param {string} code unified currency code
|
|
2056
|
+
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
2057
|
+
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
2058
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2059
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2060
|
+
*/
|
|
2050
2061
|
async fetchWithdrawals(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2051
|
-
/**
|
|
2052
|
-
* @method
|
|
2053
|
-
* @name poloniex#fetchWithdrawals
|
|
2054
|
-
* @description fetch all withdrawals made from an account
|
|
2055
|
-
* @see https://api-docs.poloniex.com/spot/api/private/wallet#wallets-activity-records
|
|
2056
|
-
* @param {string} code unified currency code
|
|
2057
|
-
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
2058
|
-
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
2059
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2060
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2061
|
-
*/
|
|
2062
2062
|
const response = await this.fetchTransactionsHelper(code, since, limit, params);
|
|
2063
2063
|
let currency = undefined;
|
|
2064
2064
|
if (code !== undefined) {
|
|
@@ -2068,16 +2068,16 @@ export default class poloniex extends Exchange {
|
|
|
2068
2068
|
const transactions = this.parseTransactions(withdrawals, currency, since, limit);
|
|
2069
2069
|
return this.filterByCurrencySinceLimit(transactions, code, since, limit);
|
|
2070
2070
|
}
|
|
2071
|
+
/**
|
|
2072
|
+
* @method
|
|
2073
|
+
* @name poloniex#fetchDepositWithdrawFees
|
|
2074
|
+
* @description fetch deposit and withdraw fees
|
|
2075
|
+
* @see https://api-docs.poloniex.com/spot/api/public/reference-data#currency-information
|
|
2076
|
+
* @param {string[]|undefined} codes list of unified currency codes
|
|
2077
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2078
|
+
* @returns {object[]} a list of [fees structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
2079
|
+
*/
|
|
2071
2080
|
async fetchDepositWithdrawFees(codes = undefined, params = {}) {
|
|
2072
|
-
/**
|
|
2073
|
-
* @method
|
|
2074
|
-
* @name poloniex#fetchDepositWithdrawFees
|
|
2075
|
-
* @description fetch deposit and withdraw fees
|
|
2076
|
-
* @see https://api-docs.poloniex.com/spot/api/public/reference-data#currency-information
|
|
2077
|
-
* @param {string[]|undefined} codes list of unified currency codes
|
|
2078
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2079
|
-
* @returns {object[]} a list of [fees structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
2080
|
-
*/
|
|
2081
2081
|
await this.loadMarkets();
|
|
2082
2082
|
const response = await this.publicGetCurrencies(this.extend(params, { 'includeMultiChainCurrencies': true }));
|
|
2083
2083
|
//
|
|
@@ -2193,18 +2193,18 @@ export default class poloniex extends Exchange {
|
|
|
2193
2193
|
};
|
|
2194
2194
|
return depositWithdrawFee;
|
|
2195
2195
|
}
|
|
2196
|
+
/**
|
|
2197
|
+
* @method
|
|
2198
|
+
* @name poloniex#fetchDeposits
|
|
2199
|
+
* @description fetch all deposits made to an account
|
|
2200
|
+
* @see https://api-docs.poloniex.com/spot/api/private/wallet#wallets-activity-records
|
|
2201
|
+
* @param {string} code unified currency code
|
|
2202
|
+
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
2203
|
+
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
2204
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2205
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2206
|
+
*/
|
|
2196
2207
|
async fetchDeposits(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2197
|
-
/**
|
|
2198
|
-
* @method
|
|
2199
|
-
* @name poloniex#fetchDeposits
|
|
2200
|
-
* @description fetch all deposits made to an account
|
|
2201
|
-
* @see https://api-docs.poloniex.com/spot/api/private/wallet#wallets-activity-records
|
|
2202
|
-
* @param {string} code unified currency code
|
|
2203
|
-
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
2204
|
-
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
2205
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2206
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2207
|
-
*/
|
|
2208
2208
|
const response = await this.fetchTransactionsHelper(code, since, limit, params);
|
|
2209
2209
|
let currency = undefined;
|
|
2210
2210
|
if (code !== undefined) {
|