ccxt 4.4.29 → 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 +279 -227
- package/dist/cjs/src/ascendex.js +342 -341
- package/dist/cjs/src/bigone.js +242 -242
- package/dist/cjs/src/binance.js +1347 -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 +152 -152
- package/dist/cjs/src/bitfinex.js +240 -240
- 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 +578 -578
- 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 +418 -411
- 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 +521 -413
- 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 +269 -268
- 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 +134 -131
- 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/abstract/alpaca.d.ts +1 -0
- package/js/src/abstract/binance.d.ts +9 -0
- package/js/src/abstract/binancecoinm.d.ts +9 -0
- package/js/src/abstract/binanceus.d.ts +9 -0
- package/js/src/abstract/binanceusdm.d.ts +9 -0
- package/js/src/ace.d.ts +123 -0
- package/js/src/ace.js +123 -123
- package/js/src/alpaca.d.ts +239 -0
- package/js/src/alpaca.js +279 -227
- 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 +1347 -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 +152 -152
- package/js/src/bitfinex.d.ts +231 -0
- package/js/src/bitfinex.js +240 -240
- 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 +578 -578
- 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 +418 -411
- 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 +422 -1
- package/js/src/hyperliquid.js +521 -413
- 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 +269 -268
- 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 +134 -131
- 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/js/src/bitvavo.js
CHANGED
|
@@ -298,29 +298,29 @@ export default class bitvavo extends Exchange {
|
|
|
298
298
|
// Prices submit with a precision larger than 5 will be cut by the API.
|
|
299
299
|
return this.decimalToPrecision(price, TRUNCATE, 8, DECIMAL_PLACES);
|
|
300
300
|
}
|
|
301
|
+
/**
|
|
302
|
+
* @method
|
|
303
|
+
* @name bitvavo#fetchTime
|
|
304
|
+
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
305
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
306
|
+
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
307
|
+
*/
|
|
301
308
|
async fetchTime(params = {}) {
|
|
302
|
-
/**
|
|
303
|
-
* @method
|
|
304
|
-
* @name bitvavo#fetchTime
|
|
305
|
-
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
306
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
307
|
-
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
308
|
-
*/
|
|
309
309
|
const response = await this.publicGetTime(params);
|
|
310
310
|
//
|
|
311
311
|
// { "time": 1590379519148 }
|
|
312
312
|
//
|
|
313
313
|
return this.safeInteger(response, 'time');
|
|
314
314
|
}
|
|
315
|
+
/**
|
|
316
|
+
* @method
|
|
317
|
+
* @name bitvavo#fetchMarkets
|
|
318
|
+
* @see https://docs.bitvavo.com/#tag/General/paths/~1markets/get
|
|
319
|
+
* @description retrieves data on all markets for bitvavo
|
|
320
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
321
|
+
* @returns {object[]} an array of objects representing market data
|
|
322
|
+
*/
|
|
315
323
|
async fetchMarkets(params = {}) {
|
|
316
|
-
/**
|
|
317
|
-
* @method
|
|
318
|
-
* @name bitvavo#fetchMarkets
|
|
319
|
-
* @see https://docs.bitvavo.com/#tag/General/paths/~1markets/get
|
|
320
|
-
* @description retrieves data on all markets for bitvavo
|
|
321
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
322
|
-
* @returns {object[]} an array of objects representing market data
|
|
323
|
-
*/
|
|
324
324
|
const response = await this.publicGetMarkets(params);
|
|
325
325
|
//
|
|
326
326
|
// [
|
|
@@ -407,15 +407,15 @@ export default class bitvavo extends Exchange {
|
|
|
407
407
|
}
|
|
408
408
|
return result;
|
|
409
409
|
}
|
|
410
|
+
/**
|
|
411
|
+
* @method
|
|
412
|
+
* @name bitvavo#fetchCurrencies
|
|
413
|
+
* @see https://docs.bitvavo.com/#tag/General/paths/~1assets/get
|
|
414
|
+
* @description fetches all available currencies on an exchange
|
|
415
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
416
|
+
* @returns {object} an associative dictionary of currencies
|
|
417
|
+
*/
|
|
410
418
|
async fetchCurrencies(params = {}) {
|
|
411
|
-
/**
|
|
412
|
-
* @method
|
|
413
|
-
* @name bitvavo#fetchCurrencies
|
|
414
|
-
* @see https://docs.bitvavo.com/#tag/General/paths/~1assets/get
|
|
415
|
-
* @description fetches all available currencies on an exchange
|
|
416
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
417
|
-
* @returns {object} an associative dictionary of currencies
|
|
418
|
-
*/
|
|
419
419
|
const response = await this.publicGetAssets(params);
|
|
420
420
|
//
|
|
421
421
|
// [
|
|
@@ -553,16 +553,16 @@ export default class bitvavo extends Exchange {
|
|
|
553
553
|
this.currencies = this.deepExtend(this.currencies, result);
|
|
554
554
|
return result;
|
|
555
555
|
}
|
|
556
|
+
/**
|
|
557
|
+
* @method
|
|
558
|
+
* @name bitvavo#fetchTicker
|
|
559
|
+
* @see https://docs.bitvavo.com/#tag/Market-Data/paths/~1ticker~124h/get
|
|
560
|
+
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
561
|
+
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
562
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
563
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
564
|
+
*/
|
|
556
565
|
async fetchTicker(symbol, params = {}) {
|
|
557
|
-
/**
|
|
558
|
-
* @method
|
|
559
|
-
* @name bitvavo#fetchTicker
|
|
560
|
-
* @see https://docs.bitvavo.com/#tag/Market-Data/paths/~1ticker~124h/get
|
|
561
|
-
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
562
|
-
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
563
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
564
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
565
|
-
*/
|
|
566
566
|
await this.loadMarkets();
|
|
567
567
|
const market = this.market(symbol);
|
|
568
568
|
const request = {
|
|
@@ -636,15 +636,15 @@ export default class bitvavo extends Exchange {
|
|
|
636
636
|
'info': ticker,
|
|
637
637
|
}, market);
|
|
638
638
|
}
|
|
639
|
+
/**
|
|
640
|
+
* @method
|
|
641
|
+
* @name bitvavo#fetchTickers
|
|
642
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
643
|
+
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
644
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
645
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
646
|
+
*/
|
|
639
647
|
async fetchTickers(symbols = undefined, params = {}) {
|
|
640
|
-
/**
|
|
641
|
-
* @method
|
|
642
|
-
* @name bitvavo#fetchTickers
|
|
643
|
-
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
644
|
-
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
645
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
646
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
647
|
-
*/
|
|
648
648
|
await this.loadMarkets();
|
|
649
649
|
const response = await this.publicGetTicker24h(params);
|
|
650
650
|
//
|
|
@@ -667,20 +667,20 @@ export default class bitvavo extends Exchange {
|
|
|
667
667
|
//
|
|
668
668
|
return this.parseTickers(response, symbols);
|
|
669
669
|
}
|
|
670
|
+
/**
|
|
671
|
+
* @method
|
|
672
|
+
* @name bitvavo#fetchTrades
|
|
673
|
+
* @see https://docs.bitvavo.com/#tag/Market-Data/paths/~1{market}~1trades/get
|
|
674
|
+
* @description get the list of most recent trades for a particular symbol
|
|
675
|
+
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
676
|
+
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
677
|
+
* @param {int} [limit] the maximum amount of trades to fetch
|
|
678
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
679
|
+
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
680
|
+
* @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)
|
|
681
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
682
|
+
*/
|
|
670
683
|
async fetchTrades(symbol, since = undefined, limit = undefined, params = {}) {
|
|
671
|
-
/**
|
|
672
|
-
* @method
|
|
673
|
-
* @name bitvavo#fetchTrades
|
|
674
|
-
* @see https://docs.bitvavo.com/#tag/Market-Data/paths/~1{market}~1trades/get
|
|
675
|
-
* @description get the list of most recent trades for a particular symbol
|
|
676
|
-
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
677
|
-
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
678
|
-
* @param {int} [limit] the maximum amount of trades to fetch
|
|
679
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
680
|
-
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
681
|
-
* @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)
|
|
682
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
683
|
-
*/
|
|
684
684
|
await this.loadMarkets();
|
|
685
685
|
const market = this.market(symbol);
|
|
686
686
|
let paginate = false;
|
|
@@ -813,15 +813,15 @@ export default class bitvavo extends Exchange {
|
|
|
813
813
|
'fee': fee,
|
|
814
814
|
}, market);
|
|
815
815
|
}
|
|
816
|
+
/**
|
|
817
|
+
* @method
|
|
818
|
+
* @name bitvavo#fetchTradingFees
|
|
819
|
+
* @see https://docs.bitvavo.com/#tag/Account/paths/~1account/get
|
|
820
|
+
* @description fetch the trading fees for multiple markets
|
|
821
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
822
|
+
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
823
|
+
*/
|
|
816
824
|
async fetchTradingFees(params = {}) {
|
|
817
|
-
/**
|
|
818
|
-
* @method
|
|
819
|
-
* @name bitvavo#fetchTradingFees
|
|
820
|
-
* @see https://docs.bitvavo.com/#tag/Account/paths/~1account/get
|
|
821
|
-
* @description fetch the trading fees for multiple markets
|
|
822
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
823
|
-
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
824
|
-
*/
|
|
825
825
|
await this.loadMarkets();
|
|
826
826
|
const response = await this.privateGetAccount(params);
|
|
827
827
|
//
|
|
@@ -862,17 +862,17 @@ export default class bitvavo extends Exchange {
|
|
|
862
862
|
}
|
|
863
863
|
return result;
|
|
864
864
|
}
|
|
865
|
+
/**
|
|
866
|
+
* @method
|
|
867
|
+
* @name bitvavo#fetchOrderBook
|
|
868
|
+
* @see https://docs.bitvavo.com/#tag/Market-Data/paths/~1{market}~1book/get
|
|
869
|
+
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
870
|
+
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
871
|
+
* @param {int} [limit] the maximum amount of order book entries to return
|
|
872
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
873
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
874
|
+
*/
|
|
865
875
|
async fetchOrderBook(symbol, limit = undefined, params = {}) {
|
|
866
|
-
/**
|
|
867
|
-
* @method
|
|
868
|
-
* @name bitvavo#fetchOrderBook
|
|
869
|
-
* @see https://docs.bitvavo.com/#tag/Market-Data/paths/~1{market}~1book/get
|
|
870
|
-
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
871
|
-
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
872
|
-
* @param {int} [limit] the maximum amount of order book entries to return
|
|
873
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
874
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
875
|
-
*/
|
|
876
876
|
await this.loadMarkets();
|
|
877
877
|
const market = this.market(symbol);
|
|
878
878
|
const request = {
|
|
@@ -949,21 +949,21 @@ export default class bitvavo extends Exchange {
|
|
|
949
949
|
}
|
|
950
950
|
return this.extend(request, params);
|
|
951
951
|
}
|
|
952
|
+
/**
|
|
953
|
+
* @method
|
|
954
|
+
* @name bitvavo#fetchOHLCV
|
|
955
|
+
* @see https://docs.bitvavo.com/#tag/Market-Data/paths/~1{market}~1candles/get
|
|
956
|
+
* @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
957
|
+
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
958
|
+
* @param {string} timeframe the length of time each candle represents
|
|
959
|
+
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
960
|
+
* @param {int} [limit] the maximum amount of candles to fetch
|
|
961
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
962
|
+
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
963
|
+
* @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)
|
|
964
|
+
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
965
|
+
*/
|
|
952
966
|
async fetchOHLCV(symbol, timeframe = '1m', since = undefined, limit = undefined, params = {}) {
|
|
953
|
-
/**
|
|
954
|
-
* @method
|
|
955
|
-
* @name bitvavo#fetchOHLCV
|
|
956
|
-
* @see https://docs.bitvavo.com/#tag/Market-Data/paths/~1{market}~1candles/get
|
|
957
|
-
* @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
958
|
-
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
959
|
-
* @param {string} timeframe the length of time each candle represents
|
|
960
|
-
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
961
|
-
* @param {int} [limit] the maximum amount of candles to fetch
|
|
962
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
963
|
-
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
964
|
-
* @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)
|
|
965
|
-
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
966
|
-
*/
|
|
967
967
|
await this.loadMarkets();
|
|
968
968
|
const market = this.market(symbol);
|
|
969
969
|
let paginate = false;
|
|
@@ -999,15 +999,15 @@ export default class bitvavo extends Exchange {
|
|
|
999
999
|
}
|
|
1000
1000
|
return this.safeBalance(result);
|
|
1001
1001
|
}
|
|
1002
|
+
/**
|
|
1003
|
+
* @method
|
|
1004
|
+
* @name bitvavo#fetchBalance
|
|
1005
|
+
* @see https://docs.bitvavo.com/#tag/Account/paths/~1balance/get
|
|
1006
|
+
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
1007
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1008
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
1009
|
+
*/
|
|
1002
1010
|
async fetchBalance(params = {}) {
|
|
1003
|
-
/**
|
|
1004
|
-
* @method
|
|
1005
|
-
* @name bitvavo#fetchBalance
|
|
1006
|
-
* @see https://docs.bitvavo.com/#tag/Account/paths/~1balance/get
|
|
1007
|
-
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
1008
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1009
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
1010
|
-
*/
|
|
1011
1011
|
await this.loadMarkets();
|
|
1012
1012
|
const response = await this.privateGetBalance(params);
|
|
1013
1013
|
//
|
|
@@ -1021,15 +1021,15 @@ export default class bitvavo extends Exchange {
|
|
|
1021
1021
|
//
|
|
1022
1022
|
return this.parseBalance(response);
|
|
1023
1023
|
}
|
|
1024
|
+
/**
|
|
1025
|
+
* @method
|
|
1026
|
+
* @name bitvavo#fetchDepositAddress
|
|
1027
|
+
* @description fetch the deposit address for a currency associated with this account
|
|
1028
|
+
* @param {string} code unified currency code
|
|
1029
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1030
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1031
|
+
*/
|
|
1024
1032
|
async fetchDepositAddress(code, params = {}) {
|
|
1025
|
-
/**
|
|
1026
|
-
* @method
|
|
1027
|
-
* @name bitvavo#fetchDepositAddress
|
|
1028
|
-
* @description fetch the deposit address for a currency associated with this account
|
|
1029
|
-
* @param {string} code unified currency code
|
|
1030
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1031
|
-
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1032
|
-
*/
|
|
1033
1033
|
await this.loadMarkets();
|
|
1034
1034
|
const currency = this.currency(code);
|
|
1035
1035
|
const request = {
|
|
@@ -1123,31 +1123,31 @@ export default class bitvavo extends Exchange {
|
|
|
1123
1123
|
}
|
|
1124
1124
|
return this.extend(request, params);
|
|
1125
1125
|
}
|
|
1126
|
+
/**
|
|
1127
|
+
* @method
|
|
1128
|
+
* @name bitvavo#createOrder
|
|
1129
|
+
* @description create a trade order
|
|
1130
|
+
* @see https://docs.bitvavo.com/#tag/Orders/paths/~1order/post
|
|
1131
|
+
* @param {string} symbol unified symbol of the market to create an order in
|
|
1132
|
+
* @param {string} type 'market' or 'limit'
|
|
1133
|
+
* @param {string} side 'buy' or 'sell'
|
|
1134
|
+
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1135
|
+
* @param {float} price the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1136
|
+
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
1137
|
+
* @param {string} [params.timeInForce] "GTC", "IOC", or "PO"
|
|
1138
|
+
* @param {float} [params.stopPrice] The price at which a trigger order is triggered at
|
|
1139
|
+
* @param {float} [params.triggerPrice] The price at which a trigger order is triggered at
|
|
1140
|
+
* @param {bool} [params.postOnly] If true, the order will only be posted to the order book and not executed immediately
|
|
1141
|
+
* @param {float} [params.stopLossPrice] The price at which a stop loss order is triggered at
|
|
1142
|
+
* @param {float} [params.takeProfitPrice] The price at which a take profit order is triggered at
|
|
1143
|
+
* @param {string} [params.triggerType] "price"
|
|
1144
|
+
* @param {string} [params.triggerReference] "lastTrade", "bestBid", "bestAsk", "midPrice" Only for stop orders: Use this to determine which parameter will trigger the order
|
|
1145
|
+
* @param {string} [params.selfTradePrevention] "decrementAndCancel", "cancelOldest", "cancelNewest", "cancelBoth"
|
|
1146
|
+
* @param {bool} [params.disableMarketProtection] don't cancel if the next fill price is 10% worse than the best fill price
|
|
1147
|
+
* @param {bool} [params.responseRequired] Set this to 'false' when only an acknowledgement of success or failure is required, this is faster.
|
|
1148
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1149
|
+
*/
|
|
1126
1150
|
async createOrder(symbol, type, side, amount, price = undefined, params = {}) {
|
|
1127
|
-
/**
|
|
1128
|
-
* @method
|
|
1129
|
-
* @name bitvavo#createOrder
|
|
1130
|
-
* @description create a trade order
|
|
1131
|
-
* @see https://docs.bitvavo.com/#tag/Orders/paths/~1order/post
|
|
1132
|
-
* @param {string} symbol unified symbol of the market to create an order in
|
|
1133
|
-
* @param {string} type 'market' or 'limit'
|
|
1134
|
-
* @param {string} side 'buy' or 'sell'
|
|
1135
|
-
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1136
|
-
* @param {float} price the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1137
|
-
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
1138
|
-
* @param {string} [params.timeInForce] "GTC", "IOC", or "PO"
|
|
1139
|
-
* @param {float} [params.stopPrice] The price at which a trigger order is triggered at
|
|
1140
|
-
* @param {float} [params.triggerPrice] The price at which a trigger order is triggered at
|
|
1141
|
-
* @param {bool} [params.postOnly] If true, the order will only be posted to the order book and not executed immediately
|
|
1142
|
-
* @param {float} [params.stopLossPrice] The price at which a stop loss order is triggered at
|
|
1143
|
-
* @param {float} [params.takeProfitPrice] The price at which a take profit order is triggered at
|
|
1144
|
-
* @param {string} [params.triggerType] "price"
|
|
1145
|
-
* @param {string} [params.triggerReference] "lastTrade", "bestBid", "bestAsk", "midPrice" Only for stop orders: Use this to determine which parameter will trigger the order
|
|
1146
|
-
* @param {string} [params.selfTradePrevention] "decrementAndCancel", "cancelOldest", "cancelNewest", "cancelBoth"
|
|
1147
|
-
* @param {bool} [params.disableMarketProtection] don't cancel if the next fill price is 10% worse than the best fill price
|
|
1148
|
-
* @param {bool} [params.responseRequired] Set this to 'false' when only an acknowledgement of success or failure is required, this is faster.
|
|
1149
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1150
|
-
*/
|
|
1151
1151
|
await this.loadMarkets();
|
|
1152
1152
|
const market = this.market(symbol);
|
|
1153
1153
|
const request = this.createOrderRequest(symbol, type, side, amount, price, params);
|
|
@@ -1223,21 +1223,21 @@ export default class bitvavo extends Exchange {
|
|
|
1223
1223
|
request['market'] = market['id'];
|
|
1224
1224
|
return request;
|
|
1225
1225
|
}
|
|
1226
|
+
/**
|
|
1227
|
+
* @method
|
|
1228
|
+
* @name bitvavo#editOrder
|
|
1229
|
+
* @description edit a trade order
|
|
1230
|
+
* @see https://docs.bitvavo.com/#tag/Orders/paths/~1order/put
|
|
1231
|
+
* @param {string} id cancel order id
|
|
1232
|
+
* @param {string} symbol unified symbol of the market to create an order in
|
|
1233
|
+
* @param {string} type 'market' or 'limit'
|
|
1234
|
+
* @param {string} side 'buy' or 'sell'
|
|
1235
|
+
* @param {float} [amount] how much of currency you want to trade in units of base currency
|
|
1236
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1237
|
+
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
1238
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1239
|
+
*/
|
|
1226
1240
|
async editOrder(id, symbol, type, side, amount = undefined, price = undefined, params = {}) {
|
|
1227
|
-
/**
|
|
1228
|
-
* @method
|
|
1229
|
-
* @name bitvavo#editOrder
|
|
1230
|
-
* @description edit a trade order
|
|
1231
|
-
* @see https://docs.bitvavo.com/#tag/Orders/paths/~1order/put
|
|
1232
|
-
* @param {string} id cancel order id
|
|
1233
|
-
* @param {string} symbol unified symbol of the market to create an order in
|
|
1234
|
-
* @param {string} type 'market' or 'limit'
|
|
1235
|
-
* @param {string} side 'buy' or 'sell'
|
|
1236
|
-
* @param {float} [amount] how much of currency you want to trade in units of base currency
|
|
1237
|
-
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1238
|
-
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
1239
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1240
|
-
*/
|
|
1241
1241
|
await this.loadMarkets();
|
|
1242
1242
|
const market = this.market(symbol);
|
|
1243
1243
|
const request = this.editOrderRequest(id, symbol, type, side, amount, price, params);
|
|
@@ -1258,18 +1258,18 @@ export default class bitvavo extends Exchange {
|
|
|
1258
1258
|
}
|
|
1259
1259
|
return this.extend(request, params);
|
|
1260
1260
|
}
|
|
1261
|
+
/**
|
|
1262
|
+
* @method
|
|
1263
|
+
* @name bitvavo#cancelOrder
|
|
1264
|
+
* @see https://docs.bitvavo.com/#tag/Orders/paths/~1order/delete
|
|
1265
|
+
* @description cancels an open order
|
|
1266
|
+
* @see https://docs.bitvavo.com/#tag/Trading-endpoints/paths/~1order/delete
|
|
1267
|
+
* @param {string} id order id
|
|
1268
|
+
* @param {string} symbol unified symbol of the market the order was made in
|
|
1269
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1270
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1271
|
+
*/
|
|
1261
1272
|
async cancelOrder(id, symbol = undefined, params = {}) {
|
|
1262
|
-
/**
|
|
1263
|
-
* @method
|
|
1264
|
-
* @name bitvavo#cancelOrder
|
|
1265
|
-
* @see https://docs.bitvavo.com/#tag/Orders/paths/~1order/delete
|
|
1266
|
-
* @description cancels an open order
|
|
1267
|
-
* @see https://docs.bitvavo.com/#tag/Trading-endpoints/paths/~1order/delete
|
|
1268
|
-
* @param {string} id order id
|
|
1269
|
-
* @param {string} symbol unified symbol of the market the order was made in
|
|
1270
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1271
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1272
|
-
*/
|
|
1273
1273
|
await this.loadMarkets();
|
|
1274
1274
|
const market = this.market(symbol);
|
|
1275
1275
|
const request = this.cancelOrderRequest(id, symbol, params);
|
|
@@ -1281,16 +1281,16 @@ export default class bitvavo extends Exchange {
|
|
|
1281
1281
|
//
|
|
1282
1282
|
return this.parseOrder(response, market);
|
|
1283
1283
|
}
|
|
1284
|
+
/**
|
|
1285
|
+
* @method
|
|
1286
|
+
* @name bitvavo#cancelAllOrders
|
|
1287
|
+
* @see https://docs.bitvavo.com/#tag/Orders/paths/~1orders/delete
|
|
1288
|
+
* @description cancel all open orders
|
|
1289
|
+
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
1290
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1291
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1292
|
+
*/
|
|
1284
1293
|
async cancelAllOrders(symbol = undefined, params = {}) {
|
|
1285
|
-
/**
|
|
1286
|
-
* @method
|
|
1287
|
-
* @name bitvavo#cancelAllOrders
|
|
1288
|
-
* @see https://docs.bitvavo.com/#tag/Orders/paths/~1orders/delete
|
|
1289
|
-
* @description cancel all open orders
|
|
1290
|
-
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
1291
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1292
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1293
|
-
*/
|
|
1294
1294
|
await this.loadMarkets();
|
|
1295
1295
|
const request = {};
|
|
1296
1296
|
let market = undefined;
|
|
@@ -1308,17 +1308,17 @@ export default class bitvavo extends Exchange {
|
|
|
1308
1308
|
//
|
|
1309
1309
|
return this.parseOrders(response, market);
|
|
1310
1310
|
}
|
|
1311
|
+
/**
|
|
1312
|
+
* @method
|
|
1313
|
+
* @name bitvavo#fetchOrder
|
|
1314
|
+
* @description fetches information on an order made by the user
|
|
1315
|
+
* @see https://docs.bitvavo.com/#tag/Trading-endpoints/paths/~1order/get
|
|
1316
|
+
* @param {string} id the order id
|
|
1317
|
+
* @param {string} symbol unified symbol of the market the order was made in
|
|
1318
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1319
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1320
|
+
*/
|
|
1311
1321
|
async fetchOrder(id, symbol = undefined, params = {}) {
|
|
1312
|
-
/**
|
|
1313
|
-
* @method
|
|
1314
|
-
* @name bitvavo#fetchOrder
|
|
1315
|
-
* @description fetches information on an order made by the user
|
|
1316
|
-
* @see https://docs.bitvavo.com/#tag/Trading-endpoints/paths/~1order/get
|
|
1317
|
-
* @param {string} id the order id
|
|
1318
|
-
* @param {string} symbol unified symbol of the market the order was made in
|
|
1319
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1320
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1321
|
-
*/
|
|
1322
1322
|
if (symbol === undefined) {
|
|
1323
1323
|
throw new ArgumentsRequired(this.id + ' fetchOrder() requires a symbol argument');
|
|
1324
1324
|
}
|
|
@@ -1387,20 +1387,20 @@ export default class bitvavo extends Exchange {
|
|
|
1387
1387
|
[request, params] = this.handleUntilOption('end', request, params);
|
|
1388
1388
|
return this.extend(request, params);
|
|
1389
1389
|
}
|
|
1390
|
+
/**
|
|
1391
|
+
* @method
|
|
1392
|
+
* @name bitvavo#fetchOrders
|
|
1393
|
+
* @see https://docs.bitvavo.com/#tag/Trading-endpoints/paths/~1orders/get
|
|
1394
|
+
* @description fetches information on multiple orders made by the user
|
|
1395
|
+
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1396
|
+
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1397
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1398
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1399
|
+
* @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)
|
|
1400
|
+
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
1401
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1402
|
+
*/
|
|
1390
1403
|
async fetchOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1391
|
-
/**
|
|
1392
|
-
* @method
|
|
1393
|
-
* @name bitvavo#fetchOrders
|
|
1394
|
-
* @see https://docs.bitvavo.com/#tag/Trading-endpoints/paths/~1orders/get
|
|
1395
|
-
* @description fetches information on multiple orders made by the user
|
|
1396
|
-
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1397
|
-
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1398
|
-
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1399
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1400
|
-
* @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)
|
|
1401
|
-
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
1402
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1403
|
-
*/
|
|
1404
1404
|
if (symbol === undefined) {
|
|
1405
1405
|
throw new ArgumentsRequired(this.id + ' fetchOrders() requires a symbol argument');
|
|
1406
1406
|
}
|
|
@@ -1451,17 +1451,17 @@ export default class bitvavo extends Exchange {
|
|
|
1451
1451
|
//
|
|
1452
1452
|
return this.parseOrders(response, market, since, limit);
|
|
1453
1453
|
}
|
|
1454
|
+
/**
|
|
1455
|
+
* @method
|
|
1456
|
+
* @name bitvavo#fetchOpenOrders
|
|
1457
|
+
* @description fetch all unfilled currently open orders
|
|
1458
|
+
* @param {string} symbol unified market symbol
|
|
1459
|
+
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1460
|
+
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1461
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1462
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1463
|
+
*/
|
|
1454
1464
|
async fetchOpenOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1455
|
-
/**
|
|
1456
|
-
* @method
|
|
1457
|
-
* @name bitvavo#fetchOpenOrders
|
|
1458
|
-
* @description fetch all unfilled currently open orders
|
|
1459
|
-
* @param {string} symbol unified market symbol
|
|
1460
|
-
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1461
|
-
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1462
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1463
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1464
|
-
*/
|
|
1465
1465
|
await this.loadMarkets();
|
|
1466
1466
|
const request = {
|
|
1467
1467
|
// "market": market["id"], // rate limit 25 without a market, 1 with market specified
|
|
@@ -1651,20 +1651,20 @@ export default class bitvavo extends Exchange {
|
|
|
1651
1651
|
[request, params] = this.handleUntilOption('end', request, params);
|
|
1652
1652
|
return this.extend(request, params);
|
|
1653
1653
|
}
|
|
1654
|
+
/**
|
|
1655
|
+
* @method
|
|
1656
|
+
* @name bitvavo#fetchMyTrades
|
|
1657
|
+
* @see https://docs.bitvavo.com/#tag/Trades/paths/~1trades/get
|
|
1658
|
+
* @description fetch all trades made by the user
|
|
1659
|
+
* @param {string} symbol unified market symbol
|
|
1660
|
+
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1661
|
+
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1662
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1663
|
+
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
1664
|
+
* @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)
|
|
1665
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1666
|
+
*/
|
|
1654
1667
|
async fetchMyTrades(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1655
|
-
/**
|
|
1656
|
-
* @method
|
|
1657
|
-
* @name bitvavo#fetchMyTrades
|
|
1658
|
-
* @see https://docs.bitvavo.com/#tag/Trades/paths/~1trades/get
|
|
1659
|
-
* @description fetch all trades made by the user
|
|
1660
|
-
* @param {string} symbol unified market symbol
|
|
1661
|
-
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1662
|
-
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1663
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1664
|
-
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
1665
|
-
* @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)
|
|
1666
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1667
|
-
*/
|
|
1668
1668
|
if (symbol === undefined) {
|
|
1669
1669
|
throw new ArgumentsRequired(this.id + ' fetchMyTrades() requires a symbol argument');
|
|
1670
1670
|
}
|
|
@@ -1710,18 +1710,18 @@ export default class bitvavo extends Exchange {
|
|
|
1710
1710
|
}
|
|
1711
1711
|
return this.extend(request, params);
|
|
1712
1712
|
}
|
|
1713
|
+
/**
|
|
1714
|
+
* @method
|
|
1715
|
+
* @name bitvavo#withdraw
|
|
1716
|
+
* @description make a withdrawal
|
|
1717
|
+
* @param {string} code unified currency code
|
|
1718
|
+
* @param {float} amount the amount to withdraw
|
|
1719
|
+
* @param {string} address the address to withdraw to
|
|
1720
|
+
* @param {string} tag
|
|
1721
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1722
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1723
|
+
*/
|
|
1713
1724
|
async withdraw(code, amount, address, tag = undefined, params = {}) {
|
|
1714
|
-
/**
|
|
1715
|
-
* @method
|
|
1716
|
-
* @name bitvavo#withdraw
|
|
1717
|
-
* @description make a withdrawal
|
|
1718
|
-
* @param {string} code unified currency code
|
|
1719
|
-
* @param {float} amount the amount to withdraw
|
|
1720
|
-
* @param {string} address the address to withdraw to
|
|
1721
|
-
* @param {string} tag
|
|
1722
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1723
|
-
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1724
|
-
*/
|
|
1725
1725
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
1726
1726
|
this.checkAddress(address);
|
|
1727
1727
|
await this.loadMarkets();
|
|
@@ -1757,18 +1757,18 @@ export default class bitvavo extends Exchange {
|
|
|
1757
1757
|
}
|
|
1758
1758
|
return this.extend(request, params);
|
|
1759
1759
|
}
|
|
1760
|
+
/**
|
|
1761
|
+
* @method
|
|
1762
|
+
* @name bitvavo#fetchWithdrawals
|
|
1763
|
+
* @see https://docs.bitvavo.com/#tag/Account/paths/~1withdrawalHistory/get
|
|
1764
|
+
* @description fetch all withdrawals made from an account
|
|
1765
|
+
* @param {string} code unified currency code
|
|
1766
|
+
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
1767
|
+
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
1768
|
+
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
1769
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1770
|
+
*/
|
|
1760
1771
|
async fetchWithdrawals(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1761
|
-
/**
|
|
1762
|
-
* @method
|
|
1763
|
-
* @name bitvavo#fetchWithdrawals
|
|
1764
|
-
* @see https://docs.bitvavo.com/#tag/Account/paths/~1withdrawalHistory/get
|
|
1765
|
-
* @description fetch all withdrawals made from an account
|
|
1766
|
-
* @param {string} code unified currency code
|
|
1767
|
-
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
1768
|
-
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
1769
|
-
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
1770
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1771
|
-
*/
|
|
1772
1772
|
await this.loadMarkets();
|
|
1773
1773
|
const request = this.fetchWithdrawalsRequest(code, since, limit, params);
|
|
1774
1774
|
let currency = undefined;
|
|
@@ -1812,18 +1812,18 @@ export default class bitvavo extends Exchange {
|
|
|
1812
1812
|
}
|
|
1813
1813
|
return this.extend(request, params);
|
|
1814
1814
|
}
|
|
1815
|
+
/**
|
|
1816
|
+
* @method
|
|
1817
|
+
* @name bitvavo#fetchDeposits
|
|
1818
|
+
* @see https://docs.bitvavo.com/#tag/Account/paths/~1depositHistory/get
|
|
1819
|
+
* @description fetch all deposits made to an account
|
|
1820
|
+
* @param {string} code unified currency code
|
|
1821
|
+
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
1822
|
+
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
1823
|
+
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
1824
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1825
|
+
*/
|
|
1815
1826
|
async fetchDeposits(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1816
|
-
/**
|
|
1817
|
-
* @method
|
|
1818
|
-
* @name bitvavo#fetchDeposits
|
|
1819
|
-
* @see https://docs.bitvavo.com/#tag/Account/paths/~1depositHistory/get
|
|
1820
|
-
* @description fetch all deposits made to an account
|
|
1821
|
-
* @param {string} code unified currency code
|
|
1822
|
-
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
1823
|
-
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
1824
|
-
* @param {object} [params] extra parameters specific to the bitvavo api endpoint
|
|
1825
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1826
|
-
*/
|
|
1827
1827
|
await this.loadMarkets();
|
|
1828
1828
|
const request = this.fetchDepositsRequest(code, since, limit, params);
|
|
1829
1829
|
let currency = undefined;
|
|
@@ -1983,16 +1983,16 @@ export default class bitvavo extends Exchange {
|
|
|
1983
1983
|
};
|
|
1984
1984
|
return result;
|
|
1985
1985
|
}
|
|
1986
|
+
/**
|
|
1987
|
+
* @method
|
|
1988
|
+
* @name bitvavo#fetchDepositWithdrawFees
|
|
1989
|
+
* @description fetch deposit and withdraw fees
|
|
1990
|
+
* @see https://docs.bitvavo.com/#tag/General/paths/~1assets/get
|
|
1991
|
+
* @param {string[]|undefined} codes list of unified currency codes
|
|
1992
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1993
|
+
* @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
1994
|
+
*/
|
|
1986
1995
|
async fetchDepositWithdrawFees(codes = undefined, params = {}) {
|
|
1987
|
-
/**
|
|
1988
|
-
* @method
|
|
1989
|
-
* @name bitvavo#fetchDepositWithdrawFees
|
|
1990
|
-
* @description fetch deposit and withdraw fees
|
|
1991
|
-
* @see https://docs.bitvavo.com/#tag/General/paths/~1assets/get
|
|
1992
|
-
* @param {string[]|undefined} codes list of unified currency codes
|
|
1993
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1994
|
-
* @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
1995
|
-
*/
|
|
1996
1996
|
await this.loadMarkets();
|
|
1997
1997
|
const response = await this.publicGetAssets(params);
|
|
1998
1998
|
//
|