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
|
@@ -208,15 +208,15 @@ export default class poloniexfutures extends Exchange {
|
|
|
208
208
|
},
|
|
209
209
|
});
|
|
210
210
|
}
|
|
211
|
+
/**
|
|
212
|
+
* @method
|
|
213
|
+
* @name poloniexfutures#fetchMarkets
|
|
214
|
+
* @description retrieves data on all markets for poloniexfutures
|
|
215
|
+
* @see https://api-docs.poloniex.com/futures/api/symbol
|
|
216
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
217
|
+
* @returns {object[]} an array of objects representing market data
|
|
218
|
+
*/
|
|
211
219
|
async fetchMarkets(params = {}) {
|
|
212
|
-
/**
|
|
213
|
-
* @method
|
|
214
|
-
* @name poloniexfutures#fetchMarkets
|
|
215
|
-
* @description retrieves data on all markets for poloniexfutures
|
|
216
|
-
* @see https://api-docs.poloniex.com/futures/api/symbol
|
|
217
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
218
|
-
* @returns {object[]} an array of objects representing market data
|
|
219
|
-
*/
|
|
220
220
|
const response = await this.publicGetContractsActive(params);
|
|
221
221
|
//
|
|
222
222
|
// {
|
|
@@ -420,16 +420,16 @@ export default class poloniexfutures extends Exchange {
|
|
|
420
420
|
'info': ticker,
|
|
421
421
|
}, market);
|
|
422
422
|
}
|
|
423
|
+
/**
|
|
424
|
+
* @method
|
|
425
|
+
* @name poloniexfutures#fetchTicker
|
|
426
|
+
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
427
|
+
* @see https://api-docs.poloniex.com/futures/api/ticker#get-real-time-ticker-20
|
|
428
|
+
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
429
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
430
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
431
|
+
*/
|
|
423
432
|
async fetchTicker(symbol, params = {}) {
|
|
424
|
-
/**
|
|
425
|
-
* @method
|
|
426
|
-
* @name poloniexfutures#fetchTicker
|
|
427
|
-
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
428
|
-
* @see https://api-docs.poloniex.com/futures/api/ticker#get-real-time-ticker-20
|
|
429
|
-
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
430
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
431
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
432
|
-
*/
|
|
433
433
|
await this.loadMarkets();
|
|
434
434
|
const market = this.market(symbol);
|
|
435
435
|
const request = {
|
|
@@ -456,33 +456,33 @@ export default class poloniexfutures extends Exchange {
|
|
|
456
456
|
//
|
|
457
457
|
return this.parseTicker(this.safeValue(response, 'data', {}), market);
|
|
458
458
|
}
|
|
459
|
+
/**
|
|
460
|
+
* @method
|
|
461
|
+
* @name poloniexfutures#fetchTickers
|
|
462
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
463
|
+
* @see https://api-docs.poloniex.com/futures/api/ticker#get-real-time-ticker-of-all-symbols
|
|
464
|
+
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
465
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
466
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
467
|
+
*/
|
|
459
468
|
async fetchTickers(symbols = undefined, params = {}) {
|
|
460
|
-
/**
|
|
461
|
-
* @method
|
|
462
|
-
* @name poloniexfutures#fetchTickers
|
|
463
|
-
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
464
|
-
* @see https://api-docs.poloniex.com/futures/api/ticker#get-real-time-ticker-of-all-symbols
|
|
465
|
-
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
466
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
467
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
468
|
-
*/
|
|
469
469
|
await this.loadMarkets();
|
|
470
470
|
const response = await this.publicGetTickers(params);
|
|
471
471
|
const data = this.safeList(response, 'data', []);
|
|
472
472
|
return this.parseTickers(data, symbols);
|
|
473
473
|
}
|
|
474
|
+
/**
|
|
475
|
+
* @method
|
|
476
|
+
* @name poloniexfuturesfutures#fetchOrderBook
|
|
477
|
+
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
478
|
+
* @see https://api-docs.poloniex.com/futures/api/orderbook#get-full-order-book---level-2
|
|
479
|
+
* @see https://api-docs.poloniex.com/futures/api/orderbook#get-full-order-book--level-3
|
|
480
|
+
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
481
|
+
* @param {int} [limit] the maximum amount of order book entries to return
|
|
482
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
483
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
484
|
+
*/
|
|
474
485
|
async fetchOrderBook(symbol, limit = undefined, params = {}) {
|
|
475
|
-
/**
|
|
476
|
-
* @method
|
|
477
|
-
* @name poloniexfuturesfutures#fetchOrderBook
|
|
478
|
-
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
479
|
-
* @see https://api-docs.poloniex.com/futures/api/orderbook#get-full-order-book---level-2
|
|
480
|
-
* @see https://api-docs.poloniex.com/futures/api/orderbook#get-full-order-book--level-3
|
|
481
|
-
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
482
|
-
* @param {int} [limit] the maximum amount of order book entries to return
|
|
483
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
484
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
485
|
-
*/
|
|
486
486
|
await this.loadMarkets();
|
|
487
487
|
const level = this.safeNumber(params, 'level');
|
|
488
488
|
params = this.omit(params, 'level');
|
|
@@ -558,17 +558,17 @@ export default class poloniexfutures extends Exchange {
|
|
|
558
558
|
orderbook['nonce'] = this.safeInteger(data, 'sequence');
|
|
559
559
|
return orderbook;
|
|
560
560
|
}
|
|
561
|
+
/**
|
|
562
|
+
* @method
|
|
563
|
+
* @name poloniexfutures#fetchL3OrderBook
|
|
564
|
+
* @description fetches level 3 information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
565
|
+
* @see https://api-docs.poloniex.com/futures/api/orderbook#get-full-order-book--level-3
|
|
566
|
+
* @param {string} symbol unified market symbol
|
|
567
|
+
* @param {int} [limit] max number of orders to return, default is undefined
|
|
568
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
569
|
+
* @returns {object} an [order book structure]{@link https://docs.ccxt.com/#/?id=order-book-structure}
|
|
570
|
+
*/
|
|
561
571
|
async fetchL3OrderBook(symbol, limit = undefined, params = {}) {
|
|
562
|
-
/**
|
|
563
|
-
* @method
|
|
564
|
-
* @name poloniexfutures#fetchL3OrderBook
|
|
565
|
-
* @description fetches level 3 information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
566
|
-
* @see https://api-docs.poloniex.com/futures/api/orderbook#get-full-order-book--level-3
|
|
567
|
-
* @param {string} symbol unified market symbol
|
|
568
|
-
* @param {int} [limit] max number of orders to return, default is undefined
|
|
569
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
570
|
-
* @returns {object} an [order book structure]{@link https://docs.ccxt.com/#/?id=order-book-structure}
|
|
571
|
-
*/
|
|
572
572
|
await this.loadMarkets();
|
|
573
573
|
const market = this.market(symbol);
|
|
574
574
|
return this.fetchOrderBook(market['id'], undefined, { 'level': 3 });
|
|
@@ -665,18 +665,18 @@ export default class poloniexfutures extends Exchange {
|
|
|
665
665
|
'fee': fee,
|
|
666
666
|
}, market);
|
|
667
667
|
}
|
|
668
|
+
/**
|
|
669
|
+
* @method
|
|
670
|
+
* @name poloniexfutures#fetchTrades
|
|
671
|
+
* @description get the list of most recent trades for a particular symbol
|
|
672
|
+
* @see https://api-docs.poloniex.com/futures/api/historical#transaction-history
|
|
673
|
+
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
674
|
+
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
675
|
+
* @param {int} [limit] the maximum amount of trades to fetch
|
|
676
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
677
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
678
|
+
*/
|
|
668
679
|
async fetchTrades(symbol, since = undefined, limit = undefined, params = {}) {
|
|
669
|
-
/**
|
|
670
|
-
* @method
|
|
671
|
-
* @name poloniexfutures#fetchTrades
|
|
672
|
-
* @description get the list of most recent trades for a particular symbol
|
|
673
|
-
* @see https://api-docs.poloniex.com/futures/api/historical#transaction-history
|
|
674
|
-
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
675
|
-
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
676
|
-
* @param {int} [limit] the maximum amount of trades to fetch
|
|
677
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
678
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
679
|
-
*/
|
|
680
680
|
await this.loadMarkets();
|
|
681
681
|
const market = this.market(symbol);
|
|
682
682
|
const request = {
|
|
@@ -702,15 +702,15 @@ export default class poloniexfutures extends Exchange {
|
|
|
702
702
|
const trades = this.safeList(response, 'data', []);
|
|
703
703
|
return this.parseTrades(trades, market, since, limit);
|
|
704
704
|
}
|
|
705
|
+
/**
|
|
706
|
+
* @method
|
|
707
|
+
* @name poloniexfutures#fetchTime
|
|
708
|
+
* @description fetches the current integer timestamp in milliseconds from the poloniexfutures server
|
|
709
|
+
* @see https://api-docs.poloniex.com/futures/api/time#server-time
|
|
710
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
711
|
+
* @returns {int} the current integer timestamp in milliseconds from the poloniexfutures server
|
|
712
|
+
*/
|
|
705
713
|
async fetchTime(params = {}) {
|
|
706
|
-
/**
|
|
707
|
-
* @method
|
|
708
|
-
* @name poloniexfutures#fetchTime
|
|
709
|
-
* @description fetches the current integer timestamp in milliseconds from the poloniexfutures server
|
|
710
|
-
* @see https://api-docs.poloniex.com/futures/api/time#server-time
|
|
711
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
712
|
-
* @returns {int} the current integer timestamp in milliseconds from the poloniexfutures server
|
|
713
|
-
*/
|
|
714
714
|
const response = await this.publicGetTimestamp(params);
|
|
715
715
|
//
|
|
716
716
|
// {
|
|
@@ -721,19 +721,19 @@ export default class poloniexfutures extends Exchange {
|
|
|
721
721
|
//
|
|
722
722
|
return this.safeInteger(response, 'data');
|
|
723
723
|
}
|
|
724
|
+
/**
|
|
725
|
+
* @method
|
|
726
|
+
* @name poloniexfutures#fetchOHLCV
|
|
727
|
+
* @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
728
|
+
* @see https://api-docs.poloniex.com/futures/api/kline#get-k-line-data-of-contract
|
|
729
|
+
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
730
|
+
* @param {string} timeframe the length of time each candle represents
|
|
731
|
+
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
732
|
+
* @param {int} [limit] the maximum amount of candles to fetch
|
|
733
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
734
|
+
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
735
|
+
*/
|
|
724
736
|
async fetchOHLCV(symbol, timeframe = '1m', since = undefined, limit = undefined, params = {}) {
|
|
725
|
-
/**
|
|
726
|
-
* @method
|
|
727
|
-
* @name poloniexfutures#fetchOHLCV
|
|
728
|
-
* @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
729
|
-
* @see https://api-docs.poloniex.com/futures/api/kline#get-k-line-data-of-contract
|
|
730
|
-
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
731
|
-
* @param {string} timeframe the length of time each candle represents
|
|
732
|
-
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
733
|
-
* @param {int} [limit] the maximum amount of candles to fetch
|
|
734
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
735
|
-
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
736
|
-
*/
|
|
737
737
|
await this.loadMarkets();
|
|
738
738
|
const market = this.market(symbol);
|
|
739
739
|
const marketId = market['id'];
|
|
@@ -790,15 +790,15 @@ export default class poloniexfutures extends Exchange {
|
|
|
790
790
|
result[code] = account;
|
|
791
791
|
return this.safeBalance(result);
|
|
792
792
|
}
|
|
793
|
+
/**
|
|
794
|
+
* @method
|
|
795
|
+
* @name poloniexfutures#fetchBalance
|
|
796
|
+
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
797
|
+
* @see https://api-docs.poloniex.com/futures/api/account#get-account-overview
|
|
798
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
799
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
800
|
+
*/
|
|
793
801
|
async fetchBalance(params = {}) {
|
|
794
|
-
/**
|
|
795
|
-
* @method
|
|
796
|
-
* @name poloniexfutures#fetchBalance
|
|
797
|
-
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
798
|
-
* @see https://api-docs.poloniex.com/futures/api/account#get-account-overview
|
|
799
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
800
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
801
|
-
*/
|
|
802
802
|
await this.loadMarkets();
|
|
803
803
|
const currencyId = this.safeString(params, 'currency');
|
|
804
804
|
let request = {};
|
|
@@ -826,31 +826,31 @@ export default class poloniexfutures extends Exchange {
|
|
|
826
826
|
//
|
|
827
827
|
return this.parseBalance(response);
|
|
828
828
|
}
|
|
829
|
+
/**
|
|
830
|
+
* @method
|
|
831
|
+
* @name poloniexfutures#createOrder
|
|
832
|
+
* @description Create an order on the exchange
|
|
833
|
+
* @see https://api-docs.poloniex.com/futures/api/orders#place-an-order
|
|
834
|
+
* @param {string} symbol Unified CCXT market symbol
|
|
835
|
+
* @param {string} type 'limit' or 'market'
|
|
836
|
+
* @param {string} side 'buy' or 'sell'
|
|
837
|
+
* @param {float} amount the amount of currency to trade
|
|
838
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
839
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
840
|
+
* @param {float} [params.leverage] Leverage size of the order
|
|
841
|
+
* @param {float} [params.stopPrice] The price at which a trigger order is triggered at
|
|
842
|
+
* @param {bool} [params.reduceOnly] A mark to reduce the position size only. Set to false by default. Need to set the position size when reduceOnly is true.
|
|
843
|
+
* @param {string} [params.timeInForce] GTC, GTT, IOC, or FOK, default is GTC, limit orders only
|
|
844
|
+
* @param {string} [params.postOnly] Post only flag, invalid when timeInForce is IOC or FOK
|
|
845
|
+
* @param {string} [params.clientOid] client order id, defaults to uuid if not passed
|
|
846
|
+
* @param {string} [params.remark] remark for the order, length cannot exceed 100 utf8 characters
|
|
847
|
+
* @param {string} [params.stop] 'up' or 'down', defaults to 'up' if side is sell and 'down' if side is buy, requires stopPrice
|
|
848
|
+
* @param {string} [params.stopPriceType] TP, IP or MP, defaults to TP
|
|
849
|
+
* @param {bool} [params.closeOrder] set to true to close position
|
|
850
|
+
* @param {bool} [params.forceHold] A mark to forcely hold the funds for an order, even though it's an order to reduce the position size. This helps the order stay on the order book and not get canceled when the position size changes. Set to false by default.
|
|
851
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
852
|
+
*/
|
|
829
853
|
async createOrder(symbol, type, side, amount, price = undefined, params = {}) {
|
|
830
|
-
/**
|
|
831
|
-
* @method
|
|
832
|
-
* @name poloniexfutures#createOrder
|
|
833
|
-
* @description Create an order on the exchange
|
|
834
|
-
* @see https://api-docs.poloniex.com/futures/api/orders#place-an-order
|
|
835
|
-
* @param {string} symbol Unified CCXT market symbol
|
|
836
|
-
* @param {string} type 'limit' or 'market'
|
|
837
|
-
* @param {string} side 'buy' or 'sell'
|
|
838
|
-
* @param {float} amount the amount of currency to trade
|
|
839
|
-
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
840
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
841
|
-
* @param {float} [params.leverage] Leverage size of the order
|
|
842
|
-
* @param {float} [params.stopPrice] The price at which a trigger order is triggered at
|
|
843
|
-
* @param {bool} [params.reduceOnly] A mark to reduce the position size only. Set to false by default. Need to set the position size when reduceOnly is true.
|
|
844
|
-
* @param {string} [params.timeInForce] GTC, GTT, IOC, or FOK, default is GTC, limit orders only
|
|
845
|
-
* @param {string} [params.postOnly] Post only flag, invalid when timeInForce is IOC or FOK
|
|
846
|
-
* @param {string} [params.clientOid] client order id, defaults to uuid if not passed
|
|
847
|
-
* @param {string} [params.remark] remark for the order, length cannot exceed 100 utf8 characters
|
|
848
|
-
* @param {string} [params.stop] 'up' or 'down', defaults to 'up' if side is sell and 'down' if side is buy, requires stopPrice
|
|
849
|
-
* @param {string} [params.stopPriceType] TP, IP or MP, defaults to TP
|
|
850
|
-
* @param {bool} [params.closeOrder] set to true to close position
|
|
851
|
-
* @param {bool} [params.forceHold] A mark to forcely hold the funds for an order, even though it's an order to reduce the position size. This helps the order stay on the order book and not get canceled when the position size changes. Set to false by default.
|
|
852
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
853
|
-
*/
|
|
854
854
|
await this.loadMarkets();
|
|
855
855
|
const market = this.market(symbol);
|
|
856
856
|
// required param, cannot be used twice
|
|
@@ -934,17 +934,17 @@ export default class poloniexfutures extends Exchange {
|
|
|
934
934
|
'info': response,
|
|
935
935
|
}, market);
|
|
936
936
|
}
|
|
937
|
+
/**
|
|
938
|
+
* @method
|
|
939
|
+
* @name poloniexfutures#cancelOrder
|
|
940
|
+
* @description cancels an open order
|
|
941
|
+
* @see https://api-docs.poloniex.com/futures/api/orders#cancel-an-order
|
|
942
|
+
* @param {string} id order id
|
|
943
|
+
* @param {string} symbol unified symbol of the market the order was made in
|
|
944
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
945
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
946
|
+
*/
|
|
937
947
|
async cancelOrder(id, symbol = undefined, params = {}) {
|
|
938
|
-
/**
|
|
939
|
-
* @method
|
|
940
|
-
* @name poloniexfutures#cancelOrder
|
|
941
|
-
* @description cancels an open order
|
|
942
|
-
* @see https://api-docs.poloniex.com/futures/api/orders#cancel-an-order
|
|
943
|
-
* @param {string} id order id
|
|
944
|
-
* @param {string} symbol unified symbol of the market the order was made in
|
|
945
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
946
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
947
|
-
*/
|
|
948
948
|
await this.loadMarkets();
|
|
949
949
|
const request = {
|
|
950
950
|
'order-id': id,
|
|
@@ -974,16 +974,16 @@ export default class poloniexfutures extends Exchange {
|
|
|
974
974
|
}
|
|
975
975
|
return this.parseOrder(data);
|
|
976
976
|
}
|
|
977
|
+
/**
|
|
978
|
+
* @method
|
|
979
|
+
* @name poloniexfutures#fetchPositions
|
|
980
|
+
* @description fetch all open positions
|
|
981
|
+
* @see https://api-docs.poloniex.com/futures/api/positions#get-position-list
|
|
982
|
+
* @param {string[]|undefined} symbols list of unified market symbols
|
|
983
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
984
|
+
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
|
|
985
|
+
*/
|
|
977
986
|
async fetchPositions(symbols = undefined, params = {}) {
|
|
978
|
-
/**
|
|
979
|
-
* @method
|
|
980
|
-
* @name poloniexfutures#fetchPositions
|
|
981
|
-
* @description fetch all open positions
|
|
982
|
-
* @see https://api-docs.poloniex.com/futures/api/positions#get-position-list
|
|
983
|
-
* @param {string[]|undefined} symbols list of unified market symbols
|
|
984
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
985
|
-
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
|
|
986
|
-
*/
|
|
987
987
|
await this.loadMarkets();
|
|
988
988
|
const response = await this.privateGetPositions(params);
|
|
989
989
|
//
|
|
@@ -1128,18 +1128,18 @@ export default class poloniexfutures extends Exchange {
|
|
|
1128
1128
|
'takeProfitPrice': undefined,
|
|
1129
1129
|
};
|
|
1130
1130
|
}
|
|
1131
|
+
/**
|
|
1132
|
+
* @method
|
|
1133
|
+
* @name poloniexfutures#fetchFundingHistory
|
|
1134
|
+
* @description fetch the history of funding payments paid and received on this account
|
|
1135
|
+
* @see https://api-docs.poloniex.com/futures/api/funding-fees#get-funding-history
|
|
1136
|
+
* @param {string} symbol unified market symbol
|
|
1137
|
+
* @param {int} [since] the earliest time in ms to fetch funding history for
|
|
1138
|
+
* @param {int} [limit] the maximum number of funding history structures to retrieve
|
|
1139
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1140
|
+
* @returns {object} a [funding history structure]{@link https://docs.ccxt.com/#/?id=funding-history-structure}
|
|
1141
|
+
*/
|
|
1131
1142
|
async fetchFundingHistory(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1132
|
-
/**
|
|
1133
|
-
* @method
|
|
1134
|
-
* @name poloniexfutures#fetchFundingHistory
|
|
1135
|
-
* @description fetch the history of funding payments paid and received on this account
|
|
1136
|
-
* @see https://api-docs.poloniex.com/futures/api/funding-fees#get-funding-history
|
|
1137
|
-
* @param {string} symbol unified market symbol
|
|
1138
|
-
* @param {int} [since] the earliest time in ms to fetch funding history for
|
|
1139
|
-
* @param {int} [limit] the maximum number of funding history structures to retrieve
|
|
1140
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1141
|
-
* @returns {object} a [funding history structure]{@link https://docs.ccxt.com/#/?id=funding-history-structure}
|
|
1142
|
-
*/
|
|
1143
1143
|
if (symbol === undefined) {
|
|
1144
1144
|
throw new ArgumentsRequired(this.id + ' fetchFundingHistory() requires a symbol argument');
|
|
1145
1145
|
}
|
|
@@ -1201,16 +1201,16 @@ export default class poloniexfutures extends Exchange {
|
|
|
1201
1201
|
}
|
|
1202
1202
|
return fees;
|
|
1203
1203
|
}
|
|
1204
|
+
/**
|
|
1205
|
+
* @method
|
|
1206
|
+
* @name poloniexfutures#cancelAllOrders
|
|
1207
|
+
* @description cancel all open orders
|
|
1208
|
+
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
1209
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1210
|
+
* @param {object} [params.stop] When true, all the trigger orders will be cancelled
|
|
1211
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1212
|
+
*/
|
|
1204
1213
|
async cancelAllOrders(symbol = undefined, params = {}) {
|
|
1205
|
-
/**
|
|
1206
|
-
* @method
|
|
1207
|
-
* @name poloniexfutures#cancelAllOrders
|
|
1208
|
-
* @description cancel all open orders
|
|
1209
|
-
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
1210
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1211
|
-
* @param {object} [params.stop] When true, all the trigger orders will be cancelled
|
|
1212
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1213
|
-
*/
|
|
1214
1214
|
await this.loadMarkets();
|
|
1215
1215
|
const request = {};
|
|
1216
1216
|
if (symbol !== undefined) {
|
|
@@ -1267,24 +1267,24 @@ export default class poloniexfutures extends Exchange {
|
|
|
1267
1267
|
}
|
|
1268
1268
|
return result;
|
|
1269
1269
|
}
|
|
1270
|
+
/**
|
|
1271
|
+
* @method
|
|
1272
|
+
* @name poloniexfutures#fetchOrdersByStatus
|
|
1273
|
+
* @description fetches a list of orders placed on the exchange
|
|
1274
|
+
* @see https://api-docs.poloniex.com/futures/api/orders#get-order-listdeprecated
|
|
1275
|
+
* @see https://api-docs.poloniex.com/futures/api/orders#get-untriggered-stop-order-list
|
|
1276
|
+
* @param {string} status 'active' or 'closed', only 'active' is valid for stop orders
|
|
1277
|
+
* @param {string} symbol unified symbol for the market to retrieve orders from
|
|
1278
|
+
* @param {int} [since] timestamp in ms of the earliest order to retrieve
|
|
1279
|
+
* @param {int} [limit] The maximum number of orders to retrieve
|
|
1280
|
+
* @param {object} [params] exchange specific parameters
|
|
1281
|
+
* @param {bool} [params.stop] set to true to retrieve untriggered stop orders
|
|
1282
|
+
* @param {int} [params.until] End time in ms
|
|
1283
|
+
* @param {string} [params.side] buy or sell
|
|
1284
|
+
* @param {string} [params.type] limit or market
|
|
1285
|
+
* @returns An [array of order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1286
|
+
*/
|
|
1270
1287
|
async fetchOrdersByStatus(status, symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1271
|
-
/**
|
|
1272
|
-
* @method
|
|
1273
|
-
* @name poloniexfutures#fetchOrdersByStatus
|
|
1274
|
-
* @description fetches a list of orders placed on the exchange
|
|
1275
|
-
* @see https://api-docs.poloniex.com/futures/api/orders#get-order-listdeprecated
|
|
1276
|
-
* @see https://api-docs.poloniex.com/futures/api/orders#get-untriggered-stop-order-list
|
|
1277
|
-
* @param {string} status 'active' or 'closed', only 'active' is valid for stop orders
|
|
1278
|
-
* @param {string} symbol unified symbol for the market to retrieve orders from
|
|
1279
|
-
* @param {int} [since] timestamp in ms of the earliest order to retrieve
|
|
1280
|
-
* @param {int} [limit] The maximum number of orders to retrieve
|
|
1281
|
-
* @param {object} [params] exchange specific parameters
|
|
1282
|
-
* @param {bool} [params.stop] set to true to retrieve untriggered stop orders
|
|
1283
|
-
* @param {int} [params.until] End time in ms
|
|
1284
|
-
* @param {string} [params.side] buy or sell
|
|
1285
|
-
* @param {string} [params.type] limit or market
|
|
1286
|
-
* @returns An [array of order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1287
|
-
*/
|
|
1288
1288
|
await this.loadMarkets();
|
|
1289
1289
|
const stop = this.safeValue2(params, 'stop', 'trigger');
|
|
1290
1290
|
const until = this.safeInteger(params, 'until');
|
|
@@ -1377,54 +1377,54 @@ export default class poloniexfutures extends Exchange {
|
|
|
1377
1377
|
}
|
|
1378
1378
|
return this.parseOrders(result, market, since, limit);
|
|
1379
1379
|
}
|
|
1380
|
+
/**
|
|
1381
|
+
* @method
|
|
1382
|
+
* @name poloniexfutures#fetchOpenOrders
|
|
1383
|
+
* @description fetch all unfilled currently open orders
|
|
1384
|
+
* @see https://api-docs.poloniex.com/futures/api/orders#get-order-listdeprecated
|
|
1385
|
+
* @see https://api-docs.poloniex.com/futures/api/orders#get-untriggered-stop-order-list
|
|
1386
|
+
* @param {string} symbol unified market symbol
|
|
1387
|
+
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1388
|
+
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1389
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1390
|
+
* @param {int} [params.until] end time in ms
|
|
1391
|
+
* @param {string} [params.side] buy or sell
|
|
1392
|
+
* @param {string} [params.type] limit, or market
|
|
1393
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1394
|
+
*/
|
|
1380
1395
|
async fetchOpenOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1381
|
-
/**
|
|
1382
|
-
* @method
|
|
1383
|
-
* @name poloniexfutures#fetchOpenOrders
|
|
1384
|
-
* @description fetch all unfilled currently open orders
|
|
1385
|
-
* @see https://api-docs.poloniex.com/futures/api/orders#get-order-listdeprecated
|
|
1386
|
-
* @see https://api-docs.poloniex.com/futures/api/orders#get-untriggered-stop-order-list
|
|
1387
|
-
* @param {string} symbol unified market symbol
|
|
1388
|
-
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1389
|
-
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1390
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1391
|
-
* @param {int} [params.until] end time in ms
|
|
1392
|
-
* @param {string} [params.side] buy or sell
|
|
1393
|
-
* @param {string} [params.type] limit, or market
|
|
1394
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1395
|
-
*/
|
|
1396
1396
|
return await this.fetchOrdersByStatus('open', symbol, since, limit, params);
|
|
1397
1397
|
}
|
|
1398
|
+
/**
|
|
1399
|
+
* @method
|
|
1400
|
+
* @name poloniexfutures#fetchClosedOrders
|
|
1401
|
+
* @description fetches information on multiple closed orders made by the user
|
|
1402
|
+
* @see https://api-docs.poloniex.com/futures/api/orders#get-order-listdeprecated
|
|
1403
|
+
* @see https://api-docs.poloniex.com/futures/api/orders#get-untriggered-stop-order-list
|
|
1404
|
+
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1405
|
+
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1406
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1407
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1408
|
+
* @param {int} [params.until] end time in ms
|
|
1409
|
+
* @param {string} [params.side] buy or sell
|
|
1410
|
+
* @param {string} [params.type] limit, or market
|
|
1411
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1412
|
+
*/
|
|
1398
1413
|
async fetchClosedOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1399
|
-
/**
|
|
1400
|
-
* @method
|
|
1401
|
-
* @name poloniexfutures#fetchClosedOrders
|
|
1402
|
-
* @description fetches information on multiple closed orders made by the user
|
|
1403
|
-
* @see https://api-docs.poloniex.com/futures/api/orders#get-order-listdeprecated
|
|
1404
|
-
* @see https://api-docs.poloniex.com/futures/api/orders#get-untriggered-stop-order-list
|
|
1405
|
-
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1406
|
-
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1407
|
-
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1408
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1409
|
-
* @param {int} [params.until] end time in ms
|
|
1410
|
-
* @param {string} [params.side] buy or sell
|
|
1411
|
-
* @param {string} [params.type] limit, or market
|
|
1412
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1413
|
-
*/
|
|
1414
1414
|
return await this.fetchOrdersByStatus('closed', symbol, since, limit, params);
|
|
1415
1415
|
}
|
|
1416
|
+
/**
|
|
1417
|
+
* @method
|
|
1418
|
+
* @name poloniexfutures#fetchOrder
|
|
1419
|
+
* @description fetches information on an order made by the user
|
|
1420
|
+
* @see https://api-docs.poloniex.com/futures/api/orders#get-details-of-a-single-order
|
|
1421
|
+
* @see https://api-docs.poloniex.com/futures/api/orders#get-single-order-by-clientoid
|
|
1422
|
+
* @param {string} id the order id
|
|
1423
|
+
* @param {string} symbol unified symbol of the market the order was made in
|
|
1424
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1425
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1426
|
+
*/
|
|
1416
1427
|
async fetchOrder(id = undefined, symbol = undefined, params = {}) {
|
|
1417
|
-
/**
|
|
1418
|
-
* @method
|
|
1419
|
-
* @name poloniexfutures#fetchOrder
|
|
1420
|
-
* @description fetches information on an order made by the user
|
|
1421
|
-
* @see https://api-docs.poloniex.com/futures/api/orders#get-details-of-a-single-order
|
|
1422
|
-
* @see https://api-docs.poloniex.com/futures/api/orders#get-single-order-by-clientoid
|
|
1423
|
-
* @param {string} id the order id
|
|
1424
|
-
* @param {string} symbol unified symbol of the market the order was made in
|
|
1425
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1426
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1427
|
-
*/
|
|
1428
1428
|
await this.loadMarkets();
|
|
1429
1429
|
const request = {};
|
|
1430
1430
|
let response = undefined;
|
|
@@ -1614,16 +1614,16 @@ export default class poloniexfutures extends Exchange {
|
|
|
1614
1614
|
'trades': undefined,
|
|
1615
1615
|
}, market);
|
|
1616
1616
|
}
|
|
1617
|
+
/**
|
|
1618
|
+
* @method
|
|
1619
|
+
* @name poloniexfutures#fetchFundingRate
|
|
1620
|
+
* @description fetch the current funding rate
|
|
1621
|
+
* @see https://api-docs.poloniex.com/futures/api/futures-index#get-premium-index
|
|
1622
|
+
* @param {string} symbol unified market symbol
|
|
1623
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1624
|
+
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
|
|
1625
|
+
*/
|
|
1617
1626
|
async fetchFundingRate(symbol, params = {}) {
|
|
1618
|
-
/**
|
|
1619
|
-
* @method
|
|
1620
|
-
* @name poloniexfutures#fetchFundingRate
|
|
1621
|
-
* @description fetch the current funding rate
|
|
1622
|
-
* @see https://api-docs.poloniex.com/futures/api/futures-index#get-premium-index
|
|
1623
|
-
* @param {string} symbol unified market symbol
|
|
1624
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1625
|
-
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
|
|
1626
|
-
*/
|
|
1627
1627
|
await this.loadMarkets();
|
|
1628
1628
|
const market = this.market(symbol);
|
|
1629
1629
|
const request = {
|
|
@@ -1642,16 +1642,16 @@ export default class poloniexfutures extends Exchange {
|
|
|
1642
1642
|
const data = this.safeDict(response, 'data', {});
|
|
1643
1643
|
return this.parseFundingRate(data, market);
|
|
1644
1644
|
}
|
|
1645
|
+
/**
|
|
1646
|
+
* @method
|
|
1647
|
+
* @name poloniexfutures#fetchFundingInterval
|
|
1648
|
+
* @description fetch the current funding rate interval
|
|
1649
|
+
* @see https://api-docs.poloniex.com/futures/api/futures-index#get-premium-index
|
|
1650
|
+
* @param {string} symbol unified market symbol
|
|
1651
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1652
|
+
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
|
|
1653
|
+
*/
|
|
1645
1654
|
async fetchFundingInterval(symbol, params = {}) {
|
|
1646
|
-
/**
|
|
1647
|
-
* @method
|
|
1648
|
-
* @name poloniexfutures#fetchFundingInterval
|
|
1649
|
-
* @description fetch the current funding rate interval
|
|
1650
|
-
* @see https://api-docs.poloniex.com/futures/api/futures-index#get-premium-index
|
|
1651
|
-
* @param {string} symbol unified market symbol
|
|
1652
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1653
|
-
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
|
|
1654
|
-
*/
|
|
1655
1655
|
return await this.fetchFundingRate(symbol, params);
|
|
1656
1656
|
}
|
|
1657
1657
|
parseFundingRate(data, market = undefined) {
|
|
@@ -1697,22 +1697,22 @@ export default class poloniexfutures extends Exchange {
|
|
|
1697
1697
|
};
|
|
1698
1698
|
return this.safeString(intervals, interval, interval);
|
|
1699
1699
|
}
|
|
1700
|
+
/**
|
|
1701
|
+
* @method
|
|
1702
|
+
* @name poloniexfutures#fetchMyTrades
|
|
1703
|
+
* @description fetch all trades made by the user
|
|
1704
|
+
* @see https://api-docs.poloniex.com/futures/api/fills#get-fillsdeprecated
|
|
1705
|
+
* @param {string} symbol unified market symbol
|
|
1706
|
+
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1707
|
+
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1708
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1709
|
+
* @param {string} [params.orderIdFills] filles for a specific order (other parameters can be ignored if specified)
|
|
1710
|
+
* @param {string} [params.side] buy or sell
|
|
1711
|
+
* @param {string} [params.type] limit, market, limit_stop or market_stop
|
|
1712
|
+
* @param {int} [params.endAt] end time (milisecond)
|
|
1713
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1714
|
+
*/
|
|
1700
1715
|
async fetchMyTrades(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1701
|
-
/**
|
|
1702
|
-
* @method
|
|
1703
|
-
* @name poloniexfutures#fetchMyTrades
|
|
1704
|
-
* @description fetch all trades made by the user
|
|
1705
|
-
* @see https://api-docs.poloniex.com/futures/api/fills#get-fillsdeprecated
|
|
1706
|
-
* @param {string} symbol unified market symbol
|
|
1707
|
-
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1708
|
-
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1709
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1710
|
-
* @param {string} orderIdFills filles for a specific order (other parameters can be ignored if specified)
|
|
1711
|
-
* @param {string} side buy or sell
|
|
1712
|
-
* @param {string} type limit, market, limit_stop or market_stop
|
|
1713
|
-
* @param {int} endAt end time (milisecond)
|
|
1714
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1715
|
-
*/
|
|
1716
1716
|
await this.loadMarkets();
|
|
1717
1717
|
const request = {};
|
|
1718
1718
|
let market = undefined;
|
|
@@ -1761,17 +1761,17 @@ export default class poloniexfutures extends Exchange {
|
|
|
1761
1761
|
const trades = this.safeList(data, 'items', []);
|
|
1762
1762
|
return this.parseTrades(trades, market, since, limit);
|
|
1763
1763
|
}
|
|
1764
|
+
/**
|
|
1765
|
+
* @method
|
|
1766
|
+
* @name poloniexfutures#setMarginMode
|
|
1767
|
+
* @description set margin mode to 'cross' or 'isolated'
|
|
1768
|
+
* @see https://api-docs.poloniex.com/futures/api/margin-mode#change-margin-mode
|
|
1769
|
+
* @param {string} marginMode "0" (isolated) or "1" (cross)
|
|
1770
|
+
* @param {string} symbol unified market symbol
|
|
1771
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1772
|
+
* @returns {object} response from the exchange
|
|
1773
|
+
*/
|
|
1764
1774
|
async setMarginMode(marginMode, symbol = undefined, params = {}) {
|
|
1765
|
-
/**
|
|
1766
|
-
* @method
|
|
1767
|
-
* @name poloniexfutures#setMarginMode
|
|
1768
|
-
* @description set margin mode to 'cross' or 'isolated'
|
|
1769
|
-
* @see https://api-docs.poloniex.com/futures/api/margin-mode#change-margin-mode
|
|
1770
|
-
* @param {string} marginMode "0" (isolated) or "1" (cross)
|
|
1771
|
-
* @param {string} symbol unified market symbol
|
|
1772
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1773
|
-
* @returns {object} response from the exchange
|
|
1774
|
-
*/
|
|
1775
1775
|
if (symbol === undefined) {
|
|
1776
1776
|
throw new ArgumentsRequired(this.id + ' setMarginMode() requires a symbol argument');
|
|
1777
1777
|
}
|