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/dist/cjs/src/binance.js
CHANGED
|
@@ -2633,6 +2633,7 @@ class binance extends binance$1["default"] {
|
|
|
2633
2633
|
'PERCENT_PRICE_BY_SIDE': errors.InvalidOrder, // {"code":-1013,"msg":"Filter failure: PERCENT_PRICE_BY_SIDE"}
|
|
2634
2634
|
},
|
|
2635
2635
|
},
|
|
2636
|
+
'rollingWindowSize': 60000.0,
|
|
2636
2637
|
});
|
|
2637
2638
|
}
|
|
2638
2639
|
isInverse(type, subType = undefined) {
|
|
@@ -3738,7 +3739,7 @@ class binance extends binance$1["default"] {
|
|
|
3738
3739
|
* @param {string[]|undefined} [params.symbols] unified market symbols, only used in isolated margin mode
|
|
3739
3740
|
* @param {boolean} [params.portfolioMargin] set to true if you would like to fetch the balance for a portfolio margin account
|
|
3740
3741
|
* @param {string} [params.subType] 'linear' or 'inverse'
|
|
3741
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
3742
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
3742
3743
|
*/
|
|
3743
3744
|
async fetchBalance(params = {}) {
|
|
3744
3745
|
await this.loadMarkets();
|
|
@@ -4007,7 +4008,7 @@ class binance extends binance$1["default"] {
|
|
|
4007
4008
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
4008
4009
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4009
4010
|
* @param {boolean} [params.rpi] *future only* set to true to use the RPI endpoint
|
|
4010
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
4011
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
4011
4012
|
*/
|
|
4012
4013
|
async fetchOrderBook(symbol, limit = undefined, params = {}) {
|
|
4013
4014
|
await this.loadMarkets();
|
|
@@ -4275,7 +4276,7 @@ class binance extends binance$1["default"] {
|
|
|
4275
4276
|
* @description the latest known information on the availability of the exchange API
|
|
4276
4277
|
* @see https://developers.binance.com/docs/wallet/others/system-status
|
|
4277
4278
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4278
|
-
* @returns {object} a [status structure]{@link https://docs.ccxt.com
|
|
4279
|
+
* @returns {object} a [status structure]{@link https://docs.ccxt.com/?id=exchange-status-structure}
|
|
4279
4280
|
*/
|
|
4280
4281
|
async fetchStatus(params = {}) {
|
|
4281
4282
|
const response = await this.sapiGetSystemStatus(params);
|
|
@@ -4306,7 +4307,7 @@ class binance extends binance$1["default"] {
|
|
|
4306
4307
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
4307
4308
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4308
4309
|
* @param {boolean} [params.rolling] (spot only) default false, if true, uses the rolling 24 hour ticker endpoint /api/v3/ticker
|
|
4309
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
4310
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
4310
4311
|
*/
|
|
4311
4312
|
async fetchTicker(symbol, params = {}) {
|
|
4312
4313
|
await this.loadMarkets();
|
|
@@ -4350,7 +4351,7 @@ class binance extends binance$1["default"] {
|
|
|
4350
4351
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the bids and asks for, all markets are returned if not assigned
|
|
4351
4352
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4352
4353
|
* @param {string} [params.subType] "linear" or "inverse"
|
|
4353
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com
|
|
4354
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
4354
4355
|
*/
|
|
4355
4356
|
async fetchBidsAsks(symbols = undefined, params = {}) {
|
|
4356
4357
|
await this.loadMarkets();
|
|
@@ -4495,7 +4496,7 @@ class binance extends binance$1["default"] {
|
|
|
4495
4496
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4496
4497
|
* @param {string} [params.subType] "linear" or "inverse"
|
|
4497
4498
|
* @param {string} [params.type] 'spot', 'option', use params["subType"] for swap and future markets
|
|
4498
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com
|
|
4499
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
4499
4500
|
*/
|
|
4500
4501
|
async fetchTickers(symbols = undefined, params = {}) {
|
|
4501
4502
|
await this.loadMarkets();
|
|
@@ -4560,7 +4561,7 @@ class binance extends binance$1["default"] {
|
|
|
4560
4561
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
4561
4562
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4562
4563
|
* @param {string} [params.subType] "linear" or "inverse"
|
|
4563
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com
|
|
4564
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
4564
4565
|
*/
|
|
4565
4566
|
async fetchMarkPrice(symbol, params = {}) {
|
|
4566
4567
|
await this.loadMarkets();
|
|
@@ -4596,7 +4597,7 @@ class binance extends binance$1["default"] {
|
|
|
4596
4597
|
* @param {string[]} [symbols] unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
4597
4598
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4598
4599
|
* @param {string} [params.subType] "linear" or "inverse"
|
|
4599
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com
|
|
4600
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
4600
4601
|
*/
|
|
4601
4602
|
async fetchMarkPrices(symbols = undefined, params = {}) {
|
|
4602
4603
|
await this.loadMarkets();
|
|
@@ -5118,7 +5119,7 @@ class binance extends binance$1["default"] {
|
|
|
5118
5119
|
*
|
|
5119
5120
|
* EXCHANGE SPECIFIC PARAMETERS
|
|
5120
5121
|
* @param {int} [params.fromId] trade id to fetch from, default gets most recent trades, not used when fetchTradesMethod is 'publicGetTrades', 'fapiPublicGetTrades', 'dapiPublicGetTrades', or 'eapiPublicGetTrades'
|
|
5121
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
5122
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
5122
5123
|
*/
|
|
5123
5124
|
async fetchTrades(symbol, since = undefined, limit = undefined, params = {}) {
|
|
5124
5125
|
await this.loadMarkets();
|
|
@@ -5251,7 +5252,7 @@ class binance extends binance$1["default"] {
|
|
|
5251
5252
|
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
5252
5253
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5253
5254
|
* @param {string} [params.marginMode] 'cross' or 'isolated', for spot margin trading
|
|
5254
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
5255
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
5255
5256
|
*/
|
|
5256
5257
|
async editSpotOrder(id, symbol, type, side, amount, price = undefined, params = {}) {
|
|
5257
5258
|
await this.loadMarkets();
|
|
@@ -5477,7 +5478,7 @@ class binance extends binance$1["default"] {
|
|
|
5477
5478
|
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
5478
5479
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5479
5480
|
* @param {boolean} [params.portfolioMargin] set to true if you would like to edit an order in a portfolio margin account
|
|
5480
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
5481
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
5481
5482
|
*/
|
|
5482
5483
|
async editContractOrder(id, symbol, type, side, amount, price = undefined, params = {}) {
|
|
5483
5484
|
await this.loadMarkets();
|
|
@@ -5550,7 +5551,7 @@ class binance extends binance$1["default"] {
|
|
|
5550
5551
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
5551
5552
|
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
5552
5553
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5553
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
5554
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
5554
5555
|
*/
|
|
5555
5556
|
async editOrder(id, symbol, type, side, amount = undefined, price = undefined, params = {}) {
|
|
5556
5557
|
await this.loadMarkets();
|
|
@@ -5573,7 +5574,7 @@ class binance extends binance$1["default"] {
|
|
|
5573
5574
|
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Modify-Multiple-Orders
|
|
5574
5575
|
* @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
|
|
5575
5576
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5576
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
5577
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
5577
5578
|
*/
|
|
5578
5579
|
async editOrders(orders, params = {}) {
|
|
5579
5580
|
await this.loadMarkets();
|
|
@@ -6289,7 +6290,7 @@ class binance extends binance$1["default"] {
|
|
|
6289
6290
|
* @see https://developers.binance.com/docs/derivatives/option/trade/Place-Multiple-Orders
|
|
6290
6291
|
* @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
|
|
6291
6292
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6292
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
6293
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
6293
6294
|
*/
|
|
6294
6295
|
async createOrders(orders, params = {}) {
|
|
6295
6296
|
await this.loadMarkets();
|
|
@@ -6400,7 +6401,7 @@ class binance extends binance$1["default"] {
|
|
|
6400
6401
|
* @param {string} [params.stopLossOrTakeProfit] 'stopLoss' or 'takeProfit', required for spot trailing orders
|
|
6401
6402
|
* @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
|
|
6402
6403
|
* @param {bool} [params.hedged] *swap and portfolio margin only* true for hedged mode, false for one way mode, default is false
|
|
6403
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
6404
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
6404
6405
|
*/
|
|
6405
6406
|
async createOrder(symbol, type, side, amount, price = undefined, params = {}) {
|
|
6406
6407
|
await this.loadMarkets();
|
|
@@ -6851,7 +6852,7 @@ class binance extends binance$1["default"] {
|
|
|
6851
6852
|
* @param {string} side 'buy' or 'sell'
|
|
6852
6853
|
* @param {float} cost how much you want to trade in units of the quote currency
|
|
6853
6854
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6854
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
6855
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
6855
6856
|
*/
|
|
6856
6857
|
async createMarketOrderWithCost(symbol, side, cost, params = {}) {
|
|
6857
6858
|
await this.loadMarkets();
|
|
@@ -6872,7 +6873,7 @@ class binance extends binance$1["default"] {
|
|
|
6872
6873
|
* @param {string} symbol unified symbol of the market to create an order in
|
|
6873
6874
|
* @param {float} cost how much you want to trade in units of the quote currency
|
|
6874
6875
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6875
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
6876
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
6876
6877
|
*/
|
|
6877
6878
|
async createMarketBuyOrderWithCost(symbol, cost, params = {}) {
|
|
6878
6879
|
await this.loadMarkets();
|
|
@@ -6893,7 +6894,7 @@ class binance extends binance$1["default"] {
|
|
|
6893
6894
|
* @param {string} symbol unified symbol of the market to create an order in
|
|
6894
6895
|
* @param {float} cost how much you want to trade in units of the quote currency
|
|
6895
6896
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6896
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
6897
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
6897
6898
|
*/
|
|
6898
6899
|
async createMarketSellOrderWithCost(symbol, cost, params = {}) {
|
|
6899
6900
|
await this.loadMarkets();
|
|
@@ -6922,7 +6923,7 @@ class binance extends binance$1["default"] {
|
|
|
6922
6923
|
* @param {string} [params.marginMode] 'cross' or 'isolated', for spot margin trading
|
|
6923
6924
|
* @param {boolean} [params.portfolioMargin] set to true if you would like to fetch an order in a portfolio margin account
|
|
6924
6925
|
* @param {boolean} [params.trigger] set to true if you would like to fetch a trigger or conditional order
|
|
6925
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
6926
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
6926
6927
|
*/
|
|
6927
6928
|
async fetchOrder(id, symbol = undefined, params = {}) {
|
|
6928
6929
|
if (symbol === undefined) {
|
|
@@ -7023,7 +7024,7 @@ class binance extends binance$1["default"] {
|
|
|
7023
7024
|
* @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)
|
|
7024
7025
|
* @param {boolean} [params.portfolioMargin] set to true if you would like to fetch orders in a portfolio margin account
|
|
7025
7026
|
* @param {boolean} [params.trigger] set to true if you would like to fetch portfolio margin account trigger or conditional orders
|
|
7026
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
7027
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
7027
7028
|
*/
|
|
7028
7029
|
async fetchOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
7029
7030
|
if (symbol === undefined) {
|
|
@@ -7307,7 +7308,7 @@ class binance extends binance$1["default"] {
|
|
|
7307
7308
|
* @param {boolean} [params.portfolioMargin] set to true if you would like to fetch open orders in the portfolio margin account
|
|
7308
7309
|
* @param {boolean} [params.trigger] set to true if you would like to fetch portfolio margin account conditional orders
|
|
7309
7310
|
* @param {string} [params.subType] "linear" or "inverse"
|
|
7310
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
7311
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
7311
7312
|
*/
|
|
7312
7313
|
async fetchOpenOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
7313
7314
|
await this.loadMarkets();
|
|
@@ -7411,7 +7412,7 @@ class binance extends binance$1["default"] {
|
|
|
7411
7412
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
7412
7413
|
* @param {string} [params.trigger] set to true if you would like to fetch portfolio margin account stop or conditional orders
|
|
7413
7414
|
* @param {boolean} [params.portfolioMargin] set to true if you would like to fetch for a portfolio margin account
|
|
7414
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
7415
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
7415
7416
|
*/
|
|
7416
7417
|
async fetchOpenOrder(id, symbol = undefined, params = {}) {
|
|
7417
7418
|
if (symbol === undefined) {
|
|
@@ -7634,7 +7635,7 @@ class binance extends binance$1["default"] {
|
|
|
7634
7635
|
* @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)
|
|
7635
7636
|
* @param {boolean} [params.portfolioMargin] set to true if you would like to fetch orders in a portfolio margin account
|
|
7636
7637
|
* @param {boolean} [params.trigger] set to true if you would like to fetch portfolio margin account trigger or conditional orders
|
|
7637
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
7638
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
7638
7639
|
*/
|
|
7639
7640
|
async fetchClosedOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
7640
7641
|
if (symbol === undefined) {
|
|
@@ -7664,7 +7665,7 @@ class binance extends binance$1["default"] {
|
|
|
7664
7665
|
* @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)
|
|
7665
7666
|
* @param {boolean} [params.portfolioMargin] set to true if you would like to fetch orders in a portfolio margin account
|
|
7666
7667
|
* @param {boolean} [params.trigger] set to true if you would like to fetch portfolio margin account trigger or conditional orders
|
|
7667
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
7668
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
7668
7669
|
*/
|
|
7669
7670
|
async fetchCanceledOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
7670
7671
|
if (symbol === undefined) {
|
|
@@ -7694,7 +7695,7 @@ class binance extends binance$1["default"] {
|
|
|
7694
7695
|
* @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)
|
|
7695
7696
|
* @param {boolean} [params.portfolioMargin] set to true if you would like to fetch orders in a portfolio margin account
|
|
7696
7697
|
* @param {boolean} [params.trigger] set to true if you would like to fetch portfolio margin account trigger or conditional orders
|
|
7697
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
7698
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
7698
7699
|
*/
|
|
7699
7700
|
async fetchCanceledAndClosedOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
7700
7701
|
if (symbol === undefined) {
|
|
@@ -7727,7 +7728,7 @@ class binance extends binance$1["default"] {
|
|
|
7727
7728
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
7728
7729
|
* @param {boolean} [params.portfolioMargin] set to true if you would like to cancel an order in a portfolio margin account
|
|
7729
7730
|
* @param {boolean} [params.trigger] set to true if you would like to cancel a portfolio margin account conditional order
|
|
7730
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
7731
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
7731
7732
|
*/
|
|
7732
7733
|
async cancelOrder(id, symbol = undefined, params = {}) {
|
|
7733
7734
|
if (symbol === undefined) {
|
|
@@ -7845,7 +7846,7 @@ class binance extends binance$1["default"] {
|
|
|
7845
7846
|
* @param {string} [params.marginMode] 'cross' or 'isolated', for spot margin trading
|
|
7846
7847
|
* @param {boolean} [params.portfolioMargin] set to true if you would like to cancel orders in a portfolio margin account
|
|
7847
7848
|
* @param {boolean} [params.trigger] set to true if you would like to cancel portfolio margin account conditional orders
|
|
7848
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
7849
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
7849
7850
|
*/
|
|
7850
7851
|
async cancelAllOrders(symbol = undefined, params = {}) {
|
|
7851
7852
|
if (symbol === undefined) {
|
|
@@ -8028,7 +8029,7 @@ class binance extends binance$1["default"] {
|
|
|
8028
8029
|
* EXCHANGE SPECIFIC PARAMETERS
|
|
8029
8030
|
* @param {string[]} [params.origClientOrderIdList] max length 10 e.g. ["my_id_1","my_id_2"], encode the double quotes. No space after comma
|
|
8030
8031
|
* @param {int[]} [params.recvWindow]
|
|
8031
|
-
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com
|
|
8032
|
+
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
8032
8033
|
*/
|
|
8033
8034
|
async cancelOrders(ids, symbol = undefined, params = {}) {
|
|
8034
8035
|
if (symbol === undefined) {
|
|
@@ -8108,7 +8109,7 @@ class binance extends binance$1["default"] {
|
|
|
8108
8109
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
8109
8110
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
8110
8111
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
8111
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
8112
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
8112
8113
|
*/
|
|
8113
8114
|
async fetchOrderTrades(id, symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
8114
8115
|
if (symbol === undefined) {
|
|
@@ -8144,7 +8145,7 @@ class binance extends binance$1["default"] {
|
|
|
8144
8145
|
* @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)
|
|
8145
8146
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
8146
8147
|
* @param {boolean} [params.portfolioMargin] set to true if you would like to fetch trades for a portfolio margin account
|
|
8147
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
8148
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
8148
8149
|
*/
|
|
8149
8150
|
async fetchMyTrades(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
8150
8151
|
await this.loadMarkets();
|
|
@@ -8371,7 +8372,7 @@ class binance extends binance$1["default"] {
|
|
|
8371
8372
|
* @param {int} [limit] the maximum number of dust trades to retrieve
|
|
8372
8373
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
8373
8374
|
* @param {string} [params.type] 'spot' or 'margin', default spot
|
|
8374
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
8375
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
8375
8376
|
*/
|
|
8376
8377
|
async fetchMyDustTrades(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
8377
8378
|
//
|
|
@@ -8519,7 +8520,7 @@ class binance extends binance$1["default"] {
|
|
|
8519
8520
|
* @param {bool} [params.fiat] if true, only fiat deposits will be returned
|
|
8520
8521
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
8521
8522
|
* @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)
|
|
8522
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com
|
|
8523
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
8523
8524
|
*/
|
|
8524
8525
|
async fetchDeposits(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
8525
8526
|
await this.loadMarkets();
|
|
@@ -8632,7 +8633,7 @@ class binance extends binance$1["default"] {
|
|
|
8632
8633
|
* @param {bool} [params.fiat] if true, only fiat withdrawals will be returned
|
|
8633
8634
|
* @param {int} [params.until] the latest time in ms to fetch withdrawals for
|
|
8634
8635
|
* @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)
|
|
8635
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com
|
|
8636
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
8636
8637
|
*/
|
|
8637
8638
|
async fetchWithdrawals(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
8638
8639
|
await this.loadMarkets();
|
|
@@ -9068,7 +9069,7 @@ class binance extends binance$1["default"] {
|
|
|
9068
9069
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
9069
9070
|
* @param {string} [params.type] exchange specific transfer type
|
|
9070
9071
|
* @param {string} [params.symbol] the unified symbol, required for isolated margin transfers
|
|
9071
|
-
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com
|
|
9072
|
+
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com/?id=transfer-structure}
|
|
9072
9073
|
*/
|
|
9073
9074
|
async transfer(code, amount, fromAccount, toAccount, params = {}) {
|
|
9074
9075
|
await this.loadMarkets();
|
|
@@ -9174,7 +9175,7 @@ class binance extends binance$1["default"] {
|
|
|
9174
9175
|
* @param {int} [params.until] the latest time in ms to fetch transfers for
|
|
9175
9176
|
* @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)
|
|
9176
9177
|
* @param {boolean} [params.internal] default false, when true will fetch pay trade history
|
|
9177
|
-
* @returns {object[]} a list of [transfer structures]{@link https://docs.ccxt.com
|
|
9178
|
+
* @returns {object[]} a list of [transfer structures]{@link https://docs.ccxt.com/?id=transfer-structure}
|
|
9178
9179
|
*/
|
|
9179
9180
|
async fetchTransfers(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
9180
9181
|
await this.loadMarkets();
|
|
@@ -9315,7 +9316,7 @@ class binance extends binance$1["default"] {
|
|
|
9315
9316
|
* @param {string} code unified currency code
|
|
9316
9317
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
9317
9318
|
* @param {string} [params.network] network for fetch deposit address
|
|
9318
|
-
* @returns {object} an [address structure]{@link https://docs.ccxt.com
|
|
9319
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/?id=address-structure}
|
|
9319
9320
|
*/
|
|
9320
9321
|
async fetchDepositAddress(code, params = {}) {
|
|
9321
9322
|
await this.loadMarkets();
|
|
@@ -9385,7 +9386,7 @@ class binance extends binance$1["default"] {
|
|
|
9385
9386
|
* @see https://developers.binance.com/docs/wallet/capital/all-coins-info
|
|
9386
9387
|
* @param {string[]|undefined} codes not used by binance fetchTransactionFees ()
|
|
9387
9388
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
9388
|
-
* @returns {object[]} a list of [fee structures]{@link https://docs.ccxt.com
|
|
9389
|
+
* @returns {object[]} a list of [fee structures]{@link https://docs.ccxt.com/?id=fee-structure}
|
|
9389
9390
|
*/
|
|
9390
9391
|
async fetchTransactionFees(codes = undefined, params = {}) {
|
|
9391
9392
|
await this.loadMarkets();
|
|
@@ -9499,7 +9500,7 @@ class binance extends binance$1["default"] {
|
|
|
9499
9500
|
* @see https://developers.binance.com/docs/wallet/capital/all-coins-info
|
|
9500
9501
|
* @param {string[]|undefined} codes not used by binance fetchDepositWithdrawFees ()
|
|
9501
9502
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
9502
|
-
* @returns {object[]} a list of [fee structures]{@link https://docs.ccxt.com
|
|
9503
|
+
* @returns {object[]} a list of [fee structures]{@link https://docs.ccxt.com/?id=fee-structure}
|
|
9503
9504
|
*/
|
|
9504
9505
|
async fetchDepositWithdrawFees(codes = undefined, params = {}) {
|
|
9505
9506
|
await this.loadMarkets();
|
|
@@ -9626,7 +9627,7 @@ class binance extends binance$1["default"] {
|
|
|
9626
9627
|
* @param {string} address the address to withdraw to
|
|
9627
9628
|
* @param {string} tag
|
|
9628
9629
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
9629
|
-
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com
|
|
9630
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
9630
9631
|
*/
|
|
9631
9632
|
async withdraw(code, amount, address, tag = undefined, params = {}) {
|
|
9632
9633
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
@@ -9696,7 +9697,7 @@ class binance extends binance$1["default"] {
|
|
|
9696
9697
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
9697
9698
|
* @param {boolean} [params.portfolioMargin] set to true if you would like to fetch trading fees in a portfolio margin account
|
|
9698
9699
|
* @param {string} [params.subType] "linear" or "inverse"
|
|
9699
|
-
* @returns {object} a [fee structure]{@link https://docs.ccxt.com
|
|
9700
|
+
* @returns {object} a [fee structure]{@link https://docs.ccxt.com/?id=fee-structure}
|
|
9700
9701
|
*/
|
|
9701
9702
|
async fetchTradingFee(symbol, params = {}) {
|
|
9702
9703
|
await this.loadMarkets();
|
|
@@ -9766,7 +9767,7 @@ class binance extends binance$1["default"] {
|
|
|
9766
9767
|
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Account-Config
|
|
9767
9768
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
9768
9769
|
* @param {string} [params.subType] "linear" or "inverse"
|
|
9769
|
-
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com
|
|
9770
|
+
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/?id=fee-structure} indexed by market symbols
|
|
9770
9771
|
*/
|
|
9771
9772
|
async fetchTradingFees(params = {}) {
|
|
9772
9773
|
await this.loadMarkets();
|
|
@@ -9947,7 +9948,7 @@ class binance extends binance$1["default"] {
|
|
|
9947
9948
|
* @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
|
|
9948
9949
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
9949
9950
|
* @param {float} params.recvWindow
|
|
9950
|
-
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com
|
|
9951
|
+
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com/?id=futures-transfer-structure}
|
|
9951
9952
|
*/
|
|
9952
9953
|
async futuresTransfer(code, amount, type, params = {}) {
|
|
9953
9954
|
if ((type < 1) || (type > 4)) {
|
|
@@ -9976,7 +9977,7 @@ class binance extends binance$1["default"] {
|
|
|
9976
9977
|
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Index-Price-and-Mark-Price
|
|
9977
9978
|
* @param {string} symbol unified market symbol
|
|
9978
9979
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
9979
|
-
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com
|
|
9980
|
+
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/?id=funding-rate-structure}
|
|
9980
9981
|
*/
|
|
9981
9982
|
async fetchFundingRate(symbol, params = {}) {
|
|
9982
9983
|
await this.loadMarkets();
|
|
@@ -10019,12 +10020,12 @@ class binance extends binance$1["default"] {
|
|
|
10019
10020
|
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Get-Funding-Rate-History-of-Perpetual-Futures
|
|
10020
10021
|
* @param {string} symbol unified symbol of the market to fetch the funding rate history for
|
|
10021
10022
|
* @param {int} [since] timestamp in ms of the earliest funding rate to fetch
|
|
10022
|
-
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com
|
|
10023
|
+
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rate-history-structure} to fetch
|
|
10023
10024
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
10024
10025
|
* @param {int} [params.until] timestamp in ms of the latest funding rate
|
|
10025
10026
|
* @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)
|
|
10026
10027
|
* @param {string} [params.subType] "linear" or "inverse"
|
|
10027
|
-
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com
|
|
10028
|
+
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rate-history-structure}
|
|
10028
10029
|
*/
|
|
10029
10030
|
async fetchFundingRateHistory(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
10030
10031
|
await this.loadMarkets();
|
|
@@ -10102,7 +10103,7 @@ class binance extends binance$1["default"] {
|
|
|
10102
10103
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
10103
10104
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
10104
10105
|
* @param {string} [params.subType] "linear" or "inverse"
|
|
10105
|
-
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com
|
|
10106
|
+
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rates-structure}, indexed by market symbols
|
|
10106
10107
|
*/
|
|
10107
10108
|
async fetchFundingRates(symbols = undefined, params = {}) {
|
|
10108
10109
|
await this.loadMarkets();
|
|
@@ -10783,7 +10784,7 @@ class binance extends binance$1["default"] {
|
|
|
10783
10784
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
10784
10785
|
* @param {boolean} [params.portfolioMargin] set to true if you would like to fetch the leverage tiers for a portfolio margin account
|
|
10785
10786
|
* @param {string} [params.subType] "linear" or "inverse"
|
|
10786
|
-
* @returns {object} a dictionary of [leverage tiers structures]{@link https://docs.ccxt.com
|
|
10787
|
+
* @returns {object} a dictionary of [leverage tiers structures]{@link https://docs.ccxt.com/?id=leverage-tiers-structure}, indexed by market symbols
|
|
10787
10788
|
*/
|
|
10788
10789
|
async fetchLeverageTiers(symbols = undefined, params = {}) {
|
|
10789
10790
|
await this.loadMarkets();
|
|
@@ -10902,7 +10903,7 @@ class binance extends binance$1["default"] {
|
|
|
10902
10903
|
* @see https://developers.binance.com/docs/derivatives/option/trade/Option-Position-Information
|
|
10903
10904
|
* @param {string} symbol unified market symbol of the market the position is held in
|
|
10904
10905
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
10905
|
-
* @returns {object} a [position structure]{@link https://docs.ccxt.com
|
|
10906
|
+
* @returns {object} a [position structure]{@link https://docs.ccxt.com/?id=position-structure}
|
|
10906
10907
|
*/
|
|
10907
10908
|
async fetchPosition(symbol, params = {}) {
|
|
10908
10909
|
await this.loadMarkets();
|
|
@@ -10946,7 +10947,7 @@ class binance extends binance$1["default"] {
|
|
|
10946
10947
|
* @see https://developers.binance.com/docs/derivatives/option/trade/Option-Position-Information
|
|
10947
10948
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
10948
10949
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
10949
|
-
* @returns {object[]} a list of [position structures]{@link https://docs.ccxt.com
|
|
10950
|
+
* @returns {object[]} a list of [position structures]{@link https://docs.ccxt.com/?id=position-structure}
|
|
10950
10951
|
*/
|
|
10951
10952
|
async fetchOptionPositions(symbols = undefined, params = {}) {
|
|
10952
10953
|
await this.loadMarkets();
|
|
@@ -11069,7 +11070,7 @@ class binance extends binance$1["default"] {
|
|
|
11069
11070
|
* @param {object} [params.params] extra parameters specific to the exchange API endpoint
|
|
11070
11071
|
* @param {string} [params.method] method name to call, "positionRisk", "account" or "option", default is "positionRisk"
|
|
11071
11072
|
* @param {bool} [params.useV2] set to true if you want to use the obsolete endpoint, where some more additional fields were provided
|
|
11072
|
-
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com
|
|
11073
|
+
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/?id=position-structure}
|
|
11073
11074
|
*/
|
|
11074
11075
|
async fetchPositions(symbols = undefined, params = {}) {
|
|
11075
11076
|
let defaultMethod = undefined;
|
|
@@ -11423,7 +11424,7 @@ class binance extends binance$1["default"] {
|
|
|
11423
11424
|
* @param {int} [params.until] timestamp in ms of the latest funding history entry
|
|
11424
11425
|
* @param {boolean} [params.portfolioMargin] set to true if you would like to fetch the funding history for a portfolio margin account
|
|
11425
11426
|
* @param {string} [params.subType] "linear" or "inverse"
|
|
11426
|
-
* @returns {object} a [funding history structure]{@link https://docs.ccxt.com
|
|
11427
|
+
* @returns {object} a [funding history structure]{@link https://docs.ccxt.com/?id=funding-history-structure}
|
|
11427
11428
|
*/
|
|
11428
11429
|
async fetchFundingHistory(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
11429
11430
|
await this.loadMarkets();
|
|
@@ -11671,7 +11672,7 @@ class binance extends binance$1["default"] {
|
|
|
11671
11672
|
* @param {string[]} [symbols] a list of unified market symbols
|
|
11672
11673
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
11673
11674
|
* @param {string} [params.subType] "linear" or "inverse"
|
|
11674
|
-
* @returns {object} a list of [leverage structures]{@link https://docs.ccxt.com
|
|
11675
|
+
* @returns {object} a list of [leverage structures]{@link https://docs.ccxt.com/?id=leverage-structure}
|
|
11675
11676
|
*/
|
|
11676
11677
|
async fetchLeverages(symbols = undefined, params = {}) {
|
|
11677
11678
|
await this.loadMarkets();
|
|
@@ -11750,7 +11751,7 @@ class binance extends binance$1["default"] {
|
|
|
11750
11751
|
* @param {int} [since] timestamp in ms
|
|
11751
11752
|
* @param {int} [limit] number of records, default 100, max 100
|
|
11752
11753
|
* @param {object} [params] exchange specific params
|
|
11753
|
-
* @returns {object[]} a list of [settlement history objects]{@link https://docs.ccxt.com
|
|
11754
|
+
* @returns {object[]} a list of [settlement history objects]{@link https://docs.ccxt.com/?id=settlement-history-structure}
|
|
11754
11755
|
*/
|
|
11755
11756
|
async fetchSettlementHistory(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
11756
11757
|
await this.loadMarkets();
|
|
@@ -11932,7 +11933,7 @@ class binance extends binance$1["default"] {
|
|
|
11932
11933
|
* @param {string} id the identification number of the ledger entry
|
|
11933
11934
|
* @param {string} code unified currency code
|
|
11934
11935
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
11935
|
-
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com
|
|
11936
|
+
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com/?id=ledger}
|
|
11936
11937
|
*/
|
|
11937
11938
|
async fetchLedgerEntry(id, code = undefined, params = {}) {
|
|
11938
11939
|
await this.loadMarkets();
|
|
@@ -11979,7 +11980,7 @@ class binance extends binance$1["default"] {
|
|
|
11979
11980
|
* @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)
|
|
11980
11981
|
* @param {boolean} [params.portfolioMargin] set to true if you would like to fetch the ledger for a portfolio margin account
|
|
11981
11982
|
* @param {string} [params.subType] "linear" or "inverse"
|
|
11982
|
-
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com
|
|
11983
|
+
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com/?id=ledger}
|
|
11983
11984
|
*/
|
|
11984
11985
|
async fetchLedger(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
11985
11986
|
await this.loadMarkets();
|
|
@@ -12567,7 +12568,7 @@ class binance extends binance$1["default"] {
|
|
|
12567
12568
|
* @param {string} symbol unified market symbol
|
|
12568
12569
|
* @param {float} amount the amount of margin to remove
|
|
12569
12570
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
12570
|
-
* @returns {object} a [margin structure]{@link https://docs.ccxt.com
|
|
12571
|
+
* @returns {object} a [margin structure]{@link https://docs.ccxt.com/?id=reduce-margin-structure}
|
|
12571
12572
|
*/
|
|
12572
12573
|
async reduceMargin(symbol, amount, params = {}) {
|
|
12573
12574
|
return await this.modifyMarginHelper(symbol, amount, 2, params);
|
|
@@ -12581,7 +12582,7 @@ class binance extends binance$1["default"] {
|
|
|
12581
12582
|
* @param {string} symbol unified market symbol
|
|
12582
12583
|
* @param {float} amount amount of margin to add
|
|
12583
12584
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
12584
|
-
* @returns {object} a [margin structure]{@link https://docs.ccxt.com
|
|
12585
|
+
* @returns {object} a [margin structure]{@link https://docs.ccxt.com/?id=add-margin-structure}
|
|
12585
12586
|
*/
|
|
12586
12587
|
async addMargin(symbol, amount, params = {}) {
|
|
12587
12588
|
return await this.modifyMarginHelper(symbol, amount, 1, params);
|
|
@@ -12593,7 +12594,7 @@ class binance extends binance$1["default"] {
|
|
|
12593
12594
|
* @see https://developers.binance.com/docs/margin_trading/borrow-and-repay/Query-Margin-Interest-Rate-History
|
|
12594
12595
|
* @param {string} code unified currency code
|
|
12595
12596
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
12596
|
-
* @returns {object} a [borrow rate structure]{@link https://docs.ccxt.com
|
|
12597
|
+
* @returns {object} a [borrow rate structure]{@link https://docs.ccxt.com/?id=borrow-rate-structure}
|
|
12597
12598
|
*/
|
|
12598
12599
|
async fetchCrossBorrowRate(code, params = {}) {
|
|
12599
12600
|
await this.loadMarkets();
|
|
@@ -12626,7 +12627,7 @@ class binance extends binance$1["default"] {
|
|
|
12626
12627
|
*
|
|
12627
12628
|
* EXCHANGE SPECIFIC PARAMETERS
|
|
12628
12629
|
* @param {object} [params.vipLevel] user's current specific margin data will be returned if viplevel is omitted
|
|
12629
|
-
* @returns {object} an [isolated borrow rate structure]{@link https://docs.ccxt.com
|
|
12630
|
+
* @returns {object} an [isolated borrow rate structure]{@link https://docs.ccxt.com/?id=isolated-borrow-rate-structure}
|
|
12630
12631
|
*/
|
|
12631
12632
|
async fetchIsolatedBorrowRate(symbol, params = {}) {
|
|
12632
12633
|
const request = {
|
|
@@ -12645,7 +12646,7 @@ class binance extends binance$1["default"] {
|
|
|
12645
12646
|
*
|
|
12646
12647
|
* EXCHANGE SPECIFIC PARAMETERS
|
|
12647
12648
|
* @param {object} [params.vipLevel] user's current specific margin data will be returned if viplevel is omitted
|
|
12648
|
-
* @returns {object} a [borrow rate structure]{@link https://docs.ccxt.com
|
|
12649
|
+
* @returns {object} a [borrow rate structure]{@link https://docs.ccxt.com/?id=borrow-rate-structure}
|
|
12649
12650
|
*/
|
|
12650
12651
|
async fetchIsolatedBorrowRates(params = {}) {
|
|
12651
12652
|
await this.loadMarkets();
|
|
@@ -12687,9 +12688,9 @@ class binance extends binance$1["default"] {
|
|
|
12687
12688
|
* @see https://developers.binance.com/docs/margin_trading/borrow-and-repay/Query-Margin-Interest-Rate-History
|
|
12688
12689
|
* @param {string} code unified currency code
|
|
12689
12690
|
* @param {int} [since] timestamp for the earliest borrow rate
|
|
12690
|
-
* @param {int} [limit] the maximum number of [borrow rate structures]{@link https://docs.ccxt.com
|
|
12691
|
+
* @param {int} [limit] the maximum number of [borrow rate structures]{@link https://docs.ccxt.com/?id=borrow-rate-structure} to retrieve
|
|
12691
12692
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
12692
|
-
* @returns {object[]} an array of [borrow rate structures]{@link https://docs.ccxt.com
|
|
12693
|
+
* @returns {object[]} an array of [borrow rate structures]{@link https://docs.ccxt.com/?id=borrow-rate-structure}
|
|
12693
12694
|
*/
|
|
12694
12695
|
async fetchBorrowRateHistory(code, since = undefined, limit = undefined, params = {}) {
|
|
12695
12696
|
await this.loadMarkets();
|
|
@@ -12882,7 +12883,7 @@ class binance extends binance$1["default"] {
|
|
|
12882
12883
|
* @param {int} [limit] the maximum number of structures to retrieve
|
|
12883
12884
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
12884
12885
|
* @param {boolean} [params.portfolioMargin] set to true if you would like to fetch the borrow interest in a portfolio margin account
|
|
12885
|
-
* @returns {object[]} a list of [borrow interest structures]{@link https://docs.ccxt.com
|
|
12886
|
+
* @returns {object[]} a list of [borrow interest structures]{@link https://docs.ccxt.com/?id=borrow-interest-structure}
|
|
12886
12887
|
*/
|
|
12887
12888
|
async fetchBorrowInterest(code = undefined, symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
12888
12889
|
await this.loadMarkets();
|
|
@@ -12981,7 +12982,7 @@ class binance extends binance$1["default"] {
|
|
|
12981
12982
|
* @param {boolean} [params.portfolioMargin] set to true if you would like to repay margin in a portfolio margin account
|
|
12982
12983
|
* @param {string} [params.repayCrossMarginMethod] *portfolio margin only* 'papiPostRepayLoan' (default), 'papiPostMarginRepayDebt' (alternative)
|
|
12983
12984
|
* @param {string} [params.specifyRepayAssets] *portfolio margin papiPostMarginRepayDebt only* specific asset list to repay debt
|
|
12984
|
-
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com
|
|
12985
|
+
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/?id=margin-loan-structure}
|
|
12985
12986
|
*/
|
|
12986
12987
|
async repayCrossMargin(code, amount, params = {}) {
|
|
12987
12988
|
await this.loadMarkets();
|
|
@@ -13040,7 +13041,7 @@ class binance extends binance$1["default"] {
|
|
|
13040
13041
|
* @param {string} code unified currency code of the currency to repay
|
|
13041
13042
|
* @param {float} amount the amount to repay
|
|
13042
13043
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
13043
|
-
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com
|
|
13044
|
+
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/?id=margin-loan-structure}
|
|
13044
13045
|
*/
|
|
13045
13046
|
async repayIsolatedMargin(symbol, code, amount, params = {}) {
|
|
13046
13047
|
await this.loadMarkets();
|
|
@@ -13072,7 +13073,7 @@ class binance extends binance$1["default"] {
|
|
|
13072
13073
|
* @param {float} amount the amount to borrow
|
|
13073
13074
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
13074
13075
|
* @param {boolean} [params.portfolioMargin] set to true if you would like to borrow margin in a portfolio margin account
|
|
13075
|
-
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com
|
|
13076
|
+
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/?id=margin-loan-structure}
|
|
13076
13077
|
*/
|
|
13077
13078
|
async borrowCrossMargin(code, amount, params = {}) {
|
|
13078
13079
|
await this.loadMarkets();
|
|
@@ -13109,7 +13110,7 @@ class binance extends binance$1["default"] {
|
|
|
13109
13110
|
* @param {string} code unified currency code of the currency to borrow
|
|
13110
13111
|
* @param {float} amount the amount to borrow
|
|
13111
13112
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
13112
|
-
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com
|
|
13113
|
+
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/?id=margin-loan-structure}
|
|
13113
13114
|
*/
|
|
13114
13115
|
async borrowIsolatedMargin(symbol, code, amount, params = {}) {
|
|
13115
13116
|
await this.loadMarkets();
|
|
@@ -13173,7 +13174,7 @@ class binance extends binance$1["default"] {
|
|
|
13173
13174
|
* @param {object} [params] exchange specific parameters
|
|
13174
13175
|
* @param {int} [params.until] the time(ms) of the latest record to retrieve as a unix timestamp
|
|
13175
13176
|
* @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)
|
|
13176
|
-
* @returns {object} an array of [open interest structure]{@link https://docs.ccxt.com
|
|
13177
|
+
* @returns {object} an array of [open interest structure]{@link https://docs.ccxt.com/?id=open-interest-structure}
|
|
13177
13178
|
*/
|
|
13178
13179
|
async fetchOpenInterestHistory(symbol, timeframe = '5m', since = undefined, limit = undefined, params = {}) {
|
|
13179
13180
|
if (timeframe === '1m') {
|
|
@@ -13242,7 +13243,7 @@ class binance extends binance$1["default"] {
|
|
|
13242
13243
|
* @see https://developers.binance.com/docs/derivatives/option/market-data/Open-Interest
|
|
13243
13244
|
* @param {string} symbol unified CCXT market symbol
|
|
13244
13245
|
* @param {object} [params] exchange specific parameters
|
|
13245
|
-
* @returns {object} an open interest structure{@link https://docs.ccxt.com
|
|
13246
|
+
* @returns {object} an open interest structure{@link https://docs.ccxt.com/?id=open-interest-structure}
|
|
13246
13247
|
*/
|
|
13247
13248
|
async fetchOpenInterest(symbol, params = {}) {
|
|
13248
13249
|
await this.loadMarkets();
|
|
@@ -13349,7 +13350,7 @@ class binance extends binance$1["default"] {
|
|
|
13349
13350
|
* @param {boolean} [params.portfolioMargin] set to true if you would like to fetch liquidations in a portfolio margin account
|
|
13350
13351
|
* @param {string} [params.type] "spot"
|
|
13351
13352
|
* @param {string} [params.subType] "linear" or "inverse"
|
|
13352
|
-
* @returns {object} an array of [liquidation structures]{@link https://docs.ccxt.com
|
|
13353
|
+
* @returns {object} an array of [liquidation structures]{@link https://docs.ccxt.com/?id=liquidation-structure}
|
|
13353
13354
|
*/
|
|
13354
13355
|
async fetchMyLiquidations(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
13355
13356
|
await this.loadMarkets();
|
|
@@ -13589,7 +13590,7 @@ class binance extends binance$1["default"] {
|
|
|
13589
13590
|
* @see https://developers.binance.com/docs/derivatives/option/market-data/Option-Mark-Price
|
|
13590
13591
|
* @param {string} symbol unified symbol of the market to fetch greeks for
|
|
13591
13592
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
13592
|
-
* @returns {object} a [greeks structure]{@link https://docs.ccxt.com
|
|
13593
|
+
* @returns {object} a [greeks structure]{@link https://docs.ccxt.com/?id=greeks-structure}
|
|
13593
13594
|
*/
|
|
13594
13595
|
async fetchGreeks(symbol, params = {}) {
|
|
13595
13596
|
await this.loadMarkets();
|
|
@@ -13624,7 +13625,7 @@ class binance extends binance$1["default"] {
|
|
|
13624
13625
|
* @see https://developers.binance.com/docs/derivatives/option/market-data/Option-Mark-Price
|
|
13625
13626
|
* @param {string[]} [symbols] unified symbols of the markets to fetch greeks for, all markets are returned if not assigned
|
|
13626
13627
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
13627
|
-
* @returns {object} a [greeks structure]{@link https://docs.ccxt.com
|
|
13628
|
+
* @returns {object} a [greeks structure]{@link https://docs.ccxt.com/?id=greeks-structure}
|
|
13628
13629
|
*/
|
|
13629
13630
|
async fetchAllGreeks(symbols = undefined, params = {}) {
|
|
13630
13631
|
await this.loadMarkets();
|
|
@@ -13760,7 +13761,7 @@ class binance extends binance$1["default"] {
|
|
|
13760
13761
|
* @param {string[]} symbols unified market symbols
|
|
13761
13762
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
13762
13763
|
* @param {string} [params.subType] "linear" or "inverse"
|
|
13763
|
-
* @returns {object} a list of [margin mode structures]{@link https://docs.ccxt.com
|
|
13764
|
+
* @returns {object} a list of [margin mode structures]{@link https://docs.ccxt.com/?id=margin-mode-structure}
|
|
13764
13765
|
*/
|
|
13765
13766
|
async fetchMarginModes(symbols = undefined, params = {}) {
|
|
13766
13767
|
await this.loadMarkets();
|
|
@@ -13855,7 +13856,7 @@ class binance extends binance$1["default"] {
|
|
|
13855
13856
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
13856
13857
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
13857
13858
|
* @param {string} [params.subType] "linear" or "inverse"
|
|
13858
|
-
* @returns {object} a [margin mode structure]{@link https://docs.ccxt.com
|
|
13859
|
+
* @returns {object} a [margin mode structure]{@link https://docs.ccxt.com/?id=margin-mode-structure}
|
|
13859
13860
|
*/
|
|
13860
13861
|
async fetchMarginMode(symbol, params = {}) {
|
|
13861
13862
|
await this.loadMarkets();
|
|
@@ -13914,7 +13915,7 @@ class binance extends binance$1["default"] {
|
|
|
13914
13915
|
* @see https://developers.binance.com/docs/derivatives/option/market-data/24hr-Ticker-Price-Change-Statistics
|
|
13915
13916
|
* @param {string} symbol unified market symbol
|
|
13916
13917
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
13917
|
-
* @returns {object} an [option chain structure]{@link https://docs.ccxt.com
|
|
13918
|
+
* @returns {object} an [option chain structure]{@link https://docs.ccxt.com/?id=option-chain-structure}
|
|
13918
13919
|
*/
|
|
13919
13920
|
async fetchOption(symbol, params = {}) {
|
|
13920
13921
|
await this.loadMarkets();
|
|
@@ -14007,7 +14008,7 @@ class binance extends binance$1["default"] {
|
|
|
14007
14008
|
* @param {int} [limit] the maximum amount of changes to fetch
|
|
14008
14009
|
* @param {object} params extra parameters specific to the exchange api endpoint
|
|
14009
14010
|
* @param {int} [params.until] timestamp in ms of the latest change to fetch
|
|
14010
|
-
* @returns {object[]} a list of [margin structures]{@link https://docs.ccxt.com
|
|
14011
|
+
* @returns {object[]} a list of [margin structures]{@link https://docs.ccxt.com/?id=margin-loan-structure}
|
|
14011
14012
|
*/
|
|
14012
14013
|
async fetchMarginAdjustmentHistory(symbol = undefined, type = undefined, since = undefined, limit = undefined, params = {}) {
|
|
14013
14014
|
await this.loadMarkets();
|
|
@@ -14125,7 +14126,7 @@ class binance extends binance$1["default"] {
|
|
|
14125
14126
|
* @param {float} amount how much you want to trade in units of the from currency
|
|
14126
14127
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
14127
14128
|
* @param {string} [params.walletType] either 'SPOT' or 'FUNDING', the default is 'SPOT'
|
|
14128
|
-
* @returns {object} a [conversion structure]{@link https://docs.ccxt.com
|
|
14129
|
+
* @returns {object} a [conversion structure]{@link https://docs.ccxt.com/?id=conversion-structure}
|
|
14129
14130
|
*/
|
|
14130
14131
|
async fetchConvertQuote(fromCode, toCode, amount = undefined, params = {}) {
|
|
14131
14132
|
if (amount === undefined) {
|
|
@@ -14162,7 +14163,7 @@ class binance extends binance$1["default"] {
|
|
|
14162
14163
|
* @param {string} toCode the currency that you want to buy and convert into
|
|
14163
14164
|
* @param {float} [amount] how much you want to trade in units of the from currency
|
|
14164
14165
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
14165
|
-
* @returns {object} a [conversion structure]{@link https://docs.ccxt.com
|
|
14166
|
+
* @returns {object} a [conversion structure]{@link https://docs.ccxt.com/?id=conversion-structure}
|
|
14166
14167
|
*/
|
|
14167
14168
|
async createConvertTrade(id, fromCode, toCode, amount = undefined, params = {}) {
|
|
14168
14169
|
await this.loadMarkets();
|
|
@@ -14207,7 +14208,7 @@ class binance extends binance$1["default"] {
|
|
|
14207
14208
|
* @param {string} id the id of the trade that you want to fetch
|
|
14208
14209
|
* @param {string} [code] the unified currency code of the conversion trade
|
|
14209
14210
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
14210
|
-
* @returns {object} a [conversion structure]{@link https://docs.ccxt.com
|
|
14211
|
+
* @returns {object} a [conversion structure]{@link https://docs.ccxt.com/?id=conversion-structure}
|
|
14211
14212
|
*/
|
|
14212
14213
|
async fetchConvertTrade(id, code = undefined, params = {}) {
|
|
14213
14214
|
await this.loadMarkets();
|
|
@@ -14287,7 +14288,7 @@ class binance extends binance$1["default"] {
|
|
|
14287
14288
|
* @param {int} [limit] the maximum number of conversion structures to retrieve
|
|
14288
14289
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
14289
14290
|
* @param {int} [params.until] timestamp in ms of the latest conversion to fetch
|
|
14290
|
-
* @returns {object[]} a list of [conversion structures]{@link https://docs.ccxt.com
|
|
14291
|
+
* @returns {object[]} a list of [conversion structures]{@link https://docs.ccxt.com/?id=conversion-structure}
|
|
14291
14292
|
*/
|
|
14292
14293
|
async fetchConvertTradeHistory(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
14293
14294
|
await this.loadMarkets();
|
|
@@ -14476,7 +14477,7 @@ class binance extends binance$1["default"] {
|
|
|
14476
14477
|
* @param {string[]} [symbols] list of unified market symbols
|
|
14477
14478
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
14478
14479
|
* @param {string} [params.subType] "linear" or "inverse"
|
|
14479
|
-
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com
|
|
14480
|
+
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rate-structure}
|
|
14480
14481
|
*/
|
|
14481
14482
|
async fetchFundingIntervals(symbols = undefined, params = {}) {
|
|
14482
14483
|
await this.loadMarkets();
|
|
@@ -14523,7 +14524,7 @@ class binance extends binance$1["default"] {
|
|
|
14523
14524
|
* @param {int} [limit] the maximum number of long short ratio structures to retrieve
|
|
14524
14525
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
14525
14526
|
* @param {int} [params.until] timestamp in ms of the latest ratio to fetch
|
|
14526
|
-
* @returns {object[]} an array of [long short ratio structures]{@link https://docs.ccxt.com
|
|
14527
|
+
* @returns {object[]} an array of [long short ratio structures]{@link https://docs.ccxt.com/?id=long-short-ratio-structure}
|
|
14527
14528
|
*/
|
|
14528
14529
|
async fetchLongShortRatioHistory(symbol = undefined, timeframe = undefined, since = undefined, limit = undefined, params = {}) {
|
|
14529
14530
|
await this.loadMarkets();
|