ccxt 4.5.28 → 4.5.30
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 +24 -7
- package/dist/ccxt.browser.min.js +7 -7
- package/dist/cjs/ccxt.js +6 -1
- package/dist/cjs/src/abstract/bydfi.js +11 -0
- 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 +47 -47
- 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 +27 -27
- package/dist/cjs/src/bybit.js +69 -67
- package/dist/cjs/src/bydfi.js +2907 -0
- package/dist/cjs/src/cex.js +18 -18
- package/dist/cjs/src/coinbase.js +74 -41
- 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 +25 -25
- package/dist/cjs/src/exmo.js +29 -29
- package/dist/cjs/src/foxbit.js +23 -23
- package/dist/cjs/src/gate.js +60 -59
- 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 +86 -45
- 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 +156 -48
- 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 +13 -11
- 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 +45 -41
- package/dist/cjs/src/pro/bingx.js +14 -12
- 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 +393 -34
- 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 +24 -22
- package/dist/cjs/src/pro/bydfi.js +1077 -0
- 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 +25 -23
- 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 +26 -62
- package/dist/cjs/src/pro/gemini.js +6 -6
- package/dist/cjs/src/pro/hashkey.js +11 -9
- 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 +18 -16
- 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 +13 -11
- 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 +20 -16
- 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 +18 -16
- package/dist/cjs/src/pro/woofipro.js +25 -23
- package/dist/cjs/src/pro/xt.js +7 -5
- 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 +33 -30
- 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 +8 -2
- package/js/ccxt.js +6 -2
- package/js/src/abstract/bydfi.d.ts +52 -0
- package/js/src/abstract/bydfi.js +11 -0
- 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 +47 -47
- 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 +27 -27
- package/js/src/bybit.d.ts +66 -66
- package/js/src/bybit.js +69 -67
- package/js/src/bydfi.d.ts +472 -0
- package/js/src/bydfi.js +2905 -0
- package/js/src/cex.d.ts +18 -18
- package/js/src/cex.js +18 -18
- package/js/src/coinbase.d.ts +51 -40
- package/js/src/coinbase.js +74 -41
- 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 +25 -25
- 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 +60 -59
- 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 +86 -45
- 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 +58 -44
- package/js/src/kucoin.js +156 -48
- 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 +13 -11
- 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 +45 -41
- package/js/src/pro/bingx.d.ts +9 -9
- package/js/src/pro/bingx.js +14 -12
- 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 +393 -34
- 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 +24 -22
- package/js/src/pro/bydfi.d.ts +206 -0
- package/js/src/pro/bydfi.js +1076 -0
- 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 +25 -23
- 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 +26 -62
- 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 +11 -9
- 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 +18 -16
- 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 +13 -11
- 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 +20 -16
- 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 +18 -16
- package/js/src/pro/woofipro.d.ts +20 -20
- package/js/src/pro/woofipro.js +25 -23
- package/js/src/pro/xt.d.ts +2 -2
- package/js/src/pro/xt.js +7 -5
- 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 +33 -30
- 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/binance.d.ts
CHANGED
|
@@ -80,7 +80,7 @@ export default class binance extends Exchange {
|
|
|
80
80
|
* @param {string[]|undefined} [params.symbols] unified market symbols, only used in isolated margin mode
|
|
81
81
|
* @param {boolean} [params.portfolioMargin] set to true if you would like to fetch the balance for a portfolio margin account
|
|
82
82
|
* @param {string} [params.subType] 'linear' or 'inverse'
|
|
83
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
83
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
84
84
|
*/
|
|
85
85
|
fetchBalance(params?: {}): Promise<Balances>;
|
|
86
86
|
/**
|
|
@@ -96,7 +96,7 @@ export default class binance extends Exchange {
|
|
|
96
96
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
97
97
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
98
98
|
* @param {boolean} [params.rpi] *future only* set to true to use the RPI endpoint
|
|
99
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
99
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
100
100
|
*/
|
|
101
101
|
fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
102
102
|
parseTicker(ticker: Dict, market?: Market): Ticker;
|
|
@@ -106,7 +106,7 @@ export default class binance extends Exchange {
|
|
|
106
106
|
* @description the latest known information on the availability of the exchange API
|
|
107
107
|
* @see https://developers.binance.com/docs/wallet/others/system-status
|
|
108
108
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
109
|
-
* @returns {object} a [status structure]{@link https://docs.ccxt.com
|
|
109
|
+
* @returns {object} a [status structure]{@link https://docs.ccxt.com/?id=exchange-status-structure}
|
|
110
110
|
*/
|
|
111
111
|
fetchStatus(params?: {}): Promise<{
|
|
112
112
|
status: string;
|
|
@@ -127,7 +127,7 @@ export default class binance extends Exchange {
|
|
|
127
127
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
128
128
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
129
129
|
* @param {boolean} [params.rolling] (spot only) default false, if true, uses the rolling 24 hour ticker endpoint /api/v3/ticker
|
|
130
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
130
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
131
131
|
*/
|
|
132
132
|
fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
|
133
133
|
/**
|
|
@@ -140,7 +140,7 @@ export default class binance extends Exchange {
|
|
|
140
140
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the bids and asks for, all markets are returned if not assigned
|
|
141
141
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
142
142
|
* @param {string} [params.subType] "linear" or "inverse"
|
|
143
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com
|
|
143
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
144
144
|
*/
|
|
145
145
|
fetchBidsAsks(symbols?: Strings, params?: {}): Promise<Tickers>;
|
|
146
146
|
/**
|
|
@@ -176,7 +176,7 @@ export default class binance extends Exchange {
|
|
|
176
176
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
177
177
|
* @param {string} [params.subType] "linear" or "inverse"
|
|
178
178
|
* @param {string} [params.type] 'spot', 'option', use params["subType"] for swap and future markets
|
|
179
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com
|
|
179
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
180
180
|
*/
|
|
181
181
|
fetchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
|
|
182
182
|
parseTickersForRolling(response: any, symbols: any): any;
|
|
@@ -189,7 +189,7 @@ export default class binance extends Exchange {
|
|
|
189
189
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
190
190
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
191
191
|
* @param {string} [params.subType] "linear" or "inverse"
|
|
192
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com
|
|
192
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
193
193
|
*/
|
|
194
194
|
fetchMarkPrice(symbol: string, params?: {}): Promise<Ticker>;
|
|
195
195
|
/**
|
|
@@ -201,7 +201,7 @@ export default class binance extends Exchange {
|
|
|
201
201
|
* @param {string[]} [symbols] unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
202
202
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
203
203
|
* @param {string} [params.subType] "linear" or "inverse"
|
|
204
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com
|
|
204
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
205
205
|
*/
|
|
206
206
|
fetchMarkPrices(symbols?: Strings, params?: {}): Promise<Tickers>;
|
|
207
207
|
parseOHLCV(ohlcv: any, market?: Market): OHLCV;
|
|
@@ -258,7 +258,7 @@ export default class binance extends Exchange {
|
|
|
258
258
|
*
|
|
259
259
|
* EXCHANGE SPECIFIC PARAMETERS
|
|
260
260
|
* @param {int} [params.fromId] trade id to fetch from, default gets most recent trades, not used when fetchTradesMethod is 'publicGetTrades', 'fapiPublicGetTrades', 'dapiPublicGetTrades', or 'eapiPublicGetTrades'
|
|
261
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
261
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
262
262
|
*/
|
|
263
263
|
fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
264
264
|
/**
|
|
@@ -275,7 +275,7 @@ export default class binance extends Exchange {
|
|
|
275
275
|
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
276
276
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
277
277
|
* @param {string} [params.marginMode] 'cross' or 'isolated', for spot margin trading
|
|
278
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
278
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
279
279
|
*/
|
|
280
280
|
editSpotOrder(id: string, symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): Promise<Order>;
|
|
281
281
|
editSpotOrderRequest(id: string, symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): any;
|
|
@@ -296,7 +296,7 @@ export default class binance extends Exchange {
|
|
|
296
296
|
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
297
297
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
298
298
|
* @param {boolean} [params.portfolioMargin] set to true if you would like to edit an order in a portfolio margin account
|
|
299
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
299
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
300
300
|
*/
|
|
301
301
|
editContractOrder(id: string, symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): Promise<Order>;
|
|
302
302
|
/**
|
|
@@ -313,7 +313,7 @@ export default class binance extends Exchange {
|
|
|
313
313
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
314
314
|
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
315
315
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
316
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
316
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
317
317
|
*/
|
|
318
318
|
editOrder(id: string, symbol: string, type: OrderType, side: OrderSide, amount?: Num, price?: Num, params?: {}): Promise<Order>;
|
|
319
319
|
/**
|
|
@@ -324,7 +324,7 @@ export default class binance extends Exchange {
|
|
|
324
324
|
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Modify-Multiple-Orders
|
|
325
325
|
* @param {Array} orders list of orders to create, each object should contain the parameters required by createOrder, namely symbol, type, side, amount, price and params
|
|
326
326
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
327
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
327
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
328
328
|
*/
|
|
329
329
|
editOrders(orders: OrderRequest[], params?: {}): Promise<Order[]>;
|
|
330
330
|
parseOrderStatus(status: Str): string;
|
|
@@ -339,7 +339,7 @@ export default class binance extends Exchange {
|
|
|
339
339
|
* @see https://developers.binance.com/docs/derivatives/option/trade/Place-Multiple-Orders
|
|
340
340
|
* @param {Array} orders list of orders to create, each object should contain the parameters required by createOrder, namely symbol, type, side, amount, price and params
|
|
341
341
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
342
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
342
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
343
343
|
*/
|
|
344
344
|
createOrders(orders: OrderRequest[], params?: {}): Promise<Order[]>;
|
|
345
345
|
/**
|
|
@@ -380,7 +380,7 @@ export default class binance extends Exchange {
|
|
|
380
380
|
* @param {string} [params.stopLossOrTakeProfit] 'stopLoss' or 'takeProfit', required for spot trailing orders
|
|
381
381
|
* @param {string} [params.positionSide] *swap and portfolio margin only* "BOTH" for one-way mode, "LONG" for buy side of hedged mode, "SHORT" for sell side of hedged mode
|
|
382
382
|
* @param {bool} [params.hedged] *swap and portfolio margin only* true for hedged mode, false for one way mode, default is false
|
|
383
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
383
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
384
384
|
*/
|
|
385
385
|
createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): Promise<Order>;
|
|
386
386
|
createOrderRequest(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): any;
|
|
@@ -393,7 +393,7 @@ export default class binance extends Exchange {
|
|
|
393
393
|
* @param {string} side 'buy' or 'sell'
|
|
394
394
|
* @param {float} cost how much you want to trade in units of the quote currency
|
|
395
395
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
396
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
396
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
397
397
|
*/
|
|
398
398
|
createMarketOrderWithCost(symbol: string, side: OrderSide, cost: number, params?: {}): Promise<Order>;
|
|
399
399
|
/**
|
|
@@ -404,7 +404,7 @@ export default class binance extends Exchange {
|
|
|
404
404
|
* @param {string} symbol unified symbol of the market to create an order in
|
|
405
405
|
* @param {float} cost how much you want to trade in units of the quote currency
|
|
406
406
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
407
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
407
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
408
408
|
*/
|
|
409
409
|
createMarketBuyOrderWithCost(symbol: string, cost: number, params?: {}): Promise<Order>;
|
|
410
410
|
/**
|
|
@@ -415,7 +415,7 @@ export default class binance extends Exchange {
|
|
|
415
415
|
* @param {string} symbol unified symbol of the market to create an order in
|
|
416
416
|
* @param {float} cost how much you want to trade in units of the quote currency
|
|
417
417
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
418
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
418
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
419
419
|
*/
|
|
420
420
|
createMarketSellOrderWithCost(symbol: string, cost: number, params?: {}): Promise<Order>;
|
|
421
421
|
/**
|
|
@@ -436,7 +436,7 @@ export default class binance extends Exchange {
|
|
|
436
436
|
* @param {string} [params.marginMode] 'cross' or 'isolated', for spot margin trading
|
|
437
437
|
* @param {boolean} [params.portfolioMargin] set to true if you would like to fetch an order in a portfolio margin account
|
|
438
438
|
* @param {boolean} [params.trigger] set to true if you would like to fetch a trigger or conditional order
|
|
439
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
439
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
440
440
|
*/
|
|
441
441
|
fetchOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
|
|
442
442
|
/**
|
|
@@ -462,7 +462,7 @@ export default class binance extends Exchange {
|
|
|
462
462
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [available parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
463
463
|
* @param {boolean} [params.portfolioMargin] set to true if you would like to fetch orders in a portfolio margin account
|
|
464
464
|
* @param {boolean} [params.trigger] set to true if you would like to fetch portfolio margin account trigger or conditional orders
|
|
465
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
465
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
466
466
|
*/
|
|
467
467
|
fetchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
468
468
|
/**
|
|
@@ -487,7 +487,7 @@ export default class binance extends Exchange {
|
|
|
487
487
|
* @param {boolean} [params.portfolioMargin] set to true if you would like to fetch open orders in the portfolio margin account
|
|
488
488
|
* @param {boolean} [params.trigger] set to true if you would like to fetch portfolio margin account conditional orders
|
|
489
489
|
* @param {string} [params.subType] "linear" or "inverse"
|
|
490
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
490
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
491
491
|
*/
|
|
492
492
|
fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
493
493
|
/**
|
|
@@ -505,7 +505,7 @@ export default class binance extends Exchange {
|
|
|
505
505
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
506
506
|
* @param {string} [params.trigger] set to true if you would like to fetch portfolio margin account stop or conditional orders
|
|
507
507
|
* @param {boolean} [params.portfolioMargin] set to true if you would like to fetch for a portfolio margin account
|
|
508
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
508
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
509
509
|
*/
|
|
510
510
|
fetchOpenOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
|
|
511
511
|
/**
|
|
@@ -528,7 +528,7 @@ export default class binance extends Exchange {
|
|
|
528
528
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [available parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
529
529
|
* @param {boolean} [params.portfolioMargin] set to true if you would like to fetch orders in a portfolio margin account
|
|
530
530
|
* @param {boolean} [params.trigger] set to true if you would like to fetch portfolio margin account trigger or conditional orders
|
|
531
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
531
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
532
532
|
*/
|
|
533
533
|
fetchClosedOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
534
534
|
/**
|
|
@@ -551,7 +551,7 @@ export default class binance extends Exchange {
|
|
|
551
551
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [available parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
552
552
|
* @param {boolean} [params.portfolioMargin] set to true if you would like to fetch orders in a portfolio margin account
|
|
553
553
|
* @param {boolean} [params.trigger] set to true if you would like to fetch portfolio margin account trigger or conditional orders
|
|
554
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
554
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
555
555
|
*/
|
|
556
556
|
fetchCanceledOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
557
557
|
/**
|
|
@@ -574,7 +574,7 @@ export default class binance extends Exchange {
|
|
|
574
574
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [available parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
575
575
|
* @param {boolean} [params.portfolioMargin] set to true if you would like to fetch orders in a portfolio margin account
|
|
576
576
|
* @param {boolean} [params.trigger] set to true if you would like to fetch portfolio margin account trigger or conditional orders
|
|
577
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
577
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
578
578
|
*/
|
|
579
579
|
fetchCanceledAndClosedOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
580
580
|
/**
|
|
@@ -597,7 +597,7 @@ export default class binance extends Exchange {
|
|
|
597
597
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
598
598
|
* @param {boolean} [params.portfolioMargin] set to true if you would like to cancel an order in a portfolio margin account
|
|
599
599
|
* @param {boolean} [params.trigger] set to true if you would like to cancel a portfolio margin account conditional order
|
|
600
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
600
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
601
601
|
*/
|
|
602
602
|
cancelOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
|
|
603
603
|
/**
|
|
@@ -620,7 +620,7 @@ export default class binance extends Exchange {
|
|
|
620
620
|
* @param {string} [params.marginMode] 'cross' or 'isolated', for spot margin trading
|
|
621
621
|
* @param {boolean} [params.portfolioMargin] set to true if you would like to cancel orders in a portfolio margin account
|
|
622
622
|
* @param {boolean} [params.trigger] set to true if you would like to cancel portfolio margin account conditional orders
|
|
623
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
623
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
624
624
|
*/
|
|
625
625
|
cancelAllOrders(symbol?: Str, params?: {}): Promise<Order[]>;
|
|
626
626
|
/**
|
|
@@ -637,7 +637,7 @@ export default class binance extends Exchange {
|
|
|
637
637
|
* EXCHANGE SPECIFIC PARAMETERS
|
|
638
638
|
* @param {string[]} [params.origClientOrderIdList] max length 10 e.g. ["my_id_1","my_id_2"], encode the double quotes. No space after comma
|
|
639
639
|
* @param {int[]} [params.recvWindow]
|
|
640
|
-
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com
|
|
640
|
+
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
641
641
|
*/
|
|
642
642
|
cancelOrders(ids: string[], symbol?: Str, params?: {}): Promise<Order[]>;
|
|
643
643
|
/**
|
|
@@ -653,7 +653,7 @@ export default class binance extends Exchange {
|
|
|
653
653
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
654
654
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
655
655
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
656
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
656
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
657
657
|
*/
|
|
658
658
|
fetchOrderTrades(id: string, symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
659
659
|
/**
|
|
@@ -674,7 +674,7 @@ export default class binance extends Exchange {
|
|
|
674
674
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [available parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
675
675
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
676
676
|
* @param {boolean} [params.portfolioMargin] set to true if you would like to fetch trades for a portfolio margin account
|
|
677
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
677
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
678
678
|
*/
|
|
679
679
|
fetchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
680
680
|
/**
|
|
@@ -687,7 +687,7 @@ export default class binance extends Exchange {
|
|
|
687
687
|
* @param {int} [limit] the maximum number of dust trades to retrieve
|
|
688
688
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
689
689
|
* @param {string} [params.type] 'spot' or 'margin', default spot
|
|
690
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
690
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
691
691
|
*/
|
|
692
692
|
fetchMyDustTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
693
693
|
parseDustTrade(trade: any, market?: Market): {
|
|
@@ -721,7 +721,7 @@ export default class binance extends Exchange {
|
|
|
721
721
|
* @param {bool} [params.fiat] if true, only fiat deposits will be returned
|
|
722
722
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
723
723
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [available parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
724
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com
|
|
724
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
725
725
|
*/
|
|
726
726
|
fetchDeposits(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
727
727
|
/**
|
|
@@ -737,7 +737,7 @@ export default class binance extends Exchange {
|
|
|
737
737
|
* @param {bool} [params.fiat] if true, only fiat withdrawals will be returned
|
|
738
738
|
* @param {int} [params.until] the latest time in ms to fetch withdrawals for
|
|
739
739
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [available parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
740
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com
|
|
740
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
741
741
|
*/
|
|
742
742
|
fetchWithdrawals(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
743
743
|
parseTransactionStatusByType(status: any, type?: any): any;
|
|
@@ -765,7 +765,7 @@ export default class binance extends Exchange {
|
|
|
765
765
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
766
766
|
* @param {string} [params.type] exchange specific transfer type
|
|
767
767
|
* @param {string} [params.symbol] the unified symbol, required for isolated margin transfers
|
|
768
|
-
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com
|
|
768
|
+
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com/?id=transfer-structure}
|
|
769
769
|
*/
|
|
770
770
|
transfer(code: string, amount: number, fromAccount: string, toAccount: string, params?: {}): Promise<TransferEntry>;
|
|
771
771
|
/**
|
|
@@ -780,7 +780,7 @@ export default class binance extends Exchange {
|
|
|
780
780
|
* @param {int} [params.until] the latest time in ms to fetch transfers for
|
|
781
781
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [available parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
782
782
|
* @param {boolean} [params.internal] default false, when true will fetch pay trade history
|
|
783
|
-
* @returns {object[]} a list of [transfer structures]{@link https://docs.ccxt.com
|
|
783
|
+
* @returns {object[]} a list of [transfer structures]{@link https://docs.ccxt.com/?id=transfer-structure}
|
|
784
784
|
*/
|
|
785
785
|
fetchTransfers(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<TransferEntry[]>;
|
|
786
786
|
/**
|
|
@@ -791,7 +791,7 @@ export default class binance extends Exchange {
|
|
|
791
791
|
* @param {string} code unified currency code
|
|
792
792
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
793
793
|
* @param {string} [params.network] network for fetch deposit address
|
|
794
|
-
* @returns {object} an [address structure]{@link https://docs.ccxt.com
|
|
794
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/?id=address-structure}
|
|
795
795
|
*/
|
|
796
796
|
fetchDepositAddress(code: string, params?: {}): Promise<DepositAddress>;
|
|
797
797
|
parseDepositAddress(response: any, currency?: Currency): DepositAddress;
|
|
@@ -803,7 +803,7 @@ export default class binance extends Exchange {
|
|
|
803
803
|
* @see https://developers.binance.com/docs/wallet/capital/all-coins-info
|
|
804
804
|
* @param {string[]|undefined} codes not used by binance fetchTransactionFees ()
|
|
805
805
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
806
|
-
* @returns {object[]} a list of [fee structures]{@link https://docs.ccxt.com
|
|
806
|
+
* @returns {object[]} a list of [fee structures]{@link https://docs.ccxt.com/?id=fee-structure}
|
|
807
807
|
*/
|
|
808
808
|
fetchTransactionFees(codes?: Strings, params?: {}): Promise<{
|
|
809
809
|
withdraw: Dict;
|
|
@@ -817,7 +817,7 @@ export default class binance extends Exchange {
|
|
|
817
817
|
* @see https://developers.binance.com/docs/wallet/capital/all-coins-info
|
|
818
818
|
* @param {string[]|undefined} codes not used by binance fetchDepositWithdrawFees ()
|
|
819
819
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
820
|
-
* @returns {object[]} a list of [fee structures]{@link https://docs.ccxt.com
|
|
820
|
+
* @returns {object[]} a list of [fee structures]{@link https://docs.ccxt.com/?id=fee-structure}
|
|
821
821
|
*/
|
|
822
822
|
fetchDepositWithdrawFees(codes?: Strings, params?: {}): Promise<any>;
|
|
823
823
|
parseDepositWithdrawFee(fee: any, currency?: Currency): any;
|
|
@@ -831,7 +831,7 @@ export default class binance extends Exchange {
|
|
|
831
831
|
* @param {string} address the address to withdraw to
|
|
832
832
|
* @param {string} tag
|
|
833
833
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
834
|
-
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com
|
|
834
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
835
835
|
*/
|
|
836
836
|
withdraw(code: string, amount: number, address: string, tag?: Str, params?: {}): Promise<Transaction>;
|
|
837
837
|
parseTradingFee(fee: Dict, market?: Market): TradingFeeInterface;
|
|
@@ -848,7 +848,7 @@ export default class binance extends Exchange {
|
|
|
848
848
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
849
849
|
* @param {boolean} [params.portfolioMargin] set to true if you would like to fetch trading fees in a portfolio margin account
|
|
850
850
|
* @param {string} [params.subType] "linear" or "inverse"
|
|
851
|
-
* @returns {object} a [fee structure]{@link https://docs.ccxt.com
|
|
851
|
+
* @returns {object} a [fee structure]{@link https://docs.ccxt.com/?id=fee-structure}
|
|
852
852
|
*/
|
|
853
853
|
fetchTradingFee(symbol: string, params?: {}): Promise<TradingFeeInterface>;
|
|
854
854
|
/**
|
|
@@ -861,7 +861,7 @@ export default class binance extends Exchange {
|
|
|
861
861
|
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Account-Config
|
|
862
862
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
863
863
|
* @param {string} [params.subType] "linear" or "inverse"
|
|
864
|
-
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com
|
|
864
|
+
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/?id=fee-structure} indexed by market symbols
|
|
865
865
|
*/
|
|
866
866
|
fetchTradingFees(params?: {}): Promise<TradingFees>;
|
|
867
867
|
/**
|
|
@@ -875,7 +875,7 @@ export default class binance extends Exchange {
|
|
|
875
875
|
* @param {string} type 1 - transfer from spot account to USDT-Ⓜ futures account, 2 - transfer from USDT-Ⓜ futures account to spot account, 3 - transfer from spot account to COIN-Ⓜ futures account, 4 - transfer from COIN-Ⓜ futures account to spot account
|
|
876
876
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
877
877
|
* @param {float} params.recvWindow
|
|
878
|
-
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com
|
|
878
|
+
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com/?id=futures-transfer-structure}
|
|
879
879
|
*/
|
|
880
880
|
futuresTransfer(code: string, amount: any, type: any, params?: {}): Promise<TransferEntry>;
|
|
881
881
|
/**
|
|
@@ -886,7 +886,7 @@ export default class binance extends Exchange {
|
|
|
886
886
|
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Index-Price-and-Mark-Price
|
|
887
887
|
* @param {string} symbol unified market symbol
|
|
888
888
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
889
|
-
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com
|
|
889
|
+
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/?id=funding-rate-structure}
|
|
890
890
|
*/
|
|
891
891
|
fetchFundingRate(symbol: string, params?: {}): Promise<FundingRate>;
|
|
892
892
|
/**
|
|
@@ -897,12 +897,12 @@ export default class binance extends Exchange {
|
|
|
897
897
|
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Get-Funding-Rate-History-of-Perpetual-Futures
|
|
898
898
|
* @param {string} symbol unified symbol of the market to fetch the funding rate history for
|
|
899
899
|
* @param {int} [since] timestamp in ms of the earliest funding rate to fetch
|
|
900
|
-
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com
|
|
900
|
+
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rate-history-structure} to fetch
|
|
901
901
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
902
902
|
* @param {int} [params.until] timestamp in ms of the latest funding rate
|
|
903
903
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [available parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
904
904
|
* @param {string} [params.subType] "linear" or "inverse"
|
|
905
|
-
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com
|
|
905
|
+
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rate-history-structure}
|
|
906
906
|
*/
|
|
907
907
|
fetchFundingRateHistory(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<FundingRateHistory[]>;
|
|
908
908
|
parseFundingRateHistory(contract: any, market?: Market): {
|
|
@@ -921,7 +921,7 @@ export default class binance extends Exchange {
|
|
|
921
921
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
922
922
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
923
923
|
* @param {string} [params.subType] "linear" or "inverse"
|
|
924
|
-
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com
|
|
924
|
+
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rates-structure}, indexed by market symbols
|
|
925
925
|
*/
|
|
926
926
|
fetchFundingRates(symbols?: Strings, params?: {}): Promise<FundingRates>;
|
|
927
927
|
parseFundingRate(contract: any, market?: Market): FundingRate;
|
|
@@ -965,7 +965,7 @@ export default class binance extends Exchange {
|
|
|
965
965
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
966
966
|
* @param {boolean} [params.portfolioMargin] set to true if you would like to fetch the leverage tiers for a portfolio margin account
|
|
967
967
|
* @param {string} [params.subType] "linear" or "inverse"
|
|
968
|
-
* @returns {object} a dictionary of [leverage tiers structures]{@link https://docs.ccxt.com
|
|
968
|
+
* @returns {object} a dictionary of [leverage tiers structures]{@link https://docs.ccxt.com/?id=leverage-tiers-structure}, indexed by market symbols
|
|
969
969
|
*/
|
|
970
970
|
fetchLeverageTiers(symbols?: Strings, params?: {}): Promise<LeverageTiers>;
|
|
971
971
|
parseMarketLeverageTiers(info: any, market?: Market): LeverageTier[];
|
|
@@ -976,7 +976,7 @@ export default class binance extends Exchange {
|
|
|
976
976
|
* @see https://developers.binance.com/docs/derivatives/option/trade/Option-Position-Information
|
|
977
977
|
* @param {string} symbol unified market symbol of the market the position is held in
|
|
978
978
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
979
|
-
* @returns {object} a [position structure]{@link https://docs.ccxt.com
|
|
979
|
+
* @returns {object} a [position structure]{@link https://docs.ccxt.com/?id=position-structure}
|
|
980
980
|
*/
|
|
981
981
|
fetchPosition(symbol: string, params?: {}): Promise<Position>;
|
|
982
982
|
/**
|
|
@@ -986,7 +986,7 @@ export default class binance extends Exchange {
|
|
|
986
986
|
* @see https://developers.binance.com/docs/derivatives/option/trade/Option-Position-Information
|
|
987
987
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
988
988
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
989
|
-
* @returns {object[]} a list of [position structures]{@link https://docs.ccxt.com
|
|
989
|
+
* @returns {object[]} a list of [position structures]{@link https://docs.ccxt.com/?id=position-structure}
|
|
990
990
|
*/
|
|
991
991
|
fetchOptionPositions(symbols?: Strings, params?: {}): Promise<Position[]>;
|
|
992
992
|
parseOptionPosition(position: Dict, market?: Market): Position;
|
|
@@ -1004,7 +1004,7 @@ export default class binance extends Exchange {
|
|
|
1004
1004
|
* @param {object} [params.params] extra parameters specific to the exchange API endpoint
|
|
1005
1005
|
* @param {string} [params.method] method name to call, "positionRisk", "account" or "option", default is "positionRisk"
|
|
1006
1006
|
* @param {bool} [params.useV2] set to true if you want to use the obsolete endpoint, where some more additional fields were provided
|
|
1007
|
-
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com
|
|
1007
|
+
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/?id=position-structure}
|
|
1008
1008
|
*/
|
|
1009
1009
|
fetchPositions(symbols?: Strings, params?: {}): Promise<Position[]>;
|
|
1010
1010
|
/**
|
|
@@ -1059,7 +1059,7 @@ export default class binance extends Exchange {
|
|
|
1059
1059
|
* @param {int} [params.until] timestamp in ms of the latest funding history entry
|
|
1060
1060
|
* @param {boolean} [params.portfolioMargin] set to true if you would like to fetch the funding history for a portfolio margin account
|
|
1061
1061
|
* @param {string} [params.subType] "linear" or "inverse"
|
|
1062
|
-
* @returns {object} a [funding history structure]{@link https://docs.ccxt.com
|
|
1062
|
+
* @returns {object} a [funding history structure]{@link https://docs.ccxt.com/?id=funding-history-structure}
|
|
1063
1063
|
*/
|
|
1064
1064
|
fetchFundingHistory(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<import("./base/types.js").FundingHistory[]>;
|
|
1065
1065
|
/**
|
|
@@ -1117,7 +1117,7 @@ export default class binance extends Exchange {
|
|
|
1117
1117
|
* @param {string[]} [symbols] a list of unified market symbols
|
|
1118
1118
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1119
1119
|
* @param {string} [params.subType] "linear" or "inverse"
|
|
1120
|
-
* @returns {object} a list of [leverage structures]{@link https://docs.ccxt.com
|
|
1120
|
+
* @returns {object} a list of [leverage structures]{@link https://docs.ccxt.com/?id=leverage-structure}
|
|
1121
1121
|
*/
|
|
1122
1122
|
fetchLeverages(symbols?: Strings, params?: {}): Promise<Leverages>;
|
|
1123
1123
|
parseLeverage(leverage: Dict, market?: Market): Leverage;
|
|
@@ -1130,7 +1130,7 @@ export default class binance extends Exchange {
|
|
|
1130
1130
|
* @param {int} [since] timestamp in ms
|
|
1131
1131
|
* @param {int} [limit] number of records, default 100, max 100
|
|
1132
1132
|
* @param {object} [params] exchange specific params
|
|
1133
|
-
* @returns {object[]} a list of [settlement history objects]{@link https://docs.ccxt.com
|
|
1133
|
+
* @returns {object[]} a list of [settlement history objects]{@link https://docs.ccxt.com/?id=settlement-history-structure}
|
|
1134
1134
|
*/
|
|
1135
1135
|
fetchSettlementHistory(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
1136
1136
|
/**
|
|
@@ -1161,7 +1161,7 @@ export default class binance extends Exchange {
|
|
|
1161
1161
|
* @param {string} id the identification number of the ledger entry
|
|
1162
1162
|
* @param {string} code unified currency code
|
|
1163
1163
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1164
|
-
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com
|
|
1164
|
+
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com/?id=ledger}
|
|
1165
1165
|
*/
|
|
1166
1166
|
fetchLedgerEntry(id: string, code?: Str, params?: {}): Promise<LedgerEntry>;
|
|
1167
1167
|
/**
|
|
@@ -1181,7 +1181,7 @@ export default class binance extends Exchange {
|
|
|
1181
1181
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [available parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
1182
1182
|
* @param {boolean} [params.portfolioMargin] set to true if you would like to fetch the ledger for a portfolio margin account
|
|
1183
1183
|
* @param {string} [params.subType] "linear" or "inverse"
|
|
1184
|
-
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com
|
|
1184
|
+
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com/?id=ledger}
|
|
1185
1185
|
*/
|
|
1186
1186
|
fetchLedger(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<LedgerEntry[]>;
|
|
1187
1187
|
parseLedgerEntry(item: Dict, currency?: Currency): LedgerEntry;
|
|
@@ -1209,7 +1209,7 @@ export default class binance extends Exchange {
|
|
|
1209
1209
|
* @param {string} symbol unified market symbol
|
|
1210
1210
|
* @param {float} amount the amount of margin to remove
|
|
1211
1211
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1212
|
-
* @returns {object} a [margin structure]{@link https://docs.ccxt.com
|
|
1212
|
+
* @returns {object} a [margin structure]{@link https://docs.ccxt.com/?id=reduce-margin-structure}
|
|
1213
1213
|
*/
|
|
1214
1214
|
reduceMargin(symbol: string, amount: number, params?: {}): Promise<MarginModification>;
|
|
1215
1215
|
/**
|
|
@@ -1221,7 +1221,7 @@ export default class binance extends Exchange {
|
|
|
1221
1221
|
* @param {string} symbol unified market symbol
|
|
1222
1222
|
* @param {float} amount amount of margin to add
|
|
1223
1223
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1224
|
-
* @returns {object} a [margin structure]{@link https://docs.ccxt.com
|
|
1224
|
+
* @returns {object} a [margin structure]{@link https://docs.ccxt.com/?id=add-margin-structure}
|
|
1225
1225
|
*/
|
|
1226
1226
|
addMargin(symbol: string, amount: number, params?: {}): Promise<MarginModification>;
|
|
1227
1227
|
/**
|
|
@@ -1231,7 +1231,7 @@ export default class binance extends Exchange {
|
|
|
1231
1231
|
* @see https://developers.binance.com/docs/margin_trading/borrow-and-repay/Query-Margin-Interest-Rate-History
|
|
1232
1232
|
* @param {string} code unified currency code
|
|
1233
1233
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1234
|
-
* @returns {object} a [borrow rate structure]{@link https://docs.ccxt.com
|
|
1234
|
+
* @returns {object} a [borrow rate structure]{@link https://docs.ccxt.com/?id=borrow-rate-structure}
|
|
1235
1235
|
*/
|
|
1236
1236
|
fetchCrossBorrowRate(code: string, params?: {}): Promise<CrossBorrowRate>;
|
|
1237
1237
|
/**
|
|
@@ -1244,7 +1244,7 @@ export default class binance extends Exchange {
|
|
|
1244
1244
|
*
|
|
1245
1245
|
* EXCHANGE SPECIFIC PARAMETERS
|
|
1246
1246
|
* @param {object} [params.vipLevel] user's current specific margin data will be returned if viplevel is omitted
|
|
1247
|
-
* @returns {object} an [isolated borrow rate structure]{@link https://docs.ccxt.com
|
|
1247
|
+
* @returns {object} an [isolated borrow rate structure]{@link https://docs.ccxt.com/?id=isolated-borrow-rate-structure}
|
|
1248
1248
|
*/
|
|
1249
1249
|
fetchIsolatedBorrowRate(symbol: string, params?: {}): Promise<IsolatedBorrowRate>;
|
|
1250
1250
|
/**
|
|
@@ -1257,7 +1257,7 @@ export default class binance extends Exchange {
|
|
|
1257
1257
|
*
|
|
1258
1258
|
* EXCHANGE SPECIFIC PARAMETERS
|
|
1259
1259
|
* @param {object} [params.vipLevel] user's current specific margin data will be returned if viplevel is omitted
|
|
1260
|
-
* @returns {object} a [borrow rate structure]{@link https://docs.ccxt.com
|
|
1260
|
+
* @returns {object} a [borrow rate structure]{@link https://docs.ccxt.com/?id=borrow-rate-structure}
|
|
1261
1261
|
*/
|
|
1262
1262
|
fetchIsolatedBorrowRates(params?: {}): Promise<IsolatedBorrowRates>;
|
|
1263
1263
|
/**
|
|
@@ -1267,9 +1267,9 @@ export default class binance extends Exchange {
|
|
|
1267
1267
|
* @see https://developers.binance.com/docs/margin_trading/borrow-and-repay/Query-Margin-Interest-Rate-History
|
|
1268
1268
|
* @param {string} code unified currency code
|
|
1269
1269
|
* @param {int} [since] timestamp for the earliest borrow rate
|
|
1270
|
-
* @param {int} [limit] the maximum number of [borrow rate structures]{@link https://docs.ccxt.com
|
|
1270
|
+
* @param {int} [limit] the maximum number of [borrow rate structures]{@link https://docs.ccxt.com/?id=borrow-rate-structure} to retrieve
|
|
1271
1271
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1272
|
-
* @returns {object[]} an array of [borrow rate structures]{@link https://docs.ccxt.com
|
|
1272
|
+
* @returns {object[]} an array of [borrow rate structures]{@link https://docs.ccxt.com/?id=borrow-rate-structure}
|
|
1273
1273
|
*/
|
|
1274
1274
|
fetchBorrowRateHistory(code: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
1275
1275
|
parseBorrowRate(info: any, currency?: Currency): {
|
|
@@ -1330,7 +1330,7 @@ export default class binance extends Exchange {
|
|
|
1330
1330
|
* @param {int} [limit] the maximum number of structures to retrieve
|
|
1331
1331
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1332
1332
|
* @param {boolean} [params.portfolioMargin] set to true if you would like to fetch the borrow interest in a portfolio margin account
|
|
1333
|
-
* @returns {object[]} a list of [borrow interest structures]{@link https://docs.ccxt.com
|
|
1333
|
+
* @returns {object[]} a list of [borrow interest structures]{@link https://docs.ccxt.com/?id=borrow-interest-structure}
|
|
1334
1334
|
*/
|
|
1335
1335
|
fetchBorrowInterest(code?: Str, symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<BorrowInterest[]>;
|
|
1336
1336
|
parseBorrowInterest(info: Dict, market?: Market): BorrowInterest;
|
|
@@ -1347,7 +1347,7 @@ export default class binance extends Exchange {
|
|
|
1347
1347
|
* @param {boolean} [params.portfolioMargin] set to true if you would like to repay margin in a portfolio margin account
|
|
1348
1348
|
* @param {string} [params.repayCrossMarginMethod] *portfolio margin only* 'papiPostRepayLoan' (default), 'papiPostMarginRepayDebt' (alternative)
|
|
1349
1349
|
* @param {string} [params.specifyRepayAssets] *portfolio margin papiPostMarginRepayDebt only* specific asset list to repay debt
|
|
1350
|
-
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com
|
|
1350
|
+
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/?id=margin-loan-structure}
|
|
1351
1351
|
*/
|
|
1352
1352
|
repayCrossMargin(code: string, amount: any, params?: {}): Promise<{
|
|
1353
1353
|
id: number;
|
|
@@ -1367,7 +1367,7 @@ export default class binance extends Exchange {
|
|
|
1367
1367
|
* @param {string} code unified currency code of the currency to repay
|
|
1368
1368
|
* @param {float} amount the amount to repay
|
|
1369
1369
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1370
|
-
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com
|
|
1370
|
+
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/?id=margin-loan-structure}
|
|
1371
1371
|
*/
|
|
1372
1372
|
repayIsolatedMargin(symbol: string, code: string, amount: any, params?: {}): Promise<{
|
|
1373
1373
|
id: number;
|
|
@@ -1388,7 +1388,7 @@ export default class binance extends Exchange {
|
|
|
1388
1388
|
* @param {float} amount the amount to borrow
|
|
1389
1389
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1390
1390
|
* @param {boolean} [params.portfolioMargin] set to true if you would like to borrow margin in a portfolio margin account
|
|
1391
|
-
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com
|
|
1391
|
+
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/?id=margin-loan-structure}
|
|
1392
1392
|
*/
|
|
1393
1393
|
borrowCrossMargin(code: string, amount: number, params?: {}): Promise<{
|
|
1394
1394
|
id: number;
|
|
@@ -1408,7 +1408,7 @@ export default class binance extends Exchange {
|
|
|
1408
1408
|
* @param {string} code unified currency code of the currency to borrow
|
|
1409
1409
|
* @param {float} amount the amount to borrow
|
|
1410
1410
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1411
|
-
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com
|
|
1411
|
+
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/?id=margin-loan-structure}
|
|
1412
1412
|
*/
|
|
1413
1413
|
borrowIsolatedMargin(symbol: string, code: string, amount: number, params?: {}): Promise<{
|
|
1414
1414
|
id: number;
|
|
@@ -1441,7 +1441,7 @@ export default class binance extends Exchange {
|
|
|
1441
1441
|
* @param {object} [params] exchange specific parameters
|
|
1442
1442
|
* @param {int} [params.until] the time(ms) of the latest record to retrieve as a unix timestamp
|
|
1443
1443
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
1444
|
-
* @returns {object} an array of [open interest structure]{@link https://docs.ccxt.com
|
|
1444
|
+
* @returns {object} an array of [open interest structure]{@link https://docs.ccxt.com/?id=open-interest-structure}
|
|
1445
1445
|
*/
|
|
1446
1446
|
fetchOpenInterestHistory(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OpenInterest[]>;
|
|
1447
1447
|
/**
|
|
@@ -1453,7 +1453,7 @@ export default class binance extends Exchange {
|
|
|
1453
1453
|
* @see https://developers.binance.com/docs/derivatives/option/market-data/Open-Interest
|
|
1454
1454
|
* @param {string} symbol unified CCXT market symbol
|
|
1455
1455
|
* @param {object} [params] exchange specific parameters
|
|
1456
|
-
* @returns {object} an open interest structure{@link https://docs.ccxt.com
|
|
1456
|
+
* @returns {object} an open interest structure{@link https://docs.ccxt.com/?id=open-interest-structure}
|
|
1457
1457
|
*/
|
|
1458
1458
|
fetchOpenInterest(symbol: string, params?: {}): Promise<OpenInterest>;
|
|
1459
1459
|
parseOpenInterest(interest: any, market?: Market): OpenInterest;
|
|
@@ -1475,7 +1475,7 @@ export default class binance extends Exchange {
|
|
|
1475
1475
|
* @param {boolean} [params.portfolioMargin] set to true if you would like to fetch liquidations in a portfolio margin account
|
|
1476
1476
|
* @param {string} [params.type] "spot"
|
|
1477
1477
|
* @param {string} [params.subType] "linear" or "inverse"
|
|
1478
|
-
* @returns {object} an array of [liquidation structures]{@link https://docs.ccxt.com
|
|
1478
|
+
* @returns {object} an array of [liquidation structures]{@link https://docs.ccxt.com/?id=liquidation-structure}
|
|
1479
1479
|
*/
|
|
1480
1480
|
fetchMyLiquidations(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Liquidation[]>;
|
|
1481
1481
|
parseLiquidation(liquidation: any, market?: Market): Liquidation;
|
|
@@ -1486,7 +1486,7 @@ export default class binance extends Exchange {
|
|
|
1486
1486
|
* @see https://developers.binance.com/docs/derivatives/option/market-data/Option-Mark-Price
|
|
1487
1487
|
* @param {string} symbol unified symbol of the market to fetch greeks for
|
|
1488
1488
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1489
|
-
* @returns {object} a [greeks structure]{@link https://docs.ccxt.com
|
|
1489
|
+
* @returns {object} a [greeks structure]{@link https://docs.ccxt.com/?id=greeks-structure}
|
|
1490
1490
|
*/
|
|
1491
1491
|
fetchGreeks(symbol: string, params?: {}): Promise<Greeks>;
|
|
1492
1492
|
/**
|
|
@@ -1496,7 +1496,7 @@ export default class binance extends Exchange {
|
|
|
1496
1496
|
* @see https://developers.binance.com/docs/derivatives/option/market-data/Option-Mark-Price
|
|
1497
1497
|
* @param {string[]} [symbols] unified symbols of the markets to fetch greeks for, all markets are returned if not assigned
|
|
1498
1498
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1499
|
-
* @returns {object} a [greeks structure]{@link https://docs.ccxt.com
|
|
1499
|
+
* @returns {object} a [greeks structure]{@link https://docs.ccxt.com/?id=greeks-structure}
|
|
1500
1500
|
*/
|
|
1501
1501
|
fetchAllGreeks(symbols?: Strings, params?: {}): Promise<Greeks[]>;
|
|
1502
1502
|
parseGreeks(greeks: Dict, market?: Market): Greeks;
|
|
@@ -1526,7 +1526,7 @@ export default class binance extends Exchange {
|
|
|
1526
1526
|
* @param {string[]} symbols unified market symbols
|
|
1527
1527
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1528
1528
|
* @param {string} [params.subType] "linear" or "inverse"
|
|
1529
|
-
* @returns {object} a list of [margin mode structures]{@link https://docs.ccxt.com
|
|
1529
|
+
* @returns {object} a list of [margin mode structures]{@link https://docs.ccxt.com/?id=margin-mode-structure}
|
|
1530
1530
|
*/
|
|
1531
1531
|
fetchMarginModes(symbols?: Strings, params?: {}): Promise<MarginModes>;
|
|
1532
1532
|
/**
|
|
@@ -1538,7 +1538,7 @@ export default class binance extends Exchange {
|
|
|
1538
1538
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1539
1539
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1540
1540
|
* @param {string} [params.subType] "linear" or "inverse"
|
|
1541
|
-
* @returns {object} a [margin mode structure]{@link https://docs.ccxt.com
|
|
1541
|
+
* @returns {object} a [margin mode structure]{@link https://docs.ccxt.com/?id=margin-mode-structure}
|
|
1542
1542
|
*/
|
|
1543
1543
|
fetchMarginMode(symbol: string, params?: {}): Promise<MarginMode>;
|
|
1544
1544
|
parseMarginMode(marginMode: Dict, market?: any): MarginMode;
|
|
@@ -1549,7 +1549,7 @@ export default class binance extends Exchange {
|
|
|
1549
1549
|
* @see https://developers.binance.com/docs/derivatives/option/market-data/24hr-Ticker-Price-Change-Statistics
|
|
1550
1550
|
* @param {string} symbol unified market symbol
|
|
1551
1551
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1552
|
-
* @returns {object} an [option chain structure]{@link https://docs.ccxt.com
|
|
1552
|
+
* @returns {object} an [option chain structure]{@link https://docs.ccxt.com/?id=option-chain-structure}
|
|
1553
1553
|
*/
|
|
1554
1554
|
fetchOption(symbol: string, params?: {}): Promise<Option>;
|
|
1555
1555
|
parseOption(chain: Dict, currency?: Currency, market?: Market): Option;
|
|
@@ -1565,7 +1565,7 @@ export default class binance extends Exchange {
|
|
|
1565
1565
|
* @param {int} [limit] the maximum amount of changes to fetch
|
|
1566
1566
|
* @param {object} params extra parameters specific to the exchange api endpoint
|
|
1567
1567
|
* @param {int} [params.until] timestamp in ms of the latest change to fetch
|
|
1568
|
-
* @returns {object[]} a list of [margin structures]{@link https://docs.ccxt.com
|
|
1568
|
+
* @returns {object[]} a list of [margin structures]{@link https://docs.ccxt.com/?id=margin-loan-structure}
|
|
1569
1569
|
*/
|
|
1570
1570
|
fetchMarginAdjustmentHistory(symbol?: Str, type?: Str, since?: Num, limit?: Num, params?: {}): Promise<MarginModification[]>;
|
|
1571
1571
|
/**
|
|
@@ -1587,7 +1587,7 @@ export default class binance extends Exchange {
|
|
|
1587
1587
|
* @param {float} amount how much you want to trade in units of the from currency
|
|
1588
1588
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1589
1589
|
* @param {string} [params.walletType] either 'SPOT' or 'FUNDING', the default is 'SPOT'
|
|
1590
|
-
* @returns {object} a [conversion structure]{@link https://docs.ccxt.com
|
|
1590
|
+
* @returns {object} a [conversion structure]{@link https://docs.ccxt.com/?id=conversion-structure}
|
|
1591
1591
|
*/
|
|
1592
1592
|
fetchConvertQuote(fromCode: string, toCode: string, amount?: Num, params?: {}): Promise<Conversion>;
|
|
1593
1593
|
/**
|
|
@@ -1600,7 +1600,7 @@ export default class binance extends Exchange {
|
|
|
1600
1600
|
* @param {string} toCode the currency that you want to buy and convert into
|
|
1601
1601
|
* @param {float} [amount] how much you want to trade in units of the from currency
|
|
1602
1602
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1603
|
-
* @returns {object} a [conversion structure]{@link https://docs.ccxt.com
|
|
1603
|
+
* @returns {object} a [conversion structure]{@link https://docs.ccxt.com/?id=conversion-structure}
|
|
1604
1604
|
*/
|
|
1605
1605
|
createConvertTrade(id: string, fromCode: string, toCode: string, amount?: Num, params?: {}): Promise<Conversion>;
|
|
1606
1606
|
/**
|
|
@@ -1611,7 +1611,7 @@ export default class binance extends Exchange {
|
|
|
1611
1611
|
* @param {string} id the id of the trade that you want to fetch
|
|
1612
1612
|
* @param {string} [code] the unified currency code of the conversion trade
|
|
1613
1613
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1614
|
-
* @returns {object} a [conversion structure]{@link https://docs.ccxt.com
|
|
1614
|
+
* @returns {object} a [conversion structure]{@link https://docs.ccxt.com/?id=conversion-structure}
|
|
1615
1615
|
*/
|
|
1616
1616
|
fetchConvertTrade(id: string, code?: Str, params?: {}): Promise<Conversion>;
|
|
1617
1617
|
/**
|
|
@@ -1624,7 +1624,7 @@ export default class binance extends Exchange {
|
|
|
1624
1624
|
* @param {int} [limit] the maximum number of conversion structures to retrieve
|
|
1625
1625
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1626
1626
|
* @param {int} [params.until] timestamp in ms of the latest conversion to fetch
|
|
1627
|
-
* @returns {object[]} a list of [conversion structures]{@link https://docs.ccxt.com
|
|
1627
|
+
* @returns {object[]} a list of [conversion structures]{@link https://docs.ccxt.com/?id=conversion-structure}
|
|
1628
1628
|
*/
|
|
1629
1629
|
fetchConvertTradeHistory(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Conversion[]>;
|
|
1630
1630
|
parseConversion(conversion: Dict, fromCurrency?: Currency, toCurrency?: Currency): Conversion;
|
|
@@ -1637,7 +1637,7 @@ export default class binance extends Exchange {
|
|
|
1637
1637
|
* @param {string[]} [symbols] list of unified market symbols
|
|
1638
1638
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1639
1639
|
* @param {string} [params.subType] "linear" or "inverse"
|
|
1640
|
-
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com
|
|
1640
|
+
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rate-structure}
|
|
1641
1641
|
*/
|
|
1642
1642
|
fetchFundingIntervals(symbols?: Strings, params?: {}): Promise<FundingRates>;
|
|
1643
1643
|
/**
|
|
@@ -1652,7 +1652,7 @@ export default class binance extends Exchange {
|
|
|
1652
1652
|
* @param {int} [limit] the maximum number of long short ratio structures to retrieve
|
|
1653
1653
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1654
1654
|
* @param {int} [params.until] timestamp in ms of the latest ratio to fetch
|
|
1655
|
-
* @returns {object[]} an array of [long short ratio structures]{@link https://docs.ccxt.com
|
|
1655
|
+
* @returns {object[]} an array of [long short ratio structures]{@link https://docs.ccxt.com/?id=long-short-ratio-structure}
|
|
1656
1656
|
*/
|
|
1657
1657
|
fetchLongShortRatioHistory(symbol?: Str, timeframe?: Str, since?: Int, limit?: Int, params?: {}): Promise<LongShortRatio[]>;
|
|
1658
1658
|
parseLongShortRatio(info: Dict, market?: Market): LongShortRatio;
|