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/exmo.js
CHANGED
|
@@ -284,42 +284,42 @@ export default class exmo extends Exchange {
|
|
|
284
284
|
'datetime': undefined,
|
|
285
285
|
};
|
|
286
286
|
}
|
|
287
|
+
/**
|
|
288
|
+
* @method
|
|
289
|
+
* @name exmo#reduceMargin
|
|
290
|
+
* @description remove margin from a position
|
|
291
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#eebf9f25-0289-4946-9482-89872c738449
|
|
292
|
+
* @param {string} symbol unified market symbol
|
|
293
|
+
* @param {float} amount the amount of margin to remove
|
|
294
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
295
|
+
* @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=reduce-margin-structure}
|
|
296
|
+
*/
|
|
287
297
|
async reduceMargin(symbol, amount, params = {}) {
|
|
288
|
-
/**
|
|
289
|
-
* @method
|
|
290
|
-
* @name exmo#reduceMargin
|
|
291
|
-
* @description remove margin from a position
|
|
292
|
-
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#eebf9f25-0289-4946-9482-89872c738449
|
|
293
|
-
* @param {string} symbol unified market symbol
|
|
294
|
-
* @param {float} amount the amount of margin to remove
|
|
295
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
296
|
-
* @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=reduce-margin-structure}
|
|
297
|
-
*/
|
|
298
298
|
return await this.modifyMarginHelper(symbol, amount, 'reduce', params);
|
|
299
299
|
}
|
|
300
|
+
/**
|
|
301
|
+
* @method
|
|
302
|
+
* @name exmo#addMargin
|
|
303
|
+
* @description add margin
|
|
304
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#143ef808-79ca-4e49-9e79-a60ea4d8c0e3
|
|
305
|
+
* @param {string} symbol unified market symbol
|
|
306
|
+
* @param {float} amount amount of margin to add
|
|
307
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
308
|
+
* @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=add-margin-structure}
|
|
309
|
+
*/
|
|
300
310
|
async addMargin(symbol, amount, params = {}) {
|
|
301
|
-
/**
|
|
302
|
-
* @method
|
|
303
|
-
* @name exmo#addMargin
|
|
304
|
-
* @description add margin
|
|
305
|
-
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#143ef808-79ca-4e49-9e79-a60ea4d8c0e3
|
|
306
|
-
* @param {string} symbol unified market symbol
|
|
307
|
-
* @param {float} amount amount of margin to add
|
|
308
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
309
|
-
* @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=add-margin-structure}
|
|
310
|
-
*/
|
|
311
311
|
return await this.modifyMarginHelper(symbol, amount, 'add', params);
|
|
312
312
|
}
|
|
313
|
+
/**
|
|
314
|
+
* @method
|
|
315
|
+
* @name exmo#fetchTradingFees
|
|
316
|
+
* @description fetch the trading fees for multiple markets
|
|
317
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#90927062-256c-4b03-900f-2b99131f9a54
|
|
318
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#7de7e75c-5833-45a8-b937-c2276d235aaa
|
|
319
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
320
|
+
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
321
|
+
*/
|
|
313
322
|
async fetchTradingFees(params = {}) {
|
|
314
|
-
/**
|
|
315
|
-
* @method
|
|
316
|
-
* @name exmo#fetchTradingFees
|
|
317
|
-
* @description fetch the trading fees for multiple markets
|
|
318
|
-
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#90927062-256c-4b03-900f-2b99131f9a54
|
|
319
|
-
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#7de7e75c-5833-45a8-b937-c2276d235aaa
|
|
320
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
321
|
-
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
322
|
-
*/
|
|
323
323
|
const options = this.safeValue(this.options, 'fetchTradingFees', {});
|
|
324
324
|
const defaultMethod = this.safeString(options, 'method', 'fetchPrivateTradingFees');
|
|
325
325
|
const method = this.safeString(params, 'method', defaultMethod);
|
|
@@ -438,17 +438,17 @@ export default class exmo extends Exchange {
|
|
|
438
438
|
}
|
|
439
439
|
return result;
|
|
440
440
|
}
|
|
441
|
+
/**
|
|
442
|
+
* @method
|
|
443
|
+
* @name exmo#fetchTransactionFees
|
|
444
|
+
* @deprecated
|
|
445
|
+
* @description please use fetchDepositWithdrawFees instead
|
|
446
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#4190035d-24b1-453d-833b-37e0a52f88e2
|
|
447
|
+
* @param {string[]|undefined} codes list of unified currency codes
|
|
448
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
449
|
+
* @returns {object} a list of [transaction fees structures]{@link https://docs.ccxt.com/#/?id=fees-structure}
|
|
450
|
+
*/
|
|
441
451
|
async fetchTransactionFees(codes = undefined, params = {}) {
|
|
442
|
-
/**
|
|
443
|
-
* @method
|
|
444
|
-
* @name exmo#fetchTransactionFees
|
|
445
|
-
* @deprecated
|
|
446
|
-
* @description please use fetchDepositWithdrawFees instead
|
|
447
|
-
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#4190035d-24b1-453d-833b-37e0a52f88e2
|
|
448
|
-
* @param {string[]|undefined} codes list of unified currency codes
|
|
449
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
450
|
-
* @returns {object} a list of [transaction fees structures]{@link https://docs.ccxt.com/#/?id=fees-structure}
|
|
451
|
-
*/
|
|
452
452
|
await this.loadMarkets();
|
|
453
453
|
const cryptoList = await this.publicGetPaymentsProvidersCryptoList(params);
|
|
454
454
|
//
|
|
@@ -512,16 +512,16 @@ export default class exmo extends Exchange {
|
|
|
512
512
|
this.options['transactionFees'] = result;
|
|
513
513
|
return result;
|
|
514
514
|
}
|
|
515
|
+
/**
|
|
516
|
+
* @method
|
|
517
|
+
* @name exmo#fetchDepositWithdrawFees
|
|
518
|
+
* @description fetch deposit and withdraw fees
|
|
519
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#4190035d-24b1-453d-833b-37e0a52f88e2
|
|
520
|
+
* @param {string[]|undefined} codes list of unified currency codes
|
|
521
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
522
|
+
* @returns {object} a list of [transaction fees structures]{@link https://docs.ccxt.com/#/?id=fees-structure}
|
|
523
|
+
*/
|
|
515
524
|
async fetchDepositWithdrawFees(codes = undefined, params = {}) {
|
|
516
|
-
/**
|
|
517
|
-
* @method
|
|
518
|
-
* @name exmo#fetchDepositWithdrawFees
|
|
519
|
-
* @description fetch deposit and withdraw fees
|
|
520
|
-
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#4190035d-24b1-453d-833b-37e0a52f88e2
|
|
521
|
-
* @param {string[]|undefined} codes list of unified currency codes
|
|
522
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
523
|
-
* @returns {object} a list of [transaction fees structures]{@link https://docs.ccxt.com/#/?id=fees-structure}
|
|
524
|
-
*/
|
|
525
525
|
await this.loadMarkets();
|
|
526
526
|
const response = await this.publicGetPaymentsProvidersCryptoList(params);
|
|
527
527
|
//
|
|
@@ -599,16 +599,16 @@ export default class exmo extends Exchange {
|
|
|
599
599
|
}
|
|
600
600
|
return this.assignDefaultDepositWithdrawFees(result);
|
|
601
601
|
}
|
|
602
|
+
/**
|
|
603
|
+
* @method
|
|
604
|
+
* @name exmo#fetchCurrencies
|
|
605
|
+
* @description fetches all available currencies on an exchange
|
|
606
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#7cdf0ca8-9ff6-4cf3-aa33-bcec83155c49
|
|
607
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#4190035d-24b1-453d-833b-37e0a52f88e2
|
|
608
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
609
|
+
* @returns {object} an associative dictionary of currencies
|
|
610
|
+
*/
|
|
602
611
|
async fetchCurrencies(params = {}) {
|
|
603
|
-
/**
|
|
604
|
-
* @method
|
|
605
|
-
* @name exmo#fetchCurrencies
|
|
606
|
-
* @description fetches all available currencies on an exchange
|
|
607
|
-
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#7cdf0ca8-9ff6-4cf3-aa33-bcec83155c49
|
|
608
|
-
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#4190035d-24b1-453d-833b-37e0a52f88e2
|
|
609
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
610
|
-
* @returns {object} an associative dictionary of currencies
|
|
611
|
-
*/
|
|
612
612
|
//
|
|
613
613
|
const currencyList = await this.publicGetCurrencyListExtended(params);
|
|
614
614
|
//
|
|
@@ -727,15 +727,15 @@ export default class exmo extends Exchange {
|
|
|
727
727
|
}
|
|
728
728
|
return result;
|
|
729
729
|
}
|
|
730
|
+
/**
|
|
731
|
+
* @method
|
|
732
|
+
* @name exmo#fetchMarkets
|
|
733
|
+
* @description retrieves data on all markets for exmo
|
|
734
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#7de7e75c-5833-45a8-b937-c2276d235aaa
|
|
735
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
736
|
+
* @returns {object[]} an array of objects representing market data
|
|
737
|
+
*/
|
|
730
738
|
async fetchMarkets(params = {}) {
|
|
731
|
-
/**
|
|
732
|
-
* @method
|
|
733
|
-
* @name exmo#fetchMarkets
|
|
734
|
-
* @description retrieves data on all markets for exmo
|
|
735
|
-
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#7de7e75c-5833-45a8-b937-c2276d235aaa
|
|
736
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
737
|
-
* @returns {object[]} an array of objects representing market data
|
|
738
|
-
*/
|
|
739
739
|
const response = await this.publicGetPairSettings(params);
|
|
740
740
|
//
|
|
741
741
|
// {
|
|
@@ -855,19 +855,19 @@ export default class exmo extends Exchange {
|
|
|
855
855
|
}
|
|
856
856
|
return result;
|
|
857
857
|
}
|
|
858
|
+
/**
|
|
859
|
+
* @method
|
|
860
|
+
* @name exmo#fetchOHLCV
|
|
861
|
+
* @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
862
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#65eeb949-74e5-4631-9184-c38387fe53e8
|
|
863
|
+
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
864
|
+
* @param {string} timeframe the length of time each candle represents
|
|
865
|
+
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
866
|
+
* @param {int} [limit] the maximum amount of candles to fetch
|
|
867
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
868
|
+
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
869
|
+
*/
|
|
858
870
|
async fetchOHLCV(symbol, timeframe = '1m', since = undefined, limit = undefined, params = {}) {
|
|
859
|
-
/**
|
|
860
|
-
* @method
|
|
861
|
-
* @name exmo#fetchOHLCV
|
|
862
|
-
* @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
863
|
-
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#65eeb949-74e5-4631-9184-c38387fe53e8
|
|
864
|
-
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
865
|
-
* @param {string} timeframe the length of time each candle represents
|
|
866
|
-
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
867
|
-
* @param {int} [limit] the maximum amount of candles to fetch
|
|
868
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
869
|
-
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
870
|
-
*/
|
|
871
871
|
await this.loadMarkets();
|
|
872
872
|
const market = this.market(symbol);
|
|
873
873
|
const request = {
|
|
@@ -966,17 +966,17 @@ export default class exmo extends Exchange {
|
|
|
966
966
|
}
|
|
967
967
|
return this.safeBalance(result);
|
|
968
968
|
}
|
|
969
|
+
/**
|
|
970
|
+
* @method
|
|
971
|
+
* @name exmo#fetchBalance
|
|
972
|
+
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
973
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#59c5160f-27a1-4d9a-8cfb-7979c7ffaac6
|
|
974
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#c8388df7-1f9f-4d41-81c4-5a387d171dc6
|
|
975
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
976
|
+
* @param {string} [params.marginMode] *isolated* fetches the isolated margin balance
|
|
977
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
978
|
+
*/
|
|
969
979
|
async fetchBalance(params = {}) {
|
|
970
|
-
/**
|
|
971
|
-
* @method
|
|
972
|
-
* @name exmo#fetchBalance
|
|
973
|
-
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
974
|
-
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#59c5160f-27a1-4d9a-8cfb-7979c7ffaac6
|
|
975
|
-
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#c8388df7-1f9f-4d41-81c4-5a387d171dc6
|
|
976
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
977
|
-
* @param {string} [params.marginMode] *isolated* fetches the isolated margin balance
|
|
978
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
979
|
-
*/
|
|
980
980
|
await this.loadMarkets();
|
|
981
981
|
let marginMode = undefined;
|
|
982
982
|
[marginMode, params] = this.handleMarginModeAndParams('fetchBalance', params);
|
|
@@ -1015,17 +1015,17 @@ export default class exmo extends Exchange {
|
|
|
1015
1015
|
}
|
|
1016
1016
|
return this.parseBalance(response);
|
|
1017
1017
|
}
|
|
1018
|
+
/**
|
|
1019
|
+
* @method
|
|
1020
|
+
* @name exmo#fetchOrderBook
|
|
1021
|
+
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
1022
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#c60c51a8-e683-4f45-a000-820723d37871
|
|
1023
|
+
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
1024
|
+
* @param {int} [limit] the maximum amount of order book entries to return
|
|
1025
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1026
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
1027
|
+
*/
|
|
1018
1028
|
async fetchOrderBook(symbol, limit = undefined, params = {}) {
|
|
1019
|
-
/**
|
|
1020
|
-
* @method
|
|
1021
|
-
* @name exmo#fetchOrderBook
|
|
1022
|
-
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
1023
|
-
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#c60c51a8-e683-4f45-a000-820723d37871
|
|
1024
|
-
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
1025
|
-
* @param {int} [limit] the maximum amount of order book entries to return
|
|
1026
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1027
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
1028
|
-
*/
|
|
1029
1029
|
await this.loadMarkets();
|
|
1030
1030
|
const market = this.market(symbol);
|
|
1031
1031
|
const request = {
|
|
@@ -1038,17 +1038,17 @@ export default class exmo extends Exchange {
|
|
|
1038
1038
|
const result = this.safeDict(response, market['id']);
|
|
1039
1039
|
return this.parseOrderBook(result, market['symbol'], undefined, 'bid', 'ask');
|
|
1040
1040
|
}
|
|
1041
|
+
/**
|
|
1042
|
+
* @method
|
|
1043
|
+
* @name exmo#fetchOrderBooks
|
|
1044
|
+
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data for multiple markets
|
|
1045
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#c60c51a8-e683-4f45-a000-820723d37871
|
|
1046
|
+
* @param {string[]|undefined} symbols list of unified market symbols, all symbols fetched if undefined, default is undefined
|
|
1047
|
+
* @param {int} [limit] max number of entries per orderbook to return, default is undefined
|
|
1048
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1049
|
+
* @returns {object} a dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbol
|
|
1050
|
+
*/
|
|
1041
1051
|
async fetchOrderBooks(symbols = undefined, limit = undefined, params = {}) {
|
|
1042
|
-
/**
|
|
1043
|
-
* @method
|
|
1044
|
-
* @name exmo#fetchOrderBooks
|
|
1045
|
-
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data for multiple markets
|
|
1046
|
-
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#c60c51a8-e683-4f45-a000-820723d37871
|
|
1047
|
-
* @param {string[]|undefined} symbols list of unified market symbols, all symbols fetched if undefined, default is undefined
|
|
1048
|
-
* @param {int} [limit] max number of entries per orderbook to return, default is undefined
|
|
1049
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1050
|
-
* @returns {object} a dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbol
|
|
1051
|
-
*/
|
|
1052
1052
|
await this.loadMarkets();
|
|
1053
1053
|
let ids = undefined;
|
|
1054
1054
|
if (symbols === undefined) {
|
|
@@ -1119,16 +1119,16 @@ export default class exmo extends Exchange {
|
|
|
1119
1119
|
'info': ticker,
|
|
1120
1120
|
}, market);
|
|
1121
1121
|
}
|
|
1122
|
+
/**
|
|
1123
|
+
* @method
|
|
1124
|
+
* @name exmo#fetchTickers
|
|
1125
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
1126
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#4c8e6459-3503-4361-b012-c34bb9f7e385
|
|
1127
|
+
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
1128
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1129
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
1130
|
+
*/
|
|
1122
1131
|
async fetchTickers(symbols = undefined, params = {}) {
|
|
1123
|
-
/**
|
|
1124
|
-
* @method
|
|
1125
|
-
* @name exmo#fetchTickers
|
|
1126
|
-
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
1127
|
-
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#4c8e6459-3503-4361-b012-c34bb9f7e385
|
|
1128
|
-
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
1129
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1130
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
1131
|
-
*/
|
|
1132
1132
|
await this.loadMarkets();
|
|
1133
1133
|
symbols = this.marketSymbols(symbols);
|
|
1134
1134
|
const response = await this.publicGetTicker(params);
|
|
@@ -1158,16 +1158,16 @@ export default class exmo extends Exchange {
|
|
|
1158
1158
|
}
|
|
1159
1159
|
return this.filterByArrayTickers(result, 'symbol', symbols);
|
|
1160
1160
|
}
|
|
1161
|
+
/**
|
|
1162
|
+
* @method
|
|
1163
|
+
* @name exmo#fetchTicker
|
|
1164
|
+
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
1165
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#4c8e6459-3503-4361-b012-c34bb9f7e385
|
|
1166
|
+
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
1167
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1168
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
1169
|
+
*/
|
|
1161
1170
|
async fetchTicker(symbol, params = {}) {
|
|
1162
|
-
/**
|
|
1163
|
-
* @method
|
|
1164
|
-
* @name exmo#fetchTicker
|
|
1165
|
-
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
1166
|
-
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#4c8e6459-3503-4361-b012-c34bb9f7e385
|
|
1167
|
-
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
1168
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1169
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
1170
|
-
*/
|
|
1171
1171
|
await this.loadMarkets();
|
|
1172
1172
|
const response = await this.publicGetTicker(params);
|
|
1173
1173
|
const market = this.market(symbol);
|
|
@@ -1263,18 +1263,18 @@ export default class exmo extends Exchange {
|
|
|
1263
1263
|
'fee': fee,
|
|
1264
1264
|
}, market);
|
|
1265
1265
|
}
|
|
1266
|
+
/**
|
|
1267
|
+
* @method
|
|
1268
|
+
* @name exmo#fetchTrades
|
|
1269
|
+
* @description get the list of most recent trades for a particular symbol
|
|
1270
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#5a5a9c0d-cf17-47f6-9d62-6d4404ebd5ac
|
|
1271
|
+
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
1272
|
+
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
1273
|
+
* @param {int} [limit] the maximum amount of trades to fetch
|
|
1274
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1275
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
1276
|
+
*/
|
|
1266
1277
|
async fetchTrades(symbol, since = undefined, limit = undefined, params = {}) {
|
|
1267
|
-
/**
|
|
1268
|
-
* @method
|
|
1269
|
-
* @name exmo#fetchTrades
|
|
1270
|
-
* @description get the list of most recent trades for a particular symbol
|
|
1271
|
-
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#5a5a9c0d-cf17-47f6-9d62-6d4404ebd5ac
|
|
1272
|
-
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
1273
|
-
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
1274
|
-
* @param {int} [limit] the maximum amount of trades to fetch
|
|
1275
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1276
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
1277
|
-
*/
|
|
1278
1278
|
await this.loadMarkets();
|
|
1279
1279
|
const market = this.market(symbol);
|
|
1280
1280
|
const request = {
|
|
@@ -1306,22 +1306,22 @@ export default class exmo extends Exchange {
|
|
|
1306
1306
|
const data = this.safeList(response, market['id'], []);
|
|
1307
1307
|
return this.parseTrades(data, market, since, limit);
|
|
1308
1308
|
}
|
|
1309
|
+
/**
|
|
1310
|
+
* @method
|
|
1311
|
+
* @name exmo#fetchMyTrades
|
|
1312
|
+
* @description fetch all trades made by the user
|
|
1313
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#b8d8d9af-4f46-46a1-939b-ad261d79f452 // spot
|
|
1314
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#f4b1aaf8-399f-403b-ab5e-4926d967a106 // margin
|
|
1315
|
+
* @param {string} symbol a symbol is required but it can be a single string, or a non-empty array
|
|
1316
|
+
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1317
|
+
* @param {int} [limit] *required for margin orders* the maximum number of trades structures to retrieve
|
|
1318
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1319
|
+
*
|
|
1320
|
+
* EXCHANGE SPECIFIC PARAMETERS
|
|
1321
|
+
* @param {int} [params.offset] last deal offset, default = 0
|
|
1322
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1323
|
+
*/
|
|
1309
1324
|
async fetchMyTrades(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1310
|
-
/**
|
|
1311
|
-
* @method
|
|
1312
|
-
* @name exmo#fetchMyTrades
|
|
1313
|
-
* @description fetch all trades made by the user
|
|
1314
|
-
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#b8d8d9af-4f46-46a1-939b-ad261d79f452 // spot
|
|
1315
|
-
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#f4b1aaf8-399f-403b-ab5e-4926d967a106 // margin
|
|
1316
|
-
* @param {string} symbol a symbol is required but it can be a single string, or a non-empty array
|
|
1317
|
-
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1318
|
-
* @param {int} [limit] *required for margin orders* the maximum number of trades structures to retrieve
|
|
1319
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1320
|
-
*
|
|
1321
|
-
* EXCHANGE SPECIFIC PARAMETERS
|
|
1322
|
-
* @param {int} [params.offset] last deal offset, default = 0
|
|
1323
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1324
|
-
*/
|
|
1325
1325
|
if (symbol === undefined) {
|
|
1326
1326
|
throw new ArgumentsRequired(this.id + ' fetchMyTrades() requires a symbol argument');
|
|
1327
1327
|
}
|
|
@@ -1409,25 +1409,25 @@ export default class exmo extends Exchange {
|
|
|
1409
1409
|
}
|
|
1410
1410
|
return this.filterBySinceLimit(result, since, limit);
|
|
1411
1411
|
}
|
|
1412
|
+
/**
|
|
1413
|
+
* @method
|
|
1414
|
+
* @name exmo#createOrder
|
|
1415
|
+
* @description create a trade order
|
|
1416
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#80daa469-ec59-4d0a-b229-6a311d8dd1cd
|
|
1417
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#de6f4321-eeac-468c-87f7-c4ad7062e265 // stop market
|
|
1418
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#3561b86c-9ff1-436e-8e68-ac926b7eb523 // margin
|
|
1419
|
+
* @param {string} symbol unified symbol of the market to create an order in
|
|
1420
|
+
* @param {string} type 'market' or 'limit'
|
|
1421
|
+
* @param {string} side 'buy' or 'sell'
|
|
1422
|
+
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1423
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1424
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1425
|
+
* @param {float} [params.stopPrice] the price at which a trigger order is triggered at
|
|
1426
|
+
* @param {string} [params.timeInForce] *spot only* 'fok', 'ioc' or 'post_only'
|
|
1427
|
+
* @param {boolean} [params.postOnly] *spot only* true for post only orders
|
|
1428
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1429
|
+
*/
|
|
1412
1430
|
async createOrder(symbol, type, side, amount, price = undefined, params = {}) {
|
|
1413
|
-
/**
|
|
1414
|
-
* @method
|
|
1415
|
-
* @name exmo#createOrder
|
|
1416
|
-
* @description create a trade order
|
|
1417
|
-
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#80daa469-ec59-4d0a-b229-6a311d8dd1cd
|
|
1418
|
-
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#de6f4321-eeac-468c-87f7-c4ad7062e265 // stop market
|
|
1419
|
-
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#3561b86c-9ff1-436e-8e68-ac926b7eb523 // margin
|
|
1420
|
-
* @param {string} symbol unified symbol of the market to create an order in
|
|
1421
|
-
* @param {string} type 'market' or 'limit'
|
|
1422
|
-
* @param {string} side 'buy' or 'sell'
|
|
1423
|
-
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1424
|
-
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1425
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1426
|
-
* @param {float} [params.stopPrice] the price at which a trigger order is triggered at
|
|
1427
|
-
* @param {string} [params.timeInForce] *spot only* 'fok', 'ioc' or 'post_only'
|
|
1428
|
-
* @param {boolean} [params.postOnly] *spot only* true for post only orders
|
|
1429
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1430
|
-
*/
|
|
1431
1431
|
await this.loadMarkets();
|
|
1432
1432
|
const market = this.market(symbol);
|
|
1433
1433
|
const isMarket = (type === 'market') && (price === undefined);
|
|
@@ -1526,21 +1526,21 @@ export default class exmo extends Exchange {
|
|
|
1526
1526
|
}
|
|
1527
1527
|
return this.parseOrder(response, market);
|
|
1528
1528
|
}
|
|
1529
|
+
/**
|
|
1530
|
+
* @method
|
|
1531
|
+
* @name exmo#cancelOrder
|
|
1532
|
+
* @description cancels an open order
|
|
1533
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#1f710d4b-75bc-4b65-ad68-006f863a3f26
|
|
1534
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#a4d0aae8-28f7-41ac-94fd-c4030130453d // stop market
|
|
1535
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#705dfec5-2b35-4667-862b-faf54eca6209 // margin
|
|
1536
|
+
* @param {string} id order id
|
|
1537
|
+
* @param {string} symbol not used by exmo cancelOrder ()
|
|
1538
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1539
|
+
* @param {boolean} [params.trigger] true to cancel a trigger order
|
|
1540
|
+
* @param {string} [params.marginMode] set to 'cross' or 'isolated' to cancel a margin order
|
|
1541
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1542
|
+
*/
|
|
1529
1543
|
async cancelOrder(id, symbol = undefined, params = {}) {
|
|
1530
|
-
/**
|
|
1531
|
-
* @method
|
|
1532
|
-
* @name exmo#cancelOrder
|
|
1533
|
-
* @description cancels an open order
|
|
1534
|
-
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#1f710d4b-75bc-4b65-ad68-006f863a3f26
|
|
1535
|
-
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#a4d0aae8-28f7-41ac-94fd-c4030130453d // stop market
|
|
1536
|
-
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#705dfec5-2b35-4667-862b-faf54eca6209 // margin
|
|
1537
|
-
* @param {string} id order id
|
|
1538
|
-
* @param {string} symbol not used by exmo cancelOrder ()
|
|
1539
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1540
|
-
* @param {boolean} [params.trigger] true to cancel a trigger order
|
|
1541
|
-
* @param {string} [params.marginMode] set to 'cross' or 'isolated' to cancel a margin order
|
|
1542
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1543
|
-
*/
|
|
1544
1544
|
await this.loadMarkets();
|
|
1545
1545
|
const request = {};
|
|
1546
1546
|
const stop = this.safeValue2(params, 'trigger', 'stop');
|
|
@@ -1579,16 +1579,17 @@ export default class exmo extends Exchange {
|
|
|
1579
1579
|
}
|
|
1580
1580
|
return this.parseOrder(response);
|
|
1581
1581
|
}
|
|
1582
|
+
/**
|
|
1583
|
+
* @method
|
|
1584
|
+
* @name exmo#fetchOrder
|
|
1585
|
+
* @description *spot only* fetches information on an order made by the user
|
|
1586
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#cf27781e-28e5-4b39-a52d-3110f5d22459 // spot
|
|
1587
|
+
* @param {string} id order id
|
|
1588
|
+
* @param {string} symbol not used by exmo fetchOrder
|
|
1589
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1590
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1591
|
+
*/
|
|
1582
1592
|
async fetchOrder(id, symbol = undefined, params = {}) {
|
|
1583
|
-
/**
|
|
1584
|
-
* @method
|
|
1585
|
-
* @name exmo#fetchOrder
|
|
1586
|
-
* @description *spot only* fetches information on an order made by the user
|
|
1587
|
-
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#cf27781e-28e5-4b39-a52d-3110f5d22459 // spot
|
|
1588
|
-
* @param {string} symbol not used by exmo fetchOrder
|
|
1589
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1590
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1591
|
-
*/
|
|
1592
1593
|
await this.loadMarkets();
|
|
1593
1594
|
const request = {
|
|
1594
1595
|
'order_id': id.toString(),
|
|
@@ -1619,21 +1620,21 @@ export default class exmo extends Exchange {
|
|
|
1619
1620
|
order['id'] = id.toString();
|
|
1620
1621
|
return order;
|
|
1621
1622
|
}
|
|
1623
|
+
/**
|
|
1624
|
+
* @method
|
|
1625
|
+
* @name exmo#fetchOrderTrades
|
|
1626
|
+
* @description fetch all the trades made from a single order
|
|
1627
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#cf27781e-28e5-4b39-a52d-3110f5d22459 // spot
|
|
1628
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#00810661-9119-46c5-aec5-55abe9cb42c7 // margin
|
|
1629
|
+
* @param {string} id order id
|
|
1630
|
+
* @param {string} symbol unified market symbol
|
|
1631
|
+
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1632
|
+
* @param {int} [limit] the maximum number of trades to retrieve
|
|
1633
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1634
|
+
* @param {string} [params.marginMode] set to "isolated" to fetch trades for a margin order
|
|
1635
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1636
|
+
*/
|
|
1622
1637
|
async fetchOrderTrades(id, symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1623
|
-
/**
|
|
1624
|
-
* @method
|
|
1625
|
-
* @name exmo#fetchOrderTrades
|
|
1626
|
-
* @description fetch all the trades made from a single order
|
|
1627
|
-
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#cf27781e-28e5-4b39-a52d-3110f5d22459 // spot
|
|
1628
|
-
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#00810661-9119-46c5-aec5-55abe9cb42c7 // margin
|
|
1629
|
-
* @param {string} id order id
|
|
1630
|
-
* @param {string} symbol unified market symbol
|
|
1631
|
-
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1632
|
-
* @param {int} [limit] the maximum number of trades to retrieve
|
|
1633
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1634
|
-
* @param {string} [params.marginMode] set to "isolated" to fetch trades for a margin order
|
|
1635
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1636
|
-
*/
|
|
1637
1638
|
let marginMode = undefined;
|
|
1638
1639
|
[marginMode, params] = this.handleMarginModeAndParams('fetchOrderTrades', params);
|
|
1639
1640
|
if (marginMode === 'cross') {
|
|
@@ -1697,20 +1698,20 @@ export default class exmo extends Exchange {
|
|
|
1697
1698
|
const trades = this.safeList(response, 'trades');
|
|
1698
1699
|
return this.parseTrades(trades, market, since, limit);
|
|
1699
1700
|
}
|
|
1701
|
+
/**
|
|
1702
|
+
* @method
|
|
1703
|
+
* @name exmo#fetchOpenOrders
|
|
1704
|
+
* @description fetch all unfilled currently open orders
|
|
1705
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#0e135370-daa4-4689-8acd-b6876dee9ba1 // spot open orders
|
|
1706
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#a7cfd4f0-476e-4675-b33f-22a46902f245 // margin
|
|
1707
|
+
* @param {string} symbol unified market symbol
|
|
1708
|
+
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1709
|
+
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1710
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1711
|
+
* @param {string} [params.marginMode] set to "isolated" for margin orders
|
|
1712
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1713
|
+
*/
|
|
1700
1714
|
async fetchOpenOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1701
|
-
/**
|
|
1702
|
-
* @method
|
|
1703
|
-
* @name exmo#fetchOpenOrders
|
|
1704
|
-
* @description fetch all unfilled currently open orders
|
|
1705
|
-
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#0e135370-daa4-4689-8acd-b6876dee9ba1 // spot open orders
|
|
1706
|
-
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#a7cfd4f0-476e-4675-b33f-22a46902f245 // margin
|
|
1707
|
-
* @param {string} symbol unified market symbol
|
|
1708
|
-
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1709
|
-
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1710
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1711
|
-
* @param {string} [params.marginMode] set to "isolated" for margin orders
|
|
1712
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1713
|
-
*/
|
|
1714
1715
|
await this.loadMarkets();
|
|
1715
1716
|
let market = undefined;
|
|
1716
1717
|
if (symbol !== undefined) {
|
|
@@ -1961,20 +1962,20 @@ export default class exmo extends Exchange {
|
|
|
1961
1962
|
'info': order,
|
|
1962
1963
|
}, market);
|
|
1963
1964
|
}
|
|
1965
|
+
/**
|
|
1966
|
+
* @method
|
|
1967
|
+
* @name exmo#fetchCanceledOrders
|
|
1968
|
+
* @description fetches information on multiple canceled orders made by the user
|
|
1969
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#1d2524dd-ae6d-403a-a067-77b50d13fbe5 // margin
|
|
1970
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#a51be1d0-af5f-44e4-99d7-f7b04c6067d0 // spot canceled orders
|
|
1971
|
+
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1972
|
+
* @param {int} [since] timestamp in ms of the earliest order, default is undefined
|
|
1973
|
+
* @param {int} [limit] max number of orders to return, default is undefined
|
|
1974
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1975
|
+
* @param {string} [params.marginMode] set to "isolated" for margin orders
|
|
1976
|
+
* @returns {object} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1977
|
+
*/
|
|
1964
1978
|
async fetchCanceledOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1965
|
-
/**
|
|
1966
|
-
* @method
|
|
1967
|
-
* @name exmo#fetchCanceledOrders
|
|
1968
|
-
* @description fetches information on multiple canceled orders made by the user
|
|
1969
|
-
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#1d2524dd-ae6d-403a-a067-77b50d13fbe5 // margin
|
|
1970
|
-
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#a51be1d0-af5f-44e4-99d7-f7b04c6067d0 // spot canceled orders
|
|
1971
|
-
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1972
|
-
* @param {int} [since] timestamp in ms of the earliest order, default is undefined
|
|
1973
|
-
* @param {int} [limit] max number of orders to return, default is undefined
|
|
1974
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1975
|
-
* @param {string} [params.marginMode] set to "isolated" for margin orders
|
|
1976
|
-
* @returns {object} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1977
|
-
*/
|
|
1978
1979
|
await this.loadMarkets();
|
|
1979
1980
|
let marginMode = undefined;
|
|
1980
1981
|
[marginMode, params] = this.handleMarginModeAndParams('fetchOrders', params);
|
|
@@ -2058,28 +2059,28 @@ export default class exmo extends Exchange {
|
|
|
2058
2059
|
return result;
|
|
2059
2060
|
}
|
|
2060
2061
|
}
|
|
2062
|
+
/**
|
|
2063
|
+
* @method
|
|
2064
|
+
* @name exmo#editOrder
|
|
2065
|
+
* @description *margin only* edit a trade order
|
|
2066
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#f27ee040-c75f-4b59-b608-d05bd45b7899 // margin
|
|
2067
|
+
* @param {string} id order id
|
|
2068
|
+
* @param {string} symbol unified CCXT market symbol
|
|
2069
|
+
* @param {string} type not used by exmo editOrder
|
|
2070
|
+
* @param {string} side not used by exmo editOrder
|
|
2071
|
+
* @param {float} [amount] how much of the currency you want to trade in units of the base currency
|
|
2072
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
2073
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2074
|
+
* @param {float} [params.triggerPrice] stop price for stop-market and stop-limit orders
|
|
2075
|
+
* @param {string} params.marginMode must be set to isolated
|
|
2076
|
+
*
|
|
2077
|
+
* EXCHANGE SPECIFIC PARAMETERS
|
|
2078
|
+
* @param {int} [params.distance] distance for trailing stop orders
|
|
2079
|
+
* @param {int} [params.expire] expiration timestamp in UTC timezone for the order. order will not be expired if expire is 0
|
|
2080
|
+
* @param {string} [params.comment] optional comment for order. up to 50 latin symbols, whitespaces, underscores
|
|
2081
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2082
|
+
*/
|
|
2061
2083
|
async editOrder(id, symbol, type, side, amount = undefined, price = undefined, params = {}) {
|
|
2062
|
-
/**
|
|
2063
|
-
* @method
|
|
2064
|
-
* @name exmo#editOrder
|
|
2065
|
-
* @description *margin only* edit a trade order
|
|
2066
|
-
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#f27ee040-c75f-4b59-b608-d05bd45b7899 // margin
|
|
2067
|
-
* @param {string} id order id
|
|
2068
|
-
* @param {string} symbol unified CCXT market symbol
|
|
2069
|
-
* @param {string} type not used by exmo editOrder
|
|
2070
|
-
* @param {string} side not used by exmo editOrder
|
|
2071
|
-
* @param {float} [amount] how much of the currency you want to trade in units of the base currency
|
|
2072
|
-
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
2073
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2074
|
-
* @param {float} [params.triggerPrice] stop price for stop-market and stop-limit orders
|
|
2075
|
-
* @param {string} params.marginMode must be set to isolated
|
|
2076
|
-
*
|
|
2077
|
-
* EXCHANGE SPECIFIC PARAMETERS
|
|
2078
|
-
* @param {int} [params.distance] distance for trailing stop orders
|
|
2079
|
-
* @param {int} [params.expire] expiration timestamp in UTC timezone for the order. order will not be expired if expire is 0
|
|
2080
|
-
* @param {string} [params.comment] optional comment for order. up to 50 latin symbols, whitespaces, underscores
|
|
2081
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2082
|
-
*/
|
|
2083
2084
|
await this.loadMarkets();
|
|
2084
2085
|
const market = this.market(symbol);
|
|
2085
2086
|
let marginMode = undefined;
|
|
@@ -2104,16 +2105,16 @@ export default class exmo extends Exchange {
|
|
|
2104
2105
|
const response = await this.privatePostMarginUserOrderUpdate(this.extend(request, params));
|
|
2105
2106
|
return this.parseOrder(response);
|
|
2106
2107
|
}
|
|
2108
|
+
/**
|
|
2109
|
+
* @method
|
|
2110
|
+
* @name exmo#fetchDepositAddress
|
|
2111
|
+
* @description fetch the deposit address for a currency associated with this account
|
|
2112
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#c8f9ced9-7ab6-4383-a6a4-bc54469ba60e
|
|
2113
|
+
* @param {string} code unified currency code
|
|
2114
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2115
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
2116
|
+
*/
|
|
2107
2117
|
async fetchDepositAddress(code, params = {}) {
|
|
2108
|
-
/**
|
|
2109
|
-
* @method
|
|
2110
|
-
* @name exmo#fetchDepositAddress
|
|
2111
|
-
* @description fetch the deposit address for a currency associated with this account
|
|
2112
|
-
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#c8f9ced9-7ab6-4383-a6a4-bc54469ba60e
|
|
2113
|
-
* @param {string} code unified currency code
|
|
2114
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2115
|
-
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
2116
|
-
*/
|
|
2117
2118
|
await this.loadMarkets();
|
|
2118
2119
|
const response = await this.privatePostDepositAddress(params);
|
|
2119
2120
|
//
|
|
@@ -2151,19 +2152,19 @@ export default class exmo extends Exchange {
|
|
|
2151
2152
|
}
|
|
2152
2153
|
return undefined;
|
|
2153
2154
|
}
|
|
2155
|
+
/**
|
|
2156
|
+
* @method
|
|
2157
|
+
* @name exmo#withdraw
|
|
2158
|
+
* @description make a withdrawal
|
|
2159
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#3ab9c34d-ad58-4f87-9c57-2e2ea88a8325
|
|
2160
|
+
* @param {string} code unified currency code
|
|
2161
|
+
* @param {float} amount the amount to withdraw
|
|
2162
|
+
* @param {string} address the address to withdraw to
|
|
2163
|
+
* @param {string} tag
|
|
2164
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2165
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2166
|
+
*/
|
|
2154
2167
|
async withdraw(code, amount, address, tag = undefined, params = {}) {
|
|
2155
|
-
/**
|
|
2156
|
-
* @method
|
|
2157
|
-
* @name exmo#withdraw
|
|
2158
|
-
* @description make a withdrawal
|
|
2159
|
-
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#3ab9c34d-ad58-4f87-9c57-2e2ea88a8325
|
|
2160
|
-
* @param {string} code unified currency code
|
|
2161
|
-
* @param {float} amount the amount to withdraw
|
|
2162
|
-
* @param {string} address the address to withdraw to
|
|
2163
|
-
* @param {string} tag
|
|
2164
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2165
|
-
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2166
|
-
*/
|
|
2167
2168
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
2168
2169
|
await this.loadMarkets();
|
|
2169
2170
|
const currency = this.currency(code);
|
|
@@ -2331,18 +2332,18 @@ export default class exmo extends Exchange {
|
|
|
2331
2332
|
'fee': fee,
|
|
2332
2333
|
};
|
|
2333
2334
|
}
|
|
2335
|
+
/**
|
|
2336
|
+
* @method
|
|
2337
|
+
* @name exmo#fetchDepositsWithdrawals
|
|
2338
|
+
* @description fetch history of deposits and withdrawals
|
|
2339
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#31e69a33-4849-4e6a-b4b4-6d574238f6a7
|
|
2340
|
+
* @param {string} [code] unified currency code for the currency of the deposit/withdrawals, default is undefined
|
|
2341
|
+
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
2342
|
+
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
2343
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2344
|
+
* @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2345
|
+
*/
|
|
2334
2346
|
async fetchDepositsWithdrawals(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2335
|
-
/**
|
|
2336
|
-
* @method
|
|
2337
|
-
* @name exmo#fetchDepositsWithdrawals
|
|
2338
|
-
* @description fetch history of deposits and withdrawals
|
|
2339
|
-
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#31e69a33-4849-4e6a-b4b4-6d574238f6a7
|
|
2340
|
-
* @param {string} [code] unified currency code for the currency of the deposit/withdrawals, default is undefined
|
|
2341
|
-
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
2342
|
-
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
2343
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2344
|
-
* @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2345
|
-
*/
|
|
2346
2347
|
await this.loadMarkets();
|
|
2347
2348
|
const request = {};
|
|
2348
2349
|
if (since !== undefined) {
|
|
@@ -2385,18 +2386,18 @@ export default class exmo extends Exchange {
|
|
|
2385
2386
|
//
|
|
2386
2387
|
return this.parseTransactions(response['history'], currency, since, limit);
|
|
2387
2388
|
}
|
|
2389
|
+
/**
|
|
2390
|
+
* @method
|
|
2391
|
+
* @name exmo#fetchWithdrawals
|
|
2392
|
+
* @description fetch all withdrawals made from an account
|
|
2393
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#97f1becd-7aad-4e0e-babe-7bbe09e33706
|
|
2394
|
+
* @param {string} code unified currency code
|
|
2395
|
+
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
2396
|
+
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
2397
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2398
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2399
|
+
*/
|
|
2388
2400
|
async fetchWithdrawals(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2389
|
-
/**
|
|
2390
|
-
* @method
|
|
2391
|
-
* @name exmo#fetchWithdrawals
|
|
2392
|
-
* @description fetch all withdrawals made from an account
|
|
2393
|
-
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#97f1becd-7aad-4e0e-babe-7bbe09e33706
|
|
2394
|
-
* @param {string} code unified currency code
|
|
2395
|
-
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
2396
|
-
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
2397
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2398
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2399
|
-
*/
|
|
2400
2401
|
await this.loadMarkets();
|
|
2401
2402
|
let currency = undefined;
|
|
2402
2403
|
const request = {
|
|
@@ -2439,17 +2440,17 @@ export default class exmo extends Exchange {
|
|
|
2439
2440
|
const items = this.safeList(response, 'items', []);
|
|
2440
2441
|
return this.parseTransactions(items, currency, since, limit);
|
|
2441
2442
|
}
|
|
2443
|
+
/**
|
|
2444
|
+
* @method
|
|
2445
|
+
* @name exmo#fetchWithdrawal
|
|
2446
|
+
* @description fetch data on a currency withdrawal via the withdrawal id
|
|
2447
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#97f1becd-7aad-4e0e-babe-7bbe09e33706
|
|
2448
|
+
* @param {string} id withdrawal id
|
|
2449
|
+
* @param {string} code unified currency code of the currency withdrawn, default is undefined
|
|
2450
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2451
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2452
|
+
*/
|
|
2442
2453
|
async fetchWithdrawal(id, code = undefined, params = {}) {
|
|
2443
|
-
/**
|
|
2444
|
-
* @method
|
|
2445
|
-
* @name exmo#fetchWithdrawal
|
|
2446
|
-
* @description fetch data on a currency withdrawal via the withdrawal id
|
|
2447
|
-
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#97f1becd-7aad-4e0e-babe-7bbe09e33706
|
|
2448
|
-
* @param {string} id withdrawal id
|
|
2449
|
-
* @param {string} code unified currency code of the currency withdrawn, default is undefined
|
|
2450
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2451
|
-
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2452
|
-
*/
|
|
2453
2454
|
await this.loadMarkets();
|
|
2454
2455
|
let currency = undefined;
|
|
2455
2456
|
const request = {
|
|
@@ -2491,17 +2492,17 @@ export default class exmo extends Exchange {
|
|
|
2491
2492
|
const first = this.safeDict(items, 0, {});
|
|
2492
2493
|
return this.parseTransaction(first, currency);
|
|
2493
2494
|
}
|
|
2495
|
+
/**
|
|
2496
|
+
* @method
|
|
2497
|
+
* @name exmo#fetchDeposit
|
|
2498
|
+
* @description fetch information on a deposit
|
|
2499
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#97f1becd-7aad-4e0e-babe-7bbe09e33706
|
|
2500
|
+
* @param {string} id deposit id
|
|
2501
|
+
* @param {string} code unified currency code, default is undefined
|
|
2502
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2503
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2504
|
+
*/
|
|
2494
2505
|
async fetchDeposit(id = undefined, code = undefined, params = {}) {
|
|
2495
|
-
/**
|
|
2496
|
-
* @method
|
|
2497
|
-
* @name exmo#fetchDeposit
|
|
2498
|
-
* @description fetch information on a deposit
|
|
2499
|
-
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#97f1becd-7aad-4e0e-babe-7bbe09e33706
|
|
2500
|
-
* @param {string} id deposit id
|
|
2501
|
-
* @param {string} code unified currency code, default is undefined
|
|
2502
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2503
|
-
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2504
|
-
*/
|
|
2505
2506
|
await this.loadMarkets();
|
|
2506
2507
|
let currency = undefined;
|
|
2507
2508
|
const request = {
|
|
@@ -2543,18 +2544,18 @@ export default class exmo extends Exchange {
|
|
|
2543
2544
|
const first = this.safeDict(items, 0, {});
|
|
2544
2545
|
return this.parseTransaction(first, currency);
|
|
2545
2546
|
}
|
|
2547
|
+
/**
|
|
2548
|
+
* @method
|
|
2549
|
+
* @name exmo#fetchDeposits
|
|
2550
|
+
* @description fetch all deposits made to an account
|
|
2551
|
+
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#97f1becd-7aad-4e0e-babe-7bbe09e33706
|
|
2552
|
+
* @param {string} code unified currency code
|
|
2553
|
+
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
2554
|
+
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
2555
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2556
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2557
|
+
*/
|
|
2546
2558
|
async fetchDeposits(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2547
|
-
/**
|
|
2548
|
-
* @method
|
|
2549
|
-
* @name exmo#fetchDeposits
|
|
2550
|
-
* @description fetch all deposits made to an account
|
|
2551
|
-
* @see https://documenter.getpostman.com/view/10287440/SzYXWKPi#97f1becd-7aad-4e0e-babe-7bbe09e33706
|
|
2552
|
-
* @param {string} code unified currency code
|
|
2553
|
-
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
2554
|
-
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
2555
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2556
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2557
|
-
*/
|
|
2558
2559
|
await this.loadMarkets();
|
|
2559
2560
|
let currency = undefined;
|
|
2560
2561
|
const request = {
|