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