ccxt 4.5.28 → 4.5.29
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 +21 -5
- package/dist/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/alpaca.js +21 -21
- package/dist/cjs/src/apex.js +20 -20
- package/dist/cjs/src/arkham.js +22 -22
- package/dist/cjs/src/ascendex.js +28 -28
- package/dist/cjs/src/backpack.js +22 -22
- package/dist/cjs/src/base/Exchange.js +48 -38
- package/dist/cjs/src/base/functions/throttle.js +54 -5
- package/dist/cjs/src/bigone.js +19 -19
- package/dist/cjs/src/binance.js +83 -82
- package/dist/cjs/src/bingx.js +46 -46
- package/dist/cjs/src/bit2c.js +11 -11
- package/dist/cjs/src/bitbank.js +49 -48
- package/dist/cjs/src/bitbns.js +13 -13
- package/dist/cjs/src/bitfinex.js +33 -33
- package/dist/cjs/src/bitflyer.js +17 -17
- package/dist/cjs/src/bitget.js +58 -57
- package/dist/cjs/src/bithumb.js +10 -10
- package/dist/cjs/src/bitmart.js +44 -44
- package/dist/cjs/src/bitmex.js +24 -24
- package/dist/cjs/src/bitopro.js +20 -20
- package/dist/cjs/src/bitrue.js +18 -18
- package/dist/cjs/src/bitso.js +20 -20
- package/dist/cjs/src/bitstamp.js +21 -21
- package/dist/cjs/src/bittrade.js +20 -20
- package/dist/cjs/src/bitvavo.js +19 -19
- package/dist/cjs/src/blockchaincom.js +20 -20
- package/dist/cjs/src/blofin.js +26 -26
- package/dist/cjs/src/btcalpha.js +35 -34
- package/dist/cjs/src/btcbox.js +10 -10
- package/dist/cjs/src/btcmarkets.js +16 -16
- package/dist/cjs/src/btcturk.js +10 -10
- package/dist/cjs/src/bullish.js +26 -26
- package/dist/cjs/src/bybit.js +67 -67
- package/dist/cjs/src/cex.js +18 -18
- package/dist/cjs/src/coinbase.js +40 -40
- package/dist/cjs/src/coinbaseexchange.js +22 -22
- package/dist/cjs/src/coinbaseinternational.js +22 -22
- package/dist/cjs/src/coincatch.js +39 -39
- package/dist/cjs/src/coincheck.js +11 -11
- package/dist/cjs/src/coinex.js +48 -48
- package/dist/cjs/src/coinmate.js +14 -14
- package/dist/cjs/src/coinmetro.js +14 -14
- package/dist/cjs/src/coinone.js +11 -11
- package/dist/cjs/src/coinsph.js +20 -20
- package/dist/cjs/src/coinspot.js +8 -8
- package/dist/cjs/src/cryptocom.js +32 -32
- package/dist/cjs/src/cryptomus.js +9 -9
- package/dist/cjs/src/deepcoin.js +33 -33
- package/dist/cjs/src/defx.js +23 -23
- package/dist/cjs/src/delta.js +29 -29
- package/dist/cjs/src/deribit.js +36 -36
- package/dist/cjs/src/derive.js +19 -19
- package/dist/cjs/src/digifinex.js +36 -36
- package/dist/cjs/src/dydx.js +22 -22
- package/dist/cjs/src/exmo.js +29 -29
- package/dist/cjs/src/foxbit.js +23 -23
- package/dist/cjs/src/gate.js +57 -57
- package/dist/cjs/src/gemini.js +16 -16
- package/dist/cjs/src/hashkey.js +35 -35
- package/dist/cjs/src/hibachi.js +24 -24
- package/dist/cjs/src/hitbtc.js +38 -38
- package/dist/cjs/src/hollaex.js +22 -22
- package/dist/cjs/src/htx.js +50 -50
- package/dist/cjs/src/hyperliquid.js +76 -42
- package/dist/cjs/src/independentreserve.js +13 -13
- package/dist/cjs/src/indodax.js +14 -14
- package/dist/cjs/src/kraken.js +30 -30
- package/dist/cjs/src/krakenfutures.js +21 -21
- package/dist/cjs/src/kucoin.js +44 -44
- package/dist/cjs/src/kucoinfutures.js +42 -40
- package/dist/cjs/src/latoken.js +16 -16
- package/dist/cjs/src/lbank.js +23 -23
- package/dist/cjs/src/luno.js +17 -17
- package/dist/cjs/src/mercado.js +11 -11
- package/dist/cjs/src/mexc.js +47 -47
- package/dist/cjs/src/modetrade.js +37 -35
- package/dist/cjs/src/ndax.js +19 -19
- package/dist/cjs/src/novadax.js +19 -19
- package/dist/cjs/src/oceanex.js +16 -16
- package/dist/cjs/src/okx.js +83 -83
- package/dist/cjs/src/onetrading.js +34 -33
- package/dist/cjs/src/oxfun.js +25 -25
- package/dist/cjs/src/p2b.js +11 -11
- package/dist/cjs/src/paradex.js +54 -54
- package/dist/cjs/src/paymium.js +20 -21
- package/dist/cjs/src/phemex.js +35 -35
- package/dist/cjs/src/poloniex.js +27 -27
- package/dist/cjs/src/pro/alpaca.js +5 -5
- package/dist/cjs/src/pro/apex.js +8 -8
- package/dist/cjs/src/pro/arkham.js +5 -5
- package/dist/cjs/src/pro/ascendex.js +5 -5
- package/dist/cjs/src/pro/backpack.js +16 -16
- package/dist/cjs/src/pro/binance.js +35 -35
- package/dist/cjs/src/pro/bingx.js +9 -9
- package/dist/cjs/src/pro/bitfinex.js +8 -8
- package/dist/cjs/src/pro/bitget.js +12 -12
- package/dist/cjs/src/pro/bithumb.js +3 -3
- package/dist/cjs/src/pro/bitmart.js +388 -31
- package/dist/cjs/src/pro/bitmex.js +9 -9
- package/dist/cjs/src/pro/bitopro.js +5 -5
- package/dist/cjs/src/pro/bitrue.js +2 -2
- package/dist/cjs/src/pro/bitstamp.js +3 -3
- package/dist/cjs/src/pro/bittrade.js +3 -3
- package/dist/cjs/src/pro/bitvavo.js +19 -19
- package/dist/cjs/src/pro/blockchaincom.js +5 -5
- package/dist/cjs/src/pro/blofin.js +10 -10
- package/dist/cjs/src/pro/bullish.js +6 -6
- package/dist/cjs/src/pro/bybit.js +19 -19
- package/dist/cjs/src/pro/cex.js +13 -13
- package/dist/cjs/src/pro/coinbase.js +13 -13
- package/dist/cjs/src/pro/coinbaseexchange.js +10 -10
- package/dist/cjs/src/pro/coinbaseinternational.js +8 -8
- package/dist/cjs/src/pro/coincatch.js +10 -10
- package/dist/cjs/src/pro/coincheck.js +2 -2
- package/dist/cjs/src/pro/coinex.js +10 -10
- package/dist/cjs/src/pro/coinone.js +3 -3
- package/dist/cjs/src/pro/cryptocom.js +20 -20
- package/dist/cjs/src/pro/deepcoin.js +8 -8
- package/dist/cjs/src/pro/defx.js +15 -15
- package/dist/cjs/src/pro/deribit.js +10 -10
- package/dist/cjs/src/pro/derive.js +6 -6
- package/dist/cjs/src/pro/dydx.js +3 -3
- package/dist/cjs/src/pro/exmo.js +7 -7
- package/dist/cjs/src/pro/gate.js +21 -59
- package/dist/cjs/src/pro/gemini.js +6 -6
- package/dist/cjs/src/pro/hashkey.js +6 -6
- package/dist/cjs/src/pro/hitbtc.js +8 -8
- package/dist/cjs/src/pro/hollaex.js +5 -5
- package/dist/cjs/src/pro/htx.js +9 -9
- package/dist/cjs/src/pro/hyperliquid.js +103 -14
- package/dist/cjs/src/pro/independentreserve.js +2 -2
- package/dist/cjs/src/pro/kraken.js +15 -15
- package/dist/cjs/src/pro/krakenfutures.js +10 -10
- package/dist/cjs/src/pro/kucoin.js +15 -15
- package/dist/cjs/src/pro/kucoinfutures.js +13 -13
- package/dist/cjs/src/pro/lbank.js +5 -5
- package/dist/cjs/src/pro/luno.js +2 -2
- package/dist/cjs/src/pro/mexc.js +13 -13
- package/dist/cjs/src/pro/modetrade.js +8 -8
- package/dist/cjs/src/pro/ndax.js +3 -3
- package/dist/cjs/src/pro/okx.js +25 -25
- package/dist/cjs/src/pro/onetrading.js +6 -6
- package/dist/cjs/src/pro/oxfun.js +13 -13
- package/dist/cjs/src/pro/p2b.js +5 -5
- package/dist/cjs/src/pro/paradex.js +8 -8
- package/dist/cjs/src/pro/phemex.js +7 -7
- package/dist/cjs/src/pro/poloniex.js +8 -8
- package/dist/cjs/src/pro/probit.js +6 -6
- package/dist/cjs/src/pro/toobit.js +9 -9
- package/dist/cjs/src/pro/upbit.js +9 -9
- package/dist/cjs/src/pro/whitebit.js +7 -7
- package/dist/cjs/src/pro/woo.js +13 -13
- package/dist/cjs/src/pro/woofipro.js +20 -20
- package/dist/cjs/src/pro/xt.js +2 -2
- package/dist/cjs/src/probit.js +18 -18
- package/dist/cjs/src/static_dependencies/ethers/utils/index.js +11 -0
- package/dist/cjs/src/timex.js +16 -16
- package/dist/cjs/src/tokocrypto.js +17 -17
- package/dist/cjs/src/toobit.js +31 -29
- package/dist/cjs/src/upbit.js +23 -23
- package/dist/cjs/src/wavesexchange.js +86 -85
- package/dist/cjs/src/whitebit.js +44 -44
- package/dist/cjs/src/woo.js +51 -49
- package/dist/cjs/src/woofipro.js +104 -82
- package/dist/cjs/src/xt.js +17 -12
- package/dist/cjs/src/yobit.js +15 -15
- package/dist/cjs/src/zaif.js +38 -9
- package/dist/cjs/src/zebpay.js +35 -20
- package/dist/cjs/src/zonda.js +14 -14
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/alpaca.d.ts +21 -21
- package/js/src/alpaca.js +21 -21
- package/js/src/apex.d.ts +20 -20
- package/js/src/apex.js +20 -20
- package/js/src/arkham.d.ts +22 -22
- package/js/src/arkham.js +22 -22
- package/js/src/ascendex.d.ts +28 -28
- package/js/src/ascendex.js +28 -28
- package/js/src/backpack.d.ts +21 -21
- package/js/src/backpack.js +22 -22
- package/js/src/base/Exchange.d.ts +6 -3
- package/js/src/base/Exchange.js +48 -38
- package/js/src/base/functions/throttle.d.ts +22 -0
- package/js/src/base/functions/throttle.js +54 -5
- package/js/src/bigone.d.ts +19 -19
- package/js/src/bigone.js +19 -19
- package/js/src/binance.d.ts +82 -82
- package/js/src/binance.js +83 -82
- package/js/src/bingx.d.ts +46 -46
- package/js/src/bingx.js +46 -46
- package/js/src/bit2c.d.ts +11 -11
- package/js/src/bit2c.js +11 -11
- package/js/src/bitbank.d.ts +12 -12
- package/js/src/bitbank.js +49 -48
- package/js/src/bitbns.d.ts +13 -13
- package/js/src/bitbns.js +13 -13
- package/js/src/bitfinex.d.ts +33 -33
- package/js/src/bitfinex.js +33 -33
- package/js/src/bitflyer.d.ts +17 -17
- package/js/src/bitflyer.js +17 -17
- package/js/src/bitget.d.ts +57 -57
- package/js/src/bitget.js +58 -57
- package/js/src/bithumb.d.ts +10 -10
- package/js/src/bithumb.js +10 -10
- package/js/src/bitmart.d.ts +42 -42
- package/js/src/bitmart.js +44 -44
- package/js/src/bitmex.d.ts +24 -24
- package/js/src/bitmex.js +24 -24
- package/js/src/bitopro.d.ts +20 -20
- package/js/src/bitopro.js +20 -20
- package/js/src/bitrue.d.ts +18 -18
- package/js/src/bitrue.js +18 -18
- package/js/src/bitso.d.ts +20 -20
- package/js/src/bitso.js +20 -20
- package/js/src/bitstamp.d.ts +21 -21
- package/js/src/bitstamp.js +21 -21
- package/js/src/bittrade.d.ts +20 -20
- package/js/src/bittrade.js +20 -20
- package/js/src/bitvavo.d.ts +19 -19
- package/js/src/bitvavo.js +19 -19
- package/js/src/blockchaincom.d.ts +20 -20
- package/js/src/blockchaincom.js +20 -20
- package/js/src/blofin.d.ts +26 -26
- package/js/src/blofin.js +26 -26
- package/js/src/btcalpha.d.ts +14 -14
- package/js/src/btcalpha.js +35 -34
- package/js/src/btcbox.d.ts +10 -10
- package/js/src/btcbox.js +10 -10
- package/js/src/btcmarkets.d.ts +16 -16
- package/js/src/btcmarkets.js +16 -16
- package/js/src/btcturk.d.ts +10 -10
- package/js/src/btcturk.js +10 -10
- package/js/src/bullish.d.ts +26 -26
- package/js/src/bullish.js +26 -26
- package/js/src/bybit.d.ts +66 -66
- package/js/src/bybit.js +67 -67
- package/js/src/cex.d.ts +18 -18
- package/js/src/cex.js +18 -18
- package/js/src/coinbase.d.ts +40 -40
- package/js/src/coinbase.js +40 -40
- package/js/src/coinbaseexchange.d.ts +22 -22
- package/js/src/coinbaseexchange.js +22 -22
- package/js/src/coinbaseinternational.d.ts +22 -22
- package/js/src/coinbaseinternational.js +22 -22
- package/js/src/coincatch.d.ts +39 -39
- package/js/src/coincatch.js +39 -39
- package/js/src/coincheck.d.ts +11 -11
- package/js/src/coincheck.js +11 -11
- package/js/src/coinex.d.ts +48 -48
- package/js/src/coinex.js +48 -48
- package/js/src/coinmate.d.ts +14 -14
- package/js/src/coinmate.js +14 -14
- package/js/src/coinmetro.d.ts +14 -14
- package/js/src/coinmetro.js +14 -14
- package/js/src/coinone.d.ts +11 -11
- package/js/src/coinone.js +11 -11
- package/js/src/coinsph.d.ts +20 -20
- package/js/src/coinsph.js +20 -20
- package/js/src/coinspot.d.ts +8 -8
- package/js/src/coinspot.js +8 -8
- package/js/src/cryptocom.d.ts +32 -32
- package/js/src/cryptocom.js +32 -32
- package/js/src/cryptomus.d.ts +9 -9
- package/js/src/cryptomus.js +9 -9
- package/js/src/deepcoin.d.ts +33 -33
- package/js/src/deepcoin.js +33 -33
- package/js/src/defx.d.ts +23 -23
- package/js/src/defx.js +23 -23
- package/js/src/delta.d.ts +29 -29
- package/js/src/delta.js +29 -29
- package/js/src/deribit.d.ts +36 -36
- package/js/src/deribit.js +36 -36
- package/js/src/derive.d.ts +19 -19
- package/js/src/derive.js +19 -19
- package/js/src/digifinex.d.ts +36 -36
- package/js/src/digifinex.js +36 -36
- package/js/src/dydx.d.ts +22 -22
- package/js/src/dydx.js +22 -22
- package/js/src/exmo.d.ts +29 -29
- package/js/src/exmo.js +29 -29
- package/js/src/foxbit.d.ts +23 -23
- package/js/src/foxbit.js +23 -23
- package/js/src/gate.d.ts +57 -57
- package/js/src/gate.js +57 -57
- package/js/src/gemini.d.ts +16 -16
- package/js/src/gemini.js +16 -16
- package/js/src/hashkey.d.ts +35 -35
- package/js/src/hashkey.js +35 -35
- package/js/src/hibachi.d.ts +24 -24
- package/js/src/hibachi.js +24 -24
- package/js/src/hitbtc.d.ts +38 -38
- package/js/src/hitbtc.js +38 -38
- package/js/src/hollaex.d.ts +22 -22
- package/js/src/hollaex.js +22 -22
- package/js/src/htx.d.ts +50 -50
- package/js/src/htx.js +50 -50
- package/js/src/hyperliquid.d.ts +46 -36
- package/js/src/hyperliquid.js +76 -42
- package/js/src/independentreserve.d.ts +13 -13
- package/js/src/independentreserve.js +13 -13
- package/js/src/indodax.d.ts +14 -14
- package/js/src/indodax.js +14 -14
- package/js/src/kraken.d.ts +30 -30
- package/js/src/kraken.js +30 -30
- package/js/src/krakenfutures.d.ts +21 -21
- package/js/src/krakenfutures.js +21 -21
- package/js/src/kucoin.d.ts +44 -44
- package/js/src/kucoin.js +44 -44
- package/js/src/kucoinfutures.d.ts +35 -35
- package/js/src/kucoinfutures.js +42 -40
- package/js/src/latoken.d.ts +16 -16
- package/js/src/latoken.js +16 -16
- package/js/src/lbank.d.ts +23 -23
- package/js/src/lbank.js +23 -23
- package/js/src/luno.d.ts +17 -17
- package/js/src/luno.js +17 -17
- package/js/src/mercado.d.ts +11 -11
- package/js/src/mercado.js +11 -11
- package/js/src/mexc.d.ts +47 -47
- package/js/src/mexc.js +47 -47
- package/js/src/modetrade.d.ts +31 -31
- package/js/src/modetrade.js +37 -35
- package/js/src/ndax.d.ts +19 -19
- package/js/src/ndax.js +19 -19
- package/js/src/novadax.d.ts +19 -19
- package/js/src/novadax.js +19 -19
- package/js/src/oceanex.d.ts +16 -16
- package/js/src/oceanex.js +16 -16
- package/js/src/okx.d.ts +74 -74
- package/js/src/okx.js +83 -83
- package/js/src/onetrading.d.ts +34 -33
- package/js/src/onetrading.js +34 -33
- package/js/src/oxfun.d.ts +25 -25
- package/js/src/oxfun.js +25 -25
- package/js/src/p2b.d.ts +11 -11
- package/js/src/p2b.js +11 -11
- package/js/src/paradex.d.ts +54 -54
- package/js/src/paradex.js +54 -54
- package/js/src/paymium.d.ts +20 -21
- package/js/src/paymium.js +20 -21
- package/js/src/phemex.d.ts +30 -30
- package/js/src/phemex.js +35 -35
- package/js/src/poloniex.d.ts +26 -26
- package/js/src/poloniex.js +27 -27
- package/js/src/pro/alpaca.d.ts +5 -5
- package/js/src/pro/alpaca.js +5 -5
- package/js/src/pro/apex.d.ts +8 -8
- package/js/src/pro/apex.js +8 -8
- package/js/src/pro/arkham.d.ts +5 -5
- package/js/src/pro/arkham.js +5 -5
- package/js/src/pro/ascendex.d.ts +5 -5
- package/js/src/pro/ascendex.js +5 -5
- package/js/src/pro/backpack.d.ts +16 -16
- package/js/src/pro/backpack.js +16 -16
- package/js/src/pro/binance.d.ts +35 -35
- package/js/src/pro/binance.js +35 -35
- package/js/src/pro/bingx.d.ts +9 -9
- package/js/src/pro/bingx.js +9 -9
- package/js/src/pro/bitfinex.d.ts +8 -8
- package/js/src/pro/bitfinex.js +8 -8
- package/js/src/pro/bitget.d.ts +12 -12
- package/js/src/pro/bitget.js +12 -12
- package/js/src/pro/bithumb.d.ts +3 -3
- package/js/src/pro/bithumb.js +3 -3
- package/js/src/pro/bitmart.d.ts +120 -9
- package/js/src/pro/bitmart.js +388 -31
- package/js/src/pro/bitmex.d.ts +9 -9
- package/js/src/pro/bitmex.js +9 -9
- package/js/src/pro/bitopro.d.ts +5 -5
- package/js/src/pro/bitopro.js +5 -5
- package/js/src/pro/bitrue.d.ts +2 -2
- package/js/src/pro/bitrue.js +2 -2
- package/js/src/pro/bitstamp.d.ts +3 -3
- package/js/src/pro/bitstamp.js +3 -3
- package/js/src/pro/bittrade.d.ts +3 -3
- package/js/src/pro/bittrade.js +3 -3
- package/js/src/pro/bitvavo.d.ts +19 -19
- package/js/src/pro/bitvavo.js +19 -19
- package/js/src/pro/blockchaincom.d.ts +5 -5
- package/js/src/pro/blockchaincom.js +5 -5
- package/js/src/pro/blofin.d.ts +10 -10
- package/js/src/pro/blofin.js +10 -10
- package/js/src/pro/bullish.d.ts +6 -6
- package/js/src/pro/bullish.js +6 -6
- package/js/src/pro/bybit.d.ts +19 -19
- package/js/src/pro/bybit.js +19 -19
- package/js/src/pro/cex.d.ts +13 -13
- package/js/src/pro/cex.js +13 -13
- package/js/src/pro/coinbase.d.ts +13 -13
- package/js/src/pro/coinbase.js +13 -13
- package/js/src/pro/coinbaseexchange.d.ts +10 -10
- package/js/src/pro/coinbaseexchange.js +10 -10
- package/js/src/pro/coinbaseinternational.d.ts +8 -8
- package/js/src/pro/coinbaseinternational.js +8 -8
- package/js/src/pro/coincatch.d.ts +10 -10
- package/js/src/pro/coincatch.js +10 -10
- package/js/src/pro/coincheck.d.ts +2 -2
- package/js/src/pro/coincheck.js +2 -2
- package/js/src/pro/coinex.d.ts +10 -10
- package/js/src/pro/coinex.js +10 -10
- package/js/src/pro/coinone.d.ts +3 -3
- package/js/src/pro/coinone.js +3 -3
- package/js/src/pro/cryptocom.d.ts +20 -20
- package/js/src/pro/cryptocom.js +20 -20
- package/js/src/pro/deepcoin.d.ts +8 -8
- package/js/src/pro/deepcoin.js +8 -8
- package/js/src/pro/defx.d.ts +15 -15
- package/js/src/pro/defx.js +15 -15
- package/js/src/pro/deribit.d.ts +10 -10
- package/js/src/pro/deribit.js +10 -10
- package/js/src/pro/derive.d.ts +6 -6
- package/js/src/pro/derive.js +6 -6
- package/js/src/pro/dydx.d.ts +3 -3
- package/js/src/pro/dydx.js +3 -3
- package/js/src/pro/exmo.d.ts +7 -7
- package/js/src/pro/exmo.js +7 -7
- package/js/src/pro/gate.d.ts +22 -23
- package/js/src/pro/gate.js +21 -59
- package/js/src/pro/gemini.d.ts +6 -6
- package/js/src/pro/gemini.js +6 -6
- package/js/src/pro/hashkey.d.ts +6 -6
- package/js/src/pro/hashkey.js +6 -6
- package/js/src/pro/hitbtc.d.ts +8 -8
- package/js/src/pro/hitbtc.js +8 -8
- package/js/src/pro/hollaex.d.ts +5 -5
- package/js/src/pro/hollaex.js +5 -5
- package/js/src/pro/htx.d.ts +9 -9
- package/js/src/pro/htx.js +9 -9
- package/js/src/pro/hyperliquid.d.ts +38 -14
- package/js/src/pro/hyperliquid.js +103 -14
- package/js/src/pro/independentreserve.d.ts +2 -2
- package/js/src/pro/independentreserve.js +2 -2
- package/js/src/pro/kraken.d.ts +15 -15
- package/js/src/pro/kraken.js +15 -15
- package/js/src/pro/krakenfutures.d.ts +10 -10
- package/js/src/pro/krakenfutures.js +10 -10
- package/js/src/pro/kucoin.d.ts +15 -15
- package/js/src/pro/kucoin.js +15 -15
- package/js/src/pro/kucoinfutures.d.ts +13 -13
- package/js/src/pro/kucoinfutures.js +13 -13
- package/js/src/pro/lbank.d.ts +5 -5
- package/js/src/pro/lbank.js +5 -5
- package/js/src/pro/luno.d.ts +2 -2
- package/js/src/pro/luno.js +2 -2
- package/js/src/pro/mexc.d.ts +13 -13
- package/js/src/pro/mexc.js +13 -13
- package/js/src/pro/modetrade.d.ts +8 -8
- package/js/src/pro/modetrade.js +8 -8
- package/js/src/pro/ndax.d.ts +3 -3
- package/js/src/pro/ndax.js +3 -3
- package/js/src/pro/okx.d.ts +25 -25
- package/js/src/pro/okx.js +25 -25
- package/js/src/pro/onetrading.d.ts +6 -6
- package/js/src/pro/onetrading.js +6 -6
- package/js/src/pro/oxfun.d.ts +13 -13
- package/js/src/pro/oxfun.js +13 -13
- package/js/src/pro/p2b.d.ts +5 -5
- package/js/src/pro/p2b.js +5 -5
- package/js/src/pro/paradex.d.ts +8 -8
- package/js/src/pro/paradex.js +8 -8
- package/js/src/pro/phemex.d.ts +7 -7
- package/js/src/pro/phemex.js +7 -7
- package/js/src/pro/poloniex.d.ts +8 -8
- package/js/src/pro/poloniex.js +8 -8
- package/js/src/pro/probit.d.ts +6 -6
- package/js/src/pro/probit.js +6 -6
- package/js/src/pro/toobit.d.ts +9 -9
- package/js/src/pro/toobit.js +9 -9
- package/js/src/pro/upbit.d.ts +9 -9
- package/js/src/pro/upbit.js +9 -9
- package/js/src/pro/whitebit.d.ts +7 -7
- package/js/src/pro/whitebit.js +7 -7
- package/js/src/pro/woo.d.ts +13 -13
- package/js/src/pro/woo.js +13 -13
- package/js/src/pro/woofipro.d.ts +20 -20
- package/js/src/pro/woofipro.js +20 -20
- package/js/src/pro/xt.d.ts +2 -2
- package/js/src/pro/xt.js +2 -2
- package/js/src/probit.d.ts +18 -18
- package/js/src/probit.js +18 -18
- package/js/src/static_dependencies/ethers/utils/index.d.ts +2 -1
- package/js/src/static_dependencies/ethers/utils/index.js +8 -1
- package/js/src/timex.d.ts +16 -16
- package/js/src/timex.js +16 -16
- package/js/src/tokocrypto.d.ts +17 -17
- package/js/src/tokocrypto.js +17 -17
- package/js/src/toobit.d.ts +27 -27
- package/js/src/toobit.js +31 -29
- package/js/src/upbit.d.ts +23 -23
- package/js/src/upbit.js +23 -23
- package/js/src/wavesexchange.d.ts +15 -15
- package/js/src/wavesexchange.js +86 -85
- package/js/src/whitebit.d.ts +44 -44
- package/js/src/whitebit.js +44 -44
- package/js/src/woo.d.ts +45 -45
- package/js/src/woo.js +51 -49
- package/js/src/woofipro.d.ts +77 -77
- package/js/src/woofipro.js +104 -82
- package/js/src/xt.d.ts +12 -12
- package/js/src/xt.js +17 -12
- package/js/src/yobit.d.ts +15 -15
- package/js/src/yobit.js +15 -15
- package/js/src/zaif.d.ts +9 -9
- package/js/src/zaif.js +38 -9
- package/js/src/zebpay.d.ts +20 -20
- package/js/src/zebpay.js +35 -20
- package/js/src/zonda.d.ts +14 -14
- package/js/src/zonda.js +14 -14
- package/package.json +1 -1
package/js/src/coinmate.js
CHANGED
|
@@ -462,7 +462,7 @@ export default class coinmate extends Exchange {
|
|
|
462
462
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
463
463
|
* @see https://coinmate.docs.apiary.io/#reference/balance/get-balances/post
|
|
464
464
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
465
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
465
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
466
466
|
*/
|
|
467
467
|
async fetchBalance(params = {}) {
|
|
468
468
|
await this.loadMarkets();
|
|
@@ -477,7 +477,7 @@ export default class coinmate extends Exchange {
|
|
|
477
477
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
478
478
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
479
479
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
480
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
480
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
481
481
|
*/
|
|
482
482
|
async fetchOrderBook(symbol, limit = undefined, params = {}) {
|
|
483
483
|
await this.loadMarkets();
|
|
@@ -498,7 +498,7 @@ export default class coinmate extends Exchange {
|
|
|
498
498
|
* @see https://coinmate.docs.apiary.io/#reference/ticker/get-ticker/get
|
|
499
499
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
500
500
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
501
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
501
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
502
502
|
*/
|
|
503
503
|
async fetchTicker(symbol, params = {}) {
|
|
504
504
|
await this.loadMarkets();
|
|
@@ -534,7 +534,7 @@ export default class coinmate extends Exchange {
|
|
|
534
534
|
* @see https://coinmate.docs.apiary.io/#reference/ticker/get-ticker-all/get
|
|
535
535
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
536
536
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
537
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com
|
|
537
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
538
538
|
*/
|
|
539
539
|
async fetchTickers(symbols = undefined, params = {}) {
|
|
540
540
|
await this.loadMarkets();
|
|
@@ -617,7 +617,7 @@ export default class coinmate extends Exchange {
|
|
|
617
617
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
618
618
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
619
619
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
620
|
-
* @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com
|
|
620
|
+
* @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
621
621
|
*/
|
|
622
622
|
async fetchDepositsWithdrawals(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
623
623
|
await this.loadMarkets();
|
|
@@ -736,7 +736,7 @@ export default class coinmate extends Exchange {
|
|
|
736
736
|
* @param {string} address the address to withdraw to
|
|
737
737
|
* @param {string} tag
|
|
738
738
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
739
|
-
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com
|
|
739
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
740
740
|
*/
|
|
741
741
|
async withdraw(code, amount, address, tag = undefined, params = {}) {
|
|
742
742
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
@@ -789,7 +789,7 @@ export default class coinmate extends Exchange {
|
|
|
789
789
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
790
790
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
791
791
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
792
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
792
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
793
793
|
*/
|
|
794
794
|
async fetchMyTrades(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
795
795
|
await this.loadMarkets();
|
|
@@ -882,7 +882,7 @@ export default class coinmate extends Exchange {
|
|
|
882
882
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
883
883
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
884
884
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
885
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
885
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
886
886
|
*/
|
|
887
887
|
async fetchTrades(symbol, since = undefined, limit = undefined, params = {}) {
|
|
888
888
|
await this.loadMarkets();
|
|
@@ -918,7 +918,7 @@ export default class coinmate extends Exchange {
|
|
|
918
918
|
* @see https://coinmate.docs.apiary.io/#reference/trader-fees/get-trading-fees/post
|
|
919
919
|
* @param {string} symbol unified market symbol
|
|
920
920
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
921
|
-
* @returns {object} a [fee structure]{@link https://docs.ccxt.com
|
|
921
|
+
* @returns {object} a [fee structure]{@link https://docs.ccxt.com/?id=fee-structure}
|
|
922
922
|
*/
|
|
923
923
|
async fetchTradingFee(symbol, params = {}) {
|
|
924
924
|
await this.loadMarkets();
|
|
@@ -957,7 +957,7 @@ export default class coinmate extends Exchange {
|
|
|
957
957
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
958
958
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
959
959
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
960
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
960
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
961
961
|
*/
|
|
962
962
|
async fetchOpenOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
963
963
|
const response = await this.privatePostOpenOrders(this.extend({}, params));
|
|
@@ -973,7 +973,7 @@ export default class coinmate extends Exchange {
|
|
|
973
973
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
974
974
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
975
975
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
976
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
976
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
977
977
|
*/
|
|
978
978
|
async fetchOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
979
979
|
if (symbol === undefined) {
|
|
@@ -1107,7 +1107,7 @@ export default class coinmate extends Exchange {
|
|
|
1107
1107
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1108
1108
|
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1109
1109
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1110
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
1110
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1111
1111
|
*/
|
|
1112
1112
|
async createOrder(symbol, type, side, amount, price = undefined, params = {}) {
|
|
1113
1113
|
await this.loadMarkets();
|
|
@@ -1146,7 +1146,7 @@ export default class coinmate extends Exchange {
|
|
|
1146
1146
|
* @param {string} id order id
|
|
1147
1147
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1148
1148
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1149
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
1149
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1150
1150
|
*/
|
|
1151
1151
|
async fetchOrder(id, symbol = undefined, params = {}) {
|
|
1152
1152
|
await this.loadMarkets();
|
|
@@ -1169,7 +1169,7 @@ export default class coinmate extends Exchange {
|
|
|
1169
1169
|
* @param {string} id order id
|
|
1170
1170
|
* @param {string} symbol not used by coinmate cancelOrder ()
|
|
1171
1171
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1172
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
1172
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1173
1173
|
*/
|
|
1174
1174
|
async cancelOrder(id, symbol = undefined, params = {}) {
|
|
1175
1175
|
// {"error":false,"errorMessage":null,"data":{"success":true,"remainingAmount":0.01}}
|
package/js/src/coinmetro.d.ts
CHANGED
|
@@ -51,7 +51,7 @@ export default class coinmetro extends Exchange {
|
|
|
51
51
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
52
52
|
* @param {int} [limit] the maximum amount of trades to fetch (default 200, max 500)
|
|
53
53
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
54
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
54
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
55
55
|
*/
|
|
56
56
|
fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
57
57
|
/**
|
|
@@ -63,7 +63,7 @@ export default class coinmetro extends Exchange {
|
|
|
63
63
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
64
64
|
* @param {int} [limit] the maximum number of trades structures to retrieve (default 500, max 1000)
|
|
65
65
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
66
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
66
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
67
67
|
*/
|
|
68
68
|
fetchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
69
69
|
parseTrade(trade: Dict, market?: Market): Trade;
|
|
@@ -75,7 +75,7 @@ export default class coinmetro extends Exchange {
|
|
|
75
75
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
76
76
|
* @param {int} [limit] the maximum amount of order book entries to return (default 100, max 200)
|
|
77
77
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
78
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
78
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
79
79
|
*/
|
|
80
80
|
fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
81
81
|
parseBidsAsks(bidasks: any, priceKey?: IndexType, amountKey?: IndexType, countOrIdKey?: IndexType): any[];
|
|
@@ -86,7 +86,7 @@ export default class coinmetro extends Exchange {
|
|
|
86
86
|
* @see https://documenter.getpostman.com/view/3653795/SVfWN6KS#6ecd1cd1-f162-45a3-8b3b-de690332a485
|
|
87
87
|
* @param {string[]} [symbols] unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
88
88
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
89
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com
|
|
89
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
90
90
|
*/
|
|
91
91
|
fetchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
|
|
92
92
|
/**
|
|
@@ -96,7 +96,7 @@ export default class coinmetro extends Exchange {
|
|
|
96
96
|
* @see https://documenter.getpostman.com/view/3653795/SVfWN6KS#6ecd1cd1-f162-45a3-8b3b-de690332a485
|
|
97
97
|
* @param {string[]} [symbols] unified symbols of the markets to fetch the bids and asks for, all markets are returned if not assigned
|
|
98
98
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
99
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com
|
|
99
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
100
100
|
*/
|
|
101
101
|
fetchBidsAsks(symbols?: Strings, params?: {}): Promise<Tickers>;
|
|
102
102
|
parseTicker(ticker: Dict, market?: Market): Ticker;
|
|
@@ -106,7 +106,7 @@ export default class coinmetro extends Exchange {
|
|
|
106
106
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
107
107
|
* @see https://documenter.getpostman.com/view/3653795/SVfWN6KS#741a1dcc-7307-40d0-acca-28d003d1506a
|
|
108
108
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
109
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
109
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
110
110
|
*/
|
|
111
111
|
fetchBalance(params?: {}): Promise<Balances>;
|
|
112
112
|
parseBalance(balances: any): Balances;
|
|
@@ -120,7 +120,7 @@ export default class coinmetro extends Exchange {
|
|
|
120
120
|
* @param {int} [limit] max number of ledger entries to return (default 200, max 500)
|
|
121
121
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
122
122
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
123
|
-
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com
|
|
123
|
+
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com/?id=ledger}
|
|
124
124
|
*/
|
|
125
125
|
fetchLedger(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<LedgerEntry[]>;
|
|
126
126
|
parseLedgerEntry(item: Dict, currency?: Currency): LedgerEntry;
|
|
@@ -146,7 +146,7 @@ export default class coinmetro extends Exchange {
|
|
|
146
146
|
* @param {bool} [params.margin] true for creating a margin order
|
|
147
147
|
* @param {string} [params.fillStyle] fill style of the limit order: "sell" fulfills selling quantity "buy" fulfills buying quantity "base" fulfills base currency quantity "quote" fulfills quote currency quantity
|
|
148
148
|
* @param {string} [params.clientOrderId] client's comment
|
|
149
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
149
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
150
150
|
*/
|
|
151
151
|
createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): Promise<Order>;
|
|
152
152
|
handleCreateOrderSide(sellingCurrency: any, buyingCurrency: any, sellingQty: any, buyingQty: any, request?: {}): {};
|
|
@@ -161,7 +161,7 @@ export default class coinmetro extends Exchange {
|
|
|
161
161
|
* @param {string} symbol not used by coinmetro cancelOrder ()
|
|
162
162
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
163
163
|
* @param {string} [params.margin] true for cancelling a margin order
|
|
164
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
164
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
165
165
|
*/
|
|
166
166
|
cancelOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
|
|
167
167
|
/**
|
|
@@ -174,7 +174,7 @@ export default class coinmetro extends Exchange {
|
|
|
174
174
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
175
175
|
* @param {string} [params.orderID] order id
|
|
176
176
|
* @param {number} [params.fraction] fraction of order to close, between 0 and 1 (defaults to 1)
|
|
177
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
177
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
178
178
|
*/
|
|
179
179
|
closePosition(symbol: string, side?: OrderSide, params?: {}): Promise<Order>;
|
|
180
180
|
/**
|
|
@@ -186,7 +186,7 @@ export default class coinmetro extends Exchange {
|
|
|
186
186
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
187
187
|
* @param {int} [limit] the maximum number of open order structures to retrieve
|
|
188
188
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
189
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
189
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
190
190
|
*/
|
|
191
191
|
fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
192
192
|
/**
|
|
@@ -198,7 +198,7 @@ export default class coinmetro extends Exchange {
|
|
|
198
198
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
199
199
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
200
200
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
201
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
201
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
202
202
|
*/
|
|
203
203
|
fetchCanceledAndClosedOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
204
204
|
/**
|
|
@@ -209,7 +209,7 @@ export default class coinmetro extends Exchange {
|
|
|
209
209
|
* @param {int|string} id order id
|
|
210
210
|
* @param {string} symbol not used by coinmetro fetchOrder ()
|
|
211
211
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
212
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
212
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
213
213
|
*/
|
|
214
214
|
fetchOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
|
|
215
215
|
parseOrder(order: Dict, market?: Market): Order;
|
|
@@ -222,7 +222,7 @@ export default class coinmetro extends Exchange {
|
|
|
222
222
|
* @param {string} code unified currency code of the currency to borrow
|
|
223
223
|
* @param {float} amount the amount to borrow
|
|
224
224
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
225
|
-
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com
|
|
225
|
+
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/?id=margin-loan-structure}
|
|
226
226
|
*/
|
|
227
227
|
borrowCrossMargin(code: string, amount: number, params?: {}): Promise<any>;
|
|
228
228
|
parseMarginLoan(info: any, currency?: Currency): {
|
package/js/src/coinmetro.js
CHANGED
|
@@ -686,7 +686,7 @@ export default class coinmetro extends Exchange {
|
|
|
686
686
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
687
687
|
* @param {int} [limit] the maximum amount of trades to fetch (default 200, max 500)
|
|
688
688
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
689
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
689
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
690
690
|
*/
|
|
691
691
|
async fetchTrades(symbol, since = undefined, limit = undefined, params = {}) {
|
|
692
692
|
await this.loadMarkets();
|
|
@@ -742,7 +742,7 @@ export default class coinmetro extends Exchange {
|
|
|
742
742
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
743
743
|
* @param {int} [limit] the maximum number of trades structures to retrieve (default 500, max 1000)
|
|
744
744
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
745
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
745
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
746
746
|
*/
|
|
747
747
|
async fetchMyTrades(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
748
748
|
await this.loadMarkets();
|
|
@@ -851,7 +851,7 @@ export default class coinmetro extends Exchange {
|
|
|
851
851
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
852
852
|
* @param {int} [limit] the maximum amount of order book entries to return (default 100, max 200)
|
|
853
853
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
854
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
854
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
855
855
|
*/
|
|
856
856
|
async fetchOrderBook(symbol, limit = undefined, params = {}) {
|
|
857
857
|
await this.loadMarkets();
|
|
@@ -916,7 +916,7 @@ export default class coinmetro extends Exchange {
|
|
|
916
916
|
* @see https://documenter.getpostman.com/view/3653795/SVfWN6KS#6ecd1cd1-f162-45a3-8b3b-de690332a485
|
|
917
917
|
* @param {string[]} [symbols] unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
918
918
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
919
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com
|
|
919
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
920
920
|
*/
|
|
921
921
|
async fetchTickers(symbols = undefined, params = {}) {
|
|
922
922
|
await this.loadMarkets();
|
|
@@ -998,7 +998,7 @@ export default class coinmetro extends Exchange {
|
|
|
998
998
|
* @see https://documenter.getpostman.com/view/3653795/SVfWN6KS#6ecd1cd1-f162-45a3-8b3b-de690332a485
|
|
999
999
|
* @param {string[]} [symbols] unified symbols of the markets to fetch the bids and asks for, all markets are returned if not assigned
|
|
1000
1000
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1001
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com
|
|
1001
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
1002
1002
|
*/
|
|
1003
1003
|
async fetchBidsAsks(symbols = undefined, params = {}) {
|
|
1004
1004
|
await this.loadMarkets();
|
|
@@ -1065,7 +1065,7 @@ export default class coinmetro extends Exchange {
|
|
|
1065
1065
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
1066
1066
|
* @see https://documenter.getpostman.com/view/3653795/SVfWN6KS#741a1dcc-7307-40d0-acca-28d003d1506a
|
|
1067
1067
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1068
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
1068
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
1069
1069
|
*/
|
|
1070
1070
|
async fetchBalance(params = {}) {
|
|
1071
1071
|
await this.loadMarkets();
|
|
@@ -1120,7 +1120,7 @@ export default class coinmetro extends Exchange {
|
|
|
1120
1120
|
* @param {int} [limit] max number of ledger entries to return (default 200, max 500)
|
|
1121
1121
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1122
1122
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
1123
|
-
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com
|
|
1123
|
+
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com/?id=ledger}
|
|
1124
1124
|
*/
|
|
1125
1125
|
async fetchLedger(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1126
1126
|
await this.loadMarkets();
|
|
@@ -1328,7 +1328,7 @@ export default class coinmetro extends Exchange {
|
|
|
1328
1328
|
* @param {bool} [params.margin] true for creating a margin order
|
|
1329
1329
|
* @param {string} [params.fillStyle] fill style of the limit order: "sell" fulfills selling quantity "buy" fulfills buying quantity "base" fulfills base currency quantity "quote" fulfills quote currency quantity
|
|
1330
1330
|
* @param {string} [params.clientOrderId] client's comment
|
|
1331
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
1331
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1332
1332
|
*/
|
|
1333
1333
|
async createOrder(symbol, type, side, amount, price = undefined, params = {}) {
|
|
1334
1334
|
await this.loadMarkets();
|
|
@@ -1450,7 +1450,7 @@ export default class coinmetro extends Exchange {
|
|
|
1450
1450
|
* @param {string} symbol not used by coinmetro cancelOrder ()
|
|
1451
1451
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1452
1452
|
* @param {string} [params.margin] true for cancelling a margin order
|
|
1453
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
1453
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1454
1454
|
*/
|
|
1455
1455
|
async cancelOrder(id, symbol = undefined, params = {}) {
|
|
1456
1456
|
await this.loadMarkets();
|
|
@@ -1499,7 +1499,7 @@ export default class coinmetro extends Exchange {
|
|
|
1499
1499
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1500
1500
|
* @param {string} [params.orderID] order id
|
|
1501
1501
|
* @param {number} [params.fraction] fraction of order to close, between 0 and 1 (defaults to 1)
|
|
1502
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
1502
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1503
1503
|
*/
|
|
1504
1504
|
async closePosition(symbol, side = undefined, params = {}) {
|
|
1505
1505
|
await this.loadMarkets();
|
|
@@ -1551,7 +1551,7 @@ export default class coinmetro extends Exchange {
|
|
|
1551
1551
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1552
1552
|
* @param {int} [limit] the maximum number of open order structures to retrieve
|
|
1553
1553
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1554
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
1554
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1555
1555
|
*/
|
|
1556
1556
|
async fetchOpenOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1557
1557
|
await this.loadMarkets();
|
|
@@ -1576,7 +1576,7 @@ export default class coinmetro extends Exchange {
|
|
|
1576
1576
|
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
1577
1577
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
1578
1578
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1579
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
1579
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1580
1580
|
*/
|
|
1581
1581
|
async fetchCanceledAndClosedOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1582
1582
|
await this.loadMarkets();
|
|
@@ -1599,7 +1599,7 @@ export default class coinmetro extends Exchange {
|
|
|
1599
1599
|
* @param {int|string} id order id
|
|
1600
1600
|
* @param {string} symbol not used by coinmetro fetchOrder ()
|
|
1601
1601
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1602
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
1602
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1603
1603
|
*/
|
|
1604
1604
|
async fetchOrder(id, symbol = undefined, params = {}) {
|
|
1605
1605
|
await this.loadMarkets();
|
|
@@ -1941,7 +1941,7 @@ export default class coinmetro extends Exchange {
|
|
|
1941
1941
|
* @param {string} code unified currency code of the currency to borrow
|
|
1942
1942
|
* @param {float} amount the amount to borrow
|
|
1943
1943
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1944
|
-
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com
|
|
1944
|
+
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/?id=margin-loan-structure}
|
|
1945
1945
|
*/
|
|
1946
1946
|
async borrowCrossMargin(code, amount, params = {}) {
|
|
1947
1947
|
await this.loadMarkets();
|
package/js/src/coinone.d.ts
CHANGED
|
@@ -31,7 +31,7 @@ export default class coinone extends Exchange {
|
|
|
31
31
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
32
32
|
* @see https://docs.coinone.co.kr/v1.0/reference/v21
|
|
33
33
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
34
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
34
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
35
35
|
*/
|
|
36
36
|
fetchBalance(params?: {}): Promise<Balances>;
|
|
37
37
|
/**
|
|
@@ -42,7 +42,7 @@ export default class coinone extends Exchange {
|
|
|
42
42
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
43
43
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
44
44
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
45
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
45
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
46
46
|
*/
|
|
47
47
|
fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
48
48
|
/**
|
|
@@ -53,7 +53,7 @@ export default class coinone extends Exchange {
|
|
|
53
53
|
* @see https://docs.coinone.co.kr/v1.0/reference/ticker
|
|
54
54
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
55
55
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
56
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com
|
|
56
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
57
57
|
*/
|
|
58
58
|
fetchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
|
|
59
59
|
/**
|
|
@@ -63,7 +63,7 @@ export default class coinone extends Exchange {
|
|
|
63
63
|
* @see https://docs.coinone.co.kr/v1.0/reference/ticker
|
|
64
64
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
65
65
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
66
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
66
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
67
67
|
*/
|
|
68
68
|
fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
|
69
69
|
parseTicker(ticker: Dict, market?: Market): Ticker;
|
|
@@ -77,7 +77,7 @@ export default class coinone extends Exchange {
|
|
|
77
77
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
78
78
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
79
79
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
80
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
80
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
81
81
|
*/
|
|
82
82
|
fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
83
83
|
/**
|
|
@@ -92,7 +92,7 @@ export default class coinone extends Exchange {
|
|
|
92
92
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
93
93
|
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
94
94
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
95
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
95
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
96
96
|
*/
|
|
97
97
|
createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): Promise<Order>;
|
|
98
98
|
/**
|
|
@@ -102,7 +102,7 @@ export default class coinone extends Exchange {
|
|
|
102
102
|
* @param {string} id order id
|
|
103
103
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
104
104
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
105
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
105
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
106
106
|
*/
|
|
107
107
|
fetchOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
|
|
108
108
|
parseOrderStatus(status: Str): string;
|
|
@@ -115,7 +115,7 @@ export default class coinone extends Exchange {
|
|
|
115
115
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
116
116
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
117
117
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
118
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
118
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
119
119
|
*/
|
|
120
120
|
fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
121
121
|
/**
|
|
@@ -126,7 +126,7 @@ export default class coinone extends Exchange {
|
|
|
126
126
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
127
127
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
128
128
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
129
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
129
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
130
130
|
*/
|
|
131
131
|
fetchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
132
132
|
/**
|
|
@@ -136,7 +136,7 @@ export default class coinone extends Exchange {
|
|
|
136
136
|
* @param {string} id order id
|
|
137
137
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
138
138
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
139
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
139
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
140
140
|
*/
|
|
141
141
|
cancelOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
|
|
142
142
|
/**
|
|
@@ -145,7 +145,7 @@ export default class coinone extends Exchange {
|
|
|
145
145
|
* @description fetch deposit addresses for multiple currencies and chain types
|
|
146
146
|
* @param {string[]|undefined} codes list of unified currency codes, default is undefined
|
|
147
147
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
148
|
-
* @returns {object} a list of [address structures]{@link https://docs.ccxt.com
|
|
148
|
+
* @returns {object} a list of [address structures]{@link https://docs.ccxt.com/?id=address-structure}
|
|
149
149
|
*/
|
|
150
150
|
fetchDepositAddresses(codes?: Strings, params?: {}): Promise<DepositAddress[]>;
|
|
151
151
|
sign(path: any, api?: string, method?: string, params?: {}, headers?: any, body?: any): {
|
package/js/src/coinone.js
CHANGED
|
@@ -496,7 +496,7 @@ export default class coinone extends Exchange {
|
|
|
496
496
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
497
497
|
* @see https://docs.coinone.co.kr/v1.0/reference/v21
|
|
498
498
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
499
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
499
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
500
500
|
*/
|
|
501
501
|
async fetchBalance(params = {}) {
|
|
502
502
|
await this.loadMarkets();
|
|
@@ -511,7 +511,7 @@ export default class coinone extends Exchange {
|
|
|
511
511
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
512
512
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
513
513
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
514
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
514
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
515
515
|
*/
|
|
516
516
|
async fetchOrderBook(symbol, limit = undefined, params = {}) {
|
|
517
517
|
await this.loadMarkets();
|
|
@@ -558,7 +558,7 @@ export default class coinone extends Exchange {
|
|
|
558
558
|
* @see https://docs.coinone.co.kr/v1.0/reference/ticker
|
|
559
559
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
560
560
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
561
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com
|
|
561
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
562
562
|
*/
|
|
563
563
|
async fetchTickers(symbols = undefined, params = {}) {
|
|
564
564
|
await this.loadMarkets();
|
|
@@ -621,7 +621,7 @@ export default class coinone extends Exchange {
|
|
|
621
621
|
* @see https://docs.coinone.co.kr/v1.0/reference/ticker
|
|
622
622
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
623
623
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
624
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
624
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
625
625
|
*/
|
|
626
626
|
async fetchTicker(symbol, params = {}) {
|
|
627
627
|
await this.loadMarkets();
|
|
@@ -798,7 +798,7 @@ export default class coinone extends Exchange {
|
|
|
798
798
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
799
799
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
800
800
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
801
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
801
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
802
802
|
*/
|
|
803
803
|
async fetchTrades(symbol, since = undefined, limit = undefined, params = {}) {
|
|
804
804
|
await this.loadMarkets();
|
|
@@ -844,7 +844,7 @@ export default class coinone extends Exchange {
|
|
|
844
844
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
845
845
|
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
846
846
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
847
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
847
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
848
848
|
*/
|
|
849
849
|
async createOrder(symbol, type, side, amount, price = undefined, params = {}) {
|
|
850
850
|
if (type !== 'limit') {
|
|
@@ -875,7 +875,7 @@ export default class coinone extends Exchange {
|
|
|
875
875
|
* @param {string} id order id
|
|
876
876
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
877
877
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
878
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
878
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
879
879
|
*/
|
|
880
880
|
async fetchOrder(id, symbol = undefined, params = {}) {
|
|
881
881
|
if (symbol === undefined) {
|
|
@@ -1044,7 +1044,7 @@ export default class coinone extends Exchange {
|
|
|
1044
1044
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
1045
1045
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
1046
1046
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1047
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
1047
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1048
1048
|
*/
|
|
1049
1049
|
async fetchOpenOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1050
1050
|
// The returned amount might not be same as the ordered amount. If an order is partially filled, the returned amount means the remaining amount.
|
|
@@ -1086,7 +1086,7 @@ export default class coinone extends Exchange {
|
|
|
1086
1086
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
1087
1087
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
1088
1088
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1089
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
1089
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
1090
1090
|
*/
|
|
1091
1091
|
async fetchMyTrades(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1092
1092
|
if (symbol === undefined) {
|
|
@@ -1128,7 +1128,7 @@ export default class coinone extends Exchange {
|
|
|
1128
1128
|
* @param {string} id order id
|
|
1129
1129
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1130
1130
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1131
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
1131
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1132
1132
|
*/
|
|
1133
1133
|
async cancelOrder(id, symbol = undefined, params = {}) {
|
|
1134
1134
|
if (symbol === undefined) {
|
|
@@ -1165,7 +1165,7 @@ export default class coinone extends Exchange {
|
|
|
1165
1165
|
* @description fetch deposit addresses for multiple currencies and chain types
|
|
1166
1166
|
* @param {string[]|undefined} codes list of unified currency codes, default is undefined
|
|
1167
1167
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1168
|
-
* @returns {object} a list of [address structures]{@link https://docs.ccxt.com
|
|
1168
|
+
* @returns {object} a list of [address structures]{@link https://docs.ccxt.com/?id=address-structure}
|
|
1169
1169
|
*/
|
|
1170
1170
|
async fetchDepositAddresses(codes = undefined, params = {}) {
|
|
1171
1171
|
await this.loadMarkets();
|