ccxt 4.4.30 → 4.4.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -3
- package/dist/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/ace.js +123 -123
- package/dist/cjs/src/alpaca.js +237 -237
- package/dist/cjs/src/ascendex.js +342 -341
- package/dist/cjs/src/bigone.js +242 -242
- package/dist/cjs/src/binance.js +1339 -1291
- package/dist/cjs/src/bingx.js +639 -639
- package/dist/cjs/src/bit2c.js +111 -111
- package/dist/cjs/src/bitbank.js +142 -142
- package/dist/cjs/src/bitbns.js +140 -140
- package/dist/cjs/src/bitfinex.js +231 -231
- package/dist/cjs/src/bitfinex2.js +403 -403
- package/dist/cjs/src/bitflyer.js +184 -184
- package/dist/cjs/src/bitget.js +848 -846
- package/dist/cjs/src/bithumb.js +125 -124
- package/dist/cjs/src/bitmart.js +525 -525
- package/dist/cjs/src/bitmex.js +317 -317
- package/dist/cjs/src/bitopro.js +221 -221
- package/dist/cjs/src/bitrue.js +315 -315
- package/dist/cjs/src/bitso.js +220 -220
- package/dist/cjs/src/bitstamp.js +251 -251
- package/dist/cjs/src/bitteam.js +183 -183
- package/dist/cjs/src/bitvavo.js +247 -251
- package/dist/cjs/src/bl3p.js +82 -82
- package/dist/cjs/src/blockchaincom.js +211 -211
- package/dist/cjs/src/blofin.js +332 -331
- package/dist/cjs/src/btcalpha.js +166 -166
- package/dist/cjs/src/btcbox.js +108 -108
- package/dist/cjs/src/btcmarkets.js +198 -198
- package/dist/cjs/src/btcturk.js +124 -124
- package/dist/cjs/src/bybit.js +906 -900
- package/dist/cjs/src/cex.js +227 -226
- package/dist/cjs/src/coinbase.js +481 -481
- package/dist/cjs/src/coinbaseexchange.js +274 -274
- package/dist/cjs/src/coinbaseinternational.js +304 -304
- package/dist/cjs/src/coincatch.js +650 -650
- package/dist/cjs/src/coincheck.js +113 -113
- package/dist/cjs/src/coinex.js +611 -601
- package/dist/cjs/src/coinlist.js +304 -303
- package/dist/cjs/src/coinmate.js +162 -161
- package/dist/cjs/src/coinmetro.js +187 -187
- package/dist/cjs/src/coinone.js +124 -123
- package/dist/cjs/src/coinsph.js +237 -237
- package/dist/cjs/src/coinspot.js +82 -82
- package/dist/cjs/src/cryptocom.js +342 -341
- package/dist/cjs/src/currencycom.js +225 -224
- package/dist/cjs/src/delta.js +320 -320
- package/dist/cjs/src/deribit.js +411 -408
- package/dist/cjs/src/digifinex.js +432 -431
- package/dist/cjs/src/exmo.js +328 -327
- package/dist/cjs/src/gate.js +830 -791
- package/dist/cjs/src/gemini.js +199 -198
- package/dist/cjs/src/hashkey.js +520 -517
- package/dist/cjs/src/hitbtc.js +465 -462
- package/dist/cjs/src/hollaex.js +253 -252
- package/dist/cjs/src/htx.js +791 -848
- package/dist/cjs/src/huobijp.js +219 -218
- package/dist/cjs/src/hyperliquid.js +421 -417
- package/dist/cjs/src/idex.js +238 -237
- package/dist/cjs/src/independentreserve.js +133 -132
- package/dist/cjs/src/indodax.js +177 -171
- package/dist/cjs/src/kraken.js +381 -377
- package/dist/cjs/src/krakenfutures.js +285 -279
- package/dist/cjs/src/kucoin.js +632 -622
- package/dist/cjs/src/kucoinfutures.js +533 -457
- package/dist/cjs/src/kuna.js +283 -282
- package/dist/cjs/src/latoken.js +211 -210
- package/dist/cjs/src/lbank.js +268 -267
- package/dist/cjs/src/luno.js +174 -173
- package/dist/cjs/src/lykke.js +172 -171
- package/dist/cjs/src/mercado.js +123 -122
- package/dist/cjs/src/mexc.js +650 -646
- package/dist/cjs/src/ndax.js +229 -228
- package/dist/cjs/src/novadax.js +230 -229
- package/dist/cjs/src/oceanex.js +187 -186
- package/dist/cjs/src/okcoin.js +286 -285
- package/dist/cjs/src/okx.js +909 -904
- package/dist/cjs/src/onetrading.js +218 -218
- package/dist/cjs/src/oxfun.js +335 -334
- package/dist/cjs/src/p2b.js +154 -154
- package/dist/cjs/src/paradex.js +249 -244
- package/dist/cjs/src/paymium.js +101 -101
- package/dist/cjs/src/phemex.js +388 -390
- package/dist/cjs/src/poloniex.js +270 -270
- package/dist/cjs/src/poloniexfutures.js +250 -250
- package/dist/cjs/src/pro/alpaca.js +64 -64
- package/dist/cjs/src/pro/ascendex.js +64 -64
- package/dist/cjs/src/pro/binance.js +546 -543
- package/dist/cjs/src/pro/bingx.js +116 -116
- package/dist/cjs/src/pro/bitfinex.js +42 -42
- package/dist/cjs/src/pro/bitfinex2.js +66 -66
- package/dist/cjs/src/pro/bitget.js +188 -181
- package/dist/cjs/src/pro/bithumb.js +40 -40
- package/dist/cjs/src/pro/bitmart.js +121 -119
- package/dist/cjs/src/pro/bitmex.js +135 -133
- package/dist/cjs/src/pro/bitopro.js +49 -49
- package/dist/cjs/src/pro/bitrue.js +19 -19
- package/dist/cjs/src/pro/bitstamp.js +29 -29
- package/dist/cjs/src/pro/bitvavo.js +299 -301
- package/dist/cjs/src/pro/blockchaincom.js +62 -62
- package/dist/cjs/src/pro/blofin.js +132 -130
- package/dist/cjs/src/pro/bybit.js +317 -313
- package/dist/cjs/src/pro/cex.js +168 -168
- package/dist/cjs/src/pro/coinbase.js +93 -91
- package/dist/cjs/src/pro/coinbaseexchange.js +95 -95
- package/dist/cjs/src/pro/coinbaseinternational.js +111 -111
- package/dist/cjs/src/pro/coincatch.js +150 -143
- package/dist/cjs/src/pro/coincheck.js +21 -21
- package/dist/cjs/src/pro/coinex.js +110 -110
- package/dist/cjs/src/pro/coinone.js +30 -30
- package/dist/cjs/src/pro/cryptocom.js +227 -227
- package/dist/cjs/src/pro/currencycom.js +45 -45
- package/dist/cjs/src/pro/deribit.js +127 -127
- package/dist/cjs/src/pro/exmo.js +66 -66
- package/dist/cjs/src/pro/gate.js +287 -283
- package/dist/cjs/src/pro/gemini.js +74 -74
- package/dist/cjs/src/pro/hashkey.js +87 -85
- package/dist/cjs/src/pro/hitbtc.js +190 -190
- package/dist/cjs/src/pro/hollaex.js +51 -51
- package/dist/cjs/src/pro/htx.js +96 -94
- package/dist/cjs/src/pro/huobijp.js +38 -38
- package/dist/cjs/src/pro/hyperliquid.js +151 -150
- package/dist/cjs/src/pro/idex.js +48 -48
- package/dist/cjs/src/pro/independentreserve.js +19 -19
- package/dist/cjs/src/pro/kraken.js +167 -167
- package/dist/cjs/src/pro/krakenfutures.js +137 -138
- package/dist/cjs/src/pro/kucoin.js +167 -168
- package/dist/cjs/src/pro/kucoinfutures.js +147 -147
- package/dist/cjs/src/pro/lbank.js +95 -95
- package/dist/cjs/src/pro/luno.js +21 -21
- package/dist/cjs/src/pro/mexc.js +102 -103
- package/dist/cjs/src/pro/ndax.js +42 -42
- package/dist/cjs/src/pro/okcoin.js +61 -61
- package/dist/cjs/src/pro/okx.js +332 -330
- package/dist/cjs/src/pro/onetrading.js +71 -71
- package/dist/cjs/src/pro/oxfun.js +193 -191
- package/dist/cjs/src/pro/p2b.js +77 -77
- package/dist/cjs/src/pro/paradex.js +39 -39
- package/dist/cjs/src/pro/phemex.js +94 -94
- package/dist/cjs/src/pro/poloniex.js +171 -171
- package/dist/cjs/src/pro/poloniexfutures.js +62 -62
- package/dist/cjs/src/pro/probit.js +63 -63
- package/dist/cjs/src/pro/upbit.js +80 -80
- package/dist/cjs/src/pro/vertex.js +65 -63
- package/dist/cjs/src/pro/wazirx.js +70 -70
- package/dist/cjs/src/pro/whitebit.js +83 -83
- package/dist/cjs/src/pro/woo.js +106 -104
- package/dist/cjs/src/pro/woofipro.js +105 -103
- package/dist/cjs/src/pro/xt.js +119 -119
- package/dist/cjs/src/probit.js +229 -229
- package/dist/cjs/src/timex.js +198 -197
- package/dist/cjs/src/tokocrypto.js +214 -213
- package/dist/cjs/src/tradeogre.js +92 -91
- package/dist/cjs/src/upbit.js +243 -242
- package/dist/cjs/src/vertex.js +258 -258
- package/dist/cjs/src/wavesexchange.js +176 -172
- package/dist/cjs/src/wazirx.js +168 -168
- package/dist/cjs/src/whitebit.js +361 -361
- package/dist/cjs/src/woo.js +571 -572
- package/dist/cjs/src/woofipro.js +392 -391
- package/dist/cjs/src/xt.js +436 -435
- package/dist/cjs/src/yobit.js +159 -158
- package/dist/cjs/src/zaif.js +103 -103
- package/dist/cjs/src/zonda.js +168 -168
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/ace.d.ts +123 -0
- package/js/src/ace.js +123 -123
- package/js/src/alpaca.d.ts +237 -0
- package/js/src/alpaca.js +237 -237
- package/js/src/ascendex.d.ts +339 -0
- package/js/src/ascendex.js +342 -341
- package/js/src/base/types.d.ts +1 -0
- package/js/src/bigone.d.ts +242 -0
- package/js/src/bigone.js +242 -242
- package/js/src/binance.d.ts +1306 -0
- package/js/src/binance.js +1339 -1291
- package/js/src/bingx.d.ts +639 -0
- package/js/src/bingx.js +639 -639
- package/js/src/bit2c.d.ts +111 -0
- package/js/src/bit2c.js +111 -111
- package/js/src/bitbank.d.ts +142 -0
- package/js/src/bitbank.js +142 -142
- package/js/src/bitbns.d.ts +140 -0
- package/js/src/bitbns.js +140 -140
- package/js/src/bitfinex.d.ts +231 -0
- package/js/src/bitfinex.js +231 -231
- package/js/src/bitfinex2.d.ts +403 -0
- package/js/src/bitfinex2.js +403 -403
- package/js/src/bitflyer.d.ts +184 -0
- package/js/src/bitflyer.js +184 -184
- package/js/src/bitget.d.ts +846 -0
- package/js/src/bitget.js +848 -846
- package/js/src/bithumb.d.ts +125 -0
- package/js/src/bithumb.js +125 -124
- package/js/src/bitmart.d.ts +525 -0
- package/js/src/bitmart.js +525 -525
- package/js/src/bitmex.d.ts +317 -0
- package/js/src/bitmex.js +317 -317
- package/js/src/bitopro.d.ts +221 -0
- package/js/src/bitopro.js +221 -221
- package/js/src/bitrue.d.ts +315 -0
- package/js/src/bitrue.js +315 -315
- package/js/src/bitso.d.ts +220 -0
- package/js/src/bitso.js +220 -220
- package/js/src/bitstamp.d.ts +251 -0
- package/js/src/bitstamp.js +251 -251
- package/js/src/bitteam.d.ts +183 -0
- package/js/src/bitteam.js +183 -183
- package/js/src/bitvavo.d.ts +247 -0
- package/js/src/bitvavo.js +247 -251
- package/js/src/bl3p.d.ts +82 -0
- package/js/src/bl3p.js +82 -82
- package/js/src/blockchaincom.d.ts +211 -0
- package/js/src/blockchaincom.js +211 -211
- package/js/src/blofin.d.ts +332 -0
- package/js/src/blofin.js +332 -331
- package/js/src/btcalpha.d.ts +166 -0
- package/js/src/btcalpha.js +166 -166
- package/js/src/btcbox.d.ts +108 -0
- package/js/src/btcbox.js +108 -108
- package/js/src/btcmarkets.d.ts +198 -0
- package/js/src/btcmarkets.js +198 -198
- package/js/src/btcturk.d.ts +124 -0
- package/js/src/btcturk.js +124 -124
- package/js/src/bybit.d.ts +906 -1
- package/js/src/bybit.js +906 -900
- package/js/src/cex.d.ts +227 -0
- package/js/src/cex.js +227 -226
- package/js/src/coinbase.d.ts +481 -0
- package/js/src/coinbase.js +481 -481
- package/js/src/coinbaseexchange.d.ts +274 -0
- package/js/src/coinbaseexchange.js +274 -274
- package/js/src/coinbaseinternational.d.ts +304 -0
- package/js/src/coinbaseinternational.js +304 -304
- package/js/src/coincatch.d.ts +646 -0
- package/js/src/coincatch.js +650 -650
- package/js/src/coincheck.d.ts +113 -0
- package/js/src/coincheck.js +113 -113
- package/js/src/coinex.d.ts +603 -0
- package/js/src/coinex.js +611 -601
- package/js/src/coinlist.d.ts +304 -0
- package/js/src/coinlist.js +304 -303
- package/js/src/coinmate.d.ts +162 -0
- package/js/src/coinmate.js +162 -161
- package/js/src/coinmetro.d.ts +187 -0
- package/js/src/coinmetro.js +187 -187
- package/js/src/coinone.d.ts +124 -0
- package/js/src/coinone.js +124 -123
- package/js/src/coinsph.d.ts +237 -0
- package/js/src/coinsph.js +237 -237
- package/js/src/coinspot.d.ts +82 -0
- package/js/src/coinspot.js +82 -82
- package/js/src/cryptocom.d.ts +342 -0
- package/js/src/cryptocom.js +342 -341
- package/js/src/currencycom.d.ts +225 -0
- package/js/src/currencycom.js +225 -224
- package/js/src/delta.d.ts +320 -0
- package/js/src/delta.js +320 -320
- package/js/src/deribit.d.ts +411 -0
- package/js/src/deribit.js +411 -408
- package/js/src/digifinex.d.ts +430 -0
- package/js/src/digifinex.js +432 -431
- package/js/src/exmo.d.ts +328 -0
- package/js/src/exmo.js +328 -327
- package/js/src/gate.d.ts +803 -1
- package/js/src/gate.js +830 -791
- package/js/src/gemini.d.ts +199 -0
- package/js/src/gemini.js +199 -198
- package/js/src/hashkey.d.ts +516 -0
- package/js/src/hashkey.js +520 -517
- package/js/src/hitbtc.d.ts +465 -0
- package/js/src/hitbtc.js +465 -462
- package/js/src/hollaex.d.ts +253 -0
- package/js/src/hollaex.js +253 -252
- package/js/src/htx.d.ts +765 -2
- package/js/src/htx.js +791 -848
- package/js/src/huobijp.d.ts +219 -0
- package/js/src/huobijp.js +219 -218
- package/js/src/hyperliquid.d.ts +419 -0
- package/js/src/hyperliquid.js +421 -417
- package/js/src/idex.d.ts +238 -0
- package/js/src/idex.js +238 -237
- package/js/src/independentreserve.d.ts +133 -0
- package/js/src/independentreserve.js +133 -132
- package/js/src/indodax.d.ts +171 -0
- package/js/src/indodax.js +177 -171
- package/js/src/kraken.d.ts +381 -0
- package/js/src/kraken.js +381 -377
- package/js/src/krakenfutures.d.ts +282 -0
- package/js/src/krakenfutures.js +285 -279
- package/js/src/kucoin.d.ts +613 -0
- package/js/src/kucoin.js +632 -622
- package/js/src/kucoinfutures.d.ts +441 -0
- package/js/src/kucoinfutures.js +533 -457
- package/js/src/kuna.d.ts +283 -0
- package/js/src/kuna.js +283 -282
- package/js/src/latoken.d.ts +211 -0
- package/js/src/latoken.js +211 -210
- package/js/src/lbank.d.ts +268 -0
- package/js/src/lbank.js +268 -267
- package/js/src/luno.d.ts +174 -0
- package/js/src/luno.js +174 -173
- package/js/src/lykke.d.ts +172 -0
- package/js/src/lykke.js +172 -171
- package/js/src/mercado.d.ts +123 -0
- package/js/src/mercado.js +123 -122
- package/js/src/mexc.d.ts +647 -0
- package/js/src/mexc.js +650 -646
- package/js/src/ndax.d.ts +229 -0
- package/js/src/ndax.js +229 -228
- package/js/src/novadax.d.ts +230 -0
- package/js/src/novadax.js +230 -229
- package/js/src/oceanex.d.ts +187 -0
- package/js/src/oceanex.js +187 -186
- package/js/src/okcoin.d.ts +286 -0
- package/js/src/okcoin.js +286 -285
- package/js/src/okx.d.ts +907 -0
- package/js/src/okx.js +909 -904
- package/js/src/onetrading.d.ts +218 -0
- package/js/src/onetrading.js +218 -218
- package/js/src/oxfun.d.ts +336 -3
- package/js/src/oxfun.js +335 -334
- package/js/src/p2b.d.ts +154 -0
- package/js/src/p2b.js +154 -154
- package/js/src/paradex.d.ts +241 -0
- package/js/src/paradex.js +249 -244
- package/js/src/paymium.d.ts +101 -0
- package/js/src/paymium.js +101 -101
- package/js/src/phemex.d.ts +366 -0
- package/js/src/phemex.js +388 -390
- package/js/src/poloniex.d.ts +270 -0
- package/js/src/poloniex.js +270 -270
- package/js/src/poloniexfutures.d.ts +250 -0
- package/js/src/poloniexfutures.js +250 -250
- package/js/src/pro/alpaca.d.ts +64 -0
- package/js/src/pro/alpaca.js +64 -64
- package/js/src/pro/ascendex.d.ts +64 -0
- package/js/src/pro/ascendex.js +64 -64
- package/js/src/pro/binance.d.ts +546 -0
- package/js/src/pro/binance.js +546 -543
- package/js/src/pro/bingx.d.ts +116 -0
- package/js/src/pro/bingx.js +116 -116
- package/js/src/pro/bitfinex.d.ts +42 -0
- package/js/src/pro/bitfinex.js +42 -42
- package/js/src/pro/bitfinex2.d.ts +66 -0
- package/js/src/pro/bitfinex2.js +66 -66
- package/js/src/pro/bitget.d.ts +187 -0
- package/js/src/pro/bitget.js +188 -181
- package/js/src/pro/bithumb.d.ts +40 -0
- package/js/src/pro/bithumb.js +40 -40
- package/js/src/pro/bitmart.d.ts +121 -0
- package/js/src/pro/bitmart.js +121 -119
- package/js/src/pro/bitmex.d.ts +135 -0
- package/js/src/pro/bitmex.js +135 -133
- package/js/src/pro/bitopro.d.ts +49 -0
- package/js/src/pro/bitopro.js +49 -49
- package/js/src/pro/bitrue.d.ts +19 -0
- package/js/src/pro/bitrue.js +19 -19
- package/js/src/pro/bitstamp.d.ts +29 -0
- package/js/src/pro/bitstamp.js +29 -29
- package/js/src/pro/bitvavo.d.ts +254 -1
- package/js/src/pro/bitvavo.js +299 -301
- package/js/src/pro/blockchaincom.d.ts +62 -0
- package/js/src/pro/blockchaincom.js +62 -62
- package/js/src/pro/blofin.d.ts +132 -0
- package/js/src/pro/blofin.js +132 -130
- package/js/src/pro/bybit.d.ts +317 -0
- package/js/src/pro/bybit.js +317 -313
- package/js/src/pro/cex.d.ts +168 -0
- package/js/src/pro/cex.js +168 -168
- package/js/src/pro/coinbase.d.ts +93 -0
- package/js/src/pro/coinbase.js +93 -91
- package/js/src/pro/coinbaseexchange.d.ts +95 -0
- package/js/src/pro/coinbaseexchange.js +95 -95
- package/js/src/pro/coinbaseinternational.d.ts +111 -0
- package/js/src/pro/coinbaseinternational.js +111 -111
- package/js/src/pro/coincatch.d.ts +150 -0
- package/js/src/pro/coincatch.js +150 -143
- package/js/src/pro/coincheck.d.ts +21 -0
- package/js/src/pro/coincheck.js +21 -21
- package/js/src/pro/coinex.d.ts +110 -0
- package/js/src/pro/coinex.js +110 -110
- package/js/src/pro/coinone.d.ts +30 -0
- package/js/src/pro/coinone.js +30 -30
- package/js/src/pro/cryptocom.d.ts +227 -0
- package/js/src/pro/cryptocom.js +227 -227
- package/js/src/pro/currencycom.d.ts +45 -0
- package/js/src/pro/currencycom.js +45 -45
- package/js/src/pro/deribit.d.ts +127 -0
- package/js/src/pro/deribit.js +127 -127
- package/js/src/pro/exmo.d.ts +66 -0
- package/js/src/pro/exmo.js +66 -66
- package/js/src/pro/gate.d.ts +287 -0
- package/js/src/pro/gate.js +287 -283
- package/js/src/pro/gemini.d.ts +74 -0
- package/js/src/pro/gemini.js +74 -74
- package/js/src/pro/hashkey.d.ts +87 -0
- package/js/src/pro/hashkey.js +87 -85
- package/js/src/pro/hitbtc.d.ts +190 -0
- package/js/src/pro/hitbtc.js +190 -190
- package/js/src/pro/hollaex.d.ts +51 -0
- package/js/src/pro/hollaex.js +51 -51
- package/js/src/pro/htx.d.ts +96 -0
- package/js/src/pro/htx.js +96 -94
- package/js/src/pro/huobijp.d.ts +38 -0
- package/js/src/pro/huobijp.js +38 -38
- package/js/src/pro/hyperliquid.d.ts +151 -0
- package/js/src/pro/hyperliquid.js +151 -150
- package/js/src/pro/idex.d.ts +48 -0
- package/js/src/pro/idex.js +48 -48
- package/js/src/pro/independentreserve.d.ts +19 -0
- package/js/src/pro/independentreserve.js +19 -19
- package/js/src/pro/kraken.d.ts +167 -0
- package/js/src/pro/kraken.js +167 -167
- package/js/src/pro/krakenfutures.d.ts +137 -0
- package/js/src/pro/krakenfutures.js +137 -138
- package/js/src/pro/kucoin.d.ts +167 -0
- package/js/src/pro/kucoin.js +167 -168
- package/js/src/pro/kucoinfutures.d.ts +147 -0
- package/js/src/pro/kucoinfutures.js +147 -147
- package/js/src/pro/lbank.d.ts +95 -0
- package/js/src/pro/lbank.js +95 -95
- package/js/src/pro/luno.d.ts +21 -0
- package/js/src/pro/luno.js +21 -21
- package/js/src/pro/mexc.d.ts +101 -0
- package/js/src/pro/mexc.js +102 -103
- package/js/src/pro/ndax.d.ts +42 -0
- package/js/src/pro/ndax.js +42 -42
- package/js/src/pro/okcoin.d.ts +61 -0
- package/js/src/pro/okcoin.js +61 -61
- package/js/src/pro/okx.d.ts +332 -0
- package/js/src/pro/okx.js +332 -330
- package/js/src/pro/onetrading.d.ts +71 -0
- package/js/src/pro/onetrading.js +71 -71
- package/js/src/pro/oxfun.d.ts +193 -0
- package/js/src/pro/oxfun.js +193 -191
- package/js/src/pro/p2b.d.ts +77 -0
- package/js/src/pro/p2b.js +77 -77
- package/js/src/pro/paradex.d.ts +39 -0
- package/js/src/pro/paradex.js +39 -39
- package/js/src/pro/phemex.d.ts +94 -0
- package/js/src/pro/phemex.js +94 -94
- package/js/src/pro/poloniex.d.ts +171 -0
- package/js/src/pro/poloniex.js +171 -171
- package/js/src/pro/poloniexfutures.d.ts +62 -0
- package/js/src/pro/poloniexfutures.js +62 -62
- package/js/src/pro/probit.d.ts +63 -0
- package/js/src/pro/probit.js +63 -63
- package/js/src/pro/upbit.d.ts +80 -0
- package/js/src/pro/upbit.js +80 -80
- package/js/src/pro/vertex.d.ts +65 -0
- package/js/src/pro/vertex.js +65 -63
- package/js/src/pro/wazirx.d.ts +70 -0
- package/js/src/pro/wazirx.js +70 -70
- package/js/src/pro/whitebit.d.ts +83 -0
- package/js/src/pro/whitebit.js +83 -83
- package/js/src/pro/woo.d.ts +106 -0
- package/js/src/pro/woo.js +106 -104
- package/js/src/pro/woofipro.d.ts +105 -0
- package/js/src/pro/woofipro.js +105 -103
- package/js/src/pro/xt.d.ts +119 -0
- package/js/src/pro/xt.js +119 -119
- package/js/src/probit.d.ts +229 -0
- package/js/src/probit.js +229 -229
- package/js/src/timex.d.ts +198 -0
- package/js/src/timex.js +198 -197
- package/js/src/tokocrypto.d.ts +214 -0
- package/js/src/tokocrypto.js +214 -213
- package/js/src/tradeogre.d.ts +92 -0
- package/js/src/tradeogre.js +92 -91
- package/js/src/upbit.d.ts +243 -0
- package/js/src/upbit.js +243 -242
- package/js/src/vertex.d.ts +258 -0
- package/js/src/vertex.js +258 -258
- package/js/src/wavesexchange.d.ts +176 -0
- package/js/src/wavesexchange.js +176 -172
- package/js/src/wazirx.d.ts +168 -0
- package/js/src/wazirx.js +168 -168
- package/js/src/whitebit.d.ts +361 -0
- package/js/src/whitebit.js +361 -361
- package/js/src/woo.d.ts +571 -0
- package/js/src/woo.js +571 -572
- package/js/src/woofipro.d.ts +392 -0
- package/js/src/woofipro.js +392 -391
- package/js/src/xt.d.ts +439 -4
- package/js/src/xt.js +436 -435
- package/js/src/yobit.d.ts +159 -0
- package/js/src/yobit.js +159 -158
- package/js/src/zaif.d.ts +103 -0
- package/js/src/zaif.js +103 -103
- package/js/src/zonda.d.ts +168 -0
- package/js/src/zonda.js +168 -168
- package/package.json +1 -1
package/dist/cjs/src/ascendex.js
CHANGED
|
@@ -377,14 +377,14 @@ class ascendex extends ascendex$1 {
|
|
|
377
377
|
const lowercaseAccount = account.toLowerCase();
|
|
378
378
|
return this.capitalize(lowercaseAccount);
|
|
379
379
|
}
|
|
380
|
+
/**
|
|
381
|
+
* @method
|
|
382
|
+
* @name ascendex#fetchCurrencies
|
|
383
|
+
* @description fetches all available currencies on an exchange
|
|
384
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
385
|
+
* @returns {object} an associative dictionary of currencies
|
|
386
|
+
*/
|
|
380
387
|
async fetchCurrencies(params = {}) {
|
|
381
|
-
/**
|
|
382
|
-
* @method
|
|
383
|
-
* @name ascendex#fetchCurrencies
|
|
384
|
-
* @description fetches all available currencies on an exchange
|
|
385
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
386
|
-
* @returns {object} an associative dictionary of currencies
|
|
387
|
-
*/
|
|
388
388
|
const assetsPromise = this.v1PublicGetAssets(params);
|
|
389
389
|
//
|
|
390
390
|
// {
|
|
@@ -486,14 +486,14 @@ class ascendex extends ascendex$1 {
|
|
|
486
486
|
}
|
|
487
487
|
return result;
|
|
488
488
|
}
|
|
489
|
+
/**
|
|
490
|
+
* @method
|
|
491
|
+
* @name ascendex#fetchMarkets
|
|
492
|
+
* @description retrieves data on all markets for ascendex
|
|
493
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
494
|
+
* @returns {object[]} an array of objects representing market data
|
|
495
|
+
*/
|
|
489
496
|
async fetchMarkets(params = {}) {
|
|
490
|
-
/**
|
|
491
|
-
* @method
|
|
492
|
-
* @name ascendex#fetchMarkets
|
|
493
|
-
* @description retrieves data on all markets for ascendex
|
|
494
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
495
|
-
* @returns {object[]} an array of objects representing market data
|
|
496
|
-
*/
|
|
497
497
|
const productsPromise = this.v1PublicGetProducts(params);
|
|
498
498
|
//
|
|
499
499
|
// {
|
|
@@ -683,14 +683,14 @@ class ascendex extends ascendex$1 {
|
|
|
683
683
|
}
|
|
684
684
|
return result;
|
|
685
685
|
}
|
|
686
|
+
/**
|
|
687
|
+
* @method
|
|
688
|
+
* @name ascendex#fetchTime
|
|
689
|
+
* @description fetches the current integer timestamp in milliseconds from the ascendex server
|
|
690
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
691
|
+
* @returns {int} the current integer timestamp in milliseconds from the ascendex server
|
|
692
|
+
*/
|
|
686
693
|
async fetchTime(params = {}) {
|
|
687
|
-
/**
|
|
688
|
-
* @method
|
|
689
|
-
* @name ascendex#fetchTime
|
|
690
|
-
* @description fetches the current integer timestamp in milliseconds from the ascendex server
|
|
691
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
692
|
-
* @returns {int} the current integer timestamp in milliseconds from the ascendex server
|
|
693
|
-
*/
|
|
694
694
|
const request = {
|
|
695
695
|
'requestTime': this.milliseconds(),
|
|
696
696
|
};
|
|
@@ -708,14 +708,14 @@ class ascendex extends ascendex$1 {
|
|
|
708
708
|
const data = this.safeDict(response, 'data', {});
|
|
709
709
|
return this.safeInteger(data, 'requestReceiveAt');
|
|
710
710
|
}
|
|
711
|
+
/**
|
|
712
|
+
* @method
|
|
713
|
+
* @name ascendex#fetchAccounts
|
|
714
|
+
* @description fetch all the accounts associated with a profile
|
|
715
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
716
|
+
* @returns {object} a dictionary of [account structures]{@link https://docs.ccxt.com/#/?id=account-structure} indexed by the account type
|
|
717
|
+
*/
|
|
711
718
|
async fetchAccounts(params = {}) {
|
|
712
|
-
/**
|
|
713
|
-
* @method
|
|
714
|
-
* @name ascendex#fetchAccounts
|
|
715
|
-
* @description fetch all the accounts associated with a profile
|
|
716
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
717
|
-
* @returns {object} a dictionary of [account structures]{@link https://docs.ccxt.com/#/?id=account-structure} indexed by the account type
|
|
718
|
-
*/
|
|
719
719
|
let accountGroup = this.safeString(this.options, 'account-group');
|
|
720
720
|
let response = undefined;
|
|
721
721
|
if (accountGroup === undefined) {
|
|
@@ -803,19 +803,19 @@ class ascendex extends ascendex$1 {
|
|
|
803
803
|
}
|
|
804
804
|
return this.safeBalance(result);
|
|
805
805
|
}
|
|
806
|
+
/**
|
|
807
|
+
* @method
|
|
808
|
+
* @name ascendex#fetchBalance
|
|
809
|
+
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
810
|
+
* @see https://ascendex.github.io/ascendex-pro-api/#cash-account-balance
|
|
811
|
+
* @see https://ascendex.github.io/ascendex-pro-api/#margin-account-balance
|
|
812
|
+
* @see https://ascendex.github.io/ascendex-futures-pro-api-v2/#position
|
|
813
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
814
|
+
* @param {string} [params.type] wallet type, 'spot', 'margin', or 'swap'
|
|
815
|
+
* @param {string} [params.marginMode] 'cross' or undefined, for spot margin trading, value of 'isolated' is invalid
|
|
816
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
817
|
+
*/
|
|
806
818
|
async fetchBalance(params = {}) {
|
|
807
|
-
/**
|
|
808
|
-
* @method
|
|
809
|
-
* @name ascendex#fetchBalance
|
|
810
|
-
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
811
|
-
* @see https://ascendex.github.io/ascendex-pro-api/#cash-account-balance
|
|
812
|
-
* @see https://ascendex.github.io/ascendex-pro-api/#margin-account-balance
|
|
813
|
-
* @see https://ascendex.github.io/ascendex-futures-pro-api-v2/#position
|
|
814
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
815
|
-
* @param {string} [params.type] wallet type, 'spot', 'margin', or 'swap'
|
|
816
|
-
* @param {string} [params.marginMode] 'cross' or undefined, for spot margin trading, value of 'isolated' is invalid
|
|
817
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
818
|
-
*/
|
|
819
819
|
await this.loadMarkets();
|
|
820
820
|
await this.loadAccounts();
|
|
821
821
|
let marketType = undefined;
|
|
@@ -902,16 +902,16 @@ class ascendex extends ascendex$1 {
|
|
|
902
902
|
return this.parseBalance(response);
|
|
903
903
|
}
|
|
904
904
|
}
|
|
905
|
+
/**
|
|
906
|
+
* @method
|
|
907
|
+
* @name ascendex#fetchOrderBook
|
|
908
|
+
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
909
|
+
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
910
|
+
* @param {int} [limit] the maximum amount of order book entries to return
|
|
911
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
912
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
913
|
+
*/
|
|
905
914
|
async fetchOrderBook(symbol, limit = undefined, params = {}) {
|
|
906
|
-
/**
|
|
907
|
-
* @method
|
|
908
|
-
* @name ascendex#fetchOrderBook
|
|
909
|
-
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
910
|
-
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
911
|
-
* @param {int} [limit] the maximum amount of order book entries to return
|
|
912
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
913
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
914
|
-
*/
|
|
915
915
|
await this.loadMarkets();
|
|
916
916
|
const market = this.market(symbol);
|
|
917
917
|
const request = {
|
|
@@ -994,15 +994,15 @@ class ascendex extends ascendex$1 {
|
|
|
994
994
|
'info': ticker,
|
|
995
995
|
}, market);
|
|
996
996
|
}
|
|
997
|
+
/**
|
|
998
|
+
* @method
|
|
999
|
+
* @name ascendex#fetchTicker
|
|
1000
|
+
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
1001
|
+
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
1002
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1003
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
1004
|
+
*/
|
|
997
1005
|
async fetchTicker(symbol, params = {}) {
|
|
998
|
-
/**
|
|
999
|
-
* @method
|
|
1000
|
-
* @name ascendex#fetchTicker
|
|
1001
|
-
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
1002
|
-
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
1003
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1004
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
1005
|
-
*/
|
|
1006
1006
|
await this.loadMarkets();
|
|
1007
1007
|
const market = this.market(symbol);
|
|
1008
1008
|
const request = {
|
|
@@ -1028,17 +1028,17 @@ class ascendex extends ascendex$1 {
|
|
|
1028
1028
|
const data = this.safeDict(response, 'data', {});
|
|
1029
1029
|
return this.parseTicker(data, market);
|
|
1030
1030
|
}
|
|
1031
|
+
/**
|
|
1032
|
+
* @method
|
|
1033
|
+
* @name ascendex#fetchTickers
|
|
1034
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
1035
|
+
* @see https://ascendex.github.io/ascendex-pro-api/#ticker
|
|
1036
|
+
* @see https://ascendex.github.io/ascendex-futures-pro-api-v2/#ticker
|
|
1037
|
+
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
1038
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1039
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
1040
|
+
*/
|
|
1031
1041
|
async fetchTickers(symbols = undefined, params = {}) {
|
|
1032
|
-
/**
|
|
1033
|
-
* @method
|
|
1034
|
-
* @name ascendex#fetchTickers
|
|
1035
|
-
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
1036
|
-
* @see https://ascendex.github.io/ascendex-pro-api/#ticker
|
|
1037
|
-
* @see https://ascendex.github.io/ascendex-futures-pro-api-v2/#ticker
|
|
1038
|
-
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
1039
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1040
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
1041
|
-
*/
|
|
1042
1042
|
await this.loadMarkets();
|
|
1043
1043
|
const request = {};
|
|
1044
1044
|
let market = undefined;
|
|
@@ -1105,18 +1105,18 @@ class ascendex extends ascendex$1 {
|
|
|
1105
1105
|
this.safeNumber(data, 'v'),
|
|
1106
1106
|
];
|
|
1107
1107
|
}
|
|
1108
|
+
/**
|
|
1109
|
+
* @method
|
|
1110
|
+
* @name ascendex#fetchOHLCV
|
|
1111
|
+
* @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
1112
|
+
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
1113
|
+
* @param {string} timeframe the length of time each candle represents
|
|
1114
|
+
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
1115
|
+
* @param {int} [limit] the maximum amount of candles to fetch
|
|
1116
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1117
|
+
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
1118
|
+
*/
|
|
1108
1119
|
async fetchOHLCV(symbol, timeframe = '1m', since = undefined, limit = undefined, params = {}) {
|
|
1109
|
-
/**
|
|
1110
|
-
* @method
|
|
1111
|
-
* @name ascendex#fetchOHLCV
|
|
1112
|
-
* @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
1113
|
-
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
1114
|
-
* @param {string} timeframe the length of time each candle represents
|
|
1115
|
-
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
1116
|
-
* @param {int} [limit] the maximum amount of candles to fetch
|
|
1117
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1118
|
-
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
1119
|
-
*/
|
|
1120
1120
|
await this.loadMarkets();
|
|
1121
1121
|
const market = this.market(symbol);
|
|
1122
1122
|
const request = {
|
|
@@ -1199,18 +1199,18 @@ class ascendex extends ascendex$1 {
|
|
|
1199
1199
|
'fee': undefined,
|
|
1200
1200
|
}, market);
|
|
1201
1201
|
}
|
|
1202
|
+
/**
|
|
1203
|
+
* @method
|
|
1204
|
+
* @name ascendex#fetchTrades
|
|
1205
|
+
* @description get the list of most recent trades for a particular symbol
|
|
1206
|
+
* @see https://ascendex.github.io/ascendex-pro-api/#market-trades
|
|
1207
|
+
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
1208
|
+
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
1209
|
+
* @param {int} [limit] the maximum amount of trades to fetch
|
|
1210
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1211
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
1212
|
+
*/
|
|
1202
1213
|
async fetchTrades(symbol, since = undefined, limit = undefined, params = {}) {
|
|
1203
|
-
/**
|
|
1204
|
-
* @method
|
|
1205
|
-
* @name ascendex#fetchTrades
|
|
1206
|
-
* @description get the list of most recent trades for a particular symbol
|
|
1207
|
-
* @see https://ascendex.github.io/ascendex-pro-api/#market-trades
|
|
1208
|
-
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
1209
|
-
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
1210
|
-
* @param {int} [limit] the maximum amount of trades to fetch
|
|
1211
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1212
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
1213
|
-
*/
|
|
1214
1214
|
await this.loadMarkets();
|
|
1215
1215
|
const market = this.market(symbol);
|
|
1216
1216
|
const request = {
|
|
@@ -1430,14 +1430,14 @@ class ascendex extends ascendex$1 {
|
|
|
1430
1430
|
'trades': undefined,
|
|
1431
1431
|
}, market);
|
|
1432
1432
|
}
|
|
1433
|
+
/**
|
|
1434
|
+
* @method
|
|
1435
|
+
* @name ascendex#fetchTradingFees
|
|
1436
|
+
* @description fetch the trading fees for multiple markets
|
|
1437
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1438
|
+
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
1439
|
+
*/
|
|
1433
1440
|
async fetchTradingFees(params = {}) {
|
|
1434
|
-
/**
|
|
1435
|
-
* @method
|
|
1436
|
-
* @name ascendex#fetchTradingFees
|
|
1437
|
-
* @description fetch the trading fees for multiple markets
|
|
1438
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1439
|
-
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
1440
|
-
*/
|
|
1441
1441
|
await this.loadMarkets();
|
|
1442
1442
|
await this.loadAccounts();
|
|
1443
1443
|
const account = this.safeDict(this.accounts, 0, {});
|
|
@@ -1569,28 +1569,28 @@ class ascendex extends ascendex$1 {
|
|
|
1569
1569
|
params = this.omit(params, ['reduceOnly', 'triggerPrice']);
|
|
1570
1570
|
return this.extend(request, params);
|
|
1571
1571
|
}
|
|
1572
|
+
/**
|
|
1573
|
+
* @method
|
|
1574
|
+
* @name ascendex#createOrder
|
|
1575
|
+
* @description create a trade order on the exchange
|
|
1576
|
+
* @see https://ascendex.github.io/ascendex-pro-api/#place-order
|
|
1577
|
+
* @see https://ascendex.github.io/ascendex-futures-pro-api-v2/#new-order
|
|
1578
|
+
* @param {string} symbol unified CCXT market symbol
|
|
1579
|
+
* @param {string} type "limit" or "market"
|
|
1580
|
+
* @param {string} side "buy" or "sell"
|
|
1581
|
+
* @param {float} amount the amount of currency to trade
|
|
1582
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1583
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1584
|
+
* @param {string} [params.timeInForce] "GTC", "IOC", "FOK", or "PO"
|
|
1585
|
+
* @param {bool} [params.postOnly] true or false
|
|
1586
|
+
* @param {float} [params.stopPrice] the price at which a trigger order is triggered at
|
|
1587
|
+
* @param {object} [params.takeProfit] *takeProfit object in params* containing the triggerPrice that the attached take profit order will be triggered (perpetual swap markets only)
|
|
1588
|
+
* @param {float} [params.takeProfit.triggerPrice] *swap only* take profit trigger price
|
|
1589
|
+
* @param {object} [params.stopLoss] *stopLoss object in params* containing the triggerPrice that the attached stop loss order will be triggered (perpetual swap markets only)
|
|
1590
|
+
* @param {float} [params.stopLoss.triggerPrice] *swap only* stop loss trigger price
|
|
1591
|
+
* @returns [An order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1592
|
+
*/
|
|
1572
1593
|
async createOrder(symbol, type, side, amount, price = undefined, params = {}) {
|
|
1573
|
-
/**
|
|
1574
|
-
* @method
|
|
1575
|
-
* @name ascendex#createOrder
|
|
1576
|
-
* @description create a trade order on the exchange
|
|
1577
|
-
* @see https://ascendex.github.io/ascendex-pro-api/#place-order
|
|
1578
|
-
* @see https://ascendex.github.io/ascendex-futures-pro-api-v2/#new-order
|
|
1579
|
-
* @param {string} symbol unified CCXT market symbol
|
|
1580
|
-
* @param {string} type "limit" or "market"
|
|
1581
|
-
* @param {string} side "buy" or "sell"
|
|
1582
|
-
* @param {float} amount the amount of currency to trade
|
|
1583
|
-
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1584
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1585
|
-
* @param {string} [params.timeInForce] "GTC", "IOC", "FOK", or "PO"
|
|
1586
|
-
* @param {bool} [params.postOnly] true or false
|
|
1587
|
-
* @param {float} [params.stopPrice] the price at which a trigger order is triggered at
|
|
1588
|
-
* @param {object} [params.takeProfit] *takeProfit object in params* containing the triggerPrice that the attached take profit order will be triggered (perpetual swap markets only)
|
|
1589
|
-
* @param {float} [params.takeProfit.triggerPrice] *swap only* take profit trigger price
|
|
1590
|
-
* @param {object} [params.stopLoss] *stopLoss object in params* containing the triggerPrice that the attached stop loss order will be triggered (perpetual swap markets only)
|
|
1591
|
-
* @param {float} [params.stopLoss.triggerPrice] *swap only* stop loss trigger price
|
|
1592
|
-
* @returns [An order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1593
|
-
*/
|
|
1594
1594
|
await this.loadMarkets();
|
|
1595
1595
|
await this.loadAccounts();
|
|
1596
1596
|
const market = this.market(symbol);
|
|
@@ -1669,20 +1669,20 @@ class ascendex extends ascendex$1 {
|
|
|
1669
1669
|
const order = this.safeDict2(data, 'order', 'info', {});
|
|
1670
1670
|
return this.parseOrder(order, market);
|
|
1671
1671
|
}
|
|
1672
|
+
/**
|
|
1673
|
+
* @method
|
|
1674
|
+
* @name ascendex#createOrders
|
|
1675
|
+
* @description create a list of trade orders
|
|
1676
|
+
* @see https://ascendex.github.io/ascendex-pro-api/#place-batch-orders
|
|
1677
|
+
* @see https://ascendex.github.io/ascendex-futures-pro-api-v2/#place-batch-orders
|
|
1678
|
+
* @param {Array} orders list of orders to create, each object should contain the parameters required by createOrder, namely symbol, type, side, amount, price and params
|
|
1679
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1680
|
+
* @param {string} [params.timeInForce] "GTC", "IOC", "FOK", or "PO"
|
|
1681
|
+
* @param {bool} [params.postOnly] true or false
|
|
1682
|
+
* @param {float} [params.stopPrice] the price at which a trigger order is triggered at
|
|
1683
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1684
|
+
*/
|
|
1672
1685
|
async createOrders(orders, params = {}) {
|
|
1673
|
-
/**
|
|
1674
|
-
* @method
|
|
1675
|
-
* @name ascendex#createOrders
|
|
1676
|
-
* @description create a list of trade orders
|
|
1677
|
-
* @see https://ascendex.github.io/ascendex-pro-api/#place-batch-orders
|
|
1678
|
-
* @see https://ascendex.github.io/ascendex-futures-pro-api-v2/#place-batch-orders
|
|
1679
|
-
* @param {Array} orders list of orders to create, each object should contain the parameters required by createOrder, namely symbol, type, side, amount, price and params
|
|
1680
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1681
|
-
* @param {string} [params.timeInForce] "GTC", "IOC", "FOK", or "PO"
|
|
1682
|
-
* @param {bool} [params.postOnly] true or false
|
|
1683
|
-
* @param {float} [params.stopPrice] the price at which a trigger order is triggered at
|
|
1684
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1685
|
-
*/
|
|
1686
1686
|
await this.loadMarkets();
|
|
1687
1687
|
await this.loadAccounts();
|
|
1688
1688
|
const ordersRequests = [];
|
|
@@ -1768,18 +1768,18 @@ class ascendex extends ascendex$1 {
|
|
|
1768
1768
|
const info = this.safeList(data, 'info', []);
|
|
1769
1769
|
return this.parseOrders(info, market);
|
|
1770
1770
|
}
|
|
1771
|
+
/**
|
|
1772
|
+
* @method
|
|
1773
|
+
* @name ascendex#fetchOrder
|
|
1774
|
+
* @description fetches information on an order made by the user
|
|
1775
|
+
* @see https://ascendex.github.io/ascendex-pro-api/#query-order
|
|
1776
|
+
* @see https://ascendex.github.io/ascendex-futures-pro-api-v2/#query-order-by-id
|
|
1777
|
+
* @param {string} id the order id
|
|
1778
|
+
* @param {string} symbol unified symbol of the market the order was made in
|
|
1779
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1780
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1781
|
+
*/
|
|
1771
1782
|
async fetchOrder(id, symbol = undefined, params = {}) {
|
|
1772
|
-
/**
|
|
1773
|
-
* @method
|
|
1774
|
-
* @name ascendex#fetchOrder
|
|
1775
|
-
* @description fetches information on an order made by the user
|
|
1776
|
-
* @see https://ascendex.github.io/ascendex-pro-api/#query-order
|
|
1777
|
-
* @see https://ascendex.github.io/ascendex-futures-pro-api-v2/#query-order-by-id
|
|
1778
|
-
* @param {string} id the order id
|
|
1779
|
-
* @param {string} symbol unified symbol of the market the order was made in
|
|
1780
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1781
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1782
|
-
*/
|
|
1783
1783
|
await this.loadMarkets();
|
|
1784
1784
|
await this.loadAccounts();
|
|
1785
1785
|
let market = undefined;
|
|
@@ -1877,19 +1877,19 @@ class ascendex extends ascendex$1 {
|
|
|
1877
1877
|
const data = this.safeDict(response, 'data', {});
|
|
1878
1878
|
return this.parseOrder(data, market);
|
|
1879
1879
|
}
|
|
1880
|
+
/**
|
|
1881
|
+
* @method
|
|
1882
|
+
* @name ascendex#fetchOpenOrders
|
|
1883
|
+
* @description fetch all unfilled currently open orders
|
|
1884
|
+
* @see https://ascendex.github.io/ascendex-pro-api/#list-open-orders
|
|
1885
|
+
* @see https://ascendex.github.io/ascendex-futures-pro-api-v2/#list-open-orders
|
|
1886
|
+
* @param {string} symbol unified market symbol
|
|
1887
|
+
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1888
|
+
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1889
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1890
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1891
|
+
*/
|
|
1880
1892
|
async fetchOpenOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1881
|
-
/**
|
|
1882
|
-
* @method
|
|
1883
|
-
* @name ascendex#fetchOpenOrders
|
|
1884
|
-
* @description fetch all unfilled currently open orders
|
|
1885
|
-
* @see https://ascendex.github.io/ascendex-pro-api/#list-open-orders
|
|
1886
|
-
* @see https://ascendex.github.io/ascendex-futures-pro-api-v2/#list-open-orders
|
|
1887
|
-
* @param {string} symbol unified market symbol
|
|
1888
|
-
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1889
|
-
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1890
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1891
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1892
|
-
*/
|
|
1893
1893
|
await this.loadMarkets();
|
|
1894
1894
|
await this.loadAccounts();
|
|
1895
1895
|
let market = undefined;
|
|
@@ -1996,20 +1996,20 @@ class ascendex extends ascendex$1 {
|
|
|
1996
1996
|
}
|
|
1997
1997
|
return this.filterBySymbolSinceLimit(orders, symbol, since, limit);
|
|
1998
1998
|
}
|
|
1999
|
+
/**
|
|
2000
|
+
* @method
|
|
2001
|
+
* @name ascendex#fetchClosedOrders
|
|
2002
|
+
* @description fetches information on multiple closed orders made by the user
|
|
2003
|
+
* @see https://ascendex.github.io/ascendex-pro-api/#list-history-orders-v2
|
|
2004
|
+
* @see https://ascendex.github.io/ascendex-futures-pro-api-v2/#list-current-history-orders
|
|
2005
|
+
* @param {string} symbol unified market symbol of the market orders were made in
|
|
2006
|
+
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
2007
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
2008
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2009
|
+
* @param {int} [params.until] the latest time in ms to fetch orders for
|
|
2010
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2011
|
+
*/
|
|
1999
2012
|
async fetchClosedOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2000
|
-
/**
|
|
2001
|
-
* @method
|
|
2002
|
-
* @name ascendex#fetchClosedOrders
|
|
2003
|
-
* @description fetches information on multiple closed orders made by the user
|
|
2004
|
-
* @see https://ascendex.github.io/ascendex-pro-api/#list-history-orders-v2
|
|
2005
|
-
* @see https://ascendex.github.io/ascendex-futures-pro-api-v2/#list-current-history-orders
|
|
2006
|
-
* @param {string} symbol unified market symbol of the market orders were made in
|
|
2007
|
-
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
2008
|
-
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
2009
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2010
|
-
* @param {int} [params.until] the latest time in ms to fetch orders for
|
|
2011
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2012
|
-
*/
|
|
2013
2013
|
await this.loadMarkets();
|
|
2014
2014
|
await this.loadAccounts();
|
|
2015
2015
|
const account = this.safeDict(this.accounts, 0, {});
|
|
@@ -2172,18 +2172,18 @@ class ascendex extends ascendex$1 {
|
|
|
2172
2172
|
}
|
|
2173
2173
|
return this.parseOrders(data, market, since, limit);
|
|
2174
2174
|
}
|
|
2175
|
+
/**
|
|
2176
|
+
* @method
|
|
2177
|
+
* @name ascendex#cancelOrder
|
|
2178
|
+
* @description cancels an open order
|
|
2179
|
+
* @see https://ascendex.github.io/ascendex-pro-api/#cancel-order
|
|
2180
|
+
* @see https://ascendex.github.io/ascendex-futures-pro-api-v2/#cancel-order
|
|
2181
|
+
* @param {string} id order id
|
|
2182
|
+
* @param {string} symbol unified symbol of the market the order was made in
|
|
2183
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2184
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2185
|
+
*/
|
|
2175
2186
|
async cancelOrder(id, symbol = undefined, params = {}) {
|
|
2176
|
-
/**
|
|
2177
|
-
* @method
|
|
2178
|
-
* @name ascendex#cancelOrder
|
|
2179
|
-
* @description cancels an open order
|
|
2180
|
-
* @see https://ascendex.github.io/ascendex-pro-api/#cancel-order
|
|
2181
|
-
* @see https://ascendex.github.io/ascendex-futures-pro-api-v2/#cancel-order
|
|
2182
|
-
* @param {string} id order id
|
|
2183
|
-
* @param {string} symbol unified symbol of the market the order was made in
|
|
2184
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2185
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
2186
|
-
*/
|
|
2187
2187
|
if (symbol === undefined) {
|
|
2188
2188
|
throw new errors.ArgumentsRequired(this.id + ' cancelOrder() requires a symbol argument');
|
|
2189
2189
|
}
|
|
@@ -2288,17 +2288,17 @@ class ascendex extends ascendex$1 {
|
|
|
2288
2288
|
const order = this.safeDict2(data, 'order', 'info', {});
|
|
2289
2289
|
return this.parseOrder(order, market);
|
|
2290
2290
|
}
|
|
2291
|
+
/**
|
|
2292
|
+
* @method
|
|
2293
|
+
* @name ascendex#cancelAllOrders
|
|
2294
|
+
* @description cancel all open orders
|
|
2295
|
+
* @see https://ascendex.github.io/ascendex-pro-api/#cancel-all-orders
|
|
2296
|
+
* @see https://ascendex.github.io/ascendex-futures-pro-api-v2/#cancel-all-open-orders
|
|
2297
|
+
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
2298
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2299
|
+
* @returns {object[]} a list with a single [order structure]{@link https://docs.ccxt.com/#/?id=order-structure} with the response assigned to the info property
|
|
2300
|
+
*/
|
|
2291
2301
|
async cancelAllOrders(symbol = undefined, params = {}) {
|
|
2292
|
-
/**
|
|
2293
|
-
* @method
|
|
2294
|
-
* @name ascendex#cancelAllOrders
|
|
2295
|
-
* @description cancel all open orders
|
|
2296
|
-
* @see https://ascendex.github.io/ascendex-pro-api/#cancel-all-orders
|
|
2297
|
-
* @see https://ascendex.github.io/ascendex-futures-pro-api-v2/#cancel-all-open-orders
|
|
2298
|
-
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
2299
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2300
|
-
* @returns {object[]} a list with a single [order structure]{@link https://docs.ccxt.com/#/?id=order-structure} with the response assigned to the info property
|
|
2301
|
-
*/
|
|
2302
2302
|
await this.loadMarkets();
|
|
2303
2303
|
await this.loadAccounts();
|
|
2304
2304
|
let market = undefined;
|
|
@@ -2396,17 +2396,17 @@ class ascendex extends ascendex$1 {
|
|
|
2396
2396
|
'tag': tag,
|
|
2397
2397
|
};
|
|
2398
2398
|
}
|
|
2399
|
+
/**
|
|
2400
|
+
* @method
|
|
2401
|
+
* @name ascendex#fetchDepositAddress
|
|
2402
|
+
* @description fetch the deposit address for a currency associated with this account
|
|
2403
|
+
* @see https://ascendex.github.io/ascendex-pro-api/#query-deposit-addresses
|
|
2404
|
+
* @param {string} code unified currency code
|
|
2405
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2406
|
+
* @param {string} [params.network] unified network code for deposit chain
|
|
2407
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
2408
|
+
*/
|
|
2399
2409
|
async fetchDepositAddress(code, params = {}) {
|
|
2400
|
-
/**
|
|
2401
|
-
* @method
|
|
2402
|
-
* @name ascendex#fetchDepositAddress
|
|
2403
|
-
* @description fetch the deposit address for a currency associated with this account
|
|
2404
|
-
* @see https://ascendex.github.io/ascendex-pro-api/#query-deposit-addresses
|
|
2405
|
-
* @param {string} code unified currency code
|
|
2406
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2407
|
-
* @param {string} [params.network] unified network code for deposit chain
|
|
2408
|
-
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
2409
|
-
*/
|
|
2410
2410
|
await this.loadMarkets();
|
|
2411
2411
|
const currency = this.currency(code);
|
|
2412
2412
|
const networkCode = this.safeString2(params, 'network', 'chainName');
|
|
@@ -2472,49 +2472,49 @@ class ascendex extends ascendex$1 {
|
|
|
2472
2472
|
'info': response,
|
|
2473
2473
|
});
|
|
2474
2474
|
}
|
|
2475
|
+
/**
|
|
2476
|
+
* @method
|
|
2477
|
+
* @name ascendex#fetchDeposits
|
|
2478
|
+
* @description fetch all deposits made to an account
|
|
2479
|
+
* @param {string} code unified currency code
|
|
2480
|
+
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
2481
|
+
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
2482
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2483
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2484
|
+
*/
|
|
2475
2485
|
async fetchDeposits(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2476
|
-
/**
|
|
2477
|
-
* @method
|
|
2478
|
-
* @name ascendex#fetchDeposits
|
|
2479
|
-
* @description fetch all deposits made to an account
|
|
2480
|
-
* @param {string} code unified currency code
|
|
2481
|
-
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
2482
|
-
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
2483
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2484
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2485
|
-
*/
|
|
2486
2486
|
const request = {
|
|
2487
2487
|
'txType': 'deposit',
|
|
2488
2488
|
};
|
|
2489
2489
|
return await this.fetchTransactions(code, since, limit, this.extend(request, params));
|
|
2490
2490
|
}
|
|
2491
|
+
/**
|
|
2492
|
+
* @method
|
|
2493
|
+
* @name ascendex#fetchWithdrawals
|
|
2494
|
+
* @description fetch all withdrawals made from an account
|
|
2495
|
+
* @param {string} code unified currency code
|
|
2496
|
+
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
2497
|
+
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
2498
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2499
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2500
|
+
*/
|
|
2491
2501
|
async fetchWithdrawals(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2492
|
-
/**
|
|
2493
|
-
* @method
|
|
2494
|
-
* @name ascendex#fetchWithdrawals
|
|
2495
|
-
* @description fetch all withdrawals made from an account
|
|
2496
|
-
* @param {string} code unified currency code
|
|
2497
|
-
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
2498
|
-
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
2499
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2500
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2501
|
-
*/
|
|
2502
2502
|
const request = {
|
|
2503
2503
|
'txType': 'withdrawal',
|
|
2504
2504
|
};
|
|
2505
2505
|
return await this.fetchTransactions(code, since, limit, this.extend(request, params));
|
|
2506
2506
|
}
|
|
2507
|
+
/**
|
|
2508
|
+
* @method
|
|
2509
|
+
* @name ascendex#fetchDepositsWithdrawals
|
|
2510
|
+
* @description fetch history of deposits and withdrawals
|
|
2511
|
+
* @param {string} [code] unified currency code for the currency of the deposit/withdrawals, default is undefined
|
|
2512
|
+
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
2513
|
+
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
2514
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2515
|
+
* @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2516
|
+
*/
|
|
2507
2517
|
async fetchDepositsWithdrawals(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2508
|
-
/**
|
|
2509
|
-
* @method
|
|
2510
|
-
* @name ascendex#fetchDepositsWithdrawals
|
|
2511
|
-
* @description fetch history of deposits and withdrawals
|
|
2512
|
-
* @param {string} [code] unified currency code for the currency of the deposit/withdrawals, default is undefined
|
|
2513
|
-
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
2514
|
-
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
2515
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2516
|
-
* @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
2517
|
-
*/
|
|
2518
2518
|
await this.loadMarkets();
|
|
2519
2519
|
const request = {
|
|
2520
2520
|
// 'asset': currency['id'],
|
|
@@ -2629,15 +2629,15 @@ class ascendex extends ascendex$1 {
|
|
|
2629
2629
|
'internal': false,
|
|
2630
2630
|
};
|
|
2631
2631
|
}
|
|
2632
|
+
/**
|
|
2633
|
+
* @method
|
|
2634
|
+
* @name ascendex#fetchPositions
|
|
2635
|
+
* @description fetch all open positions
|
|
2636
|
+
* @param {string[]|undefined} symbols list of unified market symbols
|
|
2637
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2638
|
+
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
|
|
2639
|
+
*/
|
|
2632
2640
|
async fetchPositions(symbols = undefined, params = {}) {
|
|
2633
|
-
/**
|
|
2634
|
-
* @method
|
|
2635
|
-
* @name ascendex#fetchPositions
|
|
2636
|
-
* @description fetch all open positions
|
|
2637
|
-
* @param {string[]|undefined} symbols list of unified market symbols
|
|
2638
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2639
|
-
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
|
|
2640
|
-
*/
|
|
2641
2641
|
await this.loadMarkets();
|
|
2642
2642
|
await this.loadAccounts();
|
|
2643
2643
|
const account = this.safeDict(this.accounts, 0, {});
|
|
@@ -2797,15 +2797,15 @@ class ascendex extends ascendex$1 {
|
|
|
2797
2797
|
'interval': undefined,
|
|
2798
2798
|
};
|
|
2799
2799
|
}
|
|
2800
|
+
/**
|
|
2801
|
+
* @method
|
|
2802
|
+
* @name ascendex#fetchFundingRates
|
|
2803
|
+
* @description fetch the funding rate for multiple markets
|
|
2804
|
+
* @param {string[]|undefined} symbols list of unified market symbols
|
|
2805
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2806
|
+
* @returns {object[]} a list of [funding rates structures]{@link https://docs.ccxt.com/#/?id=funding-rates-structure}, indexe by market symbols
|
|
2807
|
+
*/
|
|
2800
2808
|
async fetchFundingRates(symbols = undefined, params = {}) {
|
|
2801
|
-
/**
|
|
2802
|
-
* @method
|
|
2803
|
-
* @name ascendex#fetchFundingRates
|
|
2804
|
-
* @description fetch the funding rate for multiple markets
|
|
2805
|
-
* @param {string[]|undefined} symbols list of unified market symbols
|
|
2806
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2807
|
-
* @returns {object[]} a list of [funding rates structures]{@link https://docs.ccxt.com/#/?id=funding-rates-structure}, indexe by market symbols
|
|
2808
|
-
*/
|
|
2809
2809
|
await this.loadMarkets();
|
|
2810
2810
|
symbols = this.marketSymbols(symbols);
|
|
2811
2811
|
const response = await this.v2PublicGetFuturesPricingData(params);
|
|
@@ -2889,41 +2889,41 @@ class ascendex extends ascendex$1 {
|
|
|
2889
2889
|
'datetime': undefined,
|
|
2890
2890
|
};
|
|
2891
2891
|
}
|
|
2892
|
+
/**
|
|
2893
|
+
* @method
|
|
2894
|
+
* @name ascendex#reduceMargin
|
|
2895
|
+
* @description remove margin from a position
|
|
2896
|
+
* @param {string} symbol unified market symbol
|
|
2897
|
+
* @param {float} amount the amount of margin to remove
|
|
2898
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2899
|
+
* @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=reduce-margin-structure}
|
|
2900
|
+
*/
|
|
2892
2901
|
async reduceMargin(symbol, amount, params = {}) {
|
|
2893
|
-
/**
|
|
2894
|
-
* @method
|
|
2895
|
-
* @name ascendex#reduceMargin
|
|
2896
|
-
* @description remove margin from a position
|
|
2897
|
-
* @param {string} symbol unified market symbol
|
|
2898
|
-
* @param {float} amount the amount of margin to remove
|
|
2899
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2900
|
-
* @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=reduce-margin-structure}
|
|
2901
|
-
*/
|
|
2902
2902
|
return await this.modifyMarginHelper(symbol, -amount, 'reduce', params);
|
|
2903
2903
|
}
|
|
2904
|
+
/**
|
|
2905
|
+
* @method
|
|
2906
|
+
* @name ascendex#addMargin
|
|
2907
|
+
* @description add margin
|
|
2908
|
+
* @param {string} symbol unified market symbol
|
|
2909
|
+
* @param {float} amount amount of margin to add
|
|
2910
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2911
|
+
* @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=add-margin-structure}
|
|
2912
|
+
*/
|
|
2904
2913
|
async addMargin(symbol, amount, params = {}) {
|
|
2905
|
-
/**
|
|
2906
|
-
* @method
|
|
2907
|
-
* @name ascendex#addMargin
|
|
2908
|
-
* @description add margin
|
|
2909
|
-
* @param {string} symbol unified market symbol
|
|
2910
|
-
* @param {float} amount amount of margin to add
|
|
2911
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2912
|
-
* @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=add-margin-structure}
|
|
2913
|
-
*/
|
|
2914
2914
|
return await this.modifyMarginHelper(symbol, amount, 'add', params);
|
|
2915
2915
|
}
|
|
2916
|
+
/**
|
|
2917
|
+
* @method
|
|
2918
|
+
* @name ascendex#setLeverage
|
|
2919
|
+
* @description set the level of leverage for a market
|
|
2920
|
+
* @see https://ascendex.github.io/ascendex-futures-pro-api-v2/#change-contract-leverage
|
|
2921
|
+
* @param {float} leverage the rate of leverage
|
|
2922
|
+
* @param {string} symbol unified market symbol
|
|
2923
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2924
|
+
* @returns {object} response from the exchange
|
|
2925
|
+
*/
|
|
2916
2926
|
async setLeverage(leverage, symbol = undefined, params = {}) {
|
|
2917
|
-
/**
|
|
2918
|
-
* @method
|
|
2919
|
-
* @name ascendex#setLeverage
|
|
2920
|
-
* @description set the level of leverage for a market
|
|
2921
|
-
* @see https://ascendex.github.io/ascendex-futures-pro-api-v2/#change-contract-leverage
|
|
2922
|
-
* @param {float} leverage the rate of leverage
|
|
2923
|
-
* @param {string} symbol unified market symbol
|
|
2924
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2925
|
-
* @returns {object} response from the exchange
|
|
2926
|
-
*/
|
|
2927
2927
|
if (symbol === undefined) {
|
|
2928
2928
|
throw new errors.ArgumentsRequired(this.id + ' setLeverage() requires a symbol argument');
|
|
2929
2929
|
}
|
|
@@ -2945,17 +2945,17 @@ class ascendex extends ascendex$1 {
|
|
|
2945
2945
|
};
|
|
2946
2946
|
return await this.v2PrivateAccountGroupPostFuturesLeverage(this.extend(request, params));
|
|
2947
2947
|
}
|
|
2948
|
+
/**
|
|
2949
|
+
* @method
|
|
2950
|
+
* @name ascendex#setMarginMode
|
|
2951
|
+
* @description set margin mode to 'cross' or 'isolated'
|
|
2952
|
+
* @see https://ascendex.github.io/ascendex-futures-pro-api-v2/#change-margin-type
|
|
2953
|
+
* @param {string} marginMode 'cross' or 'isolated'
|
|
2954
|
+
* @param {string} symbol unified market symbol
|
|
2955
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2956
|
+
* @returns {object} response from the exchange
|
|
2957
|
+
*/
|
|
2948
2958
|
async setMarginMode(marginMode, symbol = undefined, params = {}) {
|
|
2949
|
-
/**
|
|
2950
|
-
* @method
|
|
2951
|
-
* @name ascendex#setMarginMode
|
|
2952
|
-
* @description set margin mode to 'cross' or 'isolated'
|
|
2953
|
-
* @see https://ascendex.github.io/ascendex-futures-pro-api-v2/#change-margin-type
|
|
2954
|
-
* @param {string} marginMode 'cross' or 'isolated'
|
|
2955
|
-
* @param {string} symbol unified market symbol
|
|
2956
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2957
|
-
* @returns {object} response from the exchange
|
|
2958
|
-
*/
|
|
2959
2959
|
if (symbol === undefined) {
|
|
2960
2960
|
throw new errors.ArgumentsRequired(this.id + ' setMarginMode() requires a symbol argument');
|
|
2961
2961
|
}
|
|
@@ -2981,15 +2981,15 @@ class ascendex extends ascendex$1 {
|
|
|
2981
2981
|
}
|
|
2982
2982
|
return await this.v2PrivateAccountGroupPostFuturesMarginType(this.extend(request, params));
|
|
2983
2983
|
}
|
|
2984
|
+
/**
|
|
2985
|
+
* @method
|
|
2986
|
+
* @name ascendex#fetchLeverageTiers
|
|
2987
|
+
* @description retrieve information on the maximum leverage, and maintenance margin for trades of varying trade sizes
|
|
2988
|
+
* @param {string[]|undefined} symbols list of unified market symbols
|
|
2989
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2990
|
+
* @returns {object} a dictionary of [leverage tiers structures]{@link https://docs.ccxt.com/#/?id=leverage-tiers-structure}, indexed by market symbols
|
|
2991
|
+
*/
|
|
2984
2992
|
async fetchLeverageTiers(symbols = undefined, params = {}) {
|
|
2985
|
-
/**
|
|
2986
|
-
* @method
|
|
2987
|
-
* @name ascendex#fetchLeverageTiers
|
|
2988
|
-
* @description retrieve information on the maximum leverage, and maintenance margin for trades of varying trade sizes
|
|
2989
|
-
* @param {string[]|undefined} symbols list of unified market symbols
|
|
2990
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2991
|
-
* @returns {object} a dictionary of [leverage tiers structures]{@link https://docs.ccxt.com/#/?id=leverage-tiers-structure}, indexed by market symbols
|
|
2992
|
-
*/
|
|
2993
2993
|
await this.loadMarkets();
|
|
2994
2994
|
const response = await this.v2PublicGetFuturesContract(params);
|
|
2995
2995
|
//
|
|
@@ -3053,14 +3053,15 @@ class ascendex extends ascendex$1 {
|
|
|
3053
3053
|
// }
|
|
3054
3054
|
//
|
|
3055
3055
|
const marginRequirements = this.safeList(info, 'marginRequirements', []);
|
|
3056
|
-
const
|
|
3057
|
-
market = this.safeMarket(
|
|
3056
|
+
const marketId = this.safeString(info, 'symbol');
|
|
3057
|
+
market = this.safeMarket(marketId, market);
|
|
3058
3058
|
const tiers = [];
|
|
3059
3059
|
for (let i = 0; i < marginRequirements.length; i++) {
|
|
3060
3060
|
const tier = marginRequirements[i];
|
|
3061
3061
|
const initialMarginRate = this.safeString(tier, 'initialMarginRate');
|
|
3062
3062
|
tiers.push({
|
|
3063
3063
|
'tier': this.sum(i, 1),
|
|
3064
|
+
'symbol': this.safeSymbol(marketId, market, undefined, 'contract'),
|
|
3064
3065
|
'currency': market['quote'],
|
|
3065
3066
|
'minNotional': this.safeNumber(tier, 'positionNotionalLowerBound'),
|
|
3066
3067
|
'maxNotional': this.safeNumber(tier, 'positionNotionalUpperBound'),
|
|
@@ -3121,33 +3122,33 @@ class ascendex extends ascendex$1 {
|
|
|
3121
3122
|
}
|
|
3122
3123
|
return result;
|
|
3123
3124
|
}
|
|
3125
|
+
/**
|
|
3126
|
+
* @method
|
|
3127
|
+
* @name ascendex#fetchDepositWithdrawFees
|
|
3128
|
+
* @description fetch deposit and withdraw fees
|
|
3129
|
+
* @see https://ascendex.github.io/ascendex-pro-api/#list-all-assets
|
|
3130
|
+
* @param {string[]|undefined} codes list of unified currency codes
|
|
3131
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3132
|
+
* @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
3133
|
+
*/
|
|
3124
3134
|
async fetchDepositWithdrawFees(codes = undefined, params = {}) {
|
|
3125
|
-
/**
|
|
3126
|
-
* @method
|
|
3127
|
-
* @name ascendex#fetchDepositWithdrawFees
|
|
3128
|
-
* @description fetch deposit and withdraw fees
|
|
3129
|
-
* @see https://ascendex.github.io/ascendex-pro-api/#list-all-assets
|
|
3130
|
-
* @param {string[]|undefined} codes list of unified currency codes
|
|
3131
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3132
|
-
* @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
3133
|
-
*/
|
|
3134
3135
|
await this.loadMarkets();
|
|
3135
3136
|
const response = await this.v2PublicGetAssets(params);
|
|
3136
3137
|
const data = this.safeList(response, 'data');
|
|
3137
3138
|
return this.parseDepositWithdrawFees(data, codes, 'assetCode');
|
|
3138
3139
|
}
|
|
3140
|
+
/**
|
|
3141
|
+
* @method
|
|
3142
|
+
* @name ascendex#transfer
|
|
3143
|
+
* @description transfer currency internally between wallets on the same account
|
|
3144
|
+
* @param {string} code unified currency codeåå
|
|
3145
|
+
* @param {float} amount amount to transfer
|
|
3146
|
+
* @param {string} fromAccount account to transfer from
|
|
3147
|
+
* @param {string} toAccount account to transfer to
|
|
3148
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3149
|
+
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
|
|
3150
|
+
*/
|
|
3139
3151
|
async transfer(code, amount, fromAccount, toAccount, params = {}) {
|
|
3140
|
-
/**
|
|
3141
|
-
* @method
|
|
3142
|
-
* @name ascendex#transfer
|
|
3143
|
-
* @description transfer currency internally between wallets on the same account
|
|
3144
|
-
* @param {string} code unified currency codeåå
|
|
3145
|
-
* @param {float} amount amount to transfer
|
|
3146
|
-
* @param {string} fromAccount account to transfer from
|
|
3147
|
-
* @param {string} toAccount account to transfer to
|
|
3148
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3149
|
-
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
|
|
3150
|
-
*/
|
|
3151
3152
|
await this.loadMarkets();
|
|
3152
3153
|
await this.loadAccounts();
|
|
3153
3154
|
const account = this.safeDict(this.accounts, 0, {});
|
|
@@ -3205,19 +3206,19 @@ class ascendex extends ascendex$1 {
|
|
|
3205
3206
|
}
|
|
3206
3207
|
return 'failed';
|
|
3207
3208
|
}
|
|
3209
|
+
/**
|
|
3210
|
+
* @method
|
|
3211
|
+
* @name ascendex#fetchFundingHistory
|
|
3212
|
+
* @description fetch the history of funding payments paid and received on this account
|
|
3213
|
+
* @see https://ascendex.github.io/ascendex-futures-pro-api-v2/#funding-payment-history
|
|
3214
|
+
* @param {string} [symbol] unified market symbol
|
|
3215
|
+
* @param {int} [since] the earliest time in ms to fetch funding history for
|
|
3216
|
+
* @param {int} [limit] the maximum number of funding history structures to retrieve
|
|
3217
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3218
|
+
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [available parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
3219
|
+
* @returns {object} a [funding history structure]{@link https://docs.ccxt.com/#/?id=funding-history-structure}
|
|
3220
|
+
*/
|
|
3208
3221
|
async fetchFundingHistory(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
3209
|
-
/**
|
|
3210
|
-
* @method
|
|
3211
|
-
* @name ascendex#fetchFundingHistory
|
|
3212
|
-
* @description fetch the history of funding payments paid and received on this account
|
|
3213
|
-
* @see https://ascendex.github.io/ascendex-futures-pro-api-v2/#funding-payment-history
|
|
3214
|
-
* @param {string} [symbol] unified market symbol
|
|
3215
|
-
* @param {int} [since] the earliest time in ms to fetch funding history for
|
|
3216
|
-
* @param {int} [limit] the maximum number of funding history structures to retrieve
|
|
3217
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3218
|
-
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [available parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
3219
|
-
* @returns {object} a [funding history structure]{@link https://docs.ccxt.com/#/?id=funding-history-structure}
|
|
3220
|
-
*/
|
|
3221
3222
|
await this.loadMarkets();
|
|
3222
3223
|
await this.loadAccounts();
|
|
3223
3224
|
let paginate = false;
|
|
@@ -3282,16 +3283,16 @@ class ascendex extends ascendex$1 {
|
|
|
3282
3283
|
'amount': this.safeNumber(income, 'paymentInUSDT'),
|
|
3283
3284
|
};
|
|
3284
3285
|
}
|
|
3286
|
+
/**
|
|
3287
|
+
* @method
|
|
3288
|
+
* @name ascendex#fetchMarginModes
|
|
3289
|
+
* @description fetches the set margin mode of the user
|
|
3290
|
+
* @see https://ascendex.github.io/ascendex-futures-pro-api-v2/#position
|
|
3291
|
+
* @param {string[]} [symbols] a list of unified market symbols
|
|
3292
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3293
|
+
* @returns {object} a list of [margin mode structures]{@link https://docs.ccxt.com/#/?id=margin-mode-structure}
|
|
3294
|
+
*/
|
|
3285
3295
|
async fetchMarginModes(symbols = undefined, params = {}) {
|
|
3286
|
-
/**
|
|
3287
|
-
* @method
|
|
3288
|
-
* @name ascendex#fetchMarginModes
|
|
3289
|
-
* @description fetches the set margin mode of the user
|
|
3290
|
-
* @see https://ascendex.github.io/ascendex-futures-pro-api-v2/#position
|
|
3291
|
-
* @param {string[]} [symbols] a list of unified market symbols
|
|
3292
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3293
|
-
* @returns {object} a list of [margin mode structures]{@link https://docs.ccxt.com/#/?id=margin-mode-structure}
|
|
3294
|
-
*/
|
|
3295
3296
|
await this.loadMarkets();
|
|
3296
3297
|
await this.loadAccounts();
|
|
3297
3298
|
const account = this.safeDict(this.accounts, 0, {});
|
|
@@ -3353,16 +3354,16 @@ class ascendex extends ascendex$1 {
|
|
|
3353
3354
|
'marginMode': margin,
|
|
3354
3355
|
};
|
|
3355
3356
|
}
|
|
3357
|
+
/**
|
|
3358
|
+
* @method
|
|
3359
|
+
* @name ascendex#fetchLeverages
|
|
3360
|
+
* @description fetch the set leverage for all contract markets
|
|
3361
|
+
* @see https://ascendex.github.io/ascendex-futures-pro-api-v2/#position
|
|
3362
|
+
* @param {string[]} [symbols] a list of unified market symbols
|
|
3363
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3364
|
+
* @returns {object} a list of [leverage structures]{@link https://docs.ccxt.com/#/?id=leverage-structure}
|
|
3365
|
+
*/
|
|
3356
3366
|
async fetchLeverages(symbols = undefined, params = {}) {
|
|
3357
|
-
/**
|
|
3358
|
-
* @method
|
|
3359
|
-
* @name ascendex#fetchLeverages
|
|
3360
|
-
* @description fetch the set leverage for all contract markets
|
|
3361
|
-
* @see https://ascendex.github.io/ascendex-futures-pro-api-v2/#position
|
|
3362
|
-
* @param {string[]} [symbols] a list of unified market symbols
|
|
3363
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
3364
|
-
* @returns {object} a list of [leverage structures]{@link https://docs.ccxt.com/#/?id=leverage-structure}
|
|
3365
|
-
*/
|
|
3366
3367
|
await this.loadMarkets();
|
|
3367
3368
|
await this.loadAccounts();
|
|
3368
3369
|
const account = this.safeDict(this.accounts, 0, {});
|