ccxt 4.4.30 → 4.4.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -3
- package/dist/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/ace.js +123 -123
- package/dist/cjs/src/alpaca.js +237 -237
- package/dist/cjs/src/ascendex.js +342 -341
- package/dist/cjs/src/bigone.js +242 -242
- package/dist/cjs/src/binance.js +1339 -1291
- package/dist/cjs/src/bingx.js +639 -639
- package/dist/cjs/src/bit2c.js +111 -111
- package/dist/cjs/src/bitbank.js +142 -142
- package/dist/cjs/src/bitbns.js +140 -140
- package/dist/cjs/src/bitfinex.js +231 -231
- package/dist/cjs/src/bitfinex2.js +403 -403
- package/dist/cjs/src/bitflyer.js +184 -184
- package/dist/cjs/src/bitget.js +848 -846
- package/dist/cjs/src/bithumb.js +125 -124
- package/dist/cjs/src/bitmart.js +525 -525
- package/dist/cjs/src/bitmex.js +317 -317
- package/dist/cjs/src/bitopro.js +221 -221
- package/dist/cjs/src/bitrue.js +315 -315
- package/dist/cjs/src/bitso.js +220 -220
- package/dist/cjs/src/bitstamp.js +251 -251
- package/dist/cjs/src/bitteam.js +183 -183
- package/dist/cjs/src/bitvavo.js +247 -251
- package/dist/cjs/src/bl3p.js +82 -82
- package/dist/cjs/src/blockchaincom.js +211 -211
- package/dist/cjs/src/blofin.js +332 -331
- package/dist/cjs/src/btcalpha.js +166 -166
- package/dist/cjs/src/btcbox.js +108 -108
- package/dist/cjs/src/btcmarkets.js +198 -198
- package/dist/cjs/src/btcturk.js +124 -124
- package/dist/cjs/src/bybit.js +906 -900
- package/dist/cjs/src/cex.js +227 -226
- package/dist/cjs/src/coinbase.js +481 -481
- package/dist/cjs/src/coinbaseexchange.js +274 -274
- package/dist/cjs/src/coinbaseinternational.js +304 -304
- package/dist/cjs/src/coincatch.js +650 -650
- package/dist/cjs/src/coincheck.js +113 -113
- package/dist/cjs/src/coinex.js +611 -601
- package/dist/cjs/src/coinlist.js +304 -303
- package/dist/cjs/src/coinmate.js +162 -161
- package/dist/cjs/src/coinmetro.js +187 -187
- package/dist/cjs/src/coinone.js +124 -123
- package/dist/cjs/src/coinsph.js +237 -237
- package/dist/cjs/src/coinspot.js +82 -82
- package/dist/cjs/src/cryptocom.js +342 -341
- package/dist/cjs/src/currencycom.js +225 -224
- package/dist/cjs/src/delta.js +320 -320
- package/dist/cjs/src/deribit.js +411 -408
- package/dist/cjs/src/digifinex.js +432 -431
- package/dist/cjs/src/exmo.js +328 -327
- package/dist/cjs/src/gate.js +830 -791
- package/dist/cjs/src/gemini.js +199 -198
- package/dist/cjs/src/hashkey.js +520 -517
- package/dist/cjs/src/hitbtc.js +465 -462
- package/dist/cjs/src/hollaex.js +253 -252
- package/dist/cjs/src/htx.js +791 -848
- package/dist/cjs/src/huobijp.js +219 -218
- package/dist/cjs/src/hyperliquid.js +421 -417
- package/dist/cjs/src/idex.js +238 -237
- package/dist/cjs/src/independentreserve.js +133 -132
- package/dist/cjs/src/indodax.js +177 -171
- package/dist/cjs/src/kraken.js +381 -377
- package/dist/cjs/src/krakenfutures.js +285 -279
- package/dist/cjs/src/kucoin.js +632 -622
- package/dist/cjs/src/kucoinfutures.js +533 -457
- package/dist/cjs/src/kuna.js +283 -282
- package/dist/cjs/src/latoken.js +211 -210
- package/dist/cjs/src/lbank.js +268 -267
- package/dist/cjs/src/luno.js +174 -173
- package/dist/cjs/src/lykke.js +172 -171
- package/dist/cjs/src/mercado.js +123 -122
- package/dist/cjs/src/mexc.js +650 -646
- package/dist/cjs/src/ndax.js +229 -228
- package/dist/cjs/src/novadax.js +230 -229
- package/dist/cjs/src/oceanex.js +187 -186
- package/dist/cjs/src/okcoin.js +286 -285
- package/dist/cjs/src/okx.js +909 -904
- package/dist/cjs/src/onetrading.js +218 -218
- package/dist/cjs/src/oxfun.js +335 -334
- package/dist/cjs/src/p2b.js +154 -154
- package/dist/cjs/src/paradex.js +249 -244
- package/dist/cjs/src/paymium.js +101 -101
- package/dist/cjs/src/phemex.js +388 -390
- package/dist/cjs/src/poloniex.js +270 -270
- package/dist/cjs/src/poloniexfutures.js +250 -250
- package/dist/cjs/src/pro/alpaca.js +64 -64
- package/dist/cjs/src/pro/ascendex.js +64 -64
- package/dist/cjs/src/pro/binance.js +546 -543
- package/dist/cjs/src/pro/bingx.js +116 -116
- package/dist/cjs/src/pro/bitfinex.js +42 -42
- package/dist/cjs/src/pro/bitfinex2.js +66 -66
- package/dist/cjs/src/pro/bitget.js +188 -181
- package/dist/cjs/src/pro/bithumb.js +40 -40
- package/dist/cjs/src/pro/bitmart.js +121 -119
- package/dist/cjs/src/pro/bitmex.js +135 -133
- package/dist/cjs/src/pro/bitopro.js +49 -49
- package/dist/cjs/src/pro/bitrue.js +19 -19
- package/dist/cjs/src/pro/bitstamp.js +29 -29
- package/dist/cjs/src/pro/bitvavo.js +299 -301
- package/dist/cjs/src/pro/blockchaincom.js +62 -62
- package/dist/cjs/src/pro/blofin.js +132 -130
- package/dist/cjs/src/pro/bybit.js +317 -313
- package/dist/cjs/src/pro/cex.js +168 -168
- package/dist/cjs/src/pro/coinbase.js +93 -91
- package/dist/cjs/src/pro/coinbaseexchange.js +95 -95
- package/dist/cjs/src/pro/coinbaseinternational.js +111 -111
- package/dist/cjs/src/pro/coincatch.js +150 -143
- package/dist/cjs/src/pro/coincheck.js +21 -21
- package/dist/cjs/src/pro/coinex.js +110 -110
- package/dist/cjs/src/pro/coinone.js +30 -30
- package/dist/cjs/src/pro/cryptocom.js +227 -227
- package/dist/cjs/src/pro/currencycom.js +45 -45
- package/dist/cjs/src/pro/deribit.js +127 -127
- package/dist/cjs/src/pro/exmo.js +66 -66
- package/dist/cjs/src/pro/gate.js +287 -283
- package/dist/cjs/src/pro/gemini.js +74 -74
- package/dist/cjs/src/pro/hashkey.js +87 -85
- package/dist/cjs/src/pro/hitbtc.js +190 -190
- package/dist/cjs/src/pro/hollaex.js +51 -51
- package/dist/cjs/src/pro/htx.js +96 -94
- package/dist/cjs/src/pro/huobijp.js +38 -38
- package/dist/cjs/src/pro/hyperliquid.js +151 -150
- package/dist/cjs/src/pro/idex.js +48 -48
- package/dist/cjs/src/pro/independentreserve.js +19 -19
- package/dist/cjs/src/pro/kraken.js +167 -167
- package/dist/cjs/src/pro/krakenfutures.js +137 -138
- package/dist/cjs/src/pro/kucoin.js +167 -168
- package/dist/cjs/src/pro/kucoinfutures.js +147 -147
- package/dist/cjs/src/pro/lbank.js +95 -95
- package/dist/cjs/src/pro/luno.js +21 -21
- package/dist/cjs/src/pro/mexc.js +102 -103
- package/dist/cjs/src/pro/ndax.js +42 -42
- package/dist/cjs/src/pro/okcoin.js +61 -61
- package/dist/cjs/src/pro/okx.js +332 -330
- package/dist/cjs/src/pro/onetrading.js +71 -71
- package/dist/cjs/src/pro/oxfun.js +193 -191
- package/dist/cjs/src/pro/p2b.js +77 -77
- package/dist/cjs/src/pro/paradex.js +39 -39
- package/dist/cjs/src/pro/phemex.js +94 -94
- package/dist/cjs/src/pro/poloniex.js +171 -171
- package/dist/cjs/src/pro/poloniexfutures.js +62 -62
- package/dist/cjs/src/pro/probit.js +63 -63
- package/dist/cjs/src/pro/upbit.js +80 -80
- package/dist/cjs/src/pro/vertex.js +65 -63
- package/dist/cjs/src/pro/wazirx.js +70 -70
- package/dist/cjs/src/pro/whitebit.js +83 -83
- package/dist/cjs/src/pro/woo.js +106 -104
- package/dist/cjs/src/pro/woofipro.js +105 -103
- package/dist/cjs/src/pro/xt.js +119 -119
- package/dist/cjs/src/probit.js +229 -229
- package/dist/cjs/src/timex.js +198 -197
- package/dist/cjs/src/tokocrypto.js +214 -213
- package/dist/cjs/src/tradeogre.js +92 -91
- package/dist/cjs/src/upbit.js +243 -242
- package/dist/cjs/src/vertex.js +258 -258
- package/dist/cjs/src/wavesexchange.js +176 -172
- package/dist/cjs/src/wazirx.js +168 -168
- package/dist/cjs/src/whitebit.js +361 -361
- package/dist/cjs/src/woo.js +571 -572
- package/dist/cjs/src/woofipro.js +392 -391
- package/dist/cjs/src/xt.js +436 -435
- package/dist/cjs/src/yobit.js +159 -158
- package/dist/cjs/src/zaif.js +103 -103
- package/dist/cjs/src/zonda.js +168 -168
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/ace.d.ts +123 -0
- package/js/src/ace.js +123 -123
- package/js/src/alpaca.d.ts +237 -0
- package/js/src/alpaca.js +237 -237
- package/js/src/ascendex.d.ts +339 -0
- package/js/src/ascendex.js +342 -341
- package/js/src/base/types.d.ts +1 -0
- package/js/src/bigone.d.ts +242 -0
- package/js/src/bigone.js +242 -242
- package/js/src/binance.d.ts +1306 -0
- package/js/src/binance.js +1339 -1291
- package/js/src/bingx.d.ts +639 -0
- package/js/src/bingx.js +639 -639
- package/js/src/bit2c.d.ts +111 -0
- package/js/src/bit2c.js +111 -111
- package/js/src/bitbank.d.ts +142 -0
- package/js/src/bitbank.js +142 -142
- package/js/src/bitbns.d.ts +140 -0
- package/js/src/bitbns.js +140 -140
- package/js/src/bitfinex.d.ts +231 -0
- package/js/src/bitfinex.js +231 -231
- package/js/src/bitfinex2.d.ts +403 -0
- package/js/src/bitfinex2.js +403 -403
- package/js/src/bitflyer.d.ts +184 -0
- package/js/src/bitflyer.js +184 -184
- package/js/src/bitget.d.ts +846 -0
- package/js/src/bitget.js +848 -846
- package/js/src/bithumb.d.ts +125 -0
- package/js/src/bithumb.js +125 -124
- package/js/src/bitmart.d.ts +525 -0
- package/js/src/bitmart.js +525 -525
- package/js/src/bitmex.d.ts +317 -0
- package/js/src/bitmex.js +317 -317
- package/js/src/bitopro.d.ts +221 -0
- package/js/src/bitopro.js +221 -221
- package/js/src/bitrue.d.ts +315 -0
- package/js/src/bitrue.js +315 -315
- package/js/src/bitso.d.ts +220 -0
- package/js/src/bitso.js +220 -220
- package/js/src/bitstamp.d.ts +251 -0
- package/js/src/bitstamp.js +251 -251
- package/js/src/bitteam.d.ts +183 -0
- package/js/src/bitteam.js +183 -183
- package/js/src/bitvavo.d.ts +247 -0
- package/js/src/bitvavo.js +247 -251
- package/js/src/bl3p.d.ts +82 -0
- package/js/src/bl3p.js +82 -82
- package/js/src/blockchaincom.d.ts +211 -0
- package/js/src/blockchaincom.js +211 -211
- package/js/src/blofin.d.ts +332 -0
- package/js/src/blofin.js +332 -331
- package/js/src/btcalpha.d.ts +166 -0
- package/js/src/btcalpha.js +166 -166
- package/js/src/btcbox.d.ts +108 -0
- package/js/src/btcbox.js +108 -108
- package/js/src/btcmarkets.d.ts +198 -0
- package/js/src/btcmarkets.js +198 -198
- package/js/src/btcturk.d.ts +124 -0
- package/js/src/btcturk.js +124 -124
- package/js/src/bybit.d.ts +906 -1
- package/js/src/bybit.js +906 -900
- package/js/src/cex.d.ts +227 -0
- package/js/src/cex.js +227 -226
- package/js/src/coinbase.d.ts +481 -0
- package/js/src/coinbase.js +481 -481
- package/js/src/coinbaseexchange.d.ts +274 -0
- package/js/src/coinbaseexchange.js +274 -274
- package/js/src/coinbaseinternational.d.ts +304 -0
- package/js/src/coinbaseinternational.js +304 -304
- package/js/src/coincatch.d.ts +646 -0
- package/js/src/coincatch.js +650 -650
- package/js/src/coincheck.d.ts +113 -0
- package/js/src/coincheck.js +113 -113
- package/js/src/coinex.d.ts +603 -0
- package/js/src/coinex.js +611 -601
- package/js/src/coinlist.d.ts +304 -0
- package/js/src/coinlist.js +304 -303
- package/js/src/coinmate.d.ts +162 -0
- package/js/src/coinmate.js +162 -161
- package/js/src/coinmetro.d.ts +187 -0
- package/js/src/coinmetro.js +187 -187
- package/js/src/coinone.d.ts +124 -0
- package/js/src/coinone.js +124 -123
- package/js/src/coinsph.d.ts +237 -0
- package/js/src/coinsph.js +237 -237
- package/js/src/coinspot.d.ts +82 -0
- package/js/src/coinspot.js +82 -82
- package/js/src/cryptocom.d.ts +342 -0
- package/js/src/cryptocom.js +342 -341
- package/js/src/currencycom.d.ts +225 -0
- package/js/src/currencycom.js +225 -224
- package/js/src/delta.d.ts +320 -0
- package/js/src/delta.js +320 -320
- package/js/src/deribit.d.ts +411 -0
- package/js/src/deribit.js +411 -408
- package/js/src/digifinex.d.ts +430 -0
- package/js/src/digifinex.js +432 -431
- package/js/src/exmo.d.ts +328 -0
- package/js/src/exmo.js +328 -327
- package/js/src/gate.d.ts +803 -1
- package/js/src/gate.js +830 -791
- package/js/src/gemini.d.ts +199 -0
- package/js/src/gemini.js +199 -198
- package/js/src/hashkey.d.ts +516 -0
- package/js/src/hashkey.js +520 -517
- package/js/src/hitbtc.d.ts +465 -0
- package/js/src/hitbtc.js +465 -462
- package/js/src/hollaex.d.ts +253 -0
- package/js/src/hollaex.js +253 -252
- package/js/src/htx.d.ts +765 -2
- package/js/src/htx.js +791 -848
- package/js/src/huobijp.d.ts +219 -0
- package/js/src/huobijp.js +219 -218
- package/js/src/hyperliquid.d.ts +419 -0
- package/js/src/hyperliquid.js +421 -417
- package/js/src/idex.d.ts +238 -0
- package/js/src/idex.js +238 -237
- package/js/src/independentreserve.d.ts +133 -0
- package/js/src/independentreserve.js +133 -132
- package/js/src/indodax.d.ts +171 -0
- package/js/src/indodax.js +177 -171
- package/js/src/kraken.d.ts +381 -0
- package/js/src/kraken.js +381 -377
- package/js/src/krakenfutures.d.ts +282 -0
- package/js/src/krakenfutures.js +285 -279
- package/js/src/kucoin.d.ts +613 -0
- package/js/src/kucoin.js +632 -622
- package/js/src/kucoinfutures.d.ts +441 -0
- package/js/src/kucoinfutures.js +533 -457
- package/js/src/kuna.d.ts +283 -0
- package/js/src/kuna.js +283 -282
- package/js/src/latoken.d.ts +211 -0
- package/js/src/latoken.js +211 -210
- package/js/src/lbank.d.ts +268 -0
- package/js/src/lbank.js +268 -267
- package/js/src/luno.d.ts +174 -0
- package/js/src/luno.js +174 -173
- package/js/src/lykke.d.ts +172 -0
- package/js/src/lykke.js +172 -171
- package/js/src/mercado.d.ts +123 -0
- package/js/src/mercado.js +123 -122
- package/js/src/mexc.d.ts +647 -0
- package/js/src/mexc.js +650 -646
- package/js/src/ndax.d.ts +229 -0
- package/js/src/ndax.js +229 -228
- package/js/src/novadax.d.ts +230 -0
- package/js/src/novadax.js +230 -229
- package/js/src/oceanex.d.ts +187 -0
- package/js/src/oceanex.js +187 -186
- package/js/src/okcoin.d.ts +286 -0
- package/js/src/okcoin.js +286 -285
- package/js/src/okx.d.ts +907 -0
- package/js/src/okx.js +909 -904
- package/js/src/onetrading.d.ts +218 -0
- package/js/src/onetrading.js +218 -218
- package/js/src/oxfun.d.ts +336 -3
- package/js/src/oxfun.js +335 -334
- package/js/src/p2b.d.ts +154 -0
- package/js/src/p2b.js +154 -154
- package/js/src/paradex.d.ts +241 -0
- package/js/src/paradex.js +249 -244
- package/js/src/paymium.d.ts +101 -0
- package/js/src/paymium.js +101 -101
- package/js/src/phemex.d.ts +366 -0
- package/js/src/phemex.js +388 -390
- package/js/src/poloniex.d.ts +270 -0
- package/js/src/poloniex.js +270 -270
- package/js/src/poloniexfutures.d.ts +250 -0
- package/js/src/poloniexfutures.js +250 -250
- package/js/src/pro/alpaca.d.ts +64 -0
- package/js/src/pro/alpaca.js +64 -64
- package/js/src/pro/ascendex.d.ts +64 -0
- package/js/src/pro/ascendex.js +64 -64
- package/js/src/pro/binance.d.ts +546 -0
- package/js/src/pro/binance.js +546 -543
- package/js/src/pro/bingx.d.ts +116 -0
- package/js/src/pro/bingx.js +116 -116
- package/js/src/pro/bitfinex.d.ts +42 -0
- package/js/src/pro/bitfinex.js +42 -42
- package/js/src/pro/bitfinex2.d.ts +66 -0
- package/js/src/pro/bitfinex2.js +66 -66
- package/js/src/pro/bitget.d.ts +187 -0
- package/js/src/pro/bitget.js +188 -181
- package/js/src/pro/bithumb.d.ts +40 -0
- package/js/src/pro/bithumb.js +40 -40
- package/js/src/pro/bitmart.d.ts +121 -0
- package/js/src/pro/bitmart.js +121 -119
- package/js/src/pro/bitmex.d.ts +135 -0
- package/js/src/pro/bitmex.js +135 -133
- package/js/src/pro/bitopro.d.ts +49 -0
- package/js/src/pro/bitopro.js +49 -49
- package/js/src/pro/bitrue.d.ts +19 -0
- package/js/src/pro/bitrue.js +19 -19
- package/js/src/pro/bitstamp.d.ts +29 -0
- package/js/src/pro/bitstamp.js +29 -29
- package/js/src/pro/bitvavo.d.ts +254 -1
- package/js/src/pro/bitvavo.js +299 -301
- package/js/src/pro/blockchaincom.d.ts +62 -0
- package/js/src/pro/blockchaincom.js +62 -62
- package/js/src/pro/blofin.d.ts +132 -0
- package/js/src/pro/blofin.js +132 -130
- package/js/src/pro/bybit.d.ts +317 -0
- package/js/src/pro/bybit.js +317 -313
- package/js/src/pro/cex.d.ts +168 -0
- package/js/src/pro/cex.js +168 -168
- package/js/src/pro/coinbase.d.ts +93 -0
- package/js/src/pro/coinbase.js +93 -91
- package/js/src/pro/coinbaseexchange.d.ts +95 -0
- package/js/src/pro/coinbaseexchange.js +95 -95
- package/js/src/pro/coinbaseinternational.d.ts +111 -0
- package/js/src/pro/coinbaseinternational.js +111 -111
- package/js/src/pro/coincatch.d.ts +150 -0
- package/js/src/pro/coincatch.js +150 -143
- package/js/src/pro/coincheck.d.ts +21 -0
- package/js/src/pro/coincheck.js +21 -21
- package/js/src/pro/coinex.d.ts +110 -0
- package/js/src/pro/coinex.js +110 -110
- package/js/src/pro/coinone.d.ts +30 -0
- package/js/src/pro/coinone.js +30 -30
- package/js/src/pro/cryptocom.d.ts +227 -0
- package/js/src/pro/cryptocom.js +227 -227
- package/js/src/pro/currencycom.d.ts +45 -0
- package/js/src/pro/currencycom.js +45 -45
- package/js/src/pro/deribit.d.ts +127 -0
- package/js/src/pro/deribit.js +127 -127
- package/js/src/pro/exmo.d.ts +66 -0
- package/js/src/pro/exmo.js +66 -66
- package/js/src/pro/gate.d.ts +287 -0
- package/js/src/pro/gate.js +287 -283
- package/js/src/pro/gemini.d.ts +74 -0
- package/js/src/pro/gemini.js +74 -74
- package/js/src/pro/hashkey.d.ts +87 -0
- package/js/src/pro/hashkey.js +87 -85
- package/js/src/pro/hitbtc.d.ts +190 -0
- package/js/src/pro/hitbtc.js +190 -190
- package/js/src/pro/hollaex.d.ts +51 -0
- package/js/src/pro/hollaex.js +51 -51
- package/js/src/pro/htx.d.ts +96 -0
- package/js/src/pro/htx.js +96 -94
- package/js/src/pro/huobijp.d.ts +38 -0
- package/js/src/pro/huobijp.js +38 -38
- package/js/src/pro/hyperliquid.d.ts +151 -0
- package/js/src/pro/hyperliquid.js +151 -150
- package/js/src/pro/idex.d.ts +48 -0
- package/js/src/pro/idex.js +48 -48
- package/js/src/pro/independentreserve.d.ts +19 -0
- package/js/src/pro/independentreserve.js +19 -19
- package/js/src/pro/kraken.d.ts +167 -0
- package/js/src/pro/kraken.js +167 -167
- package/js/src/pro/krakenfutures.d.ts +137 -0
- package/js/src/pro/krakenfutures.js +137 -138
- package/js/src/pro/kucoin.d.ts +167 -0
- package/js/src/pro/kucoin.js +167 -168
- package/js/src/pro/kucoinfutures.d.ts +147 -0
- package/js/src/pro/kucoinfutures.js +147 -147
- package/js/src/pro/lbank.d.ts +95 -0
- package/js/src/pro/lbank.js +95 -95
- package/js/src/pro/luno.d.ts +21 -0
- package/js/src/pro/luno.js +21 -21
- package/js/src/pro/mexc.d.ts +101 -0
- package/js/src/pro/mexc.js +102 -103
- package/js/src/pro/ndax.d.ts +42 -0
- package/js/src/pro/ndax.js +42 -42
- package/js/src/pro/okcoin.d.ts +61 -0
- package/js/src/pro/okcoin.js +61 -61
- package/js/src/pro/okx.d.ts +332 -0
- package/js/src/pro/okx.js +332 -330
- package/js/src/pro/onetrading.d.ts +71 -0
- package/js/src/pro/onetrading.js +71 -71
- package/js/src/pro/oxfun.d.ts +193 -0
- package/js/src/pro/oxfun.js +193 -191
- package/js/src/pro/p2b.d.ts +77 -0
- package/js/src/pro/p2b.js +77 -77
- package/js/src/pro/paradex.d.ts +39 -0
- package/js/src/pro/paradex.js +39 -39
- package/js/src/pro/phemex.d.ts +94 -0
- package/js/src/pro/phemex.js +94 -94
- package/js/src/pro/poloniex.d.ts +171 -0
- package/js/src/pro/poloniex.js +171 -171
- package/js/src/pro/poloniexfutures.d.ts +62 -0
- package/js/src/pro/poloniexfutures.js +62 -62
- package/js/src/pro/probit.d.ts +63 -0
- package/js/src/pro/probit.js +63 -63
- package/js/src/pro/upbit.d.ts +80 -0
- package/js/src/pro/upbit.js +80 -80
- package/js/src/pro/vertex.d.ts +65 -0
- package/js/src/pro/vertex.js +65 -63
- package/js/src/pro/wazirx.d.ts +70 -0
- package/js/src/pro/wazirx.js +70 -70
- package/js/src/pro/whitebit.d.ts +83 -0
- package/js/src/pro/whitebit.js +83 -83
- package/js/src/pro/woo.d.ts +106 -0
- package/js/src/pro/woo.js +106 -104
- package/js/src/pro/woofipro.d.ts +105 -0
- package/js/src/pro/woofipro.js +105 -103
- package/js/src/pro/xt.d.ts +119 -0
- package/js/src/pro/xt.js +119 -119
- package/js/src/probit.d.ts +229 -0
- package/js/src/probit.js +229 -229
- package/js/src/timex.d.ts +198 -0
- package/js/src/timex.js +198 -197
- package/js/src/tokocrypto.d.ts +214 -0
- package/js/src/tokocrypto.js +214 -213
- package/js/src/tradeogre.d.ts +92 -0
- package/js/src/tradeogre.js +92 -91
- package/js/src/upbit.d.ts +243 -0
- package/js/src/upbit.js +243 -242
- package/js/src/vertex.d.ts +258 -0
- package/js/src/vertex.js +258 -258
- package/js/src/wavesexchange.d.ts +176 -0
- package/js/src/wavesexchange.js +176 -172
- package/js/src/wazirx.d.ts +168 -0
- package/js/src/wazirx.js +168 -168
- package/js/src/whitebit.d.ts +361 -0
- package/js/src/whitebit.js +361 -361
- package/js/src/woo.d.ts +571 -0
- package/js/src/woo.js +571 -572
- package/js/src/woofipro.d.ts +392 -0
- package/js/src/woofipro.js +392 -391
- package/js/src/xt.d.ts +439 -4
- package/js/src/xt.js +436 -435
- package/js/src/yobit.d.ts +159 -0
- package/js/src/yobit.js +159 -158
- package/js/src/zaif.d.ts +103 -0
- package/js/src/zaif.js +103 -103
- package/js/src/zonda.d.ts +168 -0
- package/js/src/zonda.js +168 -168
- package/package.json +1 -1
package/js/src/onetrading.js
CHANGED
|
@@ -304,14 +304,14 @@ export default class onetrading extends Exchange {
|
|
|
304
304
|
},
|
|
305
305
|
});
|
|
306
306
|
}
|
|
307
|
+
/**
|
|
308
|
+
* @method
|
|
309
|
+
* @name onetrading#fetchTime
|
|
310
|
+
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
311
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
312
|
+
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
313
|
+
*/
|
|
307
314
|
async fetchTime(params = {}) {
|
|
308
|
-
/**
|
|
309
|
-
* @method
|
|
310
|
-
* @name onetrading#fetchTime
|
|
311
|
-
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
312
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
313
|
-
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
314
|
-
*/
|
|
315
315
|
const response = await this.publicGetTime(params);
|
|
316
316
|
//
|
|
317
317
|
// {
|
|
@@ -321,14 +321,14 @@ export default class onetrading extends Exchange {
|
|
|
321
321
|
//
|
|
322
322
|
return this.safeInteger(response, 'epoch_millis');
|
|
323
323
|
}
|
|
324
|
+
/**
|
|
325
|
+
* @method
|
|
326
|
+
* @name onetrading#fetchCurrencies
|
|
327
|
+
* @description fetches all available currencies on an exchange
|
|
328
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
329
|
+
* @returns {object} an associative dictionary of currencies
|
|
330
|
+
*/
|
|
324
331
|
async fetchCurrencies(params = {}) {
|
|
325
|
-
/**
|
|
326
|
-
* @method
|
|
327
|
-
* @name onetrading#fetchCurrencies
|
|
328
|
-
* @description fetches all available currencies on an exchange
|
|
329
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
330
|
-
* @returns {object} an associative dictionary of currencies
|
|
331
|
-
*/
|
|
332
332
|
const response = await this.publicGetCurrencies(params);
|
|
333
333
|
//
|
|
334
334
|
// [
|
|
@@ -362,14 +362,14 @@ export default class onetrading extends Exchange {
|
|
|
362
362
|
}
|
|
363
363
|
return result;
|
|
364
364
|
}
|
|
365
|
+
/**
|
|
366
|
+
* @method
|
|
367
|
+
* @name onetrading#fetchMarkets
|
|
368
|
+
* @description retrieves data on all markets for onetrading
|
|
369
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
370
|
+
* @returns {object[]} an array of objects representing market data
|
|
371
|
+
*/
|
|
365
372
|
async fetchMarkets(params = {}) {
|
|
366
|
-
/**
|
|
367
|
-
* @method
|
|
368
|
-
* @name onetrading#fetchMarkets
|
|
369
|
-
* @description retrieves data on all markets for onetrading
|
|
370
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
371
|
-
* @returns {object[]} an array of objects representing market data
|
|
372
|
-
*/
|
|
373
373
|
const response = await this.publicGetInstruments(params);
|
|
374
374
|
//
|
|
375
375
|
// [
|
|
@@ -444,14 +444,14 @@ export default class onetrading extends Exchange {
|
|
|
444
444
|
'info': market,
|
|
445
445
|
};
|
|
446
446
|
}
|
|
447
|
+
/**
|
|
448
|
+
* @method
|
|
449
|
+
* @name onetrading#fetchTradingFees
|
|
450
|
+
* @description fetch the trading fees for multiple markets
|
|
451
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
452
|
+
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
453
|
+
*/
|
|
447
454
|
async fetchTradingFees(params = {}) {
|
|
448
|
-
/**
|
|
449
|
-
* @method
|
|
450
|
-
* @name onetrading#fetchTradingFees
|
|
451
|
-
* @description fetch the trading fees for multiple markets
|
|
452
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
453
|
-
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
454
|
-
*/
|
|
455
455
|
let method = this.safeString(params, 'method');
|
|
456
456
|
params = this.omit(params, 'method');
|
|
457
457
|
if (method === undefined) {
|
|
@@ -617,15 +617,15 @@ export default class onetrading extends Exchange {
|
|
|
617
617
|
'info': ticker,
|
|
618
618
|
}, market);
|
|
619
619
|
}
|
|
620
|
+
/**
|
|
621
|
+
* @method
|
|
622
|
+
* @name onetrading#fetchTicker
|
|
623
|
+
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
624
|
+
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
625
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
626
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
627
|
+
*/
|
|
620
628
|
async fetchTicker(symbol, params = {}) {
|
|
621
|
-
/**
|
|
622
|
-
* @method
|
|
623
|
-
* @name onetrading#fetchTicker
|
|
624
|
-
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
625
|
-
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
626
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
627
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
628
|
-
*/
|
|
629
629
|
await this.loadMarkets();
|
|
630
630
|
const market = this.market(symbol);
|
|
631
631
|
const request = {
|
|
@@ -652,15 +652,15 @@ export default class onetrading extends Exchange {
|
|
|
652
652
|
//
|
|
653
653
|
return this.parseTicker(response, market);
|
|
654
654
|
}
|
|
655
|
+
/**
|
|
656
|
+
* @method
|
|
657
|
+
* @name onetrading#fetchTickers
|
|
658
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
659
|
+
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
660
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
661
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
662
|
+
*/
|
|
655
663
|
async fetchTickers(symbols = undefined, params = {}) {
|
|
656
|
-
/**
|
|
657
|
-
* @method
|
|
658
|
-
* @name onetrading#fetchTickers
|
|
659
|
-
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
660
|
-
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
661
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
662
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
663
|
-
*/
|
|
664
664
|
await this.loadMarkets();
|
|
665
665
|
symbols = this.marketSymbols(symbols);
|
|
666
666
|
const response = await this.publicGetMarketTicker(params);
|
|
@@ -692,16 +692,16 @@ export default class onetrading extends Exchange {
|
|
|
692
692
|
}
|
|
693
693
|
return this.filterByArrayTickers(result, 'symbol', symbols);
|
|
694
694
|
}
|
|
695
|
+
/**
|
|
696
|
+
* @method
|
|
697
|
+
* @name onetrading#fetchOrderBook
|
|
698
|
+
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
699
|
+
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
700
|
+
* @param {int} [limit] the maximum amount of order book entries to return
|
|
701
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
702
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
703
|
+
*/
|
|
695
704
|
async fetchOrderBook(symbol, limit = undefined, params = {}) {
|
|
696
|
-
/**
|
|
697
|
-
* @method
|
|
698
|
-
* @name onetrading#fetchOrderBook
|
|
699
|
-
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
700
|
-
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
701
|
-
* @param {int} [limit] the maximum amount of order book entries to return
|
|
702
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
703
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
704
|
-
*/
|
|
705
705
|
await this.loadMarkets();
|
|
706
706
|
const market = this.market(symbol);
|
|
707
707
|
const request = {
|
|
@@ -817,18 +817,18 @@ export default class onetrading extends Exchange {
|
|
|
817
817
|
this.safeNumber(ohlcv, volumeField),
|
|
818
818
|
];
|
|
819
819
|
}
|
|
820
|
+
/**
|
|
821
|
+
* @method
|
|
822
|
+
* @name onetrading#fetchOHLCV
|
|
823
|
+
* @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
824
|
+
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
825
|
+
* @param {string} timeframe the length of time each candle represents
|
|
826
|
+
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
827
|
+
* @param {int} [limit] the maximum amount of candles to fetch
|
|
828
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
829
|
+
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
830
|
+
*/
|
|
820
831
|
async fetchOHLCV(symbol, timeframe = '1m', since = undefined, limit = undefined, params = {}) {
|
|
821
|
-
/**
|
|
822
|
-
* @method
|
|
823
|
-
* @name onetrading#fetchOHLCV
|
|
824
|
-
* @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
825
|
-
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
826
|
-
* @param {string} timeframe the length of time each candle represents
|
|
827
|
-
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
828
|
-
* @param {int} [limit] the maximum amount of candles to fetch
|
|
829
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
830
|
-
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
831
|
-
*/
|
|
832
832
|
await this.loadMarkets();
|
|
833
833
|
const market = this.market(symbol);
|
|
834
834
|
const periodUnit = this.safeString(this.timeframes, timeframe);
|
|
@@ -945,17 +945,17 @@ export default class onetrading extends Exchange {
|
|
|
945
945
|
'info': trade,
|
|
946
946
|
}, market);
|
|
947
947
|
}
|
|
948
|
+
/**
|
|
949
|
+
* @method
|
|
950
|
+
* @name onetrading#fetchTrades
|
|
951
|
+
* @description get the list of most recent trades for a particular symbol
|
|
952
|
+
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
953
|
+
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
954
|
+
* @param {int} [limit] the maximum amount of trades to fetch
|
|
955
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
956
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
957
|
+
*/
|
|
948
958
|
async fetchTrades(symbol, since = undefined, limit = undefined, params = {}) {
|
|
949
|
-
/**
|
|
950
|
-
* @method
|
|
951
|
-
* @name onetrading#fetchTrades
|
|
952
|
-
* @description get the list of most recent trades for a particular symbol
|
|
953
|
-
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
954
|
-
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
955
|
-
* @param {int} [limit] the maximum amount of trades to fetch
|
|
956
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
957
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
958
|
-
*/
|
|
959
959
|
await this.loadMarkets();
|
|
960
960
|
const market = this.market(symbol);
|
|
961
961
|
const request = {
|
|
@@ -1000,14 +1000,14 @@ export default class onetrading extends Exchange {
|
|
|
1000
1000
|
}
|
|
1001
1001
|
return this.safeBalance(result);
|
|
1002
1002
|
}
|
|
1003
|
+
/**
|
|
1004
|
+
* @method
|
|
1005
|
+
* @name onetrading#fetchBalance
|
|
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
|
+
*/
|
|
1003
1010
|
async fetchBalance(params = {}) {
|
|
1004
|
-
/**
|
|
1005
|
-
* @method
|
|
1006
|
-
* @name onetrading#fetchBalance
|
|
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.privateGetAccountBalances(params);
|
|
1013
1013
|
//
|
|
@@ -1044,15 +1044,15 @@ export default class onetrading extends Exchange {
|
|
|
1044
1044
|
'tag': tag,
|
|
1045
1045
|
};
|
|
1046
1046
|
}
|
|
1047
|
+
/**
|
|
1048
|
+
* @method
|
|
1049
|
+
* @name onetrading#createDepositAddress
|
|
1050
|
+
* @description create a currency deposit address
|
|
1051
|
+
* @param {string} code unified currency code of the currency for the deposit address
|
|
1052
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1053
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1054
|
+
*/
|
|
1047
1055
|
async createDepositAddress(code, params = {}) {
|
|
1048
|
-
/**
|
|
1049
|
-
* @method
|
|
1050
|
-
* @name onetrading#createDepositAddress
|
|
1051
|
-
* @description create a currency deposit address
|
|
1052
|
-
* @param {string} code unified currency code of the currency for the deposit address
|
|
1053
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1054
|
-
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1055
|
-
*/
|
|
1056
1056
|
await this.loadMarkets();
|
|
1057
1057
|
const currency = this.currency(code);
|
|
1058
1058
|
const request = {
|
|
@@ -1069,15 +1069,15 @@ export default class onetrading extends Exchange {
|
|
|
1069
1069
|
//
|
|
1070
1070
|
return this.parseDepositAddress(response, currency);
|
|
1071
1071
|
}
|
|
1072
|
+
/**
|
|
1073
|
+
* @method
|
|
1074
|
+
* @name onetrading#fetchDepositAddress
|
|
1075
|
+
* @description fetch the deposit address for a currency associated with this account
|
|
1076
|
+
* @param {string} code unified currency code
|
|
1077
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1078
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1079
|
+
*/
|
|
1072
1080
|
async fetchDepositAddress(code, params = {}) {
|
|
1073
|
-
/**
|
|
1074
|
-
* @method
|
|
1075
|
-
* @name onetrading#fetchDepositAddress
|
|
1076
|
-
* @description fetch the deposit address for a currency associated with this account
|
|
1077
|
-
* @param {string} code unified currency code
|
|
1078
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1079
|
-
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1080
|
-
*/
|
|
1081
1081
|
await this.loadMarkets();
|
|
1082
1082
|
const currency = this.currency(code);
|
|
1083
1083
|
const request = {
|
|
@@ -1095,17 +1095,17 @@ export default class onetrading extends Exchange {
|
|
|
1095
1095
|
//
|
|
1096
1096
|
return this.parseDepositAddress(response, currency);
|
|
1097
1097
|
}
|
|
1098
|
+
/**
|
|
1099
|
+
* @method
|
|
1100
|
+
* @name onetrading#fetchDeposits
|
|
1101
|
+
* @description fetch all deposits made to an account
|
|
1102
|
+
* @param {string} code unified currency code
|
|
1103
|
+
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
1104
|
+
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
1105
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1106
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1107
|
+
*/
|
|
1098
1108
|
async fetchDeposits(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1099
|
-
/**
|
|
1100
|
-
* @method
|
|
1101
|
-
* @name onetrading#fetchDeposits
|
|
1102
|
-
* @description fetch all deposits made to an account
|
|
1103
|
-
* @param {string} code unified currency code
|
|
1104
|
-
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
1105
|
-
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
1106
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1107
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1108
|
-
*/
|
|
1109
1109
|
await this.loadMarkets();
|
|
1110
1110
|
const request = {
|
|
1111
1111
|
// 'cursor': 'string', // pointer specifying the position from which the next pages should be returned
|
|
@@ -1159,17 +1159,17 @@ export default class onetrading extends Exchange {
|
|
|
1159
1159
|
const depositHistory = this.safeList(response, 'deposit_history', []);
|
|
1160
1160
|
return this.parseTransactions(depositHistory, currency, since, limit, { 'type': 'deposit' });
|
|
1161
1161
|
}
|
|
1162
|
+
/**
|
|
1163
|
+
* @method
|
|
1164
|
+
* @name onetrading#fetchWithdrawals
|
|
1165
|
+
* @description fetch all withdrawals made from an account
|
|
1166
|
+
* @param {string} code unified currency code
|
|
1167
|
+
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
1168
|
+
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
1169
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1170
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1171
|
+
*/
|
|
1162
1172
|
async fetchWithdrawals(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1163
|
-
/**
|
|
1164
|
-
* @method
|
|
1165
|
-
* @name onetrading#fetchWithdrawals
|
|
1166
|
-
* @description fetch all withdrawals made from an account
|
|
1167
|
-
* @param {string} code unified currency code
|
|
1168
|
-
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
1169
|
-
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
1170
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1171
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1172
|
-
*/
|
|
1173
1173
|
await this.loadMarkets();
|
|
1174
1174
|
const request = {
|
|
1175
1175
|
// 'cursor': 'string', // pointer specifying the position from which the next pages should be returned
|
|
@@ -1224,18 +1224,18 @@ export default class onetrading extends Exchange {
|
|
|
1224
1224
|
const withdrawalHistory = this.safeList(response, 'withdrawal_history', []);
|
|
1225
1225
|
return this.parseTransactions(withdrawalHistory, currency, since, limit, { 'type': 'withdrawal' });
|
|
1226
1226
|
}
|
|
1227
|
+
/**
|
|
1228
|
+
* @method
|
|
1229
|
+
* @name onetrading#withdraw
|
|
1230
|
+
* @description make a withdrawal
|
|
1231
|
+
* @param {string} code unified currency code
|
|
1232
|
+
* @param {float} amount the amount to withdraw
|
|
1233
|
+
* @param {string} address the address to withdraw to
|
|
1234
|
+
* @param {string} tag
|
|
1235
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1236
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1237
|
+
*/
|
|
1227
1238
|
async withdraw(code, amount, address, tag = undefined, params = {}) {
|
|
1228
|
-
/**
|
|
1229
|
-
* @method
|
|
1230
|
-
* @name onetrading#withdraw
|
|
1231
|
-
* @description make a withdrawal
|
|
1232
|
-
* @param {string} code unified currency code
|
|
1233
|
-
* @param {float} amount the amount to withdraw
|
|
1234
|
-
* @param {string} address the address to withdraw to
|
|
1235
|
-
* @param {string} tag
|
|
1236
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1237
|
-
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1238
|
-
*/
|
|
1239
1239
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
1240
1240
|
this.checkAddress(address);
|
|
1241
1241
|
await this.loadMarkets();
|
|
@@ -1495,21 +1495,21 @@ export default class onetrading extends Exchange {
|
|
|
1495
1495
|
};
|
|
1496
1496
|
return this.safeString(timeInForces, timeInForce, timeInForce);
|
|
1497
1497
|
}
|
|
1498
|
+
/**
|
|
1499
|
+
* @method
|
|
1500
|
+
* @name onetrading#createOrder
|
|
1501
|
+
* @description create a trade order
|
|
1502
|
+
* @see https://docs.onetrading.com/#create-order
|
|
1503
|
+
* @param {string} symbol unified symbol of the market to create an order in
|
|
1504
|
+
* @param {string} type 'market' or 'limit'
|
|
1505
|
+
* @param {string} side 'buy' or 'sell'
|
|
1506
|
+
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1507
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1508
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1509
|
+
* @param {float} [params.triggerPrice] onetrading only does stop limit orders and does not do stop market
|
|
1510
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1511
|
+
*/
|
|
1498
1512
|
async createOrder(symbol, type, side, amount, price = undefined, params = {}) {
|
|
1499
|
-
/**
|
|
1500
|
-
* @method
|
|
1501
|
-
* @name onetrading#createOrder
|
|
1502
|
-
* @description create a trade order
|
|
1503
|
-
* @see https://docs.onetrading.com/#create-order
|
|
1504
|
-
* @param {string} symbol unified symbol of the market to create an order in
|
|
1505
|
-
* @param {string} type 'market' or 'limit'
|
|
1506
|
-
* @param {string} side 'buy' or 'sell'
|
|
1507
|
-
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1508
|
-
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1509
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1510
|
-
* @param {float} [params.triggerPrice] onetrading only does stop limit orders and does not do stop market
|
|
1511
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1512
|
-
*/
|
|
1513
1513
|
await this.loadMarkets();
|
|
1514
1514
|
const market = this.market(symbol);
|
|
1515
1515
|
const uppercaseType = type.toUpperCase();
|
|
@@ -1567,16 +1567,16 @@ export default class onetrading extends Exchange {
|
|
|
1567
1567
|
//
|
|
1568
1568
|
return this.parseOrder(response, market);
|
|
1569
1569
|
}
|
|
1570
|
+
/**
|
|
1571
|
+
* @method
|
|
1572
|
+
* @name onetrading#cancelOrder
|
|
1573
|
+
* @description cancels an open order
|
|
1574
|
+
* @param {string} id order id
|
|
1575
|
+
* @param {string} symbol not used by bitmex cancelOrder ()
|
|
1576
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1577
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1578
|
+
*/
|
|
1570
1579
|
async cancelOrder(id, symbol = undefined, params = {}) {
|
|
1571
|
-
/**
|
|
1572
|
-
* @method
|
|
1573
|
-
* @name onetrading#cancelOrder
|
|
1574
|
-
* @description cancels an open order
|
|
1575
|
-
* @param {string} id order id
|
|
1576
|
-
* @param {string} symbol not used by bitmex cancelOrder ()
|
|
1577
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1578
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1579
|
-
*/
|
|
1580
1580
|
await this.loadMarkets();
|
|
1581
1581
|
const clientOrderId = this.safeString2(params, 'clientOrderId', 'client_id');
|
|
1582
1582
|
params = this.omit(params, ['clientOrderId', 'client_id']);
|
|
@@ -1595,15 +1595,15 @@ export default class onetrading extends Exchange {
|
|
|
1595
1595
|
//
|
|
1596
1596
|
return response;
|
|
1597
1597
|
}
|
|
1598
|
+
/**
|
|
1599
|
+
* @method
|
|
1600
|
+
* @name onetrading#cancelAllOrders
|
|
1601
|
+
* @description cancel all open orders
|
|
1602
|
+
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
1603
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1604
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1605
|
+
*/
|
|
1598
1606
|
async cancelAllOrders(symbol = undefined, params = {}) {
|
|
1599
|
-
/**
|
|
1600
|
-
* @method
|
|
1601
|
-
* @name onetrading#cancelAllOrders
|
|
1602
|
-
* @description cancel all open orders
|
|
1603
|
-
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
1604
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1605
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1606
|
-
*/
|
|
1607
1607
|
await this.loadMarkets();
|
|
1608
1608
|
const request = {};
|
|
1609
1609
|
if (symbol !== undefined) {
|
|
@@ -1618,16 +1618,16 @@ export default class onetrading extends Exchange {
|
|
|
1618
1618
|
//
|
|
1619
1619
|
return response;
|
|
1620
1620
|
}
|
|
1621
|
+
/**
|
|
1622
|
+
* @method
|
|
1623
|
+
* @name onetrading#cancelOrders
|
|
1624
|
+
* @description cancel multiple orders
|
|
1625
|
+
* @param {string[]} ids order ids
|
|
1626
|
+
* @param {string} symbol unified market symbol, default is undefined
|
|
1627
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1628
|
+
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1629
|
+
*/
|
|
1621
1630
|
async cancelOrders(ids, symbol = undefined, params = {}) {
|
|
1622
|
-
/**
|
|
1623
|
-
* @method
|
|
1624
|
-
* @name onetrading#cancelOrders
|
|
1625
|
-
* @description cancel multiple orders
|
|
1626
|
-
* @param {string[]} ids order ids
|
|
1627
|
-
* @param {string} symbol unified market symbol, default is undefined
|
|
1628
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1629
|
-
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1630
|
-
*/
|
|
1631
1631
|
await this.loadMarkets();
|
|
1632
1632
|
const request = {
|
|
1633
1633
|
'ids': ids.join(','),
|
|
@@ -1640,16 +1640,16 @@ export default class onetrading extends Exchange {
|
|
|
1640
1640
|
//
|
|
1641
1641
|
return response;
|
|
1642
1642
|
}
|
|
1643
|
+
/**
|
|
1644
|
+
* @method
|
|
1645
|
+
* @name onetrading#fetchOrder
|
|
1646
|
+
* @description fetches information on an order made by the user
|
|
1647
|
+
* @param {string} id the order id
|
|
1648
|
+
* @param {string} symbol not used by onetrading fetchOrder
|
|
1649
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1650
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1651
|
+
*/
|
|
1643
1652
|
async fetchOrder(id, symbol = undefined, params = {}) {
|
|
1644
|
-
/**
|
|
1645
|
-
* @method
|
|
1646
|
-
* @name onetrading#fetchOrder
|
|
1647
|
-
* @description fetches information on an order made by the user
|
|
1648
|
-
* @param {string} id the order id
|
|
1649
|
-
* @param {string} symbol not used by onetrading fetchOrder
|
|
1650
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1651
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1652
|
-
*/
|
|
1653
1653
|
await this.loadMarkets();
|
|
1654
1654
|
const request = {
|
|
1655
1655
|
'order_id': id,
|
|
@@ -1698,17 +1698,17 @@ export default class onetrading extends Exchange {
|
|
|
1698
1698
|
//
|
|
1699
1699
|
return this.parseOrder(response);
|
|
1700
1700
|
}
|
|
1701
|
+
/**
|
|
1702
|
+
* @method
|
|
1703
|
+
* @name onetrading#fetchOpenOrders
|
|
1704
|
+
* @description fetch all unfilled currently open orders
|
|
1705
|
+
* @param {string} symbol unified market symbol
|
|
1706
|
+
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1707
|
+
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1708
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1709
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1710
|
+
*/
|
|
1701
1711
|
async fetchOpenOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1702
|
-
/**
|
|
1703
|
-
* @method
|
|
1704
|
-
* @name onetrading#fetchOpenOrders
|
|
1705
|
-
* @description fetch all unfilled currently open orders
|
|
1706
|
-
* @param {string} symbol unified market symbol
|
|
1707
|
-
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1708
|
-
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1709
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1710
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1711
|
-
*/
|
|
1712
1712
|
await this.loadMarkets();
|
|
1713
1713
|
const request = {
|
|
1714
1714
|
// 'from': this.iso8601 (since),
|
|
@@ -1818,34 +1818,34 @@ export default class onetrading extends Exchange {
|
|
|
1818
1818
|
const orderHistory = this.safeList(response, 'order_history', []);
|
|
1819
1819
|
return this.parseOrders(orderHistory, market, since, limit);
|
|
1820
1820
|
}
|
|
1821
|
+
/**
|
|
1822
|
+
* @method
|
|
1823
|
+
* @name onetrading#fetchClosedOrders
|
|
1824
|
+
* @description fetches information on multiple closed orders made by the user
|
|
1825
|
+
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1826
|
+
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1827
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1828
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1829
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1830
|
+
*/
|
|
1821
1831
|
async fetchClosedOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1822
|
-
/**
|
|
1823
|
-
* @method
|
|
1824
|
-
* @name onetrading#fetchClosedOrders
|
|
1825
|
-
* @description fetches information on multiple closed orders made by the user
|
|
1826
|
-
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1827
|
-
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1828
|
-
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1829
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1830
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1831
|
-
*/
|
|
1832
1832
|
const request = {
|
|
1833
1833
|
'with_cancelled_and_rejected': true, // default is false, orders which have been cancelled by the user before being filled or rejected by the system as invalid, additionally, all inactive filled orders which would return with "with_just_filled_inactive"
|
|
1834
1834
|
};
|
|
1835
1835
|
return await this.fetchOpenOrders(symbol, since, limit, this.extend(request, params));
|
|
1836
1836
|
}
|
|
1837
|
+
/**
|
|
1838
|
+
* @method
|
|
1839
|
+
* @name onetrading#fetchOrderTrades
|
|
1840
|
+
* @description fetch all the trades made from a single order
|
|
1841
|
+
* @param {string} id order id
|
|
1842
|
+
* @param {string} symbol unified market symbol
|
|
1843
|
+
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1844
|
+
* @param {int} [limit] the maximum number of trades to retrieve
|
|
1845
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1846
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1847
|
+
*/
|
|
1837
1848
|
async fetchOrderTrades(id, symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1838
|
-
/**
|
|
1839
|
-
* @method
|
|
1840
|
-
* @name onetrading#fetchOrderTrades
|
|
1841
|
-
* @description fetch all the trades made from a single order
|
|
1842
|
-
* @param {string} id order id
|
|
1843
|
-
* @param {string} symbol unified market symbol
|
|
1844
|
-
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1845
|
-
* @param {int} [limit] the maximum number of trades to retrieve
|
|
1846
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1847
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1848
|
-
*/
|
|
1849
1849
|
await this.loadMarkets();
|
|
1850
1850
|
const request = {
|
|
1851
1851
|
'order_id': id,
|
|
@@ -1893,17 +1893,17 @@ export default class onetrading extends Exchange {
|
|
|
1893
1893
|
}
|
|
1894
1894
|
return this.parseTrades(tradeHistory, market, since, limit);
|
|
1895
1895
|
}
|
|
1896
|
+
/**
|
|
1897
|
+
* @method
|
|
1898
|
+
* @name onetrading#fetchMyTrades
|
|
1899
|
+
* @description fetch all trades made by the user
|
|
1900
|
+
* @param {string} symbol unified market symbol
|
|
1901
|
+
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1902
|
+
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1903
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1904
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1905
|
+
*/
|
|
1896
1906
|
async fetchMyTrades(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1897
|
-
/**
|
|
1898
|
-
* @method
|
|
1899
|
-
* @name onetrading#fetchMyTrades
|
|
1900
|
-
* @description fetch all trades made by the user
|
|
1901
|
-
* @param {string} symbol unified market symbol
|
|
1902
|
-
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1903
|
-
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1904
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1905
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1906
|
-
*/
|
|
1907
1907
|
await this.loadMarkets();
|
|
1908
1908
|
const request = {
|
|
1909
1909
|
// 'from': this.iso8601 (since),
|