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
|
@@ -248,15 +248,15 @@ class coinmetro extends coinmetro$1 {
|
|
|
248
248
|
},
|
|
249
249
|
});
|
|
250
250
|
}
|
|
251
|
+
/**
|
|
252
|
+
* @method
|
|
253
|
+
* @name coinmetro#fetchCurrencies
|
|
254
|
+
* @description fetches all available currencies on an exchange
|
|
255
|
+
* @see https://documenter.getpostman.com/view/3653795/SVfWN6KS#d5876d43-a3fe-4479-8c58-24d0f044edfb
|
|
256
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
257
|
+
* @returns {object} an associative dictionary of currencies
|
|
258
|
+
*/
|
|
251
259
|
async fetchCurrencies(params = {}) {
|
|
252
|
-
/**
|
|
253
|
-
* @method
|
|
254
|
-
* @name coinmetro#fetchCurrencies
|
|
255
|
-
* @description fetches all available currencies on an exchange
|
|
256
|
-
* @see https://documenter.getpostman.com/view/3653795/SVfWN6KS#d5876d43-a3fe-4479-8c58-24d0f044edfb
|
|
257
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
258
|
-
* @returns {object} an associative dictionary of currencies
|
|
259
|
-
*/
|
|
260
260
|
const response = await this.publicGetAssets(params);
|
|
261
261
|
//
|
|
262
262
|
// [
|
|
@@ -334,15 +334,15 @@ class coinmetro extends coinmetro$1 {
|
|
|
334
334
|
}
|
|
335
335
|
return result;
|
|
336
336
|
}
|
|
337
|
+
/**
|
|
338
|
+
* @method
|
|
339
|
+
* @name coinmetro#fetchMarkets
|
|
340
|
+
* @description retrieves data on all markets for coinmetro
|
|
341
|
+
* @see https://documenter.getpostman.com/view/3653795/SVfWN6KS#9fd18008-338e-4863-b07d-722878a46832
|
|
342
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
343
|
+
* @returns {object[]} an array of objects representing market data
|
|
344
|
+
*/
|
|
337
345
|
async fetchMarkets(params = {}) {
|
|
338
|
-
/**
|
|
339
|
-
* @method
|
|
340
|
-
* @name coinmetro#fetchMarkets
|
|
341
|
-
* @description retrieves data on all markets for coinmetro
|
|
342
|
-
* @see https://documenter.getpostman.com/view/3653795/SVfWN6KS#9fd18008-338e-4863-b07d-722878a46832
|
|
343
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
344
|
-
* @returns {object[]} an array of objects representing market data
|
|
345
|
-
*/
|
|
346
346
|
const response = await this.publicGetMarkets(params);
|
|
347
347
|
if (this.safeValue(this.options, 'currenciesByIdForParseMarket') === undefined) {
|
|
348
348
|
await this.fetchCurrencies();
|
|
@@ -467,20 +467,20 @@ class coinmetro extends coinmetro$1 {
|
|
|
467
467
|
};
|
|
468
468
|
return result;
|
|
469
469
|
}
|
|
470
|
+
/**
|
|
471
|
+
* @method
|
|
472
|
+
* @name coinmetro#fetchOHLCV
|
|
473
|
+
* @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
474
|
+
* @see https://documenter.getpostman.com/view/3653795/SVfWN6KS#13cfb5bc-7bfb-4847-85e1-e0f35dfb3573
|
|
475
|
+
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
476
|
+
* @param {string} timeframe the length of time each candle represents
|
|
477
|
+
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
478
|
+
* @param {int} [limit] the maximum amount of candles to fetch
|
|
479
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
480
|
+
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
481
|
+
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
482
|
+
*/
|
|
470
483
|
async fetchOHLCV(symbol, timeframe = '1m', since = undefined, limit = undefined, params = {}) {
|
|
471
|
-
/**
|
|
472
|
-
* @method
|
|
473
|
-
* @name coinmetro#fetchOHLCV
|
|
474
|
-
* @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
475
|
-
* @see https://documenter.getpostman.com/view/3653795/SVfWN6KS#13cfb5bc-7bfb-4847-85e1-e0f35dfb3573
|
|
476
|
-
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
477
|
-
* @param {string} timeframe the length of time each candle represents
|
|
478
|
-
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
479
|
-
* @param {int} [limit] the maximum amount of candles to fetch
|
|
480
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
481
|
-
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
482
|
-
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
483
|
-
*/
|
|
484
484
|
await this.loadMarkets();
|
|
485
485
|
const market = this.market(symbol);
|
|
486
486
|
const request = {
|
|
@@ -547,18 +547,18 @@ class coinmetro extends coinmetro$1 {
|
|
|
547
547
|
this.safeNumber(ohlcv, 'v'),
|
|
548
548
|
];
|
|
549
549
|
}
|
|
550
|
+
/**
|
|
551
|
+
* @method
|
|
552
|
+
* @name coinmetro#fetchTrades
|
|
553
|
+
* @description get the list of most recent trades for a particular symbol
|
|
554
|
+
* @see https://documenter.getpostman.com/view/3653795/SVfWN6KS#6ee5d698-06da-4570-8c84-914185e05065
|
|
555
|
+
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
556
|
+
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
557
|
+
* @param {int} [limit] the maximum amount of trades to fetch (default 200, max 500)
|
|
558
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
559
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
560
|
+
*/
|
|
550
561
|
async fetchTrades(symbol, since = undefined, limit = undefined, params = {}) {
|
|
551
|
-
/**
|
|
552
|
-
* @method
|
|
553
|
-
* @name coinmetro#fetchTrades
|
|
554
|
-
* @description get the list of most recent trades for a particular symbol
|
|
555
|
-
* @see https://documenter.getpostman.com/view/3653795/SVfWN6KS#6ee5d698-06da-4570-8c84-914185e05065
|
|
556
|
-
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
557
|
-
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
558
|
-
* @param {int} [limit] the maximum amount of trades to fetch (default 200, max 500)
|
|
559
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
560
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
561
|
-
*/
|
|
562
562
|
await this.loadMarkets();
|
|
563
563
|
const market = this.market(symbol);
|
|
564
564
|
const request = {
|
|
@@ -603,18 +603,18 @@ class coinmetro extends coinmetro$1 {
|
|
|
603
603
|
const tickHistory = this.safeList(response, 'tickHistory', []);
|
|
604
604
|
return this.parseTrades(tickHistory, market, since, limit);
|
|
605
605
|
}
|
|
606
|
+
/**
|
|
607
|
+
* @method
|
|
608
|
+
* @name coinmetro#fetchMyTrades
|
|
609
|
+
* @description fetch all trades made by the user
|
|
610
|
+
* @see https://documenter.getpostman.com/view/3653795/SVfWN6KS#4d48ae69-8ee2-44d1-a268-71f84e557b7b
|
|
611
|
+
* @param {string} symbol unified market symbol
|
|
612
|
+
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
613
|
+
* @param {int} [limit] the maximum number of trades structures to retrieve (default 500, max 1000)
|
|
614
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
615
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
616
|
+
*/
|
|
606
617
|
async fetchMyTrades(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
607
|
-
/**
|
|
608
|
-
* @method
|
|
609
|
-
* @name coinmetro#fetchMyTrades
|
|
610
|
-
* @description fetch all trades made by the user
|
|
611
|
-
* @see https://documenter.getpostman.com/view/3653795/SVfWN6KS#4d48ae69-8ee2-44d1-a268-71f84e557b7b
|
|
612
|
-
* @param {string} symbol unified market symbol
|
|
613
|
-
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
614
|
-
* @param {int} [limit] the maximum number of trades structures to retrieve (default 500, max 1000)
|
|
615
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
616
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
617
|
-
*/
|
|
618
618
|
await this.loadMarkets();
|
|
619
619
|
let market = undefined;
|
|
620
620
|
if (symbol !== undefined) {
|
|
@@ -713,17 +713,17 @@ class coinmetro extends coinmetro$1 {
|
|
|
713
713
|
'info': trade,
|
|
714
714
|
}, market);
|
|
715
715
|
}
|
|
716
|
+
/**
|
|
717
|
+
* @method
|
|
718
|
+
* @name coinmetro#fetchOrderBook
|
|
719
|
+
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
720
|
+
* @see https://documenter.getpostman.com/view/3653795/SVfWN6KS#26ad80d7-8c46-41b5-9208-386f439a8b87
|
|
721
|
+
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
722
|
+
* @param {int} [limit] the maximum amount of order book entries to return (default 100, max 200)
|
|
723
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
724
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
725
|
+
*/
|
|
716
726
|
async fetchOrderBook(symbol, limit = undefined, params = {}) {
|
|
717
|
-
/**
|
|
718
|
-
* @method
|
|
719
|
-
* @name coinmetro#fetchOrderBook
|
|
720
|
-
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
721
|
-
* @see https://documenter.getpostman.com/view/3653795/SVfWN6KS#26ad80d7-8c46-41b5-9208-386f439a8b87
|
|
722
|
-
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
723
|
-
* @param {int} [limit] the maximum amount of order book entries to return (default 100, max 200)
|
|
724
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
725
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
726
|
-
*/
|
|
727
727
|
await this.loadMarkets();
|
|
728
728
|
const market = this.market(symbol);
|
|
729
729
|
const request = {
|
|
@@ -779,16 +779,16 @@ class coinmetro extends coinmetro$1 {
|
|
|
779
779
|
}
|
|
780
780
|
return result;
|
|
781
781
|
}
|
|
782
|
+
/**
|
|
783
|
+
* @method
|
|
784
|
+
* @name coinmetro#fetchTickers
|
|
785
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
786
|
+
* @see https://documenter.getpostman.com/view/3653795/SVfWN6KS#6ecd1cd1-f162-45a3-8b3b-de690332a485
|
|
787
|
+
* @param {string[]} [symbols] unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
788
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
789
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
790
|
+
*/
|
|
782
791
|
async fetchTickers(symbols = undefined, params = {}) {
|
|
783
|
-
/**
|
|
784
|
-
* @method
|
|
785
|
-
* @name coinmetro#fetchTickers
|
|
786
|
-
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
787
|
-
* @see https://documenter.getpostman.com/view/3653795/SVfWN6KS#6ecd1cd1-f162-45a3-8b3b-de690332a485
|
|
788
|
-
* @param {string[]} [symbols] unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
789
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
790
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
791
|
-
*/
|
|
792
792
|
await this.loadMarkets();
|
|
793
793
|
const response = await this.publicGetExchangePrices(params);
|
|
794
794
|
//
|
|
@@ -861,16 +861,16 @@ class coinmetro extends coinmetro$1 {
|
|
|
861
861
|
const tickers = Object.values(tickersObject);
|
|
862
862
|
return this.parseTickers(tickers, symbols);
|
|
863
863
|
}
|
|
864
|
+
/**
|
|
865
|
+
* @method
|
|
866
|
+
* @name coinmetro#fetchBidsAsks
|
|
867
|
+
* @description fetches the bid and ask price and volume for multiple markets
|
|
868
|
+
* @see https://documenter.getpostman.com/view/3653795/SVfWN6KS#6ecd1cd1-f162-45a3-8b3b-de690332a485
|
|
869
|
+
* @param {string[]} [symbols] unified symbols of the markets to fetch the bids and asks for, all markets are returned if not assigned
|
|
870
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
871
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
872
|
+
*/
|
|
864
873
|
async fetchBidsAsks(symbols = undefined, params = {}) {
|
|
865
|
-
/**
|
|
866
|
-
* @method
|
|
867
|
-
* @name coinmetro#fetchBidsAsks
|
|
868
|
-
* @description fetches the bid and ask price and volume for multiple markets
|
|
869
|
-
* @see https://documenter.getpostman.com/view/3653795/SVfWN6KS#6ecd1cd1-f162-45a3-8b3b-de690332a485
|
|
870
|
-
* @param {string[]} [symbols] unified symbols of the markets to fetch the bids and asks for, all markets are returned if not assigned
|
|
871
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
872
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
873
|
-
*/
|
|
874
874
|
await this.loadMarkets();
|
|
875
875
|
const response = await this.publicGetExchangePrices(params);
|
|
876
876
|
const latestPrices = this.safeList(response, 'latestPrices', []);
|
|
@@ -929,15 +929,15 @@ class coinmetro extends coinmetro$1 {
|
|
|
929
929
|
'info': ticker,
|
|
930
930
|
}, market);
|
|
931
931
|
}
|
|
932
|
+
/**
|
|
933
|
+
* @method
|
|
934
|
+
* @name coinmetro#fetchBalance
|
|
935
|
+
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
936
|
+
* @see https://documenter.getpostman.com/view/3653795/SVfWN6KS#741a1dcc-7307-40d0-acca-28d003d1506a
|
|
937
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
938
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
939
|
+
*/
|
|
932
940
|
async fetchBalance(params = {}) {
|
|
933
|
-
/**
|
|
934
|
-
* @method
|
|
935
|
-
* @name coinmetro#fetchBalance
|
|
936
|
-
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
937
|
-
* @see https://documenter.getpostman.com/view/3653795/SVfWN6KS#741a1dcc-7307-40d0-acca-28d003d1506a
|
|
938
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
939
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
940
|
-
*/
|
|
941
941
|
await this.loadMarkets();
|
|
942
942
|
const response = await this.privateGetUsersWallets(params);
|
|
943
943
|
const list = this.safeList(response, 'list', []);
|
|
@@ -980,19 +980,19 @@ class coinmetro extends coinmetro$1 {
|
|
|
980
980
|
}
|
|
981
981
|
return this.safeBalance(result);
|
|
982
982
|
}
|
|
983
|
+
/**
|
|
984
|
+
* @method
|
|
985
|
+
* @name coinmetro#fetchLedger
|
|
986
|
+
* @description fetch the history of changes, actions done by the user or operations that altered the balance of the user
|
|
987
|
+
* @see https://documenter.getpostman.com/view/3653795/SVfWN6KS#4e7831f7-a0e7-4c3e-9336-1d0e5dcb15cf
|
|
988
|
+
* @param {string} [code] unified currency code, default is undefined
|
|
989
|
+
* @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
|
|
990
|
+
* @param {int} [limit] max number of ledger entries to return (default 200, max 500)
|
|
991
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
992
|
+
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
993
|
+
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com/#/?id=ledger-structure}
|
|
994
|
+
*/
|
|
983
995
|
async fetchLedger(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
984
|
-
/**
|
|
985
|
-
* @method
|
|
986
|
-
* @name coinmetro#fetchLedger
|
|
987
|
-
* @description fetch the history of changes, actions done by the user or operations that altered the balance of the user
|
|
988
|
-
* @see https://documenter.getpostman.com/view/3653795/SVfWN6KS#4e7831f7-a0e7-4c3e-9336-1d0e5dcb15cf
|
|
989
|
-
* @param {string} [code] unified currency code, default is undefined
|
|
990
|
-
* @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
|
|
991
|
-
* @param {int} [limit] max number of ledger entries to return (default 200, max 500)
|
|
992
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
993
|
-
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
994
|
-
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com/#/?id=ledger-structure}
|
|
995
|
-
*/
|
|
996
996
|
await this.loadMarkets();
|
|
997
997
|
const request = {};
|
|
998
998
|
if (since !== undefined) {
|
|
@@ -1178,29 +1178,29 @@ class coinmetro extends coinmetro$1 {
|
|
|
1178
1178
|
};
|
|
1179
1179
|
return this.safeString(types, type, type);
|
|
1180
1180
|
}
|
|
1181
|
+
/**
|
|
1182
|
+
* @method
|
|
1183
|
+
* @name coinmetro#createOrder
|
|
1184
|
+
* @description create a trade order
|
|
1185
|
+
* @see https://documenter.getpostman.com/view/3653795/SVfWN6KS#a4895a1d-3f50-40ae-8231-6962ef06c771
|
|
1186
|
+
* @param {string} symbol unified symbol of the market to create an order in
|
|
1187
|
+
* @param {string} type 'market' or 'limit'
|
|
1188
|
+
* @param {string} side 'buy' or 'sell'
|
|
1189
|
+
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1190
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1191
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1192
|
+
* @param {float} [params.cost] the quote quantity that can be used as an alternative for the amount in market orders
|
|
1193
|
+
* @param {string} [params.timeInForce] "GTC", "IOC", "FOK", "GTD"
|
|
1194
|
+
* @param {number} [params.expirationTime] timestamp in millisecond, for GTD orders only
|
|
1195
|
+
* @param {float} [params.triggerPrice] the price at which a trigger order is triggered at
|
|
1196
|
+
* @param {float} [params.stopLossPrice] *margin only* The price at which a stop loss order is triggered at
|
|
1197
|
+
* @param {float} [params.takeProfitPrice] *margin only* The price at which a take profit order is triggered at
|
|
1198
|
+
* @param {bool} [params.margin] true for creating a margin order
|
|
1199
|
+
* @param {string} [params.fillStyle] fill style of the limit order: "sell" fulfills selling quantity "buy" fulfills buying quantity "base" fulfills base currency quantity "quote" fulfills quote currency quantity
|
|
1200
|
+
* @param {string} [params.clientOrderId] client's comment
|
|
1201
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1202
|
+
*/
|
|
1181
1203
|
async createOrder(symbol, type, side, amount, price = undefined, params = {}) {
|
|
1182
|
-
/**
|
|
1183
|
-
* @method
|
|
1184
|
-
* @name coinmetro#createOrder
|
|
1185
|
-
* @description create a trade order
|
|
1186
|
-
* @see https://documenter.getpostman.com/view/3653795/SVfWN6KS#a4895a1d-3f50-40ae-8231-6962ef06c771
|
|
1187
|
-
* @param {string} symbol unified symbol of the market to create an order in
|
|
1188
|
-
* @param {string} type 'market' or 'limit'
|
|
1189
|
-
* @param {string} side 'buy' or 'sell'
|
|
1190
|
-
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1191
|
-
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1192
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1193
|
-
* @param {float} [params.cost] the quote quantity that can be used as an alternative for the amount in market orders
|
|
1194
|
-
* @param {string} [params.timeInForce] "GTC", "IOC", "FOK", "GTD"
|
|
1195
|
-
* @param {number} [params.expirationTime] timestamp in millisecond, for GTD orders only
|
|
1196
|
-
* @param {float} [params.triggerPrice] the price at which a trigger order is triggered at
|
|
1197
|
-
* @param {float} [params.stopLossPrice] *margin only* The price at which a stop loss order is triggered at
|
|
1198
|
-
* @param {float} [params.takeProfitPrice] *margin only* The price at which a take profit order is triggered at
|
|
1199
|
-
* @param {bool} [params.margin] true for creating a margin order
|
|
1200
|
-
* @param {string} [params.fillStyle] fill style of the limit order: "sell" fulfills selling quantity "buy" fulfills buying quantity "base" fulfills base currency quantity "quote" fulfills quote currency quantity
|
|
1201
|
-
* @param {string} [params.clientOrderId] client's comment
|
|
1202
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1203
|
-
*/
|
|
1204
1204
|
await this.loadMarkets();
|
|
1205
1205
|
const market = this.market(symbol);
|
|
1206
1206
|
let request = {};
|
|
@@ -1310,19 +1310,19 @@ class coinmetro extends coinmetro$1 {
|
|
|
1310
1310
|
};
|
|
1311
1311
|
return this.safeValue(timeInForceTypes, timeInForce, timeInForce);
|
|
1312
1312
|
}
|
|
1313
|
+
/**
|
|
1314
|
+
* @method
|
|
1315
|
+
* @name coinmetro#cancelOrder
|
|
1316
|
+
* @description cancels an open order
|
|
1317
|
+
* @see https://documenter.getpostman.com/view/3653795/SVfWN6KS#eaea86da-16ca-4c56-9f00-5b1cb2ad89f8
|
|
1318
|
+
* @see https://documenter.getpostman.com/view/3653795/SVfWN6KS#47f913fb-8cab-49f4-bc78-d980e6ced316
|
|
1319
|
+
* @param {string} id order id
|
|
1320
|
+
* @param {string} symbol not used by coinmetro cancelOrder ()
|
|
1321
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1322
|
+
* @param {string} [params.margin] true for cancelling a margin order
|
|
1323
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1324
|
+
*/
|
|
1313
1325
|
async cancelOrder(id, symbol = undefined, params = {}) {
|
|
1314
|
-
/**
|
|
1315
|
-
* @method
|
|
1316
|
-
* @name coinmetro#cancelOrder
|
|
1317
|
-
* @description cancels an open order
|
|
1318
|
-
* @see https://documenter.getpostman.com/view/3653795/SVfWN6KS#eaea86da-16ca-4c56-9f00-5b1cb2ad89f8
|
|
1319
|
-
* @see https://documenter.getpostman.com/view/3653795/SVfWN6KS#47f913fb-8cab-49f4-bc78-d980e6ced316
|
|
1320
|
-
* @param {string} id order id
|
|
1321
|
-
* @param {string} symbol not used by coinmetro cancelOrder ()
|
|
1322
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1323
|
-
* @param {string} [params.margin] true for cancelling a margin order
|
|
1324
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1325
|
-
*/
|
|
1326
1326
|
await this.loadMarkets();
|
|
1327
1327
|
const request = {
|
|
1328
1328
|
'orderID': id,
|
|
@@ -1359,19 +1359,19 @@ class coinmetro extends coinmetro$1 {
|
|
|
1359
1359
|
//
|
|
1360
1360
|
return this.parseOrder(response);
|
|
1361
1361
|
}
|
|
1362
|
+
/**
|
|
1363
|
+
* @method
|
|
1364
|
+
* @name coinmetro#cancelOrder
|
|
1365
|
+
* @description closes an open position
|
|
1366
|
+
* @see https://documenter.getpostman.com/view/3653795/SVfWN6KS#47f913fb-8cab-49f4-bc78-d980e6ced316
|
|
1367
|
+
* @param {string} symbol not used by coinmetro closePosition ()
|
|
1368
|
+
* @param {string} [side] not used by coinmetro closePosition ()
|
|
1369
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1370
|
+
* @param {string} [params.orderID] order id
|
|
1371
|
+
* @param {number} [params.fraction] fraction of order to close, between 0 and 1 (defaults to 1)
|
|
1372
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1373
|
+
*/
|
|
1362
1374
|
async closePosition(symbol, side = undefined, params = {}) {
|
|
1363
|
-
/**
|
|
1364
|
-
* @method
|
|
1365
|
-
* @name coinmetro#cancelOrder
|
|
1366
|
-
* @description closes an open position
|
|
1367
|
-
* @see https://documenter.getpostman.com/view/3653795/SVfWN6KS#47f913fb-8cab-49f4-bc78-d980e6ced316
|
|
1368
|
-
* @param {string} symbol not used by coinmetro closePosition ()
|
|
1369
|
-
* @param {string} [side] not used by coinmetro closePosition ()
|
|
1370
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1371
|
-
* @param {string} [params.orderID] order id
|
|
1372
|
-
* @param {number} [params.fraction] fraction of order to close, between 0 and 1 (defaults to 1)
|
|
1373
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1374
|
-
*/
|
|
1375
1375
|
await this.loadMarkets();
|
|
1376
1376
|
const orderId = this.safeString(params, 'orderId');
|
|
1377
1377
|
if (orderId === undefined) {
|
|
@@ -1412,18 +1412,18 @@ class coinmetro extends coinmetro$1 {
|
|
|
1412
1412
|
//
|
|
1413
1413
|
return this.parseOrder(response);
|
|
1414
1414
|
}
|
|
1415
|
+
/**
|
|
1416
|
+
* @method
|
|
1417
|
+
* @name coinmetro#fetchOpenOrders
|
|
1418
|
+
* @description fetch all unfilled currently open orders
|
|
1419
|
+
* @see https://documenter.getpostman.com/view/3653795/SVfWN6KS#518afd7a-4338-439c-a651-d4fdaa964138
|
|
1420
|
+
* @param {string} symbol unified market symbol
|
|
1421
|
+
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1422
|
+
* @param {int} [limit] the maximum number of open order structures to retrieve
|
|
1423
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1424
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1425
|
+
*/
|
|
1415
1426
|
async fetchOpenOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1416
|
-
/**
|
|
1417
|
-
* @method
|
|
1418
|
-
* @name coinmetro#fetchOpenOrders
|
|
1419
|
-
* @description fetch all unfilled currently open orders
|
|
1420
|
-
* @see https://documenter.getpostman.com/view/3653795/SVfWN6KS#518afd7a-4338-439c-a651-d4fdaa964138
|
|
1421
|
-
* @param {string} symbol unified market symbol
|
|
1422
|
-
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1423
|
-
* @param {int} [limit] the maximum number of open order structures to retrieve
|
|
1424
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1425
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1426
|
-
*/
|
|
1427
1427
|
await this.loadMarkets();
|
|
1428
1428
|
let market = undefined;
|
|
1429
1429
|
if (symbol !== undefined) {
|
|
@@ -1437,18 +1437,18 @@ class coinmetro extends coinmetro$1 {
|
|
|
1437
1437
|
}
|
|
1438
1438
|
return orders;
|
|
1439
1439
|
}
|
|
1440
|
+
/**
|
|
1441
|
+
* @method
|
|
1442
|
+
* @name coinmetro#fetchCanceledAndClosedOrders
|
|
1443
|
+
* @description fetches information on multiple canceled and closed orders made by the user
|
|
1444
|
+
* @see https://documenter.getpostman.com/view/3653795/SVfWN6KS#4d48ae69-8ee2-44d1-a268-71f84e557b7b
|
|
1445
|
+
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1446
|
+
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1447
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1448
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1449
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1450
|
+
*/
|
|
1440
1451
|
async fetchCanceledAndClosedOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1441
|
-
/**
|
|
1442
|
-
* @method
|
|
1443
|
-
* @name coinmetro#fetchCanceledAndClosedOrders
|
|
1444
|
-
* @description fetches information on multiple canceled and closed orders made by the user
|
|
1445
|
-
* @see https://documenter.getpostman.com/view/3653795/SVfWN6KS#4d48ae69-8ee2-44d1-a268-71f84e557b7b
|
|
1446
|
-
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1447
|
-
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1448
|
-
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1449
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1450
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1451
|
-
*/
|
|
1452
1452
|
await this.loadMarkets();
|
|
1453
1453
|
let market = undefined;
|
|
1454
1454
|
if (symbol !== undefined) {
|
|
@@ -1461,17 +1461,17 @@ class coinmetro extends coinmetro$1 {
|
|
|
1461
1461
|
const response = await this.privateGetExchangeOrdersHistorySince(this.extend(request, params));
|
|
1462
1462
|
return this.parseOrders(response, market, since, limit);
|
|
1463
1463
|
}
|
|
1464
|
+
/**
|
|
1465
|
+
* @method
|
|
1466
|
+
* @name coinmetro#fetchOrder
|
|
1467
|
+
* @description fetches information on an order made by the user
|
|
1468
|
+
* @see https://documenter.getpostman.com/view/3653795/SVfWN6KS#95bbed87-db1c-47a7-a03e-aa247e91d5a6
|
|
1469
|
+
* @param {int|string} id order id
|
|
1470
|
+
* @param {string} symbol not used by coinmetro fetchOrder ()
|
|
1471
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1472
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1473
|
+
*/
|
|
1464
1474
|
async fetchOrder(id, symbol = undefined, params = {}) {
|
|
1465
|
-
/**
|
|
1466
|
-
* @method
|
|
1467
|
-
* @name coinmetro#fetchOrder
|
|
1468
|
-
* @description fetches information on an order made by the user
|
|
1469
|
-
* @see https://documenter.getpostman.com/view/3653795/SVfWN6KS#95bbed87-db1c-47a7-a03e-aa247e91d5a6
|
|
1470
|
-
* @param {int|string} id order id
|
|
1471
|
-
* @param {string} symbol not used by coinmetro fetchOrder ()
|
|
1472
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1473
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1474
|
-
*/
|
|
1475
1475
|
await this.loadMarkets();
|
|
1476
1476
|
const request = {
|
|
1477
1477
|
'orderID': id,
|
|
@@ -1804,17 +1804,17 @@ class coinmetro extends coinmetro$1 {
|
|
|
1804
1804
|
];
|
|
1805
1805
|
return this.safeValue(timeInForceTypes, timeInForce, timeInForce);
|
|
1806
1806
|
}
|
|
1807
|
+
/**
|
|
1808
|
+
* @method
|
|
1809
|
+
* @name coinmetro#borrowCrossMargin
|
|
1810
|
+
* @description create a loan to borrow margin
|
|
1811
|
+
* @see https://documenter.getpostman.com/view/3653795/SVfWN6KS#5b90b3b9-e5db-4d07-ac9d-d680a06fd110
|
|
1812
|
+
* @param {string} code unified currency code of the currency to borrow
|
|
1813
|
+
* @param {float} amount the amount to borrow
|
|
1814
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1815
|
+
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/#/?id=margin-loan-structure}
|
|
1816
|
+
*/
|
|
1807
1817
|
async borrowCrossMargin(code, amount, params = {}) {
|
|
1808
|
-
/**
|
|
1809
|
-
* @method
|
|
1810
|
-
* @name coinmetro#borrowCrossMargin
|
|
1811
|
-
* @description create a loan to borrow margin
|
|
1812
|
-
* @see https://documenter.getpostman.com/view/3653795/SVfWN6KS#5b90b3b9-e5db-4d07-ac9d-d680a06fd110
|
|
1813
|
-
* @param {string} code unified currency code of the currency to borrow
|
|
1814
|
-
* @param {float} amount the amount to borrow
|
|
1815
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1816
|
-
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/#/?id=margin-loan-structure}
|
|
1817
|
-
*/
|
|
1818
1818
|
await this.loadMarkets();
|
|
1819
1819
|
const currency = this.currency(code);
|
|
1820
1820
|
const currencyId = currency['id'];
|