ccxt 4.4.30 → 4.4.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -3
- package/dist/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/ace.js +123 -123
- package/dist/cjs/src/alpaca.js +237 -237
- package/dist/cjs/src/ascendex.js +342 -341
- package/dist/cjs/src/bigone.js +242 -242
- package/dist/cjs/src/binance.js +1339 -1291
- package/dist/cjs/src/bingx.js +639 -639
- package/dist/cjs/src/bit2c.js +111 -111
- package/dist/cjs/src/bitbank.js +142 -142
- package/dist/cjs/src/bitbns.js +140 -140
- package/dist/cjs/src/bitfinex.js +231 -231
- package/dist/cjs/src/bitfinex2.js +403 -403
- package/dist/cjs/src/bitflyer.js +184 -184
- package/dist/cjs/src/bitget.js +848 -846
- package/dist/cjs/src/bithumb.js +125 -124
- package/dist/cjs/src/bitmart.js +525 -525
- package/dist/cjs/src/bitmex.js +317 -317
- package/dist/cjs/src/bitopro.js +221 -221
- package/dist/cjs/src/bitrue.js +315 -315
- package/dist/cjs/src/bitso.js +220 -220
- package/dist/cjs/src/bitstamp.js +251 -251
- package/dist/cjs/src/bitteam.js +183 -183
- package/dist/cjs/src/bitvavo.js +247 -251
- package/dist/cjs/src/bl3p.js +82 -82
- package/dist/cjs/src/blockchaincom.js +211 -211
- package/dist/cjs/src/blofin.js +332 -331
- package/dist/cjs/src/btcalpha.js +166 -166
- package/dist/cjs/src/btcbox.js +108 -108
- package/dist/cjs/src/btcmarkets.js +198 -198
- package/dist/cjs/src/btcturk.js +124 -124
- package/dist/cjs/src/bybit.js +906 -900
- package/dist/cjs/src/cex.js +227 -226
- package/dist/cjs/src/coinbase.js +481 -481
- package/dist/cjs/src/coinbaseexchange.js +274 -274
- package/dist/cjs/src/coinbaseinternational.js +304 -304
- package/dist/cjs/src/coincatch.js +650 -650
- package/dist/cjs/src/coincheck.js +113 -113
- package/dist/cjs/src/coinex.js +611 -601
- package/dist/cjs/src/coinlist.js +304 -303
- package/dist/cjs/src/coinmate.js +162 -161
- package/dist/cjs/src/coinmetro.js +187 -187
- package/dist/cjs/src/coinone.js +124 -123
- package/dist/cjs/src/coinsph.js +237 -237
- package/dist/cjs/src/coinspot.js +82 -82
- package/dist/cjs/src/cryptocom.js +342 -341
- package/dist/cjs/src/currencycom.js +225 -224
- package/dist/cjs/src/delta.js +320 -320
- package/dist/cjs/src/deribit.js +411 -408
- package/dist/cjs/src/digifinex.js +432 -431
- package/dist/cjs/src/exmo.js +328 -327
- package/dist/cjs/src/gate.js +830 -791
- package/dist/cjs/src/gemini.js +199 -198
- package/dist/cjs/src/hashkey.js +520 -517
- package/dist/cjs/src/hitbtc.js +465 -462
- package/dist/cjs/src/hollaex.js +253 -252
- package/dist/cjs/src/htx.js +791 -848
- package/dist/cjs/src/huobijp.js +219 -218
- package/dist/cjs/src/hyperliquid.js +421 -417
- package/dist/cjs/src/idex.js +238 -237
- package/dist/cjs/src/independentreserve.js +133 -132
- package/dist/cjs/src/indodax.js +177 -171
- package/dist/cjs/src/kraken.js +381 -377
- package/dist/cjs/src/krakenfutures.js +285 -279
- package/dist/cjs/src/kucoin.js +632 -622
- package/dist/cjs/src/kucoinfutures.js +533 -457
- package/dist/cjs/src/kuna.js +283 -282
- package/dist/cjs/src/latoken.js +211 -210
- package/dist/cjs/src/lbank.js +268 -267
- package/dist/cjs/src/luno.js +174 -173
- package/dist/cjs/src/lykke.js +172 -171
- package/dist/cjs/src/mercado.js +123 -122
- package/dist/cjs/src/mexc.js +650 -646
- package/dist/cjs/src/ndax.js +229 -228
- package/dist/cjs/src/novadax.js +230 -229
- package/dist/cjs/src/oceanex.js +187 -186
- package/dist/cjs/src/okcoin.js +286 -285
- package/dist/cjs/src/okx.js +909 -904
- package/dist/cjs/src/onetrading.js +218 -218
- package/dist/cjs/src/oxfun.js +335 -334
- package/dist/cjs/src/p2b.js +154 -154
- package/dist/cjs/src/paradex.js +249 -244
- package/dist/cjs/src/paymium.js +101 -101
- package/dist/cjs/src/phemex.js +388 -390
- package/dist/cjs/src/poloniex.js +270 -270
- package/dist/cjs/src/poloniexfutures.js +250 -250
- package/dist/cjs/src/pro/alpaca.js +64 -64
- package/dist/cjs/src/pro/ascendex.js +64 -64
- package/dist/cjs/src/pro/binance.js +546 -543
- package/dist/cjs/src/pro/bingx.js +116 -116
- package/dist/cjs/src/pro/bitfinex.js +42 -42
- package/dist/cjs/src/pro/bitfinex2.js +66 -66
- package/dist/cjs/src/pro/bitget.js +188 -181
- package/dist/cjs/src/pro/bithumb.js +40 -40
- package/dist/cjs/src/pro/bitmart.js +121 -119
- package/dist/cjs/src/pro/bitmex.js +135 -133
- package/dist/cjs/src/pro/bitopro.js +49 -49
- package/dist/cjs/src/pro/bitrue.js +19 -19
- package/dist/cjs/src/pro/bitstamp.js +29 -29
- package/dist/cjs/src/pro/bitvavo.js +299 -301
- package/dist/cjs/src/pro/blockchaincom.js +62 -62
- package/dist/cjs/src/pro/blofin.js +132 -130
- package/dist/cjs/src/pro/bybit.js +317 -313
- package/dist/cjs/src/pro/cex.js +168 -168
- package/dist/cjs/src/pro/coinbase.js +93 -91
- package/dist/cjs/src/pro/coinbaseexchange.js +95 -95
- package/dist/cjs/src/pro/coinbaseinternational.js +111 -111
- package/dist/cjs/src/pro/coincatch.js +150 -143
- package/dist/cjs/src/pro/coincheck.js +21 -21
- package/dist/cjs/src/pro/coinex.js +110 -110
- package/dist/cjs/src/pro/coinone.js +30 -30
- package/dist/cjs/src/pro/cryptocom.js +227 -227
- package/dist/cjs/src/pro/currencycom.js +45 -45
- package/dist/cjs/src/pro/deribit.js +127 -127
- package/dist/cjs/src/pro/exmo.js +66 -66
- package/dist/cjs/src/pro/gate.js +287 -283
- package/dist/cjs/src/pro/gemini.js +74 -74
- package/dist/cjs/src/pro/hashkey.js +87 -85
- package/dist/cjs/src/pro/hitbtc.js +190 -190
- package/dist/cjs/src/pro/hollaex.js +51 -51
- package/dist/cjs/src/pro/htx.js +96 -94
- package/dist/cjs/src/pro/huobijp.js +38 -38
- package/dist/cjs/src/pro/hyperliquid.js +151 -150
- package/dist/cjs/src/pro/idex.js +48 -48
- package/dist/cjs/src/pro/independentreserve.js +19 -19
- package/dist/cjs/src/pro/kraken.js +167 -167
- package/dist/cjs/src/pro/krakenfutures.js +137 -138
- package/dist/cjs/src/pro/kucoin.js +167 -168
- package/dist/cjs/src/pro/kucoinfutures.js +147 -147
- package/dist/cjs/src/pro/lbank.js +95 -95
- package/dist/cjs/src/pro/luno.js +21 -21
- package/dist/cjs/src/pro/mexc.js +102 -103
- package/dist/cjs/src/pro/ndax.js +42 -42
- package/dist/cjs/src/pro/okcoin.js +61 -61
- package/dist/cjs/src/pro/okx.js +332 -330
- package/dist/cjs/src/pro/onetrading.js +71 -71
- package/dist/cjs/src/pro/oxfun.js +193 -191
- package/dist/cjs/src/pro/p2b.js +77 -77
- package/dist/cjs/src/pro/paradex.js +39 -39
- package/dist/cjs/src/pro/phemex.js +94 -94
- package/dist/cjs/src/pro/poloniex.js +171 -171
- package/dist/cjs/src/pro/poloniexfutures.js +62 -62
- package/dist/cjs/src/pro/probit.js +63 -63
- package/dist/cjs/src/pro/upbit.js +80 -80
- package/dist/cjs/src/pro/vertex.js +65 -63
- package/dist/cjs/src/pro/wazirx.js +70 -70
- package/dist/cjs/src/pro/whitebit.js +83 -83
- package/dist/cjs/src/pro/woo.js +106 -104
- package/dist/cjs/src/pro/woofipro.js +105 -103
- package/dist/cjs/src/pro/xt.js +119 -119
- package/dist/cjs/src/probit.js +229 -229
- package/dist/cjs/src/timex.js +198 -197
- package/dist/cjs/src/tokocrypto.js +214 -213
- package/dist/cjs/src/tradeogre.js +92 -91
- package/dist/cjs/src/upbit.js +243 -242
- package/dist/cjs/src/vertex.js +258 -258
- package/dist/cjs/src/wavesexchange.js +176 -172
- package/dist/cjs/src/wazirx.js +168 -168
- package/dist/cjs/src/whitebit.js +361 -361
- package/dist/cjs/src/woo.js +571 -572
- package/dist/cjs/src/woofipro.js +392 -391
- package/dist/cjs/src/xt.js +436 -435
- package/dist/cjs/src/yobit.js +159 -158
- package/dist/cjs/src/zaif.js +103 -103
- package/dist/cjs/src/zonda.js +168 -168
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/ace.d.ts +123 -0
- package/js/src/ace.js +123 -123
- package/js/src/alpaca.d.ts +237 -0
- package/js/src/alpaca.js +237 -237
- package/js/src/ascendex.d.ts +339 -0
- package/js/src/ascendex.js +342 -341
- package/js/src/base/types.d.ts +1 -0
- package/js/src/bigone.d.ts +242 -0
- package/js/src/bigone.js +242 -242
- package/js/src/binance.d.ts +1306 -0
- package/js/src/binance.js +1339 -1291
- package/js/src/bingx.d.ts +639 -0
- package/js/src/bingx.js +639 -639
- package/js/src/bit2c.d.ts +111 -0
- package/js/src/bit2c.js +111 -111
- package/js/src/bitbank.d.ts +142 -0
- package/js/src/bitbank.js +142 -142
- package/js/src/bitbns.d.ts +140 -0
- package/js/src/bitbns.js +140 -140
- package/js/src/bitfinex.d.ts +231 -0
- package/js/src/bitfinex.js +231 -231
- package/js/src/bitfinex2.d.ts +403 -0
- package/js/src/bitfinex2.js +403 -403
- package/js/src/bitflyer.d.ts +184 -0
- package/js/src/bitflyer.js +184 -184
- package/js/src/bitget.d.ts +846 -0
- package/js/src/bitget.js +848 -846
- package/js/src/bithumb.d.ts +125 -0
- package/js/src/bithumb.js +125 -124
- package/js/src/bitmart.d.ts +525 -0
- package/js/src/bitmart.js +525 -525
- package/js/src/bitmex.d.ts +317 -0
- package/js/src/bitmex.js +317 -317
- package/js/src/bitopro.d.ts +221 -0
- package/js/src/bitopro.js +221 -221
- package/js/src/bitrue.d.ts +315 -0
- package/js/src/bitrue.js +315 -315
- package/js/src/bitso.d.ts +220 -0
- package/js/src/bitso.js +220 -220
- package/js/src/bitstamp.d.ts +251 -0
- package/js/src/bitstamp.js +251 -251
- package/js/src/bitteam.d.ts +183 -0
- package/js/src/bitteam.js +183 -183
- package/js/src/bitvavo.d.ts +247 -0
- package/js/src/bitvavo.js +247 -251
- package/js/src/bl3p.d.ts +82 -0
- package/js/src/bl3p.js +82 -82
- package/js/src/blockchaincom.d.ts +211 -0
- package/js/src/blockchaincom.js +211 -211
- package/js/src/blofin.d.ts +332 -0
- package/js/src/blofin.js +332 -331
- package/js/src/btcalpha.d.ts +166 -0
- package/js/src/btcalpha.js +166 -166
- package/js/src/btcbox.d.ts +108 -0
- package/js/src/btcbox.js +108 -108
- package/js/src/btcmarkets.d.ts +198 -0
- package/js/src/btcmarkets.js +198 -198
- package/js/src/btcturk.d.ts +124 -0
- package/js/src/btcturk.js +124 -124
- package/js/src/bybit.d.ts +906 -1
- package/js/src/bybit.js +906 -900
- package/js/src/cex.d.ts +227 -0
- package/js/src/cex.js +227 -226
- package/js/src/coinbase.d.ts +481 -0
- package/js/src/coinbase.js +481 -481
- package/js/src/coinbaseexchange.d.ts +274 -0
- package/js/src/coinbaseexchange.js +274 -274
- package/js/src/coinbaseinternational.d.ts +304 -0
- package/js/src/coinbaseinternational.js +304 -304
- package/js/src/coincatch.d.ts +646 -0
- package/js/src/coincatch.js +650 -650
- package/js/src/coincheck.d.ts +113 -0
- package/js/src/coincheck.js +113 -113
- package/js/src/coinex.d.ts +603 -0
- package/js/src/coinex.js +611 -601
- package/js/src/coinlist.d.ts +304 -0
- package/js/src/coinlist.js +304 -303
- package/js/src/coinmate.d.ts +162 -0
- package/js/src/coinmate.js +162 -161
- package/js/src/coinmetro.d.ts +187 -0
- package/js/src/coinmetro.js +187 -187
- package/js/src/coinone.d.ts +124 -0
- package/js/src/coinone.js +124 -123
- package/js/src/coinsph.d.ts +237 -0
- package/js/src/coinsph.js +237 -237
- package/js/src/coinspot.d.ts +82 -0
- package/js/src/coinspot.js +82 -82
- package/js/src/cryptocom.d.ts +342 -0
- package/js/src/cryptocom.js +342 -341
- package/js/src/currencycom.d.ts +225 -0
- package/js/src/currencycom.js +225 -224
- package/js/src/delta.d.ts +320 -0
- package/js/src/delta.js +320 -320
- package/js/src/deribit.d.ts +411 -0
- package/js/src/deribit.js +411 -408
- package/js/src/digifinex.d.ts +430 -0
- package/js/src/digifinex.js +432 -431
- package/js/src/exmo.d.ts +328 -0
- package/js/src/exmo.js +328 -327
- package/js/src/gate.d.ts +803 -1
- package/js/src/gate.js +830 -791
- package/js/src/gemini.d.ts +199 -0
- package/js/src/gemini.js +199 -198
- package/js/src/hashkey.d.ts +516 -0
- package/js/src/hashkey.js +520 -517
- package/js/src/hitbtc.d.ts +465 -0
- package/js/src/hitbtc.js +465 -462
- package/js/src/hollaex.d.ts +253 -0
- package/js/src/hollaex.js +253 -252
- package/js/src/htx.d.ts +765 -2
- package/js/src/htx.js +791 -848
- package/js/src/huobijp.d.ts +219 -0
- package/js/src/huobijp.js +219 -218
- package/js/src/hyperliquid.d.ts +419 -0
- package/js/src/hyperliquid.js +421 -417
- package/js/src/idex.d.ts +238 -0
- package/js/src/idex.js +238 -237
- package/js/src/independentreserve.d.ts +133 -0
- package/js/src/independentreserve.js +133 -132
- package/js/src/indodax.d.ts +171 -0
- package/js/src/indodax.js +177 -171
- package/js/src/kraken.d.ts +381 -0
- package/js/src/kraken.js +381 -377
- package/js/src/krakenfutures.d.ts +282 -0
- package/js/src/krakenfutures.js +285 -279
- package/js/src/kucoin.d.ts +613 -0
- package/js/src/kucoin.js +632 -622
- package/js/src/kucoinfutures.d.ts +441 -0
- package/js/src/kucoinfutures.js +533 -457
- package/js/src/kuna.d.ts +283 -0
- package/js/src/kuna.js +283 -282
- package/js/src/latoken.d.ts +211 -0
- package/js/src/latoken.js +211 -210
- package/js/src/lbank.d.ts +268 -0
- package/js/src/lbank.js +268 -267
- package/js/src/luno.d.ts +174 -0
- package/js/src/luno.js +174 -173
- package/js/src/lykke.d.ts +172 -0
- package/js/src/lykke.js +172 -171
- package/js/src/mercado.d.ts +123 -0
- package/js/src/mercado.js +123 -122
- package/js/src/mexc.d.ts +647 -0
- package/js/src/mexc.js +650 -646
- package/js/src/ndax.d.ts +229 -0
- package/js/src/ndax.js +229 -228
- package/js/src/novadax.d.ts +230 -0
- package/js/src/novadax.js +230 -229
- package/js/src/oceanex.d.ts +187 -0
- package/js/src/oceanex.js +187 -186
- package/js/src/okcoin.d.ts +286 -0
- package/js/src/okcoin.js +286 -285
- package/js/src/okx.d.ts +907 -0
- package/js/src/okx.js +909 -904
- package/js/src/onetrading.d.ts +218 -0
- package/js/src/onetrading.js +218 -218
- package/js/src/oxfun.d.ts +336 -3
- package/js/src/oxfun.js +335 -334
- package/js/src/p2b.d.ts +154 -0
- package/js/src/p2b.js +154 -154
- package/js/src/paradex.d.ts +241 -0
- package/js/src/paradex.js +249 -244
- package/js/src/paymium.d.ts +101 -0
- package/js/src/paymium.js +101 -101
- package/js/src/phemex.d.ts +366 -0
- package/js/src/phemex.js +388 -390
- package/js/src/poloniex.d.ts +270 -0
- package/js/src/poloniex.js +270 -270
- package/js/src/poloniexfutures.d.ts +250 -0
- package/js/src/poloniexfutures.js +250 -250
- package/js/src/pro/alpaca.d.ts +64 -0
- package/js/src/pro/alpaca.js +64 -64
- package/js/src/pro/ascendex.d.ts +64 -0
- package/js/src/pro/ascendex.js +64 -64
- package/js/src/pro/binance.d.ts +546 -0
- package/js/src/pro/binance.js +546 -543
- package/js/src/pro/bingx.d.ts +116 -0
- package/js/src/pro/bingx.js +116 -116
- package/js/src/pro/bitfinex.d.ts +42 -0
- package/js/src/pro/bitfinex.js +42 -42
- package/js/src/pro/bitfinex2.d.ts +66 -0
- package/js/src/pro/bitfinex2.js +66 -66
- package/js/src/pro/bitget.d.ts +187 -0
- package/js/src/pro/bitget.js +188 -181
- package/js/src/pro/bithumb.d.ts +40 -0
- package/js/src/pro/bithumb.js +40 -40
- package/js/src/pro/bitmart.d.ts +121 -0
- package/js/src/pro/bitmart.js +121 -119
- package/js/src/pro/bitmex.d.ts +135 -0
- package/js/src/pro/bitmex.js +135 -133
- package/js/src/pro/bitopro.d.ts +49 -0
- package/js/src/pro/bitopro.js +49 -49
- package/js/src/pro/bitrue.d.ts +19 -0
- package/js/src/pro/bitrue.js +19 -19
- package/js/src/pro/bitstamp.d.ts +29 -0
- package/js/src/pro/bitstamp.js +29 -29
- package/js/src/pro/bitvavo.d.ts +254 -1
- package/js/src/pro/bitvavo.js +299 -301
- package/js/src/pro/blockchaincom.d.ts +62 -0
- package/js/src/pro/blockchaincom.js +62 -62
- package/js/src/pro/blofin.d.ts +132 -0
- package/js/src/pro/blofin.js +132 -130
- package/js/src/pro/bybit.d.ts +317 -0
- package/js/src/pro/bybit.js +317 -313
- package/js/src/pro/cex.d.ts +168 -0
- package/js/src/pro/cex.js +168 -168
- package/js/src/pro/coinbase.d.ts +93 -0
- package/js/src/pro/coinbase.js +93 -91
- package/js/src/pro/coinbaseexchange.d.ts +95 -0
- package/js/src/pro/coinbaseexchange.js +95 -95
- package/js/src/pro/coinbaseinternational.d.ts +111 -0
- package/js/src/pro/coinbaseinternational.js +111 -111
- package/js/src/pro/coincatch.d.ts +150 -0
- package/js/src/pro/coincatch.js +150 -143
- package/js/src/pro/coincheck.d.ts +21 -0
- package/js/src/pro/coincheck.js +21 -21
- package/js/src/pro/coinex.d.ts +110 -0
- package/js/src/pro/coinex.js +110 -110
- package/js/src/pro/coinone.d.ts +30 -0
- package/js/src/pro/coinone.js +30 -30
- package/js/src/pro/cryptocom.d.ts +227 -0
- package/js/src/pro/cryptocom.js +227 -227
- package/js/src/pro/currencycom.d.ts +45 -0
- package/js/src/pro/currencycom.js +45 -45
- package/js/src/pro/deribit.d.ts +127 -0
- package/js/src/pro/deribit.js +127 -127
- package/js/src/pro/exmo.d.ts +66 -0
- package/js/src/pro/exmo.js +66 -66
- package/js/src/pro/gate.d.ts +287 -0
- package/js/src/pro/gate.js +287 -283
- package/js/src/pro/gemini.d.ts +74 -0
- package/js/src/pro/gemini.js +74 -74
- package/js/src/pro/hashkey.d.ts +87 -0
- package/js/src/pro/hashkey.js +87 -85
- package/js/src/pro/hitbtc.d.ts +190 -0
- package/js/src/pro/hitbtc.js +190 -190
- package/js/src/pro/hollaex.d.ts +51 -0
- package/js/src/pro/hollaex.js +51 -51
- package/js/src/pro/htx.d.ts +96 -0
- package/js/src/pro/htx.js +96 -94
- package/js/src/pro/huobijp.d.ts +38 -0
- package/js/src/pro/huobijp.js +38 -38
- package/js/src/pro/hyperliquid.d.ts +151 -0
- package/js/src/pro/hyperliquid.js +151 -150
- package/js/src/pro/idex.d.ts +48 -0
- package/js/src/pro/idex.js +48 -48
- package/js/src/pro/independentreserve.d.ts +19 -0
- package/js/src/pro/independentreserve.js +19 -19
- package/js/src/pro/kraken.d.ts +167 -0
- package/js/src/pro/kraken.js +167 -167
- package/js/src/pro/krakenfutures.d.ts +137 -0
- package/js/src/pro/krakenfutures.js +137 -138
- package/js/src/pro/kucoin.d.ts +167 -0
- package/js/src/pro/kucoin.js +167 -168
- package/js/src/pro/kucoinfutures.d.ts +147 -0
- package/js/src/pro/kucoinfutures.js +147 -147
- package/js/src/pro/lbank.d.ts +95 -0
- package/js/src/pro/lbank.js +95 -95
- package/js/src/pro/luno.d.ts +21 -0
- package/js/src/pro/luno.js +21 -21
- package/js/src/pro/mexc.d.ts +101 -0
- package/js/src/pro/mexc.js +102 -103
- package/js/src/pro/ndax.d.ts +42 -0
- package/js/src/pro/ndax.js +42 -42
- package/js/src/pro/okcoin.d.ts +61 -0
- package/js/src/pro/okcoin.js +61 -61
- package/js/src/pro/okx.d.ts +332 -0
- package/js/src/pro/okx.js +332 -330
- package/js/src/pro/onetrading.d.ts +71 -0
- package/js/src/pro/onetrading.js +71 -71
- package/js/src/pro/oxfun.d.ts +193 -0
- package/js/src/pro/oxfun.js +193 -191
- package/js/src/pro/p2b.d.ts +77 -0
- package/js/src/pro/p2b.js +77 -77
- package/js/src/pro/paradex.d.ts +39 -0
- package/js/src/pro/paradex.js +39 -39
- package/js/src/pro/phemex.d.ts +94 -0
- package/js/src/pro/phemex.js +94 -94
- package/js/src/pro/poloniex.d.ts +171 -0
- package/js/src/pro/poloniex.js +171 -171
- package/js/src/pro/poloniexfutures.d.ts +62 -0
- package/js/src/pro/poloniexfutures.js +62 -62
- package/js/src/pro/probit.d.ts +63 -0
- package/js/src/pro/probit.js +63 -63
- package/js/src/pro/upbit.d.ts +80 -0
- package/js/src/pro/upbit.js +80 -80
- package/js/src/pro/vertex.d.ts +65 -0
- package/js/src/pro/vertex.js +65 -63
- package/js/src/pro/wazirx.d.ts +70 -0
- package/js/src/pro/wazirx.js +70 -70
- package/js/src/pro/whitebit.d.ts +83 -0
- package/js/src/pro/whitebit.js +83 -83
- package/js/src/pro/woo.d.ts +106 -0
- package/js/src/pro/woo.js +106 -104
- package/js/src/pro/woofipro.d.ts +105 -0
- package/js/src/pro/woofipro.js +105 -103
- package/js/src/pro/xt.d.ts +119 -0
- package/js/src/pro/xt.js +119 -119
- package/js/src/probit.d.ts +229 -0
- package/js/src/probit.js +229 -229
- package/js/src/timex.d.ts +198 -0
- package/js/src/timex.js +198 -197
- package/js/src/tokocrypto.d.ts +214 -0
- package/js/src/tokocrypto.js +214 -213
- package/js/src/tradeogre.d.ts +92 -0
- package/js/src/tradeogre.js +92 -91
- package/js/src/upbit.d.ts +243 -0
- package/js/src/upbit.js +243 -242
- package/js/src/vertex.d.ts +258 -0
- package/js/src/vertex.js +258 -258
- package/js/src/wavesexchange.d.ts +176 -0
- package/js/src/wavesexchange.js +176 -172
- package/js/src/wazirx.d.ts +168 -0
- package/js/src/wazirx.js +168 -168
- package/js/src/whitebit.d.ts +361 -0
- package/js/src/whitebit.js +361 -361
- package/js/src/woo.d.ts +571 -0
- package/js/src/woo.js +571 -572
- package/js/src/woofipro.d.ts +392 -0
- package/js/src/woofipro.js +392 -391
- package/js/src/xt.d.ts +439 -4
- package/js/src/xt.js +436 -435
- package/js/src/yobit.d.ts +159 -0
- package/js/src/yobit.js +159 -158
- package/js/src/zaif.d.ts +103 -0
- package/js/src/zaif.js +103 -103
- package/js/src/zonda.d.ts +168 -0
- package/js/src/zonda.js +168 -168
- package/package.json +1 -1
package/js/src/kuna.js
CHANGED
|
@@ -404,15 +404,15 @@ export default class kuna extends Exchange {
|
|
|
404
404
|
},
|
|
405
405
|
});
|
|
406
406
|
}
|
|
407
|
+
/**
|
|
408
|
+
* @method
|
|
409
|
+
* @name kuna#fetchTime
|
|
410
|
+
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
411
|
+
* @see https://docs.kuna.io/docs/get-time-on-the-server
|
|
412
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
413
|
+
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
414
|
+
*/
|
|
407
415
|
async fetchTime(params = {}) {
|
|
408
|
-
/**
|
|
409
|
-
* @method
|
|
410
|
-
* @name kuna#fetchTime
|
|
411
|
-
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
412
|
-
* @see https://docs.kuna.io/docs/get-time-on-the-server
|
|
413
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
414
|
-
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
415
|
-
*/
|
|
416
416
|
const response = await this.v4PublicGetPublicTimestamp(params);
|
|
417
417
|
//
|
|
418
418
|
// {
|
|
@@ -425,15 +425,15 @@ export default class kuna extends Exchange {
|
|
|
425
425
|
const data = this.safeValue(response, 'data', {});
|
|
426
426
|
return this.safeInteger(data, 'timestamp_miliseconds');
|
|
427
427
|
}
|
|
428
|
+
/**
|
|
429
|
+
* @method
|
|
430
|
+
* @name kuna#fetchCurrencies
|
|
431
|
+
* @description fetches all available currencies on an exchange
|
|
432
|
+
* @see https://docs.kuna.io/docs/get-information-about-available-currencies
|
|
433
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
434
|
+
* @returns {object} an associative dictionary of currencies
|
|
435
|
+
*/
|
|
428
436
|
async fetchCurrencies(params = {}) {
|
|
429
|
-
/**
|
|
430
|
-
* @method
|
|
431
|
-
* @name kuna#fetchCurrencies
|
|
432
|
-
* @description fetches all available currencies on an exchange
|
|
433
|
-
* @see https://docs.kuna.io/docs/get-information-about-available-currencies
|
|
434
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
435
|
-
* @returns {object} an associative dictionary of currencies
|
|
436
|
-
*/
|
|
437
437
|
const response = await this.v4PublicGetPublicCurrencies(params);
|
|
438
438
|
//
|
|
439
439
|
// {
|
|
@@ -511,15 +511,15 @@ export default class kuna extends Exchange {
|
|
|
511
511
|
'networks': {},
|
|
512
512
|
});
|
|
513
513
|
}
|
|
514
|
+
/**
|
|
515
|
+
* @method
|
|
516
|
+
* @name kuna#fetchMarkets
|
|
517
|
+
* @description retrieves data on all markets for kuna
|
|
518
|
+
* @see https://docs.kuna.io/docs/get-all-traded-markets
|
|
519
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
520
|
+
* @returns {object[]} an array of objects representing market data
|
|
521
|
+
*/
|
|
514
522
|
async fetchMarkets(params = {}) {
|
|
515
|
-
/**
|
|
516
|
-
* @method
|
|
517
|
-
* @name kuna#fetchMarkets
|
|
518
|
-
* @description retrieves data on all markets for kuna
|
|
519
|
-
* @see https://docs.kuna.io/docs/get-all-traded-markets
|
|
520
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
521
|
-
* @returns {object[]} an array of objects representing market data
|
|
522
|
-
*/
|
|
523
523
|
const response = await this.v4PublicGetMarketsPublicGetAll(params);
|
|
524
524
|
//
|
|
525
525
|
// {
|
|
@@ -604,17 +604,17 @@ export default class kuna extends Exchange {
|
|
|
604
604
|
}
|
|
605
605
|
return markets;
|
|
606
606
|
}
|
|
607
|
+
/**
|
|
608
|
+
* @method
|
|
609
|
+
* @name kuna#fetchOrderBook
|
|
610
|
+
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
611
|
+
* @see https://docs.kuna.io/docs/get-public-orders-book
|
|
612
|
+
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
613
|
+
* @param {int} [limit] 5, 10, 20, 50, 100, 500, or 1000 (default)
|
|
614
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
615
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
616
|
+
*/
|
|
607
617
|
async fetchOrderBook(symbol, limit = undefined, params = {}) {
|
|
608
|
-
/**
|
|
609
|
-
* @method
|
|
610
|
-
* @name kuna#fetchOrderBook
|
|
611
|
-
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
612
|
-
* @see https://docs.kuna.io/docs/get-public-orders-book
|
|
613
|
-
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
614
|
-
* @param {int} [limit] 5, 10, 20, 50, 100, 500, or 1000 (default)
|
|
615
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
616
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
617
|
-
*/
|
|
618
618
|
await this.loadMarkets();
|
|
619
619
|
const market = this.market(symbol);
|
|
620
620
|
const request = {
|
|
@@ -691,16 +691,16 @@ export default class kuna extends Exchange {
|
|
|
691
691
|
'quoteVolume': this.safeString(ticker, 'quoteVolume'),
|
|
692
692
|
}, market);
|
|
693
693
|
}
|
|
694
|
+
/**
|
|
695
|
+
* @method
|
|
696
|
+
* @name kuna#fetchTickers
|
|
697
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market. The average is not returned in the response, but the median can be accessed via response['info']['price']
|
|
698
|
+
* @see https://docs.kuna.io/docs/get-market-info-by-tickers
|
|
699
|
+
* @param {string[]} [symbols] unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
700
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
701
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
702
|
+
*/
|
|
694
703
|
async fetchTickers(symbols = undefined, params = {}) {
|
|
695
|
-
/**
|
|
696
|
-
* @method
|
|
697
|
-
* @name kuna#fetchTickers
|
|
698
|
-
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market. The average is not returned in the response, but the median can be accessed via response['info']['price']
|
|
699
|
-
* @see https://docs.kuna.io/docs/get-market-info-by-tickers
|
|
700
|
-
* @param {string[]} [symbols] unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
701
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
702
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
703
|
-
*/
|
|
704
704
|
await this.loadMarkets();
|
|
705
705
|
if (symbols === undefined) {
|
|
706
706
|
throw new ArgumentsRequired(this.id + ' fetchTickers () requires a symbols argument');
|
|
@@ -734,16 +734,16 @@ export default class kuna extends Exchange {
|
|
|
734
734
|
const data = this.safeList(response, 'data', []);
|
|
735
735
|
return this.parseTickers(data, symbols, params);
|
|
736
736
|
}
|
|
737
|
+
/**
|
|
738
|
+
* @method
|
|
739
|
+
* @name kuna#fetchTicker
|
|
740
|
+
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
741
|
+
* @see https://docs.kuna.io/docs/get-market-info-by-tickers
|
|
742
|
+
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
743
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
744
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
745
|
+
*/
|
|
737
746
|
async fetchTicker(symbol, params = {}) {
|
|
738
|
-
/**
|
|
739
|
-
* @method
|
|
740
|
-
* @name kuna#fetchTicker
|
|
741
|
-
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
742
|
-
* @see https://docs.kuna.io/docs/get-market-info-by-tickers
|
|
743
|
-
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
744
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
745
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
746
|
-
*/
|
|
747
747
|
await this.loadMarkets();
|
|
748
748
|
const market = this.market(symbol);
|
|
749
749
|
const request = {
|
|
@@ -774,31 +774,31 @@ export default class kuna extends Exchange {
|
|
|
774
774
|
const ticker = this.safeDict(data, 0);
|
|
775
775
|
return this.parseTicker(ticker, market);
|
|
776
776
|
}
|
|
777
|
+
/**
|
|
778
|
+
* TODO: double check
|
|
779
|
+
* @method
|
|
780
|
+
* @name kuna#fetchL3OrderBook
|
|
781
|
+
* @description fetches level 3 information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
782
|
+
* @param {string} symbol unified market symbol
|
|
783
|
+
* @param {int} [limit] max number of orders to return, default is undefined
|
|
784
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
785
|
+
* @returns {object} an [order book structure]{@link https://docs.ccxt.com/#/?id=order-book-structure}
|
|
786
|
+
*/
|
|
777
787
|
async fetchL3OrderBook(symbol, limit = undefined, params = {}) {
|
|
778
|
-
/**
|
|
779
|
-
* TODO: double check
|
|
780
|
-
* @method
|
|
781
|
-
* @name kuna#fetchL3OrderBook
|
|
782
|
-
* @description fetches level 3 information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
783
|
-
* @param {string} symbol unified market symbol
|
|
784
|
-
* @param {int} [limit] max number of orders to return, default is undefined
|
|
785
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
786
|
-
* @returns {object} an [order book structure]{@link https://docs.ccxt.com/#/?id=order-book-structure}
|
|
787
|
-
*/
|
|
788
788
|
return await this.fetchOrderBook(symbol, limit, params);
|
|
789
789
|
}
|
|
790
|
+
/**
|
|
791
|
+
* @method
|
|
792
|
+
* @name kuna#fetchTrades
|
|
793
|
+
* @description get the list of most recent trades for a particular symbol
|
|
794
|
+
* @see https://docs.kuna.io/docs/get-public-trades-book
|
|
795
|
+
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
796
|
+
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
797
|
+
* @param {int} [limit] between 1 and 100, 25 by default
|
|
798
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
799
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
800
|
+
*/
|
|
790
801
|
async fetchTrades(symbol, since = undefined, limit = undefined, params = {}) {
|
|
791
|
-
/**
|
|
792
|
-
* @method
|
|
793
|
-
* @name kuna#fetchTrades
|
|
794
|
-
* @description get the list of most recent trades for a particular symbol
|
|
795
|
-
* @see https://docs.kuna.io/docs/get-public-trades-book
|
|
796
|
-
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
797
|
-
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
798
|
-
* @param {int} [limit] between 1 and 100, 25 by default
|
|
799
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
800
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
801
|
-
*/
|
|
802
802
|
await this.loadMarkets();
|
|
803
803
|
const market = this.market(symbol);
|
|
804
804
|
const request = {
|
|
@@ -907,14 +907,14 @@ export default class kuna extends Exchange {
|
|
|
907
907
|
}
|
|
908
908
|
return this.safeBalance(result);
|
|
909
909
|
}
|
|
910
|
+
/**
|
|
911
|
+
* @method
|
|
912
|
+
* @name kuna#fetchBalance
|
|
913
|
+
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
914
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
915
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
916
|
+
*/
|
|
910
917
|
async fetchBalance(params = {}) {
|
|
911
|
-
/**
|
|
912
|
-
* @method
|
|
913
|
-
* @name kuna#fetchBalance
|
|
914
|
-
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
915
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
916
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
917
|
-
*/
|
|
918
918
|
await this.loadMarkets();
|
|
919
919
|
const response = await this.v4PrivateGetPrivateGetBalance(params);
|
|
920
920
|
//
|
|
@@ -929,25 +929,25 @@ export default class kuna extends Exchange {
|
|
|
929
929
|
const data = this.safeValue(response, 'data', []);
|
|
930
930
|
return this.parseBalance(data);
|
|
931
931
|
}
|
|
932
|
+
/**
|
|
933
|
+
* @method
|
|
934
|
+
* @name kuna#createOrder
|
|
935
|
+
* @description create a trade order
|
|
936
|
+
* @see https://docs.kuna.io/docs/create-a-new-order-private
|
|
937
|
+
* @param {string} symbol unified symbol of the market to create an order in
|
|
938
|
+
* @param {string} type 'market' or 'limit'
|
|
939
|
+
* @param {string} side 'buy' or 'sell'
|
|
940
|
+
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
941
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
942
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
943
|
+
* @param {float} [params.triggerPrice] the price at which a trigger order is triggered at
|
|
944
|
+
*
|
|
945
|
+
* EXCHANGE SPECIFIC PARAMETERS
|
|
946
|
+
* @param {string} [params.id] id must be a UUID format, if you do not specify id, it will be generated automatically.
|
|
947
|
+
* @param {float} [params.quoteQuantity] the max quantity of the quote asset to use for selling/buying
|
|
948
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
949
|
+
*/
|
|
932
950
|
async createOrder(symbol, type, side, amount, price = undefined, params = {}) {
|
|
933
|
-
/**
|
|
934
|
-
* @method
|
|
935
|
-
* @name kuna#createOrder
|
|
936
|
-
* @description create a trade order
|
|
937
|
-
* @see https://docs.kuna.io/docs/create-a-new-order-private
|
|
938
|
-
* @param {string} symbol unified symbol of the market to create an order in
|
|
939
|
-
* @param {string} type 'market' or 'limit'
|
|
940
|
-
* @param {string} side 'buy' or 'sell'
|
|
941
|
-
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
942
|
-
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
943
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
944
|
-
* @param {float} [params.triggerPrice] the price at which a trigger order is triggered at
|
|
945
|
-
*
|
|
946
|
-
* EXCHANGE SPECIFIC PARAMETERS
|
|
947
|
-
* @param {string} [params.id] id must be a UUID format, if you do not specify id, it will be generated automatically.
|
|
948
|
-
* @param {float} [params.quoteQuantity] the max quantity of the quote asset to use for selling/buying
|
|
949
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
950
|
-
*/
|
|
951
951
|
await this.loadMarkets();
|
|
952
952
|
const market = this.market(symbol);
|
|
953
953
|
const triggerPrice = this.safeString2(params, 'triggerPrice', 'stopPrice');
|
|
@@ -990,16 +990,16 @@ export default class kuna extends Exchange {
|
|
|
990
990
|
const data = this.safeDict(response, 'data', {});
|
|
991
991
|
return this.parseOrder(data, market);
|
|
992
992
|
}
|
|
993
|
+
/**
|
|
994
|
+
* @method
|
|
995
|
+
* @name kuna#cancelOrder
|
|
996
|
+
* @description cancels an open order
|
|
997
|
+
* @param {string} id order id
|
|
998
|
+
* @param {string} symbol unified market symbol
|
|
999
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1000
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1001
|
+
*/
|
|
993
1002
|
async cancelOrder(id, symbol = undefined, params = {}) {
|
|
994
|
-
/**
|
|
995
|
-
* @method
|
|
996
|
-
* @name kuna#cancelOrder
|
|
997
|
-
* @description cancels an open order
|
|
998
|
-
* @param {string} id order id
|
|
999
|
-
* @param {string} symbol unified market symbol
|
|
1000
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1001
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1002
|
-
*/
|
|
1003
1003
|
await this.loadMarkets();
|
|
1004
1004
|
const request = {
|
|
1005
1005
|
'orderId': id,
|
|
@@ -1021,16 +1021,16 @@ export default class kuna extends Exchange {
|
|
|
1021
1021
|
order['id'] = id;
|
|
1022
1022
|
return order;
|
|
1023
1023
|
}
|
|
1024
|
+
/**
|
|
1025
|
+
* @method
|
|
1026
|
+
* @name kuna#cancelOrder
|
|
1027
|
+
* @description cancels an open order
|
|
1028
|
+
* @param {string} ids order ids
|
|
1029
|
+
* @param {string} symbol not used by kuna cancelOrder
|
|
1030
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1031
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1032
|
+
*/
|
|
1024
1033
|
async cancelOrders(ids, symbol = undefined, params = {}) {
|
|
1025
|
-
/**
|
|
1026
|
-
* @method
|
|
1027
|
-
* @name kuna#cancelOrder
|
|
1028
|
-
* @description cancels an open order
|
|
1029
|
-
* @param {string} ids order ids
|
|
1030
|
-
* @param {string} symbol not used by kuna cancelOrder
|
|
1031
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1032
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1033
|
-
*/
|
|
1034
1034
|
await this.loadMarkets();
|
|
1035
1035
|
const request = {
|
|
1036
1036
|
'orderIds': ids,
|
|
@@ -1140,19 +1140,20 @@ export default class kuna extends Exchange {
|
|
|
1140
1140
|
'fee': undefined,
|
|
1141
1141
|
}, market);
|
|
1142
1142
|
}
|
|
1143
|
+
/**
|
|
1144
|
+
* @method
|
|
1145
|
+
* @name kuna#fetchOrder
|
|
1146
|
+
* @description fetches information on an order made by the user
|
|
1147
|
+
* @see https://docs.kuna.io/docs/get-order-details-by-id
|
|
1148
|
+
* @param {string} id order id
|
|
1149
|
+
* @param {string} symbol not used by kuna fetchOrder
|
|
1150
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1151
|
+
*
|
|
1152
|
+
* EXCHANGE SPECIFIC PARAMETERS
|
|
1153
|
+
* @param {boolean} [params.withTrades] default == true, specify if the response should include trades associated with the order
|
|
1154
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1155
|
+
*/
|
|
1143
1156
|
async fetchOrder(id, symbol = undefined, params = {}) {
|
|
1144
|
-
/**
|
|
1145
|
-
* @method
|
|
1146
|
-
* @name kuna#fetchOrder
|
|
1147
|
-
* @description fetches information on an order made by the user
|
|
1148
|
-
* @see https://docs.kuna.io/docs/get-order-details-by-id
|
|
1149
|
-
* @param {string} symbol not used by kuna fetchOrder
|
|
1150
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1151
|
-
*
|
|
1152
|
-
* EXCHANGE SPECIFIC PARAMETERS
|
|
1153
|
-
* @param {boolean} [params.withTrades] default == true, specify if the response should include trades associated with the order
|
|
1154
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1155
|
-
*/
|
|
1156
1157
|
await this.loadMarkets();
|
|
1157
1158
|
const request = {
|
|
1158
1159
|
'id': id,
|
|
@@ -1196,22 +1197,22 @@ export default class kuna extends Exchange {
|
|
|
1196
1197
|
const data = this.safeDict(response, 'data', {});
|
|
1197
1198
|
return this.parseOrder(data);
|
|
1198
1199
|
}
|
|
1200
|
+
/**
|
|
1201
|
+
* @method
|
|
1202
|
+
* @name kuna#fetchOpenOrders
|
|
1203
|
+
* @description fetch all unfilled currently open orders
|
|
1204
|
+
* @see https://docs.kuna.io/docs/get-active-client-orders-private
|
|
1205
|
+
* @param {string} symbol unified market symbol
|
|
1206
|
+
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1207
|
+
* @param {int} [limit] 1-100, the maximum number of open orders structures to retrieve
|
|
1208
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1209
|
+
* @param {int} [params.until] the latest timestamp (ms) to fetch orders for
|
|
1210
|
+
*
|
|
1211
|
+
* EXCHANGE SPECIFIC PARAMETERS
|
|
1212
|
+
* @param {string} [params.sort] asc (oldest-on-top) or desc (newest-on-top)
|
|
1213
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1214
|
+
*/
|
|
1199
1215
|
async fetchOpenOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1200
|
-
/**
|
|
1201
|
-
* @method
|
|
1202
|
-
* @name kuna#fetchOpenOrders
|
|
1203
|
-
* @description fetch all unfilled currently open orders
|
|
1204
|
-
* @see https://docs.kuna.io/docs/get-active-client-orders-private
|
|
1205
|
-
* @param {string} symbol unified market symbol
|
|
1206
|
-
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1207
|
-
* @param {int} [limit] 1-100, the maximum number of open orders structures to retrieve
|
|
1208
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1209
|
-
* @param {int} [params.until] the latest timestamp (ms) to fetch orders for
|
|
1210
|
-
*
|
|
1211
|
-
* EXCHANGE SPECIFIC PARAMETERS
|
|
1212
|
-
* @param {string} [params.sort] asc (oldest-on-top) or desc (newest-on-top)
|
|
1213
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1214
|
-
*/
|
|
1215
1216
|
await this.loadMarkets();
|
|
1216
1217
|
const until = this.safeInteger(params, 'until');
|
|
1217
1218
|
params = this.omit(params, ['until']);
|
|
@@ -1255,41 +1256,41 @@ export default class kuna extends Exchange {
|
|
|
1255
1256
|
const data = this.safeList(response, 'data', []);
|
|
1256
1257
|
return this.parseOrders(data, market, since, limit);
|
|
1257
1258
|
}
|
|
1259
|
+
/**
|
|
1260
|
+
* @method
|
|
1261
|
+
* @name kuna#fetchClosedOrders
|
|
1262
|
+
* @description fetches information on multiple closed orders made by the user
|
|
1263
|
+
* @see https://docs.kuna.io/docs/get-private-orders-history
|
|
1264
|
+
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1265
|
+
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1266
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1267
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1268
|
+
* @param {int} [params.until] the latest time in ms to fetch orders for
|
|
1269
|
+
*
|
|
1270
|
+
* EXCHANGE SPECIFIC PARAMETERS
|
|
1271
|
+
* @param {string} [params.sort] asc (oldest-on-top) or desc (newest-on-top)
|
|
1272
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1273
|
+
*/
|
|
1258
1274
|
async fetchClosedOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1259
|
-
/**
|
|
1260
|
-
* @method
|
|
1261
|
-
* @name kuna#fetchClosedOrders
|
|
1262
|
-
* @description fetches information on multiple closed orders made by the user
|
|
1263
|
-
* @see https://docs.kuna.io/docs/get-private-orders-history
|
|
1264
|
-
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1265
|
-
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1266
|
-
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1267
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1268
|
-
* @param {int} [params.until] the latest time in ms to fetch orders for
|
|
1269
|
-
*
|
|
1270
|
-
* EXCHANGE SPECIFIC PARAMETERS
|
|
1271
|
-
* @param {string} [params.sort] asc (oldest-on-top) or desc (newest-on-top)
|
|
1272
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1273
|
-
*/
|
|
1274
1275
|
return await this.fetchOrdersByStatus('closed', symbol, since, limit, params);
|
|
1275
1276
|
}
|
|
1277
|
+
/**
|
|
1278
|
+
* @method
|
|
1279
|
+
* @name kuna#fetchOrdersByStatus
|
|
1280
|
+
* @description fetch a list of orders
|
|
1281
|
+
* @see https://docs.kuna.io/docs/get-private-orders-history
|
|
1282
|
+
* @param {string} status canceled, closed, expired, open, pending, rejected, or waitStop
|
|
1283
|
+
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1284
|
+
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1285
|
+
* @param {int} [limit] 1-100, the maximum number of open orders structures to retrieve
|
|
1286
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1287
|
+
* @param {int} [params.until] the latest timestamp (ms) to fetch orders for
|
|
1288
|
+
*
|
|
1289
|
+
* EXCHANGE SPECIFIC PARAMETERS
|
|
1290
|
+
* @param {string} [params.sort] asc (oldest-on-top) or desc (newest-on-top)
|
|
1291
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1292
|
+
*/
|
|
1276
1293
|
async fetchOrdersByStatus(status, symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1277
|
-
/**
|
|
1278
|
-
* @method
|
|
1279
|
-
* @name kuna#fetchOrdersByStatus
|
|
1280
|
-
* @description fetch a list of orders
|
|
1281
|
-
* @see https://docs.kuna.io/docs/get-private-orders-history
|
|
1282
|
-
* @param {string} status canceled, closed, expired, open, pending, rejected, or waitStop
|
|
1283
|
-
* @param {string} symbol unified market symbol of the market orders were made in
|
|
1284
|
-
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1285
|
-
* @param {int} [limit] 1-100, the maximum number of open orders structures to retrieve
|
|
1286
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1287
|
-
* @param {int} [params.until] the latest timestamp (ms) to fetch orders for
|
|
1288
|
-
*
|
|
1289
|
-
* EXCHANGE SPECIFIC PARAMETERS
|
|
1290
|
-
* @param {string} [params.sort] asc (oldest-on-top) or desc (newest-on-top)
|
|
1291
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
1292
|
-
*/
|
|
1293
1294
|
await this.loadMarkets();
|
|
1294
1295
|
if (status === 'open') {
|
|
1295
1296
|
return this.fetchOpenOrders(symbol, since, limit, params);
|
|
@@ -1339,22 +1340,22 @@ export default class kuna extends Exchange {
|
|
|
1339
1340
|
const data = this.safeList(response, 'data', []);
|
|
1340
1341
|
return this.parseOrders(data, market, since, limit);
|
|
1341
1342
|
}
|
|
1343
|
+
/**
|
|
1344
|
+
* @method
|
|
1345
|
+
* @name kuna#fetchMyTrades
|
|
1346
|
+
* @description fetch all trades made by the user
|
|
1347
|
+
* @see https://docs.kuna.io/docs/get-private-trades-history
|
|
1348
|
+
* @param {string} symbol unified market symbol
|
|
1349
|
+
* @param {int} [since] not used by kuna fetchMyTrades
|
|
1350
|
+
* @param {int} [limit] not used by kuna fetchMyTrades
|
|
1351
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1352
|
+
*
|
|
1353
|
+
* EXCHANGE SPECIFIC PARAMETERS
|
|
1354
|
+
* @param {string} [params.orderId] UUID of an order, to receive trades for this order only
|
|
1355
|
+
* @param {string} [params.sort] asc (oldest-on-top) or desc (newest-on-top)
|
|
1356
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1357
|
+
*/
|
|
1342
1358
|
async fetchMyTrades(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1343
|
-
/**
|
|
1344
|
-
* @method
|
|
1345
|
-
* @name kuna#fetchMyTrades
|
|
1346
|
-
* @description fetch all trades made by the user
|
|
1347
|
-
* @see https://docs.kuna.io/docs/get-private-trades-history
|
|
1348
|
-
* @param {string} symbol unified market symbol
|
|
1349
|
-
* @param {int} [since] not used by kuna fetchMyTrades
|
|
1350
|
-
* @param {int} [limit] not used by kuna fetchMyTrades
|
|
1351
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1352
|
-
*
|
|
1353
|
-
* EXCHANGE SPECIFIC PARAMETERS
|
|
1354
|
-
* @param {string} [params.orderId] UUID of an order, to receive trades for this order only
|
|
1355
|
-
* @param {string} [params.sort] asc (oldest-on-top) or desc (newest-on-top)
|
|
1356
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
1357
|
-
*/
|
|
1358
1359
|
await this.loadMarkets();
|
|
1359
1360
|
let market = undefined;
|
|
1360
1361
|
const request = {};
|
|
@@ -1385,24 +1386,24 @@ export default class kuna extends Exchange {
|
|
|
1385
1386
|
const data = this.safeList(response, 'data');
|
|
1386
1387
|
return this.parseTrades(data, market, since, limit);
|
|
1387
1388
|
}
|
|
1389
|
+
/**
|
|
1390
|
+
* @method
|
|
1391
|
+
* @name kuna#withdraw
|
|
1392
|
+
* @description make a withdrawal
|
|
1393
|
+
* @see https://docs.kuna.io/docs/create-a-withdraw
|
|
1394
|
+
* @param {string} code unified currency code
|
|
1395
|
+
* @param {float} amount the amount to withdraw
|
|
1396
|
+
* @param {string} address the address to withdraw to
|
|
1397
|
+
* @param {string} tag
|
|
1398
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1399
|
+
* @param {string} [params.chain] the chain to withdraw to
|
|
1400
|
+
*
|
|
1401
|
+
* EXCHANGE SPECIFIC PARAMETERS
|
|
1402
|
+
* @param {string} [params.id] id must be a uuid format, if you do not specify id, it will be generated automatically
|
|
1403
|
+
* @param {boolean} [params.withdrawAll] this field says that the amount should also include a fee
|
|
1404
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1405
|
+
*/
|
|
1388
1406
|
async withdraw(code, amount, address, tag = undefined, params = {}) {
|
|
1389
|
-
/**
|
|
1390
|
-
* @method
|
|
1391
|
-
* @name kuna#withdraw
|
|
1392
|
-
* @description make a withdrawal
|
|
1393
|
-
* @see https://docs.kuna.io/docs/create-a-withdraw
|
|
1394
|
-
* @param {string} code unified currency code
|
|
1395
|
-
* @param {float} amount the amount to withdraw
|
|
1396
|
-
* @param {string} address the address to withdraw to
|
|
1397
|
-
* @param {string} tag
|
|
1398
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1399
|
-
* @param {string} [params.chain] the chain to withdraw to
|
|
1400
|
-
*
|
|
1401
|
-
* EXCHANGE SPECIFIC PARAMETERS
|
|
1402
|
-
* @param {string} [params.id] id must be a uuid format, if you do not specify id, it will be generated automatically
|
|
1403
|
-
* @param {boolean} [params.withdrawAll] this field says that the amount should also include a fee
|
|
1404
|
-
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1405
|
-
*/
|
|
1406
1407
|
this.checkAddress(address);
|
|
1407
1408
|
let chain = this.safeString2(params, 'chain', 'network');
|
|
1408
1409
|
params = this.omit(params, ['chain', 'network']);
|
|
@@ -1438,26 +1439,26 @@ export default class kuna extends Exchange {
|
|
|
1438
1439
|
const data = this.safeDict(response, 'data', {});
|
|
1439
1440
|
return this.parseTransaction(data, currency);
|
|
1440
1441
|
}
|
|
1442
|
+
/**
|
|
1443
|
+
* @method
|
|
1444
|
+
* @name kuna#fetchWithdrawals
|
|
1445
|
+
* @description fetch all withdrawals made to an account
|
|
1446
|
+
* @see https://docs.kuna.io/docs/get-withdraw-history
|
|
1447
|
+
* @param {string} code unified currency code
|
|
1448
|
+
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
1449
|
+
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
1450
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1451
|
+
* @param {int} [params.until] the latest time in ms to fetch deposits for
|
|
1452
|
+
*
|
|
1453
|
+
* EXCHANGE SPECIFIC PARAMETERS
|
|
1454
|
+
* @param {string} [params.status] Created, Canceled, PartiallyProcessed, Processing, Processed, WaitForConfirmation, Pending, AmlChecking
|
|
1455
|
+
* @param {string} [params.sortField] amount (sorting by time), createdAt (sorting by date)
|
|
1456
|
+
* @param {string} [params.sortOrder] asc (oldest-on-top), or desc (newest-on-top, default)
|
|
1457
|
+
* @param {int} [params.skip] 0 - ... Select the number of transactions to skip
|
|
1458
|
+
* @param {string} [params.address]
|
|
1459
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1460
|
+
*/
|
|
1441
1461
|
async fetchWithdrawals(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1442
|
-
/**
|
|
1443
|
-
* @method
|
|
1444
|
-
* @name kuna#fetchWithdrawals
|
|
1445
|
-
* @description fetch all withdrawals made to an account
|
|
1446
|
-
* @see https://docs.kuna.io/docs/get-withdraw-history
|
|
1447
|
-
* @param {string} code unified currency code
|
|
1448
|
-
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
1449
|
-
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
1450
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1451
|
-
* @param {int} [params.until] the latest time in ms to fetch deposits for
|
|
1452
|
-
*
|
|
1453
|
-
* EXCHANGE SPECIFIC PARAMETERS
|
|
1454
|
-
* @param {string} [params.status] Created, Canceled, PartiallyProcessed, Processing, Processed, WaitForConfirmation, Pending, AmlChecking
|
|
1455
|
-
* @param {string} [params.sortField] amount (sorting by time), createdAt (sorting by date)
|
|
1456
|
-
* @param {string} [params.sortOrder] asc (oldest-on-top), or desc (newest-on-top, default)
|
|
1457
|
-
* @param {int} [params.skip] 0 - ... Select the number of transactions to skip
|
|
1458
|
-
* @param {string} [params.address]
|
|
1459
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1460
|
-
*/
|
|
1461
1462
|
await this.loadMarkets();
|
|
1462
1463
|
const until = this.safeInteger(params, 'until');
|
|
1463
1464
|
params = this.omit(params, 'until');
|
|
@@ -1506,17 +1507,17 @@ export default class kuna extends Exchange {
|
|
|
1506
1507
|
const data = this.safeList(response, 'data', []);
|
|
1507
1508
|
return this.parseTransactions(data, currency);
|
|
1508
1509
|
}
|
|
1510
|
+
/**
|
|
1511
|
+
* @method
|
|
1512
|
+
* @name kuna#fetchWithdrawal
|
|
1513
|
+
* @description fetch data on a currency withdrawal via the withdrawal id
|
|
1514
|
+
* @see https://docs.kuna.io/docs/get-withdraw-details-by-id
|
|
1515
|
+
* @param {string} id withdrawal id
|
|
1516
|
+
* @param {string} code not used by kuna.fetchWithdrawal
|
|
1517
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1518
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1519
|
+
*/
|
|
1509
1520
|
async fetchWithdrawal(id, code = undefined, params = {}) {
|
|
1510
|
-
/**
|
|
1511
|
-
* @method
|
|
1512
|
-
* @name kuna#fetchWithdrawal
|
|
1513
|
-
* @description fetch data on a currency withdrawal via the withdrawal id
|
|
1514
|
-
* @see https://docs.kuna.io/docs/get-withdraw-details-by-id
|
|
1515
|
-
* @param {string} id withdrawal id
|
|
1516
|
-
* @param {string} code not used by kuna.fetchWithdrawal
|
|
1517
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1518
|
-
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1519
|
-
*/
|
|
1520
1521
|
await this.loadMarkets();
|
|
1521
1522
|
const request = {
|
|
1522
1523
|
'withdrawId': id,
|
|
@@ -1546,16 +1547,16 @@ export default class kuna extends Exchange {
|
|
|
1546
1547
|
const data = this.safeDict(response, 'data', {});
|
|
1547
1548
|
return this.parseTransaction(data);
|
|
1548
1549
|
}
|
|
1550
|
+
/**
|
|
1551
|
+
* @method
|
|
1552
|
+
* @name kuna#createDepositAddress
|
|
1553
|
+
* @description create a currency deposit address
|
|
1554
|
+
* @see https://docs.kuna.io/docs/generate-a-constant-crypto-address-for-deposit
|
|
1555
|
+
* @param {string} code unified currency code of the currency for the deposit address
|
|
1556
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1557
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1558
|
+
*/
|
|
1549
1559
|
async createDepositAddress(code, params = {}) {
|
|
1550
|
-
/**
|
|
1551
|
-
* @method
|
|
1552
|
-
* @name kuna#createDepositAddress
|
|
1553
|
-
* @description create a currency deposit address
|
|
1554
|
-
* @see https://docs.kuna.io/docs/generate-a-constant-crypto-address-for-deposit
|
|
1555
|
-
* @param {string} code unified currency code of the currency for the deposit address
|
|
1556
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1557
|
-
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1558
|
-
*/
|
|
1559
1560
|
await this.loadMarkets();
|
|
1560
1561
|
const currency = this.currency(code);
|
|
1561
1562
|
const request = {
|
|
@@ -1574,16 +1575,16 @@ export default class kuna extends Exchange {
|
|
|
1574
1575
|
const data = this.safeDict(response, 'data', {});
|
|
1575
1576
|
return this.parseDepositAddress(data, currency);
|
|
1576
1577
|
}
|
|
1578
|
+
/**
|
|
1579
|
+
* @method
|
|
1580
|
+
* @name kuna#fetchDepositAddress
|
|
1581
|
+
* @description fetch the deposit address for a currency associated with this account
|
|
1582
|
+
* @see https://docs.kuna.io/docs/find-crypto-address-for-deposit
|
|
1583
|
+
* @param {string} code unified currency code
|
|
1584
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1585
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1586
|
+
*/
|
|
1577
1587
|
async fetchDepositAddress(code, params = {}) {
|
|
1578
|
-
/**
|
|
1579
|
-
* @method
|
|
1580
|
-
* @name kuna#fetchDepositAddress
|
|
1581
|
-
* @description fetch the deposit address for a currency associated with this account
|
|
1582
|
-
* @see https://docs.kuna.io/docs/find-crypto-address-for-deposit
|
|
1583
|
-
* @param {string} code unified currency code
|
|
1584
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1585
|
-
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
1586
|
-
*/
|
|
1587
1588
|
await this.loadMarkets();
|
|
1588
1589
|
const currency = this.currency(code);
|
|
1589
1590
|
const request = {
|
|
@@ -1632,26 +1633,26 @@ export default class kuna extends Exchange {
|
|
|
1632
1633
|
};
|
|
1633
1634
|
return this.safeString(statuses, status, status);
|
|
1634
1635
|
}
|
|
1636
|
+
/**
|
|
1637
|
+
* @method
|
|
1638
|
+
* @name kuna#fetchDeposits
|
|
1639
|
+
* @description fetch all deposits made to an account
|
|
1640
|
+
* @see https://docs.kuna.io/docs/get-deposit-history
|
|
1641
|
+
* @param {string} code unified currency code
|
|
1642
|
+
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
1643
|
+
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
1644
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1645
|
+
* @param {int} [params.until] the latest time in ms to fetch deposits for
|
|
1646
|
+
*
|
|
1647
|
+
* EXCHANGE SPECIFIC PARAMETERS
|
|
1648
|
+
* @param {string} [params.status] Created, Canceled, PartiallyProcessed, Processing, Processed, WaitForConfirmation, Pending, AmlChecking
|
|
1649
|
+
* @param {string} [params.sortField] amount (sorting by time), createdAt (sorting by date)
|
|
1650
|
+
* @param {string} [params.sortOrder] asc (oldest-on-top), or desc (newest-on-top, default)
|
|
1651
|
+
* @param {int} [params.skip] 0 - ... Select the number of transactions to skip
|
|
1652
|
+
* @param {string} [params.address]
|
|
1653
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1654
|
+
*/
|
|
1635
1655
|
async fetchDeposits(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1636
|
-
/**
|
|
1637
|
-
* @method
|
|
1638
|
-
* @name kuna#fetchDeposits
|
|
1639
|
-
* @description fetch all deposits made to an account
|
|
1640
|
-
* @see https://docs.kuna.io/docs/get-deposit-history
|
|
1641
|
-
* @param {string} code unified currency code
|
|
1642
|
-
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
1643
|
-
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
1644
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1645
|
-
* @param {int} [params.until] the latest time in ms to fetch deposits for
|
|
1646
|
-
*
|
|
1647
|
-
* EXCHANGE SPECIFIC PARAMETERS
|
|
1648
|
-
* @param {string} [params.status] Created, Canceled, PartiallyProcessed, Processing, Processed, WaitForConfirmation, Pending, AmlChecking
|
|
1649
|
-
* @param {string} [params.sortField] amount (sorting by time), createdAt (sorting by date)
|
|
1650
|
-
* @param {string} [params.sortOrder] asc (oldest-on-top), or desc (newest-on-top, default)
|
|
1651
|
-
* @param {int} [params.skip] 0 - ... Select the number of transactions to skip
|
|
1652
|
-
* @param {string} [params.address]
|
|
1653
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1654
|
-
*/
|
|
1655
1656
|
await this.loadMarkets();
|
|
1656
1657
|
const until = this.safeInteger(params, 'until');
|
|
1657
1658
|
params = this.omit(params, 'until');
|
|
@@ -1700,17 +1701,17 @@ export default class kuna extends Exchange {
|
|
|
1700
1701
|
const data = this.safeList(response, 'data', []);
|
|
1701
1702
|
return this.parseTransactions(data, currency);
|
|
1702
1703
|
}
|
|
1704
|
+
/**
|
|
1705
|
+
* @method
|
|
1706
|
+
* @name kuna#fetchDeposit
|
|
1707
|
+
* @description fetch data on a currency deposit via the deposit id
|
|
1708
|
+
* @see https://docs.kuna.io/docs/get-deposit-details-by-id
|
|
1709
|
+
* @param {string} id deposit id
|
|
1710
|
+
* @param {string} code filter by currency code
|
|
1711
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1712
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1713
|
+
*/
|
|
1703
1714
|
async fetchDeposit(id, code = undefined, params = {}) {
|
|
1704
|
-
/**
|
|
1705
|
-
* @method
|
|
1706
|
-
* @name kuna#fetchDeposit
|
|
1707
|
-
* @description fetch data on a currency deposit via the deposit id
|
|
1708
|
-
* @see https://docs.kuna.io/docs/get-deposit-details-by-id
|
|
1709
|
-
* @param {string} id deposit id
|
|
1710
|
-
* @param {string} code filter by currency code
|
|
1711
|
-
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1712
|
-
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
1713
|
-
*/
|
|
1714
1715
|
await this.loadMarkets();
|
|
1715
1716
|
let currency = undefined;
|
|
1716
1717
|
if (code !== undefined) {
|