ccxt 4.4.30 → 4.4.31
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 +3 -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 +1338 -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 -247
- 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 +648 -648
- 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 +812 -789
- 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 +176 -170
- package/dist/cjs/src/kraken.js +379 -377
- package/dist/cjs/src/krakenfutures.js +283 -279
- package/dist/cjs/src/kucoin.js +630 -622
- package/dist/cjs/src/kucoinfutures.js +439 -434
- 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 +369 -367
- 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 +187 -180
- 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 +253 -253
- 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 +101 -101
- 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 +175 -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 +1305 -0
- package/js/src/binance.js +1338 -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 -247
- 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 +648 -648
- 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 +801 -1
- package/js/src/gate.js +812 -789
- 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 +176 -170
- package/js/src/kraken.d.ts +379 -0
- package/js/src/kraken.js +379 -377
- package/js/src/krakenfutures.d.ts +280 -0
- package/js/src/krakenfutures.js +283 -279
- package/js/src/kucoin.d.ts +613 -0
- package/js/src/kucoin.js +630 -622
- package/js/src/kucoinfutures.d.ts +437 -0
- package/js/src/kucoinfutures.js +439 -434
- 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 +369 -367
- 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 +187 -180
- 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 +253 -0
- package/js/src/pro/bitvavo.js +253 -253
- 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 +101 -101
- 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 +175 -0
- package/js/src/wavesexchange.js +175 -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/bitvavo.js
CHANGED
|
@@ -295,29 +295,29 @@ class bitvavo extends bitvavo$1 {
|
|
|
295
295
|
// Prices submit with a precision larger than 5 will be cut by the API.
|
|
296
296
|
return this.decimalToPrecision(price, number.TRUNCATE, 8, number.DECIMAL_PLACES);
|
|
297
297
|
}
|
|
298
|
+
/**
|
|
299
|
+
* @method
|
|
300
|
+
* @name bitvavo#fetchTime
|
|
301
|
+
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
302
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
303
|
+
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
304
|
+
*/
|
|
298
305
|
async fetchTime(params = {}) {
|
|
299
|
-
/**
|
|
300
|
-
* @method
|
|
301
|
-
* @name bitvavo#fetchTime
|
|
302
|
-
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
303
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
304
|
-
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
305
|
-
*/
|
|
306
306
|
const response = await this.publicGetTime(params);
|
|
307
307
|
//
|
|
308
308
|
// { "time": 1590379519148 }
|
|
309
309
|
//
|
|
310
310
|
return this.safeInteger(response, 'time');
|
|
311
311
|
}
|
|
312
|
+
/**
|
|
313
|
+
* @method
|
|
314
|
+
* @name bitvavo#fetchMarkets
|
|
315
|
+
* @see https://docs.bitvavo.com/#tag/General/paths/~1markets/get
|
|
316
|
+
* @description retrieves data on all markets for bitvavo
|
|
317
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
318
|
+
* @returns {object[]} an array of objects representing market data
|
|
319
|
+
*/
|
|
312
320
|
async fetchMarkets(params = {}) {
|
|
313
|
-
/**
|
|
314
|
-
* @method
|
|
315
|
-
* @name bitvavo#fetchMarkets
|
|
316
|
-
* @see https://docs.bitvavo.com/#tag/General/paths/~1markets/get
|
|
317
|
-
* @description retrieves data on all markets for bitvavo
|
|
318
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
319
|
-
* @returns {object[]} an array of objects representing market data
|
|
320
|
-
*/
|
|
321
321
|
const response = await this.publicGetMarkets(params);
|
|
322
322
|
//
|
|
323
323
|
// [
|
|
@@ -404,15 +404,15 @@ class bitvavo extends bitvavo$1 {
|
|
|
404
404
|
}
|
|
405
405
|
return result;
|
|
406
406
|
}
|
|
407
|
+
/**
|
|
408
|
+
* @method
|
|
409
|
+
* @name bitvavo#fetchCurrencies
|
|
410
|
+
* @see https://docs.bitvavo.com/#tag/General/paths/~1assets/get
|
|
411
|
+
* @description fetches all available currencies on an exchange
|
|
412
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
413
|
+
* @returns {object} an associative dictionary of currencies
|
|
414
|
+
*/
|
|
407
415
|
async fetchCurrencies(params = {}) {
|
|
408
|
-
/**
|
|
409
|
-
* @method
|
|
410
|
-
* @name bitvavo#fetchCurrencies
|
|
411
|
-
* @see https://docs.bitvavo.com/#tag/General/paths/~1assets/get
|
|
412
|
-
* @description fetches all available currencies on an exchange
|
|
413
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
414
|
-
* @returns {object} an associative dictionary of currencies
|
|
415
|
-
*/
|
|
416
416
|
const response = await this.publicGetAssets(params);
|
|
417
417
|
//
|
|
418
418
|
// [
|
|
@@ -550,16 +550,16 @@ class bitvavo extends bitvavo$1 {
|
|
|
550
550
|
this.currencies = this.deepExtend(this.currencies, result);
|
|
551
551
|
return result;
|
|
552
552
|
}
|
|
553
|
+
/**
|
|
554
|
+
* @method
|
|
555
|
+
* @name bitvavo#fetchTicker
|
|
556
|
+
* @see https://docs.bitvavo.com/#tag/Market-Data/paths/~1ticker~124h/get
|
|
557
|
+
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
558
|
+
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
559
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
560
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
561
|
+
*/
|
|
553
562
|
async fetchTicker(symbol, params = {}) {
|
|
554
|
-
/**
|
|
555
|
-
* @method
|
|
556
|
-
* @name bitvavo#fetchTicker
|
|
557
|
-
* @see https://docs.bitvavo.com/#tag/Market-Data/paths/~1ticker~124h/get
|
|
558
|
-
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
559
|
-
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
560
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
561
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
562
|
-
*/
|
|
563
563
|
await this.loadMarkets();
|
|
564
564
|
const market = this.market(symbol);
|
|
565
565
|
const request = {
|
|
@@ -633,15 +633,15 @@ class bitvavo extends bitvavo$1 {
|
|
|
633
633
|
'info': ticker,
|
|
634
634
|
}, market);
|
|
635
635
|
}
|
|
636
|
+
/**
|
|
637
|
+
* @method
|
|
638
|
+
* @name bitvavo#fetchTickers
|
|
639
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
640
|
+
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
641
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
642
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
643
|
+
*/
|
|
636
644
|
async fetchTickers(symbols = undefined, params = {}) {
|
|
637
|
-
/**
|
|
638
|
-
* @method
|
|
639
|
-
* @name bitvavo#fetchTickers
|
|
640
|
-
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
641
|
-
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
642
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
643
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
644
|
-
*/
|
|
645
645
|
await this.loadMarkets();
|
|
646
646
|
const response = await this.publicGetTicker24h(params);
|
|
647
647
|
//
|
|
@@ -664,20 +664,20 @@ class bitvavo extends bitvavo$1 {
|
|
|
664
664
|
//
|
|
665
665
|
return this.parseTickers(response, symbols);
|
|
666
666
|
}
|
|
667
|
+
/**
|
|
668
|
+
* @method
|
|
669
|
+
* @name bitvavo#fetchTrades
|
|
670
|
+
* @see https://docs.bitvavo.com/#tag/Market-Data/paths/~1{market}~1trades/get
|
|
671
|
+
* @description get the list of most recent trades for a particular symbol
|
|
672
|
+
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
673
|
+
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
674
|
+
* @param {int} [limit] the maximum amount of trades to fetch
|
|
675
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
676
|
+
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
677
|
+
* @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)
|
|
678
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
679
|
+
*/
|
|
667
680
|
async fetchTrades(symbol, since = undefined, limit = undefined, params = {}) {
|
|
668
|
-
/**
|
|
669
|
-
* @method
|
|
670
|
-
* @name bitvavo#fetchTrades
|
|
671
|
-
* @see https://docs.bitvavo.com/#tag/Market-Data/paths/~1{market}~1trades/get
|
|
672
|
-
* @description get the list of most recent trades for a particular symbol
|
|
673
|
-
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
674
|
-
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
675
|
-
* @param {int} [limit] the maximum amount of trades to fetch
|
|
676
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
677
|
-
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
678
|
-
* @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)
|
|
679
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
680
|
-
*/
|
|
681
681
|
await this.loadMarkets();
|
|
682
682
|
const market = this.market(symbol);
|
|
683
683
|
let paginate = false;
|
|
@@ -810,15 +810,15 @@ class bitvavo extends bitvavo$1 {
|
|
|
810
810
|
'fee': fee,
|
|
811
811
|
}, market);
|
|
812
812
|
}
|
|
813
|
+
/**
|
|
814
|
+
* @method
|
|
815
|
+
* @name bitvavo#fetchTradingFees
|
|
816
|
+
* @see https://docs.bitvavo.com/#tag/Account/paths/~1account/get
|
|
817
|
+
* @description fetch the trading fees for multiple markets
|
|
818
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
819
|
+
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
820
|
+
*/
|
|
813
821
|
async fetchTradingFees(params = {}) {
|
|
814
|
-
/**
|
|
815
|
-
* @method
|
|
816
|
-
* @name bitvavo#fetchTradingFees
|
|
817
|
-
* @see https://docs.bitvavo.com/#tag/Account/paths/~1account/get
|
|
818
|
-
* @description fetch the trading fees for multiple markets
|
|
819
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
820
|
-
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
821
|
-
*/
|
|
822
822
|
await this.loadMarkets();
|
|
823
823
|
const response = await this.privateGetAccount(params);
|
|
824
824
|
//
|
|
@@ -859,17 +859,17 @@ class bitvavo extends bitvavo$1 {
|
|
|
859
859
|
}
|
|
860
860
|
return result;
|
|
861
861
|
}
|
|
862
|
+
/**
|
|
863
|
+
* @method
|
|
864
|
+
* @name bitvavo#fetchOrderBook
|
|
865
|
+
* @see https://docs.bitvavo.com/#tag/Market-Data/paths/~1{market}~1book/get
|
|
866
|
+
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
867
|
+
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
868
|
+
* @param {int} [limit] the maximum amount of order book entries to return
|
|
869
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
870
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
871
|
+
*/
|
|
862
872
|
async fetchOrderBook(symbol, limit = undefined, params = {}) {
|
|
863
|
-
/**
|
|
864
|
-
* @method
|
|
865
|
-
* @name bitvavo#fetchOrderBook
|
|
866
|
-
* @see https://docs.bitvavo.com/#tag/Market-Data/paths/~1{market}~1book/get
|
|
867
|
-
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
868
|
-
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
869
|
-
* @param {int} [limit] the maximum amount of order book entries to return
|
|
870
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
871
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
872
|
-
*/
|
|
873
873
|
await this.loadMarkets();
|
|
874
874
|
const market = this.market(symbol);
|
|
875
875
|
const request = {
|
|
@@ -946,21 +946,21 @@ class bitvavo extends bitvavo$1 {
|
|
|
946
946
|
}
|
|
947
947
|
return this.extend(request, params);
|
|
948
948
|
}
|
|
949
|
+
/**
|
|
950
|
+
* @method
|
|
951
|
+
* @name bitvavo#fetchOHLCV
|
|
952
|
+
* @see https://docs.bitvavo.com/#tag/Market-Data/paths/~1{market}~1candles/get
|
|
953
|
+
* @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
954
|
+
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
955
|
+
* @param {string} timeframe the length of time each candle represents
|
|
956
|
+
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
957
|
+
* @param {int} [limit] the maximum amount of candles to fetch
|
|
958
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
959
|
+
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
960
|
+
* @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)
|
|
961
|
+
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
962
|
+
*/
|
|
949
963
|
async fetchOHLCV(symbol, timeframe = '1m', since = undefined, limit = undefined, params = {}) {
|
|
950
|
-
/**
|
|
951
|
-
* @method
|
|
952
|
-
* @name bitvavo#fetchOHLCV
|
|
953
|
-
* @see https://docs.bitvavo.com/#tag/Market-Data/paths/~1{market}~1candles/get
|
|
954
|
-
* @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
955
|
-
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
956
|
-
* @param {string} timeframe the length of time each candle represents
|
|
957
|
-
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
958
|
-
* @param {int} [limit] the maximum amount of candles to fetch
|
|
959
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
960
|
-
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
961
|
-
* @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)
|
|
962
|
-
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
963
|
-
*/
|
|
964
964
|
await this.loadMarkets();
|
|
965
965
|
const market = this.market(symbol);
|
|
966
966
|
let paginate = false;
|
|
@@ -996,15 +996,15 @@ class bitvavo extends bitvavo$1 {
|
|
|
996
996
|
}
|
|
997
997
|
return this.safeBalance(result);
|
|
998
998
|
}
|
|
999
|
+
/**
|
|
1000
|
+
* @method
|
|
1001
|
+
* @name bitvavo#fetchBalance
|
|
1002
|
+
* @see https://docs.bitvavo.com/#tag/Account/paths/~1balance/get
|
|
1003
|
+
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
1004
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1005
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
1006
|
+
*/
|
|
999
1007
|
async fetchBalance(params = {}) {
|
|
1000
|
-
/**
|
|
1001
|
-
* @method
|
|
1002
|
-
* @name bitvavo#fetchBalance
|
|
1003
|
-
* @see https://docs.bitvavo.com/#tag/Account/paths/~1balance/get
|
|
1004
|
-
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
1005
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1006
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
1007
|
-
*/
|
|
1008
1008
|
await this.loadMarkets();
|
|
1009
1009
|
const response = await this.privateGetBalance(params);
|
|
1010
1010
|
//
|
|
@@ -1018,15 +1018,15 @@ class bitvavo extends bitvavo$1 {
|
|
|
1018
1018
|
//
|
|
1019
1019
|
return this.parseBalance(response);
|
|
1020
1020
|
}
|
|
1021
|
+
/**
|
|
1022
|
+
* @method
|
|
1023
|
+
* @name bitvavo#fetchDepositAddress
|
|
1024
|
+
* @description fetch the deposit address for a currency associated with this account
|
|
1025
|
+
* @param {string} code unified currency code
|
|
1026
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1027
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1028
|
+
*/
|
|
1021
1029
|
async fetchDepositAddress(code, params = {}) {
|
|
1022
|
-
/**
|
|
1023
|
-
* @method
|
|
1024
|
-
* @name bitvavo#fetchDepositAddress
|
|
1025
|
-
* @description fetch the deposit address for a currency associated with this account
|
|
1026
|
-
* @param {string} code unified currency code
|
|
1027
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1028
|
-
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1029
|
-
*/
|
|
1030
1030
|
await this.loadMarkets();
|
|
1031
1031
|
const currency = this.currency(code);
|
|
1032
1032
|
const request = {
|
|
@@ -1120,31 +1120,31 @@ class bitvavo extends bitvavo$1 {
|
|
|
1120
1120
|
}
|
|
1121
1121
|
return this.extend(request, params);
|
|
1122
1122
|
}
|
|
1123
|
+
/**
|
|
1124
|
+
* @method
|
|
1125
|
+
* @name bitvavo#createOrder
|
|
1126
|
+
* @description create a trade order
|
|
1127
|
+
* @see https://docs.bitvavo.com/#tag/Orders/paths/~1order/post
|
|
1128
|
+
* @param {string} symbol unified symbol of the market to create an order in
|
|
1129
|
+
* @param {string} type 'market' or 'limit'
|
|
1130
|
+
* @param {string} side 'buy' or 'sell'
|
|
1131
|
+
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1132
|
+
* @param {float} price the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1133
|
+
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
1134
|
+
* @param {string} [params.timeInForce] "GTC", "IOC", or "PO"
|
|
1135
|
+
* @param {float} [params.stopPrice] The price at which a trigger order is triggered at
|
|
1136
|
+
* @param {float} [params.triggerPrice] The price at which a trigger order is triggered at
|
|
1137
|
+
* @param {bool} [params.postOnly] If true, the order will only be posted to the order book and not executed immediately
|
|
1138
|
+
* @param {float} [params.stopLossPrice] The price at which a stop loss order is triggered at
|
|
1139
|
+
* @param {float} [params.takeProfitPrice] The price at which a take profit order is triggered at
|
|
1140
|
+
* @param {string} [params.triggerType] "price"
|
|
1141
|
+
* @param {string} [params.triggerReference] "lastTrade", "bestBid", "bestAsk", "midPrice" Only for stop orders: Use this to determine which parameter will trigger the order
|
|
1142
|
+
* @param {string} [params.selfTradePrevention] "decrementAndCancel", "cancelOldest", "cancelNewest", "cancelBoth"
|
|
1143
|
+
* @param {bool} [params.disableMarketProtection] don't cancel if the next fill price is 10% worse than the best fill price
|
|
1144
|
+
* @param {bool} [params.responseRequired] Set this to 'false' when only an acknowledgement of success or failure is required, this is faster.
|
|
1145
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1146
|
+
*/
|
|
1123
1147
|
async createOrder(symbol, type, side, amount, price = undefined, params = {}) {
|
|
1124
|
-
/**
|
|
1125
|
-
* @method
|
|
1126
|
-
* @name bitvavo#createOrder
|
|
1127
|
-
* @description create a trade order
|
|
1128
|
-
* @see https://docs.bitvavo.com/#tag/Orders/paths/~1order/post
|
|
1129
|
-
* @param {string} symbol unified symbol of the market to create an order in
|
|
1130
|
-
* @param {string} type 'market' or 'limit'
|
|
1131
|
-
* @param {string} side 'buy' or 'sell'
|
|
1132
|
-
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1133
|
-
* @param {float} price the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1134
|
-
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
1135
|
-
* @param {string} [params.timeInForce] "GTC", "IOC", or "PO"
|
|
1136
|
-
* @param {float} [params.stopPrice] The price at which a trigger order is triggered at
|
|
1137
|
-
* @param {float} [params.triggerPrice] The price at which a trigger order is triggered at
|
|
1138
|
-
* @param {bool} [params.postOnly] If true, the order will only be posted to the order book and not executed immediately
|
|
1139
|
-
* @param {float} [params.stopLossPrice] The price at which a stop loss order is triggered at
|
|
1140
|
-
* @param {float} [params.takeProfitPrice] The price at which a take profit order is triggered at
|
|
1141
|
-
* @param {string} [params.triggerType] "price"
|
|
1142
|
-
* @param {string} [params.triggerReference] "lastTrade", "bestBid", "bestAsk", "midPrice" Only for stop orders: Use this to determine which parameter will trigger the order
|
|
1143
|
-
* @param {string} [params.selfTradePrevention] "decrementAndCancel", "cancelOldest", "cancelNewest", "cancelBoth"
|
|
1144
|
-
* @param {bool} [params.disableMarketProtection] don't cancel if the next fill price is 10% worse than the best fill price
|
|
1145
|
-
* @param {bool} [params.responseRequired] Set this to 'false' when only an acknowledgement of success or failure is required, this is faster.
|
|
1146
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1147
|
-
*/
|
|
1148
1148
|
await this.loadMarkets();
|
|
1149
1149
|
const market = this.market(symbol);
|
|
1150
1150
|
const request = this.createOrderRequest(symbol, type, side, amount, price, params);
|
|
@@ -1220,21 +1220,21 @@ class bitvavo extends bitvavo$1 {
|
|
|
1220
1220
|
request['market'] = market['id'];
|
|
1221
1221
|
return request;
|
|
1222
1222
|
}
|
|
1223
|
+
/**
|
|
1224
|
+
* @method
|
|
1225
|
+
* @name bitvavo#editOrder
|
|
1226
|
+
* @description edit a trade order
|
|
1227
|
+
* @see https://docs.bitvavo.com/#tag/Orders/paths/~1order/put
|
|
1228
|
+
* @param {string} id cancel order id
|
|
1229
|
+
* @param {string} symbol unified symbol of the market to create an order in
|
|
1230
|
+
* @param {string} type 'market' or 'limit'
|
|
1231
|
+
* @param {string} side 'buy' or 'sell'
|
|
1232
|
+
* @param {float} [amount] how much of currency you want to trade in units of base currency
|
|
1233
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1234
|
+
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
1235
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1236
|
+
*/
|
|
1223
1237
|
async editOrder(id, symbol, type, side, amount = undefined, price = undefined, params = {}) {
|
|
1224
|
-
/**
|
|
1225
|
-
* @method
|
|
1226
|
-
* @name bitvavo#editOrder
|
|
1227
|
-
* @description edit a trade order
|
|
1228
|
-
* @see https://docs.bitvavo.com/#tag/Orders/paths/~1order/put
|
|
1229
|
-
* @param {string} id cancel order id
|
|
1230
|
-
* @param {string} symbol unified symbol of the market to create an order in
|
|
1231
|
-
* @param {string} type 'market' or 'limit'
|
|
1232
|
-
* @param {string} side 'buy' or 'sell'
|
|
1233
|
-
* @param {float} [amount] how much of currency you want to trade in units of base currency
|
|
1234
|
-
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1235
|
-
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
1236
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1237
|
-
*/
|
|
1238
1238
|
await this.loadMarkets();
|
|
1239
1239
|
const market = this.market(symbol);
|
|
1240
1240
|
const request = this.editOrderRequest(id, symbol, type, side, amount, price, params);
|
|
@@ -1255,18 +1255,18 @@ class bitvavo extends bitvavo$1 {
|
|
|
1255
1255
|
}
|
|
1256
1256
|
return this.extend(request, params);
|
|
1257
1257
|
}
|
|
1258
|
+
/**
|
|
1259
|
+
* @method
|
|
1260
|
+
* @name bitvavo#cancelOrder
|
|
1261
|
+
* @see https://docs.bitvavo.com/#tag/Orders/paths/~1order/delete
|
|
1262
|
+
* @description cancels an open order
|
|
1263
|
+
* @see https://docs.bitvavo.com/#tag/Trading-endpoints/paths/~1order/delete
|
|
1264
|
+
* @param {string} id order id
|
|
1265
|
+
* @param {string} symbol unified symbol of the market the order was made in
|
|
1266
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1267
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1268
|
+
*/
|
|
1258
1269
|
async cancelOrder(id, symbol = undefined, params = {}) {
|
|
1259
|
-
/**
|
|
1260
|
-
* @method
|
|
1261
|
-
* @name bitvavo#cancelOrder
|
|
1262
|
-
* @see https://docs.bitvavo.com/#tag/Orders/paths/~1order/delete
|
|
1263
|
-
* @description cancels an open order
|
|
1264
|
-
* @see https://docs.bitvavo.com/#tag/Trading-endpoints/paths/~1order/delete
|
|
1265
|
-
* @param {string} id order id
|
|
1266
|
-
* @param {string} symbol unified symbol of the market the order was made in
|
|
1267
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1268
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1269
|
-
*/
|
|
1270
1270
|
await this.loadMarkets();
|
|
1271
1271
|
const market = this.market(symbol);
|
|
1272
1272
|
const request = this.cancelOrderRequest(id, symbol, params);
|
|
@@ -1278,16 +1278,16 @@ class bitvavo extends bitvavo$1 {
|
|
|
1278
1278
|
//
|
|
1279
1279
|
return this.parseOrder(response, market);
|
|
1280
1280
|
}
|
|
1281
|
+
/**
|
|
1282
|
+
* @method
|
|
1283
|
+
* @name bitvavo#cancelAllOrders
|
|
1284
|
+
* @see https://docs.bitvavo.com/#tag/Orders/paths/~1orders/delete
|
|
1285
|
+
* @description cancel all open orders
|
|
1286
|
+
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
1287
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1288
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1289
|
+
*/
|
|
1281
1290
|
async cancelAllOrders(symbol = undefined, params = {}) {
|
|
1282
|
-
/**
|
|
1283
|
-
* @method
|
|
1284
|
-
* @name bitvavo#cancelAllOrders
|
|
1285
|
-
* @see https://docs.bitvavo.com/#tag/Orders/paths/~1orders/delete
|
|
1286
|
-
* @description cancel all open orders
|
|
1287
|
-
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
1288
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1289
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1290
|
-
*/
|
|
1291
1291
|
await this.loadMarkets();
|
|
1292
1292
|
const request = {};
|
|
1293
1293
|
let market = undefined;
|
|
@@ -1305,17 +1305,17 @@ class bitvavo extends bitvavo$1 {
|
|
|
1305
1305
|
//
|
|
1306
1306
|
return this.parseOrders(response, market);
|
|
1307
1307
|
}
|
|
1308
|
+
/**
|
|
1309
|
+
* @method
|
|
1310
|
+
* @name bitvavo#fetchOrder
|
|
1311
|
+
* @description fetches information on an order made by the user
|
|
1312
|
+
* @see https://docs.bitvavo.com/#tag/Trading-endpoints/paths/~1order/get
|
|
1313
|
+
* @param {string} id the order id
|
|
1314
|
+
* @param {string} symbol unified symbol of the market the order was made in
|
|
1315
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1316
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1317
|
+
*/
|
|
1308
1318
|
async fetchOrder(id, symbol = undefined, params = {}) {
|
|
1309
|
-
/**
|
|
1310
|
-
* @method
|
|
1311
|
-
* @name bitvavo#fetchOrder
|
|
1312
|
-
* @description fetches information on an order made by the user
|
|
1313
|
-
* @see https://docs.bitvavo.com/#tag/Trading-endpoints/paths/~1order/get
|
|
1314
|
-
* @param {string} id the order id
|
|
1315
|
-
* @param {string} symbol unified symbol of the market the order was made in
|
|
1316
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1317
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1318
|
-
*/
|
|
1319
1319
|
if (symbol === undefined) {
|
|
1320
1320
|
throw new errors.ArgumentsRequired(this.id + ' fetchOrder() requires a symbol argument');
|
|
1321
1321
|
}
|
|
@@ -1384,20 +1384,20 @@ class bitvavo extends bitvavo$1 {
|
|
|
1384
1384
|
[request, params] = this.handleUntilOption('end', request, params);
|
|
1385
1385
|
return this.extend(request, params);
|
|
1386
1386
|
}
|
|
1387
|
+
/**
|
|
1388
|
+
* @method
|
|
1389
|
+
* @name bitvavo#fetchOrders
|
|
1390
|
+
* @see https://docs.bitvavo.com/#tag/Trading-endpoints/paths/~1orders/get
|
|
1391
|
+
* @description fetches information on multiple orders made by the user
|
|
1392
|
+
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1393
|
+
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1394
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1395
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1396
|
+
* @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)
|
|
1397
|
+
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
1398
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1399
|
+
*/
|
|
1387
1400
|
async fetchOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1388
|
-
/**
|
|
1389
|
-
* @method
|
|
1390
|
-
* @name bitvavo#fetchOrders
|
|
1391
|
-
* @see https://docs.bitvavo.com/#tag/Trading-endpoints/paths/~1orders/get
|
|
1392
|
-
* @description fetches information on multiple orders made by the user
|
|
1393
|
-
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1394
|
-
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1395
|
-
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1396
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1397
|
-
* @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)
|
|
1398
|
-
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
1399
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1400
|
-
*/
|
|
1401
1401
|
if (symbol === undefined) {
|
|
1402
1402
|
throw new errors.ArgumentsRequired(this.id + ' fetchOrders() requires a symbol argument');
|
|
1403
1403
|
}
|
|
@@ -1448,17 +1448,17 @@ class bitvavo extends bitvavo$1 {
|
|
|
1448
1448
|
//
|
|
1449
1449
|
return this.parseOrders(response, market, since, limit);
|
|
1450
1450
|
}
|
|
1451
|
+
/**
|
|
1452
|
+
* @method
|
|
1453
|
+
* @name bitvavo#fetchOpenOrders
|
|
1454
|
+
* @description fetch all unfilled currently open orders
|
|
1455
|
+
* @param {string} symbol unified market symbol
|
|
1456
|
+
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1457
|
+
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1458
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1459
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1460
|
+
*/
|
|
1451
1461
|
async fetchOpenOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1452
|
-
/**
|
|
1453
|
-
* @method
|
|
1454
|
-
* @name bitvavo#fetchOpenOrders
|
|
1455
|
-
* @description fetch all unfilled currently open orders
|
|
1456
|
-
* @param {string} symbol unified market symbol
|
|
1457
|
-
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1458
|
-
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1459
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1460
|
-
* @returns {Order[]} 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
|
// "market": market["id"], // rate limit 25 without a market, 1 with market specified
|
|
@@ -1648,20 +1648,20 @@ class bitvavo extends bitvavo$1 {
|
|
|
1648
1648
|
[request, params] = this.handleUntilOption('end', request, params);
|
|
1649
1649
|
return this.extend(request, params);
|
|
1650
1650
|
}
|
|
1651
|
+
/**
|
|
1652
|
+
* @method
|
|
1653
|
+
* @name bitvavo#fetchMyTrades
|
|
1654
|
+
* @see https://docs.bitvavo.com/#tag/Trades/paths/~1trades/get
|
|
1655
|
+
* @description fetch all trades made by the user
|
|
1656
|
+
* @param {string} symbol unified market symbol
|
|
1657
|
+
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1658
|
+
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1659
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1660
|
+
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
1661
|
+
* @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)
|
|
1662
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1663
|
+
*/
|
|
1651
1664
|
async fetchMyTrades(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1652
|
-
/**
|
|
1653
|
-
* @method
|
|
1654
|
-
* @name bitvavo#fetchMyTrades
|
|
1655
|
-
* @see https://docs.bitvavo.com/#tag/Trades/paths/~1trades/get
|
|
1656
|
-
* @description fetch all trades made by the user
|
|
1657
|
-
* @param {string} symbol unified market symbol
|
|
1658
|
-
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1659
|
-
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1660
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1661
|
-
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
1662
|
-
* @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)
|
|
1663
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1664
|
-
*/
|
|
1665
1665
|
if (symbol === undefined) {
|
|
1666
1666
|
throw new errors.ArgumentsRequired(this.id + ' fetchMyTrades() requires a symbol argument');
|
|
1667
1667
|
}
|
|
@@ -1707,18 +1707,18 @@ class bitvavo extends bitvavo$1 {
|
|
|
1707
1707
|
}
|
|
1708
1708
|
return this.extend(request, params);
|
|
1709
1709
|
}
|
|
1710
|
+
/**
|
|
1711
|
+
* @method
|
|
1712
|
+
* @name bitvavo#withdraw
|
|
1713
|
+
* @description make a withdrawal
|
|
1714
|
+
* @param {string} code unified currency code
|
|
1715
|
+
* @param {float} amount the amount to withdraw
|
|
1716
|
+
* @param {string} address the address to withdraw to
|
|
1717
|
+
* @param {string} tag
|
|
1718
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1719
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1720
|
+
*/
|
|
1710
1721
|
async withdraw(code, amount, address, tag = undefined, params = {}) {
|
|
1711
|
-
/**
|
|
1712
|
-
* @method
|
|
1713
|
-
* @name bitvavo#withdraw
|
|
1714
|
-
* @description make a withdrawal
|
|
1715
|
-
* @param {string} code unified currency code
|
|
1716
|
-
* @param {float} amount the amount to withdraw
|
|
1717
|
-
* @param {string} address the address to withdraw to
|
|
1718
|
-
* @param {string} tag
|
|
1719
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1720
|
-
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1721
|
-
*/
|
|
1722
1722
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
1723
1723
|
this.checkAddress(address);
|
|
1724
1724
|
await this.loadMarkets();
|
|
@@ -1754,18 +1754,18 @@ class bitvavo extends bitvavo$1 {
|
|
|
1754
1754
|
}
|
|
1755
1755
|
return this.extend(request, params);
|
|
1756
1756
|
}
|
|
1757
|
+
/**
|
|
1758
|
+
* @method
|
|
1759
|
+
* @name bitvavo#fetchWithdrawals
|
|
1760
|
+
* @see https://docs.bitvavo.com/#tag/Account/paths/~1withdrawalHistory/get
|
|
1761
|
+
* @description fetch all withdrawals made from an account
|
|
1762
|
+
* @param {string} code unified currency code
|
|
1763
|
+
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
1764
|
+
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
1765
|
+
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
1766
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1767
|
+
*/
|
|
1757
1768
|
async fetchWithdrawals(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1758
|
-
/**
|
|
1759
|
-
* @method
|
|
1760
|
-
* @name bitvavo#fetchWithdrawals
|
|
1761
|
-
* @see https://docs.bitvavo.com/#tag/Account/paths/~1withdrawalHistory/get
|
|
1762
|
-
* @description fetch all withdrawals made from an account
|
|
1763
|
-
* @param {string} code unified currency code
|
|
1764
|
-
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
1765
|
-
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
1766
|
-
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
1767
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1768
|
-
*/
|
|
1769
1769
|
await this.loadMarkets();
|
|
1770
1770
|
const request = this.fetchWithdrawalsRequest(code, since, limit, params);
|
|
1771
1771
|
let currency = undefined;
|
|
@@ -1809,18 +1809,18 @@ class bitvavo extends bitvavo$1 {
|
|
|
1809
1809
|
}
|
|
1810
1810
|
return this.extend(request, params);
|
|
1811
1811
|
}
|
|
1812
|
+
/**
|
|
1813
|
+
* @method
|
|
1814
|
+
* @name bitvavo#fetchDeposits
|
|
1815
|
+
* @see https://docs.bitvavo.com/#tag/Account/paths/~1depositHistory/get
|
|
1816
|
+
* @description fetch all deposits made to an account
|
|
1817
|
+
* @param {string} code unified currency code
|
|
1818
|
+
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
1819
|
+
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
1820
|
+
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
1821
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1822
|
+
*/
|
|
1812
1823
|
async fetchDeposits(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1813
|
-
/**
|
|
1814
|
-
* @method
|
|
1815
|
-
* @name bitvavo#fetchDeposits
|
|
1816
|
-
* @see https://docs.bitvavo.com/#tag/Account/paths/~1depositHistory/get
|
|
1817
|
-
* @description fetch all deposits made to an account
|
|
1818
|
-
* @param {string} code unified currency code
|
|
1819
|
-
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
1820
|
-
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
1821
|
-
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
1822
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1823
|
-
*/
|
|
1824
1824
|
await this.loadMarkets();
|
|
1825
1825
|
const request = this.fetchDepositsRequest(code, since, limit, params);
|
|
1826
1826
|
let currency = undefined;
|
|
@@ -1980,16 +1980,16 @@ class bitvavo extends bitvavo$1 {
|
|
|
1980
1980
|
};
|
|
1981
1981
|
return result;
|
|
1982
1982
|
}
|
|
1983
|
+
/**
|
|
1984
|
+
* @method
|
|
1985
|
+
* @name bitvavo#fetchDepositWithdrawFees
|
|
1986
|
+
* @description fetch deposit and withdraw fees
|
|
1987
|
+
* @see https://docs.bitvavo.com/#tag/General/paths/~1assets/get
|
|
1988
|
+
* @param {string[]|undefined} codes list of unified currency codes
|
|
1989
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1990
|
+
* @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
1991
|
+
*/
|
|
1983
1992
|
async fetchDepositWithdrawFees(codes = undefined, params = {}) {
|
|
1984
|
-
/**
|
|
1985
|
-
* @method
|
|
1986
|
-
* @name bitvavo#fetchDepositWithdrawFees
|
|
1987
|
-
* @description fetch deposit and withdraw fees
|
|
1988
|
-
* @see https://docs.bitvavo.com/#tag/General/paths/~1assets/get
|
|
1989
|
-
* @param {string[]|undefined} codes list of unified currency codes
|
|
1990
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1991
|
-
* @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
1992
|
-
*/
|
|
1993
1993
|
await this.loadMarkets();
|
|
1994
1994
|
const response = await this.publicGetAssets(params);
|
|
1995
1995
|
//
|