ccxt 4.4.30 → 4.4.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -3
- package/dist/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/ace.js +123 -123
- package/dist/cjs/src/alpaca.js +237 -237
- package/dist/cjs/src/ascendex.js +342 -341
- package/dist/cjs/src/bigone.js +242 -242
- package/dist/cjs/src/binance.js +1339 -1291
- package/dist/cjs/src/bingx.js +639 -639
- package/dist/cjs/src/bit2c.js +111 -111
- package/dist/cjs/src/bitbank.js +142 -142
- package/dist/cjs/src/bitbns.js +140 -140
- package/dist/cjs/src/bitfinex.js +231 -231
- package/dist/cjs/src/bitfinex2.js +403 -403
- package/dist/cjs/src/bitflyer.js +184 -184
- package/dist/cjs/src/bitget.js +848 -846
- package/dist/cjs/src/bithumb.js +125 -124
- package/dist/cjs/src/bitmart.js +525 -525
- package/dist/cjs/src/bitmex.js +317 -317
- package/dist/cjs/src/bitopro.js +221 -221
- package/dist/cjs/src/bitrue.js +315 -315
- package/dist/cjs/src/bitso.js +220 -220
- package/dist/cjs/src/bitstamp.js +251 -251
- package/dist/cjs/src/bitteam.js +183 -183
- package/dist/cjs/src/bitvavo.js +247 -251
- package/dist/cjs/src/bl3p.js +82 -82
- package/dist/cjs/src/blockchaincom.js +211 -211
- package/dist/cjs/src/blofin.js +332 -331
- package/dist/cjs/src/btcalpha.js +166 -166
- package/dist/cjs/src/btcbox.js +108 -108
- package/dist/cjs/src/btcmarkets.js +198 -198
- package/dist/cjs/src/btcturk.js +124 -124
- package/dist/cjs/src/bybit.js +906 -900
- package/dist/cjs/src/cex.js +227 -226
- package/dist/cjs/src/coinbase.js +481 -481
- package/dist/cjs/src/coinbaseexchange.js +274 -274
- package/dist/cjs/src/coinbaseinternational.js +304 -304
- package/dist/cjs/src/coincatch.js +650 -650
- package/dist/cjs/src/coincheck.js +113 -113
- package/dist/cjs/src/coinex.js +611 -601
- package/dist/cjs/src/coinlist.js +304 -303
- package/dist/cjs/src/coinmate.js +162 -161
- package/dist/cjs/src/coinmetro.js +187 -187
- package/dist/cjs/src/coinone.js +124 -123
- package/dist/cjs/src/coinsph.js +237 -237
- package/dist/cjs/src/coinspot.js +82 -82
- package/dist/cjs/src/cryptocom.js +342 -341
- package/dist/cjs/src/currencycom.js +225 -224
- package/dist/cjs/src/delta.js +320 -320
- package/dist/cjs/src/deribit.js +411 -408
- package/dist/cjs/src/digifinex.js +432 -431
- package/dist/cjs/src/exmo.js +328 -327
- package/dist/cjs/src/gate.js +830 -791
- package/dist/cjs/src/gemini.js +199 -198
- package/dist/cjs/src/hashkey.js +520 -517
- package/dist/cjs/src/hitbtc.js +465 -462
- package/dist/cjs/src/hollaex.js +253 -252
- package/dist/cjs/src/htx.js +791 -848
- package/dist/cjs/src/huobijp.js +219 -218
- package/dist/cjs/src/hyperliquid.js +421 -417
- package/dist/cjs/src/idex.js +238 -237
- package/dist/cjs/src/independentreserve.js +133 -132
- package/dist/cjs/src/indodax.js +177 -171
- package/dist/cjs/src/kraken.js +381 -377
- package/dist/cjs/src/krakenfutures.js +285 -279
- package/dist/cjs/src/kucoin.js +632 -622
- package/dist/cjs/src/kucoinfutures.js +533 -457
- package/dist/cjs/src/kuna.js +283 -282
- package/dist/cjs/src/latoken.js +211 -210
- package/dist/cjs/src/lbank.js +268 -267
- package/dist/cjs/src/luno.js +174 -173
- package/dist/cjs/src/lykke.js +172 -171
- package/dist/cjs/src/mercado.js +123 -122
- package/dist/cjs/src/mexc.js +650 -646
- package/dist/cjs/src/ndax.js +229 -228
- package/dist/cjs/src/novadax.js +230 -229
- package/dist/cjs/src/oceanex.js +187 -186
- package/dist/cjs/src/okcoin.js +286 -285
- package/dist/cjs/src/okx.js +909 -904
- package/dist/cjs/src/onetrading.js +218 -218
- package/dist/cjs/src/oxfun.js +335 -334
- package/dist/cjs/src/p2b.js +154 -154
- package/dist/cjs/src/paradex.js +249 -244
- package/dist/cjs/src/paymium.js +101 -101
- package/dist/cjs/src/phemex.js +388 -390
- package/dist/cjs/src/poloniex.js +270 -270
- package/dist/cjs/src/poloniexfutures.js +250 -250
- package/dist/cjs/src/pro/alpaca.js +64 -64
- package/dist/cjs/src/pro/ascendex.js +64 -64
- package/dist/cjs/src/pro/binance.js +546 -543
- package/dist/cjs/src/pro/bingx.js +116 -116
- package/dist/cjs/src/pro/bitfinex.js +42 -42
- package/dist/cjs/src/pro/bitfinex2.js +66 -66
- package/dist/cjs/src/pro/bitget.js +188 -181
- package/dist/cjs/src/pro/bithumb.js +40 -40
- package/dist/cjs/src/pro/bitmart.js +121 -119
- package/dist/cjs/src/pro/bitmex.js +135 -133
- package/dist/cjs/src/pro/bitopro.js +49 -49
- package/dist/cjs/src/pro/bitrue.js +19 -19
- package/dist/cjs/src/pro/bitstamp.js +29 -29
- package/dist/cjs/src/pro/bitvavo.js +299 -301
- package/dist/cjs/src/pro/blockchaincom.js +62 -62
- package/dist/cjs/src/pro/blofin.js +132 -130
- package/dist/cjs/src/pro/bybit.js +317 -313
- package/dist/cjs/src/pro/cex.js +168 -168
- package/dist/cjs/src/pro/coinbase.js +93 -91
- package/dist/cjs/src/pro/coinbaseexchange.js +95 -95
- package/dist/cjs/src/pro/coinbaseinternational.js +111 -111
- package/dist/cjs/src/pro/coincatch.js +150 -143
- package/dist/cjs/src/pro/coincheck.js +21 -21
- package/dist/cjs/src/pro/coinex.js +110 -110
- package/dist/cjs/src/pro/coinone.js +30 -30
- package/dist/cjs/src/pro/cryptocom.js +227 -227
- package/dist/cjs/src/pro/currencycom.js +45 -45
- package/dist/cjs/src/pro/deribit.js +127 -127
- package/dist/cjs/src/pro/exmo.js +66 -66
- package/dist/cjs/src/pro/gate.js +287 -283
- package/dist/cjs/src/pro/gemini.js +74 -74
- package/dist/cjs/src/pro/hashkey.js +87 -85
- package/dist/cjs/src/pro/hitbtc.js +190 -190
- package/dist/cjs/src/pro/hollaex.js +51 -51
- package/dist/cjs/src/pro/htx.js +96 -94
- package/dist/cjs/src/pro/huobijp.js +38 -38
- package/dist/cjs/src/pro/hyperliquid.js +151 -150
- package/dist/cjs/src/pro/idex.js +48 -48
- package/dist/cjs/src/pro/independentreserve.js +19 -19
- package/dist/cjs/src/pro/kraken.js +167 -167
- package/dist/cjs/src/pro/krakenfutures.js +137 -138
- package/dist/cjs/src/pro/kucoin.js +167 -168
- package/dist/cjs/src/pro/kucoinfutures.js +147 -147
- package/dist/cjs/src/pro/lbank.js +95 -95
- package/dist/cjs/src/pro/luno.js +21 -21
- package/dist/cjs/src/pro/mexc.js +102 -103
- package/dist/cjs/src/pro/ndax.js +42 -42
- package/dist/cjs/src/pro/okcoin.js +61 -61
- package/dist/cjs/src/pro/okx.js +332 -330
- package/dist/cjs/src/pro/onetrading.js +71 -71
- package/dist/cjs/src/pro/oxfun.js +193 -191
- package/dist/cjs/src/pro/p2b.js +77 -77
- package/dist/cjs/src/pro/paradex.js +39 -39
- package/dist/cjs/src/pro/phemex.js +94 -94
- package/dist/cjs/src/pro/poloniex.js +171 -171
- package/dist/cjs/src/pro/poloniexfutures.js +62 -62
- package/dist/cjs/src/pro/probit.js +63 -63
- package/dist/cjs/src/pro/upbit.js +80 -80
- package/dist/cjs/src/pro/vertex.js +65 -63
- package/dist/cjs/src/pro/wazirx.js +70 -70
- package/dist/cjs/src/pro/whitebit.js +83 -83
- package/dist/cjs/src/pro/woo.js +106 -104
- package/dist/cjs/src/pro/woofipro.js +105 -103
- package/dist/cjs/src/pro/xt.js +119 -119
- package/dist/cjs/src/probit.js +229 -229
- package/dist/cjs/src/timex.js +198 -197
- package/dist/cjs/src/tokocrypto.js +214 -213
- package/dist/cjs/src/tradeogre.js +92 -91
- package/dist/cjs/src/upbit.js +243 -242
- package/dist/cjs/src/vertex.js +258 -258
- package/dist/cjs/src/wavesexchange.js +176 -172
- package/dist/cjs/src/wazirx.js +168 -168
- package/dist/cjs/src/whitebit.js +361 -361
- package/dist/cjs/src/woo.js +571 -572
- package/dist/cjs/src/woofipro.js +392 -391
- package/dist/cjs/src/xt.js +436 -435
- package/dist/cjs/src/yobit.js +159 -158
- package/dist/cjs/src/zaif.js +103 -103
- package/dist/cjs/src/zonda.js +168 -168
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/ace.d.ts +123 -0
- package/js/src/ace.js +123 -123
- package/js/src/alpaca.d.ts +237 -0
- package/js/src/alpaca.js +237 -237
- package/js/src/ascendex.d.ts +339 -0
- package/js/src/ascendex.js +342 -341
- package/js/src/base/types.d.ts +1 -0
- package/js/src/bigone.d.ts +242 -0
- package/js/src/bigone.js +242 -242
- package/js/src/binance.d.ts +1306 -0
- package/js/src/binance.js +1339 -1291
- package/js/src/bingx.d.ts +639 -0
- package/js/src/bingx.js +639 -639
- package/js/src/bit2c.d.ts +111 -0
- package/js/src/bit2c.js +111 -111
- package/js/src/bitbank.d.ts +142 -0
- package/js/src/bitbank.js +142 -142
- package/js/src/bitbns.d.ts +140 -0
- package/js/src/bitbns.js +140 -140
- package/js/src/bitfinex.d.ts +231 -0
- package/js/src/bitfinex.js +231 -231
- package/js/src/bitfinex2.d.ts +403 -0
- package/js/src/bitfinex2.js +403 -403
- package/js/src/bitflyer.d.ts +184 -0
- package/js/src/bitflyer.js +184 -184
- package/js/src/bitget.d.ts +846 -0
- package/js/src/bitget.js +848 -846
- package/js/src/bithumb.d.ts +125 -0
- package/js/src/bithumb.js +125 -124
- package/js/src/bitmart.d.ts +525 -0
- package/js/src/bitmart.js +525 -525
- package/js/src/bitmex.d.ts +317 -0
- package/js/src/bitmex.js +317 -317
- package/js/src/bitopro.d.ts +221 -0
- package/js/src/bitopro.js +221 -221
- package/js/src/bitrue.d.ts +315 -0
- package/js/src/bitrue.js +315 -315
- package/js/src/bitso.d.ts +220 -0
- package/js/src/bitso.js +220 -220
- package/js/src/bitstamp.d.ts +251 -0
- package/js/src/bitstamp.js +251 -251
- package/js/src/bitteam.d.ts +183 -0
- package/js/src/bitteam.js +183 -183
- package/js/src/bitvavo.d.ts +247 -0
- package/js/src/bitvavo.js +247 -251
- package/js/src/bl3p.d.ts +82 -0
- package/js/src/bl3p.js +82 -82
- package/js/src/blockchaincom.d.ts +211 -0
- package/js/src/blockchaincom.js +211 -211
- package/js/src/blofin.d.ts +332 -0
- package/js/src/blofin.js +332 -331
- package/js/src/btcalpha.d.ts +166 -0
- package/js/src/btcalpha.js +166 -166
- package/js/src/btcbox.d.ts +108 -0
- package/js/src/btcbox.js +108 -108
- package/js/src/btcmarkets.d.ts +198 -0
- package/js/src/btcmarkets.js +198 -198
- package/js/src/btcturk.d.ts +124 -0
- package/js/src/btcturk.js +124 -124
- package/js/src/bybit.d.ts +906 -1
- package/js/src/bybit.js +906 -900
- package/js/src/cex.d.ts +227 -0
- package/js/src/cex.js +227 -226
- package/js/src/coinbase.d.ts +481 -0
- package/js/src/coinbase.js +481 -481
- package/js/src/coinbaseexchange.d.ts +274 -0
- package/js/src/coinbaseexchange.js +274 -274
- package/js/src/coinbaseinternational.d.ts +304 -0
- package/js/src/coinbaseinternational.js +304 -304
- package/js/src/coincatch.d.ts +646 -0
- package/js/src/coincatch.js +650 -650
- package/js/src/coincheck.d.ts +113 -0
- package/js/src/coincheck.js +113 -113
- package/js/src/coinex.d.ts +603 -0
- package/js/src/coinex.js +611 -601
- package/js/src/coinlist.d.ts +304 -0
- package/js/src/coinlist.js +304 -303
- package/js/src/coinmate.d.ts +162 -0
- package/js/src/coinmate.js +162 -161
- package/js/src/coinmetro.d.ts +187 -0
- package/js/src/coinmetro.js +187 -187
- package/js/src/coinone.d.ts +124 -0
- package/js/src/coinone.js +124 -123
- package/js/src/coinsph.d.ts +237 -0
- package/js/src/coinsph.js +237 -237
- package/js/src/coinspot.d.ts +82 -0
- package/js/src/coinspot.js +82 -82
- package/js/src/cryptocom.d.ts +342 -0
- package/js/src/cryptocom.js +342 -341
- package/js/src/currencycom.d.ts +225 -0
- package/js/src/currencycom.js +225 -224
- package/js/src/delta.d.ts +320 -0
- package/js/src/delta.js +320 -320
- package/js/src/deribit.d.ts +411 -0
- package/js/src/deribit.js +411 -408
- package/js/src/digifinex.d.ts +430 -0
- package/js/src/digifinex.js +432 -431
- package/js/src/exmo.d.ts +328 -0
- package/js/src/exmo.js +328 -327
- package/js/src/gate.d.ts +803 -1
- package/js/src/gate.js +830 -791
- package/js/src/gemini.d.ts +199 -0
- package/js/src/gemini.js +199 -198
- package/js/src/hashkey.d.ts +516 -0
- package/js/src/hashkey.js +520 -517
- package/js/src/hitbtc.d.ts +465 -0
- package/js/src/hitbtc.js +465 -462
- package/js/src/hollaex.d.ts +253 -0
- package/js/src/hollaex.js +253 -252
- package/js/src/htx.d.ts +765 -2
- package/js/src/htx.js +791 -848
- package/js/src/huobijp.d.ts +219 -0
- package/js/src/huobijp.js +219 -218
- package/js/src/hyperliquid.d.ts +419 -0
- package/js/src/hyperliquid.js +421 -417
- package/js/src/idex.d.ts +238 -0
- package/js/src/idex.js +238 -237
- package/js/src/independentreserve.d.ts +133 -0
- package/js/src/independentreserve.js +133 -132
- package/js/src/indodax.d.ts +171 -0
- package/js/src/indodax.js +177 -171
- package/js/src/kraken.d.ts +381 -0
- package/js/src/kraken.js +381 -377
- package/js/src/krakenfutures.d.ts +282 -0
- package/js/src/krakenfutures.js +285 -279
- package/js/src/kucoin.d.ts +613 -0
- package/js/src/kucoin.js +632 -622
- package/js/src/kucoinfutures.d.ts +441 -0
- package/js/src/kucoinfutures.js +533 -457
- package/js/src/kuna.d.ts +283 -0
- package/js/src/kuna.js +283 -282
- package/js/src/latoken.d.ts +211 -0
- package/js/src/latoken.js +211 -210
- package/js/src/lbank.d.ts +268 -0
- package/js/src/lbank.js +268 -267
- package/js/src/luno.d.ts +174 -0
- package/js/src/luno.js +174 -173
- package/js/src/lykke.d.ts +172 -0
- package/js/src/lykke.js +172 -171
- package/js/src/mercado.d.ts +123 -0
- package/js/src/mercado.js +123 -122
- package/js/src/mexc.d.ts +647 -0
- package/js/src/mexc.js +650 -646
- package/js/src/ndax.d.ts +229 -0
- package/js/src/ndax.js +229 -228
- package/js/src/novadax.d.ts +230 -0
- package/js/src/novadax.js +230 -229
- package/js/src/oceanex.d.ts +187 -0
- package/js/src/oceanex.js +187 -186
- package/js/src/okcoin.d.ts +286 -0
- package/js/src/okcoin.js +286 -285
- package/js/src/okx.d.ts +907 -0
- package/js/src/okx.js +909 -904
- package/js/src/onetrading.d.ts +218 -0
- package/js/src/onetrading.js +218 -218
- package/js/src/oxfun.d.ts +336 -3
- package/js/src/oxfun.js +335 -334
- package/js/src/p2b.d.ts +154 -0
- package/js/src/p2b.js +154 -154
- package/js/src/paradex.d.ts +241 -0
- package/js/src/paradex.js +249 -244
- package/js/src/paymium.d.ts +101 -0
- package/js/src/paymium.js +101 -101
- package/js/src/phemex.d.ts +366 -0
- package/js/src/phemex.js +388 -390
- package/js/src/poloniex.d.ts +270 -0
- package/js/src/poloniex.js +270 -270
- package/js/src/poloniexfutures.d.ts +250 -0
- package/js/src/poloniexfutures.js +250 -250
- package/js/src/pro/alpaca.d.ts +64 -0
- package/js/src/pro/alpaca.js +64 -64
- package/js/src/pro/ascendex.d.ts +64 -0
- package/js/src/pro/ascendex.js +64 -64
- package/js/src/pro/binance.d.ts +546 -0
- package/js/src/pro/binance.js +546 -543
- package/js/src/pro/bingx.d.ts +116 -0
- package/js/src/pro/bingx.js +116 -116
- package/js/src/pro/bitfinex.d.ts +42 -0
- package/js/src/pro/bitfinex.js +42 -42
- package/js/src/pro/bitfinex2.d.ts +66 -0
- package/js/src/pro/bitfinex2.js +66 -66
- package/js/src/pro/bitget.d.ts +187 -0
- package/js/src/pro/bitget.js +188 -181
- package/js/src/pro/bithumb.d.ts +40 -0
- package/js/src/pro/bithumb.js +40 -40
- package/js/src/pro/bitmart.d.ts +121 -0
- package/js/src/pro/bitmart.js +121 -119
- package/js/src/pro/bitmex.d.ts +135 -0
- package/js/src/pro/bitmex.js +135 -133
- package/js/src/pro/bitopro.d.ts +49 -0
- package/js/src/pro/bitopro.js +49 -49
- package/js/src/pro/bitrue.d.ts +19 -0
- package/js/src/pro/bitrue.js +19 -19
- package/js/src/pro/bitstamp.d.ts +29 -0
- package/js/src/pro/bitstamp.js +29 -29
- package/js/src/pro/bitvavo.d.ts +254 -1
- package/js/src/pro/bitvavo.js +299 -301
- package/js/src/pro/blockchaincom.d.ts +62 -0
- package/js/src/pro/blockchaincom.js +62 -62
- package/js/src/pro/blofin.d.ts +132 -0
- package/js/src/pro/blofin.js +132 -130
- package/js/src/pro/bybit.d.ts +317 -0
- package/js/src/pro/bybit.js +317 -313
- package/js/src/pro/cex.d.ts +168 -0
- package/js/src/pro/cex.js +168 -168
- package/js/src/pro/coinbase.d.ts +93 -0
- package/js/src/pro/coinbase.js +93 -91
- package/js/src/pro/coinbaseexchange.d.ts +95 -0
- package/js/src/pro/coinbaseexchange.js +95 -95
- package/js/src/pro/coinbaseinternational.d.ts +111 -0
- package/js/src/pro/coinbaseinternational.js +111 -111
- package/js/src/pro/coincatch.d.ts +150 -0
- package/js/src/pro/coincatch.js +150 -143
- package/js/src/pro/coincheck.d.ts +21 -0
- package/js/src/pro/coincheck.js +21 -21
- package/js/src/pro/coinex.d.ts +110 -0
- package/js/src/pro/coinex.js +110 -110
- package/js/src/pro/coinone.d.ts +30 -0
- package/js/src/pro/coinone.js +30 -30
- package/js/src/pro/cryptocom.d.ts +227 -0
- package/js/src/pro/cryptocom.js +227 -227
- package/js/src/pro/currencycom.d.ts +45 -0
- package/js/src/pro/currencycom.js +45 -45
- package/js/src/pro/deribit.d.ts +127 -0
- package/js/src/pro/deribit.js +127 -127
- package/js/src/pro/exmo.d.ts +66 -0
- package/js/src/pro/exmo.js +66 -66
- package/js/src/pro/gate.d.ts +287 -0
- package/js/src/pro/gate.js +287 -283
- package/js/src/pro/gemini.d.ts +74 -0
- package/js/src/pro/gemini.js +74 -74
- package/js/src/pro/hashkey.d.ts +87 -0
- package/js/src/pro/hashkey.js +87 -85
- package/js/src/pro/hitbtc.d.ts +190 -0
- package/js/src/pro/hitbtc.js +190 -190
- package/js/src/pro/hollaex.d.ts +51 -0
- package/js/src/pro/hollaex.js +51 -51
- package/js/src/pro/htx.d.ts +96 -0
- package/js/src/pro/htx.js +96 -94
- package/js/src/pro/huobijp.d.ts +38 -0
- package/js/src/pro/huobijp.js +38 -38
- package/js/src/pro/hyperliquid.d.ts +151 -0
- package/js/src/pro/hyperliquid.js +151 -150
- package/js/src/pro/idex.d.ts +48 -0
- package/js/src/pro/idex.js +48 -48
- package/js/src/pro/independentreserve.d.ts +19 -0
- package/js/src/pro/independentreserve.js +19 -19
- package/js/src/pro/kraken.d.ts +167 -0
- package/js/src/pro/kraken.js +167 -167
- package/js/src/pro/krakenfutures.d.ts +137 -0
- package/js/src/pro/krakenfutures.js +137 -138
- package/js/src/pro/kucoin.d.ts +167 -0
- package/js/src/pro/kucoin.js +167 -168
- package/js/src/pro/kucoinfutures.d.ts +147 -0
- package/js/src/pro/kucoinfutures.js +147 -147
- package/js/src/pro/lbank.d.ts +95 -0
- package/js/src/pro/lbank.js +95 -95
- package/js/src/pro/luno.d.ts +21 -0
- package/js/src/pro/luno.js +21 -21
- package/js/src/pro/mexc.d.ts +101 -0
- package/js/src/pro/mexc.js +102 -103
- package/js/src/pro/ndax.d.ts +42 -0
- package/js/src/pro/ndax.js +42 -42
- package/js/src/pro/okcoin.d.ts +61 -0
- package/js/src/pro/okcoin.js +61 -61
- package/js/src/pro/okx.d.ts +332 -0
- package/js/src/pro/okx.js +332 -330
- package/js/src/pro/onetrading.d.ts +71 -0
- package/js/src/pro/onetrading.js +71 -71
- package/js/src/pro/oxfun.d.ts +193 -0
- package/js/src/pro/oxfun.js +193 -191
- package/js/src/pro/p2b.d.ts +77 -0
- package/js/src/pro/p2b.js +77 -77
- package/js/src/pro/paradex.d.ts +39 -0
- package/js/src/pro/paradex.js +39 -39
- package/js/src/pro/phemex.d.ts +94 -0
- package/js/src/pro/phemex.js +94 -94
- package/js/src/pro/poloniex.d.ts +171 -0
- package/js/src/pro/poloniex.js +171 -171
- package/js/src/pro/poloniexfutures.d.ts +62 -0
- package/js/src/pro/poloniexfutures.js +62 -62
- package/js/src/pro/probit.d.ts +63 -0
- package/js/src/pro/probit.js +63 -63
- package/js/src/pro/upbit.d.ts +80 -0
- package/js/src/pro/upbit.js +80 -80
- package/js/src/pro/vertex.d.ts +65 -0
- package/js/src/pro/vertex.js +65 -63
- package/js/src/pro/wazirx.d.ts +70 -0
- package/js/src/pro/wazirx.js +70 -70
- package/js/src/pro/whitebit.d.ts +83 -0
- package/js/src/pro/whitebit.js +83 -83
- package/js/src/pro/woo.d.ts +106 -0
- package/js/src/pro/woo.js +106 -104
- package/js/src/pro/woofipro.d.ts +105 -0
- package/js/src/pro/woofipro.js +105 -103
- package/js/src/pro/xt.d.ts +119 -0
- package/js/src/pro/xt.js +119 -119
- package/js/src/probit.d.ts +229 -0
- package/js/src/probit.js +229 -229
- package/js/src/timex.d.ts +198 -0
- package/js/src/timex.js +198 -197
- package/js/src/tokocrypto.d.ts +214 -0
- package/js/src/tokocrypto.js +214 -213
- package/js/src/tradeogre.d.ts +92 -0
- package/js/src/tradeogre.js +92 -91
- package/js/src/upbit.d.ts +243 -0
- package/js/src/upbit.js +243 -242
- package/js/src/vertex.d.ts +258 -0
- package/js/src/vertex.js +258 -258
- package/js/src/wavesexchange.d.ts +176 -0
- package/js/src/wavesexchange.js +176 -172
- package/js/src/wazirx.d.ts +168 -0
- package/js/src/wazirx.js +168 -168
- package/js/src/whitebit.d.ts +361 -0
- package/js/src/whitebit.js +361 -361
- package/js/src/woo.d.ts +571 -0
- package/js/src/woo.js +571 -572
- package/js/src/woofipro.d.ts +392 -0
- package/js/src/woofipro.js +392 -391
- package/js/src/xt.d.ts +439 -4
- package/js/src/xt.js +436 -435
- package/js/src/yobit.d.ts +159 -0
- package/js/src/yobit.js +159 -158
- package/js/src/zaif.d.ts +103 -0
- package/js/src/zaif.js +103 -103
- package/js/src/zonda.d.ts +168 -0
- package/js/src/zonda.js +168 -168
- package/package.json +1 -1
package/dist/cjs/src/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 = {
|
|
@@ -1114,37 +1114,33 @@ class bitvavo extends bitvavo$1 {
|
|
|
1114
1114
|
if (postOnly) {
|
|
1115
1115
|
request['postOnly'] = true;
|
|
1116
1116
|
}
|
|
1117
|
-
const clientOrderId = this.safeString(params, 'clientOrderId');
|
|
1118
|
-
if (clientOrderId === undefined) {
|
|
1119
|
-
request['clientOrderId'] = this.uuid22();
|
|
1120
|
-
}
|
|
1121
1117
|
return this.extend(request, params);
|
|
1122
1118
|
}
|
|
1119
|
+
/**
|
|
1120
|
+
* @method
|
|
1121
|
+
* @name bitvavo#createOrder
|
|
1122
|
+
* @description create a trade order
|
|
1123
|
+
* @see https://docs.bitvavo.com/#tag/Orders/paths/~1order/post
|
|
1124
|
+
* @param {string} symbol unified symbol of the market to create an order in
|
|
1125
|
+
* @param {string} type 'market' or 'limit'
|
|
1126
|
+
* @param {string} side 'buy' or 'sell'
|
|
1127
|
+
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1128
|
+
* @param {float} price the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1129
|
+
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
1130
|
+
* @param {string} [params.timeInForce] "GTC", "IOC", or "PO"
|
|
1131
|
+
* @param {float} [params.stopPrice] The price at which a trigger order is triggered at
|
|
1132
|
+
* @param {float} [params.triggerPrice] The price at which a trigger order is triggered at
|
|
1133
|
+
* @param {bool} [params.postOnly] If true, the order will only be posted to the order book and not executed immediately
|
|
1134
|
+
* @param {float} [params.stopLossPrice] The price at which a stop loss order is triggered at
|
|
1135
|
+
* @param {float} [params.takeProfitPrice] The price at which a take profit order is triggered at
|
|
1136
|
+
* @param {string} [params.triggerType] "price"
|
|
1137
|
+
* @param {string} [params.triggerReference] "lastTrade", "bestBid", "bestAsk", "midPrice" Only for stop orders: Use this to determine which parameter will trigger the order
|
|
1138
|
+
* @param {string} [params.selfTradePrevention] "decrementAndCancel", "cancelOldest", "cancelNewest", "cancelBoth"
|
|
1139
|
+
* @param {bool} [params.disableMarketProtection] don't cancel if the next fill price is 10% worse than the best fill price
|
|
1140
|
+
* @param {bool} [params.responseRequired] Set this to 'false' when only an acknowledgement of success or failure is required, this is faster.
|
|
1141
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1142
|
+
*/
|
|
1123
1143
|
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
1144
|
await this.loadMarkets();
|
|
1149
1145
|
const market = this.market(symbol);
|
|
1150
1146
|
const request = this.createOrderRequest(symbol, type, side, amount, price, params);
|
|
@@ -1220,21 +1216,21 @@ class bitvavo extends bitvavo$1 {
|
|
|
1220
1216
|
request['market'] = market['id'];
|
|
1221
1217
|
return request;
|
|
1222
1218
|
}
|
|
1219
|
+
/**
|
|
1220
|
+
* @method
|
|
1221
|
+
* @name bitvavo#editOrder
|
|
1222
|
+
* @description edit a trade order
|
|
1223
|
+
* @see https://docs.bitvavo.com/#tag/Orders/paths/~1order/put
|
|
1224
|
+
* @param {string} id cancel order id
|
|
1225
|
+
* @param {string} symbol unified symbol of the market to create an order in
|
|
1226
|
+
* @param {string} type 'market' or 'limit'
|
|
1227
|
+
* @param {string} side 'buy' or 'sell'
|
|
1228
|
+
* @param {float} [amount] how much of currency you want to trade in units of base currency
|
|
1229
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1230
|
+
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
1231
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1232
|
+
*/
|
|
1223
1233
|
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
1234
|
await this.loadMarkets();
|
|
1239
1235
|
const market = this.market(symbol);
|
|
1240
1236
|
const request = this.editOrderRequest(id, symbol, type, side, amount, price, params);
|
|
@@ -1255,18 +1251,18 @@ class bitvavo extends bitvavo$1 {
|
|
|
1255
1251
|
}
|
|
1256
1252
|
return this.extend(request, params);
|
|
1257
1253
|
}
|
|
1254
|
+
/**
|
|
1255
|
+
* @method
|
|
1256
|
+
* @name bitvavo#cancelOrder
|
|
1257
|
+
* @see https://docs.bitvavo.com/#tag/Orders/paths/~1order/delete
|
|
1258
|
+
* @description cancels an open order
|
|
1259
|
+
* @see https://docs.bitvavo.com/#tag/Trading-endpoints/paths/~1order/delete
|
|
1260
|
+
* @param {string} id order id
|
|
1261
|
+
* @param {string} symbol unified symbol of the market the order was made in
|
|
1262
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1263
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1264
|
+
*/
|
|
1258
1265
|
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
1266
|
await this.loadMarkets();
|
|
1271
1267
|
const market = this.market(symbol);
|
|
1272
1268
|
const request = this.cancelOrderRequest(id, symbol, params);
|
|
@@ -1278,16 +1274,16 @@ class bitvavo extends bitvavo$1 {
|
|
|
1278
1274
|
//
|
|
1279
1275
|
return this.parseOrder(response, market);
|
|
1280
1276
|
}
|
|
1277
|
+
/**
|
|
1278
|
+
* @method
|
|
1279
|
+
* @name bitvavo#cancelAllOrders
|
|
1280
|
+
* @see https://docs.bitvavo.com/#tag/Orders/paths/~1orders/delete
|
|
1281
|
+
* @description cancel all open orders
|
|
1282
|
+
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
1283
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1284
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1285
|
+
*/
|
|
1281
1286
|
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
1287
|
await this.loadMarkets();
|
|
1292
1288
|
const request = {};
|
|
1293
1289
|
let market = undefined;
|
|
@@ -1305,17 +1301,17 @@ class bitvavo extends bitvavo$1 {
|
|
|
1305
1301
|
//
|
|
1306
1302
|
return this.parseOrders(response, market);
|
|
1307
1303
|
}
|
|
1304
|
+
/**
|
|
1305
|
+
* @method
|
|
1306
|
+
* @name bitvavo#fetchOrder
|
|
1307
|
+
* @description fetches information on an order made by the user
|
|
1308
|
+
* @see https://docs.bitvavo.com/#tag/Trading-endpoints/paths/~1order/get
|
|
1309
|
+
* @param {string} id the order id
|
|
1310
|
+
* @param {string} symbol unified symbol of the market the order was made in
|
|
1311
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1312
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1313
|
+
*/
|
|
1308
1314
|
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
1315
|
if (symbol === undefined) {
|
|
1320
1316
|
throw new errors.ArgumentsRequired(this.id + ' fetchOrder() requires a symbol argument');
|
|
1321
1317
|
}
|
|
@@ -1384,20 +1380,20 @@ class bitvavo extends bitvavo$1 {
|
|
|
1384
1380
|
[request, params] = this.handleUntilOption('end', request, params);
|
|
1385
1381
|
return this.extend(request, params);
|
|
1386
1382
|
}
|
|
1383
|
+
/**
|
|
1384
|
+
* @method
|
|
1385
|
+
* @name bitvavo#fetchOrders
|
|
1386
|
+
* @see https://docs.bitvavo.com/#tag/Trading-endpoints/paths/~1orders/get
|
|
1387
|
+
* @description fetches information on multiple orders made by the user
|
|
1388
|
+
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1389
|
+
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1390
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1391
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1392
|
+
* @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)
|
|
1393
|
+
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
1394
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1395
|
+
*/
|
|
1387
1396
|
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
1397
|
if (symbol === undefined) {
|
|
1402
1398
|
throw new errors.ArgumentsRequired(this.id + ' fetchOrders() requires a symbol argument');
|
|
1403
1399
|
}
|
|
@@ -1448,17 +1444,17 @@ class bitvavo extends bitvavo$1 {
|
|
|
1448
1444
|
//
|
|
1449
1445
|
return this.parseOrders(response, market, since, limit);
|
|
1450
1446
|
}
|
|
1447
|
+
/**
|
|
1448
|
+
* @method
|
|
1449
|
+
* @name bitvavo#fetchOpenOrders
|
|
1450
|
+
* @description fetch all unfilled currently open orders
|
|
1451
|
+
* @param {string} symbol unified market symbol
|
|
1452
|
+
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1453
|
+
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1454
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1455
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1456
|
+
*/
|
|
1451
1457
|
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
1458
|
await this.loadMarkets();
|
|
1463
1459
|
const request = {
|
|
1464
1460
|
// "market": market["id"], // rate limit 25 without a market, 1 with market specified
|
|
@@ -1648,20 +1644,20 @@ class bitvavo extends bitvavo$1 {
|
|
|
1648
1644
|
[request, params] = this.handleUntilOption('end', request, params);
|
|
1649
1645
|
return this.extend(request, params);
|
|
1650
1646
|
}
|
|
1647
|
+
/**
|
|
1648
|
+
* @method
|
|
1649
|
+
* @name bitvavo#fetchMyTrades
|
|
1650
|
+
* @see https://docs.bitvavo.com/#tag/Trades/paths/~1trades/get
|
|
1651
|
+
* @description fetch all trades made by the user
|
|
1652
|
+
* @param {string} symbol unified market symbol
|
|
1653
|
+
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1654
|
+
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1655
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1656
|
+
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
1657
|
+
* @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)
|
|
1658
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1659
|
+
*/
|
|
1651
1660
|
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
1661
|
if (symbol === undefined) {
|
|
1666
1662
|
throw new errors.ArgumentsRequired(this.id + ' fetchMyTrades() requires a symbol argument');
|
|
1667
1663
|
}
|
|
@@ -1707,18 +1703,18 @@ class bitvavo extends bitvavo$1 {
|
|
|
1707
1703
|
}
|
|
1708
1704
|
return this.extend(request, params);
|
|
1709
1705
|
}
|
|
1706
|
+
/**
|
|
1707
|
+
* @method
|
|
1708
|
+
* @name bitvavo#withdraw
|
|
1709
|
+
* @description make a withdrawal
|
|
1710
|
+
* @param {string} code unified currency code
|
|
1711
|
+
* @param {float} amount the amount to withdraw
|
|
1712
|
+
* @param {string} address the address to withdraw to
|
|
1713
|
+
* @param {string} tag
|
|
1714
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1715
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1716
|
+
*/
|
|
1710
1717
|
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
1718
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
1723
1719
|
this.checkAddress(address);
|
|
1724
1720
|
await this.loadMarkets();
|
|
@@ -1754,18 +1750,18 @@ class bitvavo extends bitvavo$1 {
|
|
|
1754
1750
|
}
|
|
1755
1751
|
return this.extend(request, params);
|
|
1756
1752
|
}
|
|
1753
|
+
/**
|
|
1754
|
+
* @method
|
|
1755
|
+
* @name bitvavo#fetchWithdrawals
|
|
1756
|
+
* @see https://docs.bitvavo.com/#tag/Account/paths/~1withdrawalHistory/get
|
|
1757
|
+
* @description fetch all withdrawals made from an account
|
|
1758
|
+
* @param {string} code unified currency code
|
|
1759
|
+
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
1760
|
+
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
1761
|
+
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
1762
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1763
|
+
*/
|
|
1757
1764
|
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
1765
|
await this.loadMarkets();
|
|
1770
1766
|
const request = this.fetchWithdrawalsRequest(code, since, limit, params);
|
|
1771
1767
|
let currency = undefined;
|
|
@@ -1809,18 +1805,18 @@ class bitvavo extends bitvavo$1 {
|
|
|
1809
1805
|
}
|
|
1810
1806
|
return this.extend(request, params);
|
|
1811
1807
|
}
|
|
1808
|
+
/**
|
|
1809
|
+
* @method
|
|
1810
|
+
* @name bitvavo#fetchDeposits
|
|
1811
|
+
* @see https://docs.bitvavo.com/#tag/Account/paths/~1depositHistory/get
|
|
1812
|
+
* @description fetch all deposits made to an account
|
|
1813
|
+
* @param {string} code unified currency code
|
|
1814
|
+
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
1815
|
+
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
1816
|
+
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
1817
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1818
|
+
*/
|
|
1812
1819
|
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
1820
|
await this.loadMarkets();
|
|
1825
1821
|
const request = this.fetchDepositsRequest(code, since, limit, params);
|
|
1826
1822
|
let currency = undefined;
|
|
@@ -1980,16 +1976,16 @@ class bitvavo extends bitvavo$1 {
|
|
|
1980
1976
|
};
|
|
1981
1977
|
return result;
|
|
1982
1978
|
}
|
|
1979
|
+
/**
|
|
1980
|
+
* @method
|
|
1981
|
+
* @name bitvavo#fetchDepositWithdrawFees
|
|
1982
|
+
* @description fetch deposit and withdraw fees
|
|
1983
|
+
* @see https://docs.bitvavo.com/#tag/General/paths/~1assets/get
|
|
1984
|
+
* @param {string[]|undefined} codes list of unified currency codes
|
|
1985
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1986
|
+
* @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
1987
|
+
*/
|
|
1983
1988
|
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
1989
|
await this.loadMarkets();
|
|
1994
1990
|
const response = await this.publicGetAssets(params);
|
|
1995
1991
|
//
|