ccxt 4.5.28 → 4.5.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -5
- package/dist/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/alpaca.js +21 -21
- package/dist/cjs/src/apex.js +20 -20
- package/dist/cjs/src/arkham.js +22 -22
- package/dist/cjs/src/ascendex.js +28 -28
- package/dist/cjs/src/backpack.js +22 -22
- package/dist/cjs/src/base/Exchange.js +48 -38
- package/dist/cjs/src/base/functions/throttle.js +54 -5
- package/dist/cjs/src/bigone.js +19 -19
- package/dist/cjs/src/binance.js +83 -82
- package/dist/cjs/src/bingx.js +46 -46
- package/dist/cjs/src/bit2c.js +11 -11
- package/dist/cjs/src/bitbank.js +49 -48
- package/dist/cjs/src/bitbns.js +13 -13
- package/dist/cjs/src/bitfinex.js +33 -33
- package/dist/cjs/src/bitflyer.js +17 -17
- package/dist/cjs/src/bitget.js +58 -57
- package/dist/cjs/src/bithumb.js +10 -10
- package/dist/cjs/src/bitmart.js +44 -44
- package/dist/cjs/src/bitmex.js +24 -24
- package/dist/cjs/src/bitopro.js +20 -20
- package/dist/cjs/src/bitrue.js +18 -18
- package/dist/cjs/src/bitso.js +20 -20
- package/dist/cjs/src/bitstamp.js +21 -21
- package/dist/cjs/src/bittrade.js +20 -20
- package/dist/cjs/src/bitvavo.js +19 -19
- package/dist/cjs/src/blockchaincom.js +20 -20
- package/dist/cjs/src/blofin.js +26 -26
- package/dist/cjs/src/btcalpha.js +35 -34
- package/dist/cjs/src/btcbox.js +10 -10
- package/dist/cjs/src/btcmarkets.js +16 -16
- package/dist/cjs/src/btcturk.js +10 -10
- package/dist/cjs/src/bullish.js +26 -26
- package/dist/cjs/src/bybit.js +67 -67
- package/dist/cjs/src/cex.js +18 -18
- package/dist/cjs/src/coinbase.js +40 -40
- package/dist/cjs/src/coinbaseexchange.js +22 -22
- package/dist/cjs/src/coinbaseinternational.js +22 -22
- package/dist/cjs/src/coincatch.js +39 -39
- package/dist/cjs/src/coincheck.js +11 -11
- package/dist/cjs/src/coinex.js +48 -48
- package/dist/cjs/src/coinmate.js +14 -14
- package/dist/cjs/src/coinmetro.js +14 -14
- package/dist/cjs/src/coinone.js +11 -11
- package/dist/cjs/src/coinsph.js +20 -20
- package/dist/cjs/src/coinspot.js +8 -8
- package/dist/cjs/src/cryptocom.js +32 -32
- package/dist/cjs/src/cryptomus.js +9 -9
- package/dist/cjs/src/deepcoin.js +33 -33
- package/dist/cjs/src/defx.js +23 -23
- package/dist/cjs/src/delta.js +29 -29
- package/dist/cjs/src/deribit.js +36 -36
- package/dist/cjs/src/derive.js +19 -19
- package/dist/cjs/src/digifinex.js +36 -36
- package/dist/cjs/src/dydx.js +22 -22
- package/dist/cjs/src/exmo.js +29 -29
- package/dist/cjs/src/foxbit.js +23 -23
- package/dist/cjs/src/gate.js +57 -57
- package/dist/cjs/src/gemini.js +16 -16
- package/dist/cjs/src/hashkey.js +35 -35
- package/dist/cjs/src/hibachi.js +24 -24
- package/dist/cjs/src/hitbtc.js +38 -38
- package/dist/cjs/src/hollaex.js +22 -22
- package/dist/cjs/src/htx.js +50 -50
- package/dist/cjs/src/hyperliquid.js +76 -42
- package/dist/cjs/src/independentreserve.js +13 -13
- package/dist/cjs/src/indodax.js +14 -14
- package/dist/cjs/src/kraken.js +30 -30
- package/dist/cjs/src/krakenfutures.js +21 -21
- package/dist/cjs/src/kucoin.js +44 -44
- package/dist/cjs/src/kucoinfutures.js +42 -40
- package/dist/cjs/src/latoken.js +16 -16
- package/dist/cjs/src/lbank.js +23 -23
- package/dist/cjs/src/luno.js +17 -17
- package/dist/cjs/src/mercado.js +11 -11
- package/dist/cjs/src/mexc.js +47 -47
- package/dist/cjs/src/modetrade.js +37 -35
- package/dist/cjs/src/ndax.js +19 -19
- package/dist/cjs/src/novadax.js +19 -19
- package/dist/cjs/src/oceanex.js +16 -16
- package/dist/cjs/src/okx.js +83 -83
- package/dist/cjs/src/onetrading.js +34 -33
- package/dist/cjs/src/oxfun.js +25 -25
- package/dist/cjs/src/p2b.js +11 -11
- package/dist/cjs/src/paradex.js +54 -54
- package/dist/cjs/src/paymium.js +20 -21
- package/dist/cjs/src/phemex.js +35 -35
- package/dist/cjs/src/poloniex.js +27 -27
- package/dist/cjs/src/pro/alpaca.js +5 -5
- package/dist/cjs/src/pro/apex.js +8 -8
- package/dist/cjs/src/pro/arkham.js +5 -5
- package/dist/cjs/src/pro/ascendex.js +5 -5
- package/dist/cjs/src/pro/backpack.js +16 -16
- package/dist/cjs/src/pro/binance.js +35 -35
- package/dist/cjs/src/pro/bingx.js +9 -9
- package/dist/cjs/src/pro/bitfinex.js +8 -8
- package/dist/cjs/src/pro/bitget.js +12 -12
- package/dist/cjs/src/pro/bithumb.js +3 -3
- package/dist/cjs/src/pro/bitmart.js +388 -31
- package/dist/cjs/src/pro/bitmex.js +9 -9
- package/dist/cjs/src/pro/bitopro.js +5 -5
- package/dist/cjs/src/pro/bitrue.js +2 -2
- package/dist/cjs/src/pro/bitstamp.js +3 -3
- package/dist/cjs/src/pro/bittrade.js +3 -3
- package/dist/cjs/src/pro/bitvavo.js +19 -19
- package/dist/cjs/src/pro/blockchaincom.js +5 -5
- package/dist/cjs/src/pro/blofin.js +10 -10
- package/dist/cjs/src/pro/bullish.js +6 -6
- package/dist/cjs/src/pro/bybit.js +19 -19
- package/dist/cjs/src/pro/cex.js +13 -13
- package/dist/cjs/src/pro/coinbase.js +13 -13
- package/dist/cjs/src/pro/coinbaseexchange.js +10 -10
- package/dist/cjs/src/pro/coinbaseinternational.js +8 -8
- package/dist/cjs/src/pro/coincatch.js +10 -10
- package/dist/cjs/src/pro/coincheck.js +2 -2
- package/dist/cjs/src/pro/coinex.js +10 -10
- package/dist/cjs/src/pro/coinone.js +3 -3
- package/dist/cjs/src/pro/cryptocom.js +20 -20
- package/dist/cjs/src/pro/deepcoin.js +8 -8
- package/dist/cjs/src/pro/defx.js +15 -15
- package/dist/cjs/src/pro/deribit.js +10 -10
- package/dist/cjs/src/pro/derive.js +6 -6
- package/dist/cjs/src/pro/dydx.js +3 -3
- package/dist/cjs/src/pro/exmo.js +7 -7
- package/dist/cjs/src/pro/gate.js +21 -59
- package/dist/cjs/src/pro/gemini.js +6 -6
- package/dist/cjs/src/pro/hashkey.js +6 -6
- package/dist/cjs/src/pro/hitbtc.js +8 -8
- package/dist/cjs/src/pro/hollaex.js +5 -5
- package/dist/cjs/src/pro/htx.js +9 -9
- package/dist/cjs/src/pro/hyperliquid.js +103 -14
- package/dist/cjs/src/pro/independentreserve.js +2 -2
- package/dist/cjs/src/pro/kraken.js +15 -15
- package/dist/cjs/src/pro/krakenfutures.js +10 -10
- package/dist/cjs/src/pro/kucoin.js +15 -15
- package/dist/cjs/src/pro/kucoinfutures.js +13 -13
- package/dist/cjs/src/pro/lbank.js +5 -5
- package/dist/cjs/src/pro/luno.js +2 -2
- package/dist/cjs/src/pro/mexc.js +13 -13
- package/dist/cjs/src/pro/modetrade.js +8 -8
- package/dist/cjs/src/pro/ndax.js +3 -3
- package/dist/cjs/src/pro/okx.js +25 -25
- package/dist/cjs/src/pro/onetrading.js +6 -6
- package/dist/cjs/src/pro/oxfun.js +13 -13
- package/dist/cjs/src/pro/p2b.js +5 -5
- package/dist/cjs/src/pro/paradex.js +8 -8
- package/dist/cjs/src/pro/phemex.js +7 -7
- package/dist/cjs/src/pro/poloniex.js +8 -8
- package/dist/cjs/src/pro/probit.js +6 -6
- package/dist/cjs/src/pro/toobit.js +9 -9
- package/dist/cjs/src/pro/upbit.js +9 -9
- package/dist/cjs/src/pro/whitebit.js +7 -7
- package/dist/cjs/src/pro/woo.js +13 -13
- package/dist/cjs/src/pro/woofipro.js +20 -20
- package/dist/cjs/src/pro/xt.js +2 -2
- package/dist/cjs/src/probit.js +18 -18
- package/dist/cjs/src/static_dependencies/ethers/utils/index.js +11 -0
- package/dist/cjs/src/timex.js +16 -16
- package/dist/cjs/src/tokocrypto.js +17 -17
- package/dist/cjs/src/toobit.js +31 -29
- package/dist/cjs/src/upbit.js +23 -23
- package/dist/cjs/src/wavesexchange.js +86 -85
- package/dist/cjs/src/whitebit.js +44 -44
- package/dist/cjs/src/woo.js +51 -49
- package/dist/cjs/src/woofipro.js +104 -82
- package/dist/cjs/src/xt.js +17 -12
- package/dist/cjs/src/yobit.js +15 -15
- package/dist/cjs/src/zaif.js +38 -9
- package/dist/cjs/src/zebpay.js +35 -20
- package/dist/cjs/src/zonda.js +14 -14
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/alpaca.d.ts +21 -21
- package/js/src/alpaca.js +21 -21
- package/js/src/apex.d.ts +20 -20
- package/js/src/apex.js +20 -20
- package/js/src/arkham.d.ts +22 -22
- package/js/src/arkham.js +22 -22
- package/js/src/ascendex.d.ts +28 -28
- package/js/src/ascendex.js +28 -28
- package/js/src/backpack.d.ts +21 -21
- package/js/src/backpack.js +22 -22
- package/js/src/base/Exchange.d.ts +6 -3
- package/js/src/base/Exchange.js +48 -38
- package/js/src/base/functions/throttle.d.ts +22 -0
- package/js/src/base/functions/throttle.js +54 -5
- package/js/src/bigone.d.ts +19 -19
- package/js/src/bigone.js +19 -19
- package/js/src/binance.d.ts +82 -82
- package/js/src/binance.js +83 -82
- package/js/src/bingx.d.ts +46 -46
- package/js/src/bingx.js +46 -46
- package/js/src/bit2c.d.ts +11 -11
- package/js/src/bit2c.js +11 -11
- package/js/src/bitbank.d.ts +12 -12
- package/js/src/bitbank.js +49 -48
- package/js/src/bitbns.d.ts +13 -13
- package/js/src/bitbns.js +13 -13
- package/js/src/bitfinex.d.ts +33 -33
- package/js/src/bitfinex.js +33 -33
- package/js/src/bitflyer.d.ts +17 -17
- package/js/src/bitflyer.js +17 -17
- package/js/src/bitget.d.ts +57 -57
- package/js/src/bitget.js +58 -57
- package/js/src/bithumb.d.ts +10 -10
- package/js/src/bithumb.js +10 -10
- package/js/src/bitmart.d.ts +42 -42
- package/js/src/bitmart.js +44 -44
- package/js/src/bitmex.d.ts +24 -24
- package/js/src/bitmex.js +24 -24
- package/js/src/bitopro.d.ts +20 -20
- package/js/src/bitopro.js +20 -20
- package/js/src/bitrue.d.ts +18 -18
- package/js/src/bitrue.js +18 -18
- package/js/src/bitso.d.ts +20 -20
- package/js/src/bitso.js +20 -20
- package/js/src/bitstamp.d.ts +21 -21
- package/js/src/bitstamp.js +21 -21
- package/js/src/bittrade.d.ts +20 -20
- package/js/src/bittrade.js +20 -20
- package/js/src/bitvavo.d.ts +19 -19
- package/js/src/bitvavo.js +19 -19
- package/js/src/blockchaincom.d.ts +20 -20
- package/js/src/blockchaincom.js +20 -20
- package/js/src/blofin.d.ts +26 -26
- package/js/src/blofin.js +26 -26
- package/js/src/btcalpha.d.ts +14 -14
- package/js/src/btcalpha.js +35 -34
- package/js/src/btcbox.d.ts +10 -10
- package/js/src/btcbox.js +10 -10
- package/js/src/btcmarkets.d.ts +16 -16
- package/js/src/btcmarkets.js +16 -16
- package/js/src/btcturk.d.ts +10 -10
- package/js/src/btcturk.js +10 -10
- package/js/src/bullish.d.ts +26 -26
- package/js/src/bullish.js +26 -26
- package/js/src/bybit.d.ts +66 -66
- package/js/src/bybit.js +67 -67
- package/js/src/cex.d.ts +18 -18
- package/js/src/cex.js +18 -18
- package/js/src/coinbase.d.ts +40 -40
- package/js/src/coinbase.js +40 -40
- package/js/src/coinbaseexchange.d.ts +22 -22
- package/js/src/coinbaseexchange.js +22 -22
- package/js/src/coinbaseinternational.d.ts +22 -22
- package/js/src/coinbaseinternational.js +22 -22
- package/js/src/coincatch.d.ts +39 -39
- package/js/src/coincatch.js +39 -39
- package/js/src/coincheck.d.ts +11 -11
- package/js/src/coincheck.js +11 -11
- package/js/src/coinex.d.ts +48 -48
- package/js/src/coinex.js +48 -48
- package/js/src/coinmate.d.ts +14 -14
- package/js/src/coinmate.js +14 -14
- package/js/src/coinmetro.d.ts +14 -14
- package/js/src/coinmetro.js +14 -14
- package/js/src/coinone.d.ts +11 -11
- package/js/src/coinone.js +11 -11
- package/js/src/coinsph.d.ts +20 -20
- package/js/src/coinsph.js +20 -20
- package/js/src/coinspot.d.ts +8 -8
- package/js/src/coinspot.js +8 -8
- package/js/src/cryptocom.d.ts +32 -32
- package/js/src/cryptocom.js +32 -32
- package/js/src/cryptomus.d.ts +9 -9
- package/js/src/cryptomus.js +9 -9
- package/js/src/deepcoin.d.ts +33 -33
- package/js/src/deepcoin.js +33 -33
- package/js/src/defx.d.ts +23 -23
- package/js/src/defx.js +23 -23
- package/js/src/delta.d.ts +29 -29
- package/js/src/delta.js +29 -29
- package/js/src/deribit.d.ts +36 -36
- package/js/src/deribit.js +36 -36
- package/js/src/derive.d.ts +19 -19
- package/js/src/derive.js +19 -19
- package/js/src/digifinex.d.ts +36 -36
- package/js/src/digifinex.js +36 -36
- package/js/src/dydx.d.ts +22 -22
- package/js/src/dydx.js +22 -22
- package/js/src/exmo.d.ts +29 -29
- package/js/src/exmo.js +29 -29
- package/js/src/foxbit.d.ts +23 -23
- package/js/src/foxbit.js +23 -23
- package/js/src/gate.d.ts +57 -57
- package/js/src/gate.js +57 -57
- package/js/src/gemini.d.ts +16 -16
- package/js/src/gemini.js +16 -16
- package/js/src/hashkey.d.ts +35 -35
- package/js/src/hashkey.js +35 -35
- package/js/src/hibachi.d.ts +24 -24
- package/js/src/hibachi.js +24 -24
- package/js/src/hitbtc.d.ts +38 -38
- package/js/src/hitbtc.js +38 -38
- package/js/src/hollaex.d.ts +22 -22
- package/js/src/hollaex.js +22 -22
- package/js/src/htx.d.ts +50 -50
- package/js/src/htx.js +50 -50
- package/js/src/hyperliquid.d.ts +46 -36
- package/js/src/hyperliquid.js +76 -42
- package/js/src/independentreserve.d.ts +13 -13
- package/js/src/independentreserve.js +13 -13
- package/js/src/indodax.d.ts +14 -14
- package/js/src/indodax.js +14 -14
- package/js/src/kraken.d.ts +30 -30
- package/js/src/kraken.js +30 -30
- package/js/src/krakenfutures.d.ts +21 -21
- package/js/src/krakenfutures.js +21 -21
- package/js/src/kucoin.d.ts +44 -44
- package/js/src/kucoin.js +44 -44
- package/js/src/kucoinfutures.d.ts +35 -35
- package/js/src/kucoinfutures.js +42 -40
- package/js/src/latoken.d.ts +16 -16
- package/js/src/latoken.js +16 -16
- package/js/src/lbank.d.ts +23 -23
- package/js/src/lbank.js +23 -23
- package/js/src/luno.d.ts +17 -17
- package/js/src/luno.js +17 -17
- package/js/src/mercado.d.ts +11 -11
- package/js/src/mercado.js +11 -11
- package/js/src/mexc.d.ts +47 -47
- package/js/src/mexc.js +47 -47
- package/js/src/modetrade.d.ts +31 -31
- package/js/src/modetrade.js +37 -35
- package/js/src/ndax.d.ts +19 -19
- package/js/src/ndax.js +19 -19
- package/js/src/novadax.d.ts +19 -19
- package/js/src/novadax.js +19 -19
- package/js/src/oceanex.d.ts +16 -16
- package/js/src/oceanex.js +16 -16
- package/js/src/okx.d.ts +74 -74
- package/js/src/okx.js +83 -83
- package/js/src/onetrading.d.ts +34 -33
- package/js/src/onetrading.js +34 -33
- package/js/src/oxfun.d.ts +25 -25
- package/js/src/oxfun.js +25 -25
- package/js/src/p2b.d.ts +11 -11
- package/js/src/p2b.js +11 -11
- package/js/src/paradex.d.ts +54 -54
- package/js/src/paradex.js +54 -54
- package/js/src/paymium.d.ts +20 -21
- package/js/src/paymium.js +20 -21
- package/js/src/phemex.d.ts +30 -30
- package/js/src/phemex.js +35 -35
- package/js/src/poloniex.d.ts +26 -26
- package/js/src/poloniex.js +27 -27
- package/js/src/pro/alpaca.d.ts +5 -5
- package/js/src/pro/alpaca.js +5 -5
- package/js/src/pro/apex.d.ts +8 -8
- package/js/src/pro/apex.js +8 -8
- package/js/src/pro/arkham.d.ts +5 -5
- package/js/src/pro/arkham.js +5 -5
- package/js/src/pro/ascendex.d.ts +5 -5
- package/js/src/pro/ascendex.js +5 -5
- package/js/src/pro/backpack.d.ts +16 -16
- package/js/src/pro/backpack.js +16 -16
- package/js/src/pro/binance.d.ts +35 -35
- package/js/src/pro/binance.js +35 -35
- package/js/src/pro/bingx.d.ts +9 -9
- package/js/src/pro/bingx.js +9 -9
- package/js/src/pro/bitfinex.d.ts +8 -8
- package/js/src/pro/bitfinex.js +8 -8
- package/js/src/pro/bitget.d.ts +12 -12
- package/js/src/pro/bitget.js +12 -12
- package/js/src/pro/bithumb.d.ts +3 -3
- package/js/src/pro/bithumb.js +3 -3
- package/js/src/pro/bitmart.d.ts +120 -9
- package/js/src/pro/bitmart.js +388 -31
- package/js/src/pro/bitmex.d.ts +9 -9
- package/js/src/pro/bitmex.js +9 -9
- package/js/src/pro/bitopro.d.ts +5 -5
- package/js/src/pro/bitopro.js +5 -5
- package/js/src/pro/bitrue.d.ts +2 -2
- package/js/src/pro/bitrue.js +2 -2
- package/js/src/pro/bitstamp.d.ts +3 -3
- package/js/src/pro/bitstamp.js +3 -3
- package/js/src/pro/bittrade.d.ts +3 -3
- package/js/src/pro/bittrade.js +3 -3
- package/js/src/pro/bitvavo.d.ts +19 -19
- package/js/src/pro/bitvavo.js +19 -19
- package/js/src/pro/blockchaincom.d.ts +5 -5
- package/js/src/pro/blockchaincom.js +5 -5
- package/js/src/pro/blofin.d.ts +10 -10
- package/js/src/pro/blofin.js +10 -10
- package/js/src/pro/bullish.d.ts +6 -6
- package/js/src/pro/bullish.js +6 -6
- package/js/src/pro/bybit.d.ts +19 -19
- package/js/src/pro/bybit.js +19 -19
- package/js/src/pro/cex.d.ts +13 -13
- package/js/src/pro/cex.js +13 -13
- package/js/src/pro/coinbase.d.ts +13 -13
- package/js/src/pro/coinbase.js +13 -13
- package/js/src/pro/coinbaseexchange.d.ts +10 -10
- package/js/src/pro/coinbaseexchange.js +10 -10
- package/js/src/pro/coinbaseinternational.d.ts +8 -8
- package/js/src/pro/coinbaseinternational.js +8 -8
- package/js/src/pro/coincatch.d.ts +10 -10
- package/js/src/pro/coincatch.js +10 -10
- package/js/src/pro/coincheck.d.ts +2 -2
- package/js/src/pro/coincheck.js +2 -2
- package/js/src/pro/coinex.d.ts +10 -10
- package/js/src/pro/coinex.js +10 -10
- package/js/src/pro/coinone.d.ts +3 -3
- package/js/src/pro/coinone.js +3 -3
- package/js/src/pro/cryptocom.d.ts +20 -20
- package/js/src/pro/cryptocom.js +20 -20
- package/js/src/pro/deepcoin.d.ts +8 -8
- package/js/src/pro/deepcoin.js +8 -8
- package/js/src/pro/defx.d.ts +15 -15
- package/js/src/pro/defx.js +15 -15
- package/js/src/pro/deribit.d.ts +10 -10
- package/js/src/pro/deribit.js +10 -10
- package/js/src/pro/derive.d.ts +6 -6
- package/js/src/pro/derive.js +6 -6
- package/js/src/pro/dydx.d.ts +3 -3
- package/js/src/pro/dydx.js +3 -3
- package/js/src/pro/exmo.d.ts +7 -7
- package/js/src/pro/exmo.js +7 -7
- package/js/src/pro/gate.d.ts +22 -23
- package/js/src/pro/gate.js +21 -59
- package/js/src/pro/gemini.d.ts +6 -6
- package/js/src/pro/gemini.js +6 -6
- package/js/src/pro/hashkey.d.ts +6 -6
- package/js/src/pro/hashkey.js +6 -6
- package/js/src/pro/hitbtc.d.ts +8 -8
- package/js/src/pro/hitbtc.js +8 -8
- package/js/src/pro/hollaex.d.ts +5 -5
- package/js/src/pro/hollaex.js +5 -5
- package/js/src/pro/htx.d.ts +9 -9
- package/js/src/pro/htx.js +9 -9
- package/js/src/pro/hyperliquid.d.ts +38 -14
- package/js/src/pro/hyperliquid.js +103 -14
- package/js/src/pro/independentreserve.d.ts +2 -2
- package/js/src/pro/independentreserve.js +2 -2
- package/js/src/pro/kraken.d.ts +15 -15
- package/js/src/pro/kraken.js +15 -15
- package/js/src/pro/krakenfutures.d.ts +10 -10
- package/js/src/pro/krakenfutures.js +10 -10
- package/js/src/pro/kucoin.d.ts +15 -15
- package/js/src/pro/kucoin.js +15 -15
- package/js/src/pro/kucoinfutures.d.ts +13 -13
- package/js/src/pro/kucoinfutures.js +13 -13
- package/js/src/pro/lbank.d.ts +5 -5
- package/js/src/pro/lbank.js +5 -5
- package/js/src/pro/luno.d.ts +2 -2
- package/js/src/pro/luno.js +2 -2
- package/js/src/pro/mexc.d.ts +13 -13
- package/js/src/pro/mexc.js +13 -13
- package/js/src/pro/modetrade.d.ts +8 -8
- package/js/src/pro/modetrade.js +8 -8
- package/js/src/pro/ndax.d.ts +3 -3
- package/js/src/pro/ndax.js +3 -3
- package/js/src/pro/okx.d.ts +25 -25
- package/js/src/pro/okx.js +25 -25
- package/js/src/pro/onetrading.d.ts +6 -6
- package/js/src/pro/onetrading.js +6 -6
- package/js/src/pro/oxfun.d.ts +13 -13
- package/js/src/pro/oxfun.js +13 -13
- package/js/src/pro/p2b.d.ts +5 -5
- package/js/src/pro/p2b.js +5 -5
- package/js/src/pro/paradex.d.ts +8 -8
- package/js/src/pro/paradex.js +8 -8
- package/js/src/pro/phemex.d.ts +7 -7
- package/js/src/pro/phemex.js +7 -7
- package/js/src/pro/poloniex.d.ts +8 -8
- package/js/src/pro/poloniex.js +8 -8
- package/js/src/pro/probit.d.ts +6 -6
- package/js/src/pro/probit.js +6 -6
- package/js/src/pro/toobit.d.ts +9 -9
- package/js/src/pro/toobit.js +9 -9
- package/js/src/pro/upbit.d.ts +9 -9
- package/js/src/pro/upbit.js +9 -9
- package/js/src/pro/whitebit.d.ts +7 -7
- package/js/src/pro/whitebit.js +7 -7
- package/js/src/pro/woo.d.ts +13 -13
- package/js/src/pro/woo.js +13 -13
- package/js/src/pro/woofipro.d.ts +20 -20
- package/js/src/pro/woofipro.js +20 -20
- package/js/src/pro/xt.d.ts +2 -2
- package/js/src/pro/xt.js +2 -2
- package/js/src/probit.d.ts +18 -18
- package/js/src/probit.js +18 -18
- package/js/src/static_dependencies/ethers/utils/index.d.ts +2 -1
- package/js/src/static_dependencies/ethers/utils/index.js +8 -1
- package/js/src/timex.d.ts +16 -16
- package/js/src/timex.js +16 -16
- package/js/src/tokocrypto.d.ts +17 -17
- package/js/src/tokocrypto.js +17 -17
- package/js/src/toobit.d.ts +27 -27
- package/js/src/toobit.js +31 -29
- package/js/src/upbit.d.ts +23 -23
- package/js/src/upbit.js +23 -23
- package/js/src/wavesexchange.d.ts +15 -15
- package/js/src/wavesexchange.js +86 -85
- package/js/src/whitebit.d.ts +44 -44
- package/js/src/whitebit.js +44 -44
- package/js/src/woo.d.ts +45 -45
- package/js/src/woo.js +51 -49
- package/js/src/woofipro.d.ts +77 -77
- package/js/src/woofipro.js +104 -82
- package/js/src/xt.d.ts +12 -12
- package/js/src/xt.js +17 -12
- package/js/src/yobit.d.ts +15 -15
- package/js/src/yobit.js +15 -15
- package/js/src/zaif.d.ts +9 -9
- package/js/src/zaif.js +38 -9
- package/js/src/zebpay.d.ts +20 -20
- package/js/src/zebpay.js +35 -20
- package/js/src/zonda.d.ts +14 -14
- package/js/src/zonda.js +14 -14
- package/package.json +1 -1
package/js/src/binance.js
CHANGED
|
@@ -2634,6 +2634,7 @@ export default class binance extends Exchange {
|
|
|
2634
2634
|
'PERCENT_PRICE_BY_SIDE': InvalidOrder, // {"code":-1013,"msg":"Filter failure: PERCENT_PRICE_BY_SIDE"}
|
|
2635
2635
|
},
|
|
2636
2636
|
},
|
|
2637
|
+
'rollingWindowSize': 60000.0,
|
|
2637
2638
|
});
|
|
2638
2639
|
}
|
|
2639
2640
|
isInverse(type, subType = undefined) {
|
|
@@ -3739,7 +3740,7 @@ export default class binance extends Exchange {
|
|
|
3739
3740
|
* @param {string[]|undefined} [params.symbols] unified market symbols, only used in isolated margin mode
|
|
3740
3741
|
* @param {boolean} [params.portfolioMargin] set to true if you would like to fetch the balance for a portfolio margin account
|
|
3741
3742
|
* @param {string} [params.subType] 'linear' or 'inverse'
|
|
3742
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
3743
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
3743
3744
|
*/
|
|
3744
3745
|
async fetchBalance(params = {}) {
|
|
3745
3746
|
await this.loadMarkets();
|
|
@@ -4008,7 +4009,7 @@ export default class binance extends Exchange {
|
|
|
4008
4009
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
4009
4010
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4010
4011
|
* @param {boolean} [params.rpi] *future only* set to true to use the RPI endpoint
|
|
4011
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
4012
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
4012
4013
|
*/
|
|
4013
4014
|
async fetchOrderBook(symbol, limit = undefined, params = {}) {
|
|
4014
4015
|
await this.loadMarkets();
|
|
@@ -4276,7 +4277,7 @@ export default class binance extends Exchange {
|
|
|
4276
4277
|
* @description the latest known information on the availability of the exchange API
|
|
4277
4278
|
* @see https://developers.binance.com/docs/wallet/others/system-status
|
|
4278
4279
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4279
|
-
* @returns {object} a [status structure]{@link https://docs.ccxt.com
|
|
4280
|
+
* @returns {object} a [status structure]{@link https://docs.ccxt.com/?id=exchange-status-structure}
|
|
4280
4281
|
*/
|
|
4281
4282
|
async fetchStatus(params = {}) {
|
|
4282
4283
|
const response = await this.sapiGetSystemStatus(params);
|
|
@@ -4307,7 +4308,7 @@ export default class binance extends Exchange {
|
|
|
4307
4308
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
4308
4309
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4309
4310
|
* @param {boolean} [params.rolling] (spot only) default false, if true, uses the rolling 24 hour ticker endpoint /api/v3/ticker
|
|
4310
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
4311
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
4311
4312
|
*/
|
|
4312
4313
|
async fetchTicker(symbol, params = {}) {
|
|
4313
4314
|
await this.loadMarkets();
|
|
@@ -4351,7 +4352,7 @@ export default class binance extends Exchange {
|
|
|
4351
4352
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the bids and asks for, all markets are returned if not assigned
|
|
4352
4353
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4353
4354
|
* @param {string} [params.subType] "linear" or "inverse"
|
|
4354
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com
|
|
4355
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
4355
4356
|
*/
|
|
4356
4357
|
async fetchBidsAsks(symbols = undefined, params = {}) {
|
|
4357
4358
|
await this.loadMarkets();
|
|
@@ -4496,7 +4497,7 @@ export default class binance extends Exchange {
|
|
|
4496
4497
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4497
4498
|
* @param {string} [params.subType] "linear" or "inverse"
|
|
4498
4499
|
* @param {string} [params.type] 'spot', 'option', use params["subType"] for swap and future markets
|
|
4499
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com
|
|
4500
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
4500
4501
|
*/
|
|
4501
4502
|
async fetchTickers(symbols = undefined, params = {}) {
|
|
4502
4503
|
await this.loadMarkets();
|
|
@@ -4561,7 +4562,7 @@ export default class binance extends Exchange {
|
|
|
4561
4562
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
4562
4563
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4563
4564
|
* @param {string} [params.subType] "linear" or "inverse"
|
|
4564
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com
|
|
4565
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
4565
4566
|
*/
|
|
4566
4567
|
async fetchMarkPrice(symbol, params = {}) {
|
|
4567
4568
|
await this.loadMarkets();
|
|
@@ -4597,7 +4598,7 @@ export default class binance extends Exchange {
|
|
|
4597
4598
|
* @param {string[]} [symbols] unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
4598
4599
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
4599
4600
|
* @param {string} [params.subType] "linear" or "inverse"
|
|
4600
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com
|
|
4601
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
4601
4602
|
*/
|
|
4602
4603
|
async fetchMarkPrices(symbols = undefined, params = {}) {
|
|
4603
4604
|
await this.loadMarkets();
|
|
@@ -5119,7 +5120,7 @@ export default class binance extends Exchange {
|
|
|
5119
5120
|
*
|
|
5120
5121
|
* EXCHANGE SPECIFIC PARAMETERS
|
|
5121
5122
|
* @param {int} [params.fromId] trade id to fetch from, default gets most recent trades, not used when fetchTradesMethod is 'publicGetTrades', 'fapiPublicGetTrades', 'dapiPublicGetTrades', or 'eapiPublicGetTrades'
|
|
5122
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
5123
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
5123
5124
|
*/
|
|
5124
5125
|
async fetchTrades(symbol, since = undefined, limit = undefined, params = {}) {
|
|
5125
5126
|
await this.loadMarkets();
|
|
@@ -5252,7 +5253,7 @@ export default class binance extends Exchange {
|
|
|
5252
5253
|
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
5253
5254
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5254
5255
|
* @param {string} [params.marginMode] 'cross' or 'isolated', for spot margin trading
|
|
5255
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
5256
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
5256
5257
|
*/
|
|
5257
5258
|
async editSpotOrder(id, symbol, type, side, amount, price = undefined, params = {}) {
|
|
5258
5259
|
await this.loadMarkets();
|
|
@@ -5478,7 +5479,7 @@ export default class binance extends Exchange {
|
|
|
5478
5479
|
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
5479
5480
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5480
5481
|
* @param {boolean} [params.portfolioMargin] set to true if you would like to edit an order in a portfolio margin account
|
|
5481
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
5482
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
5482
5483
|
*/
|
|
5483
5484
|
async editContractOrder(id, symbol, type, side, amount, price = undefined, params = {}) {
|
|
5484
5485
|
await this.loadMarkets();
|
|
@@ -5551,7 +5552,7 @@ export default class binance extends Exchange {
|
|
|
5551
5552
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
5552
5553
|
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
5553
5554
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5554
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
5555
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
5555
5556
|
*/
|
|
5556
5557
|
async editOrder(id, symbol, type, side, amount = undefined, price = undefined, params = {}) {
|
|
5557
5558
|
await this.loadMarkets();
|
|
@@ -5574,7 +5575,7 @@ export default class binance extends Exchange {
|
|
|
5574
5575
|
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/trade/rest-api/Modify-Multiple-Orders
|
|
5575
5576
|
* @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
|
|
5576
5577
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
5577
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
5578
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
5578
5579
|
*/
|
|
5579
5580
|
async editOrders(orders, params = {}) {
|
|
5580
5581
|
await this.loadMarkets();
|
|
@@ -6290,7 +6291,7 @@ export default class binance extends Exchange {
|
|
|
6290
6291
|
* @see https://developers.binance.com/docs/derivatives/option/trade/Place-Multiple-Orders
|
|
6291
6292
|
* @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
|
|
6292
6293
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6293
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
6294
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
6294
6295
|
*/
|
|
6295
6296
|
async createOrders(orders, params = {}) {
|
|
6296
6297
|
await this.loadMarkets();
|
|
@@ -6401,7 +6402,7 @@ export default class binance extends Exchange {
|
|
|
6401
6402
|
* @param {string} [params.stopLossOrTakeProfit] 'stopLoss' or 'takeProfit', required for spot trailing orders
|
|
6402
6403
|
* @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
|
|
6403
6404
|
* @param {bool} [params.hedged] *swap and portfolio margin only* true for hedged mode, false for one way mode, default is false
|
|
6404
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
6405
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
6405
6406
|
*/
|
|
6406
6407
|
async createOrder(symbol, type, side, amount, price = undefined, params = {}) {
|
|
6407
6408
|
await this.loadMarkets();
|
|
@@ -6852,7 +6853,7 @@ export default class binance extends Exchange {
|
|
|
6852
6853
|
* @param {string} side 'buy' or 'sell'
|
|
6853
6854
|
* @param {float} cost how much you want to trade in units of the quote currency
|
|
6854
6855
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6855
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
6856
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
6856
6857
|
*/
|
|
6857
6858
|
async createMarketOrderWithCost(symbol, side, cost, params = {}) {
|
|
6858
6859
|
await this.loadMarkets();
|
|
@@ -6873,7 +6874,7 @@ export default class binance extends Exchange {
|
|
|
6873
6874
|
* @param {string} symbol unified symbol of the market to create an order in
|
|
6874
6875
|
* @param {float} cost how much you want to trade in units of the quote currency
|
|
6875
6876
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6876
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
6877
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
6877
6878
|
*/
|
|
6878
6879
|
async createMarketBuyOrderWithCost(symbol, cost, params = {}) {
|
|
6879
6880
|
await this.loadMarkets();
|
|
@@ -6894,7 +6895,7 @@ export default class binance extends Exchange {
|
|
|
6894
6895
|
* @param {string} symbol unified symbol of the market to create an order in
|
|
6895
6896
|
* @param {float} cost how much you want to trade in units of the quote currency
|
|
6896
6897
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
6897
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
6898
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
6898
6899
|
*/
|
|
6899
6900
|
async createMarketSellOrderWithCost(symbol, cost, params = {}) {
|
|
6900
6901
|
await this.loadMarkets();
|
|
@@ -6923,7 +6924,7 @@ export default class binance extends Exchange {
|
|
|
6923
6924
|
* @param {string} [params.marginMode] 'cross' or 'isolated', for spot margin trading
|
|
6924
6925
|
* @param {boolean} [params.portfolioMargin] set to true if you would like to fetch an order in a portfolio margin account
|
|
6925
6926
|
* @param {boolean} [params.trigger] set to true if you would like to fetch a trigger or conditional order
|
|
6926
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
6927
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
6927
6928
|
*/
|
|
6928
6929
|
async fetchOrder(id, symbol = undefined, params = {}) {
|
|
6929
6930
|
if (symbol === undefined) {
|
|
@@ -7024,7 +7025,7 @@ export default class binance extends Exchange {
|
|
|
7024
7025
|
* @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)
|
|
7025
7026
|
* @param {boolean} [params.portfolioMargin] set to true if you would like to fetch orders in a portfolio margin account
|
|
7026
7027
|
* @param {boolean} [params.trigger] set to true if you would like to fetch portfolio margin account trigger or conditional orders
|
|
7027
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
7028
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
7028
7029
|
*/
|
|
7029
7030
|
async fetchOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
7030
7031
|
if (symbol === undefined) {
|
|
@@ -7308,7 +7309,7 @@ export default class binance extends Exchange {
|
|
|
7308
7309
|
* @param {boolean} [params.portfolioMargin] set to true if you would like to fetch open orders in the portfolio margin account
|
|
7309
7310
|
* @param {boolean} [params.trigger] set to true if you would like to fetch portfolio margin account conditional orders
|
|
7310
7311
|
* @param {string} [params.subType] "linear" or "inverse"
|
|
7311
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
7312
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
7312
7313
|
*/
|
|
7313
7314
|
async fetchOpenOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
7314
7315
|
await this.loadMarkets();
|
|
@@ -7412,7 +7413,7 @@ export default class binance extends Exchange {
|
|
|
7412
7413
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
7413
7414
|
* @param {string} [params.trigger] set to true if you would like to fetch portfolio margin account stop or conditional orders
|
|
7414
7415
|
* @param {boolean} [params.portfolioMargin] set to true if you would like to fetch for a portfolio margin account
|
|
7415
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
7416
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
7416
7417
|
*/
|
|
7417
7418
|
async fetchOpenOrder(id, symbol = undefined, params = {}) {
|
|
7418
7419
|
if (symbol === undefined) {
|
|
@@ -7635,7 +7636,7 @@ export default class binance extends Exchange {
|
|
|
7635
7636
|
* @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)
|
|
7636
7637
|
* @param {boolean} [params.portfolioMargin] set to true if you would like to fetch orders in a portfolio margin account
|
|
7637
7638
|
* @param {boolean} [params.trigger] set to true if you would like to fetch portfolio margin account trigger or conditional orders
|
|
7638
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
7639
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
7639
7640
|
*/
|
|
7640
7641
|
async fetchClosedOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
7641
7642
|
if (symbol === undefined) {
|
|
@@ -7665,7 +7666,7 @@ export default class binance extends Exchange {
|
|
|
7665
7666
|
* @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)
|
|
7666
7667
|
* @param {boolean} [params.portfolioMargin] set to true if you would like to fetch orders in a portfolio margin account
|
|
7667
7668
|
* @param {boolean} [params.trigger] set to true if you would like to fetch portfolio margin account trigger or conditional orders
|
|
7668
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
7669
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
7669
7670
|
*/
|
|
7670
7671
|
async fetchCanceledOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
7671
7672
|
if (symbol === undefined) {
|
|
@@ -7695,7 +7696,7 @@ export default class binance extends Exchange {
|
|
|
7695
7696
|
* @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)
|
|
7696
7697
|
* @param {boolean} [params.portfolioMargin] set to true if you would like to fetch orders in a portfolio margin account
|
|
7697
7698
|
* @param {boolean} [params.trigger] set to true if you would like to fetch portfolio margin account trigger or conditional orders
|
|
7698
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
7699
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
7699
7700
|
*/
|
|
7700
7701
|
async fetchCanceledAndClosedOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
7701
7702
|
if (symbol === undefined) {
|
|
@@ -7728,7 +7729,7 @@ export default class binance extends Exchange {
|
|
|
7728
7729
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
7729
7730
|
* @param {boolean} [params.portfolioMargin] set to true if you would like to cancel an order in a portfolio margin account
|
|
7730
7731
|
* @param {boolean} [params.trigger] set to true if you would like to cancel a portfolio margin account conditional order
|
|
7731
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
7732
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
7732
7733
|
*/
|
|
7733
7734
|
async cancelOrder(id, symbol = undefined, params = {}) {
|
|
7734
7735
|
if (symbol === undefined) {
|
|
@@ -7846,7 +7847,7 @@ export default class binance extends Exchange {
|
|
|
7846
7847
|
* @param {string} [params.marginMode] 'cross' or 'isolated', for spot margin trading
|
|
7847
7848
|
* @param {boolean} [params.portfolioMargin] set to true if you would like to cancel orders in a portfolio margin account
|
|
7848
7849
|
* @param {boolean} [params.trigger] set to true if you would like to cancel portfolio margin account conditional orders
|
|
7849
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
7850
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
7850
7851
|
*/
|
|
7851
7852
|
async cancelAllOrders(symbol = undefined, params = {}) {
|
|
7852
7853
|
if (symbol === undefined) {
|
|
@@ -8029,7 +8030,7 @@ export default class binance extends Exchange {
|
|
|
8029
8030
|
* EXCHANGE SPECIFIC PARAMETERS
|
|
8030
8031
|
* @param {string[]} [params.origClientOrderIdList] max length 10 e.g. ["my_id_1","my_id_2"], encode the double quotes. No space after comma
|
|
8031
8032
|
* @param {int[]} [params.recvWindow]
|
|
8032
|
-
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com
|
|
8033
|
+
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
8033
8034
|
*/
|
|
8034
8035
|
async cancelOrders(ids, symbol = undefined, params = {}) {
|
|
8035
8036
|
if (symbol === undefined) {
|
|
@@ -8109,7 +8110,7 @@ export default class binance extends Exchange {
|
|
|
8109
8110
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
8110
8111
|
* @param {int} [limit] the maximum number of trades to retrieve
|
|
8111
8112
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
8112
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
8113
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
8113
8114
|
*/
|
|
8114
8115
|
async fetchOrderTrades(id, symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
8115
8116
|
if (symbol === undefined) {
|
|
@@ -8145,7 +8146,7 @@ export default class binance extends Exchange {
|
|
|
8145
8146
|
* @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)
|
|
8146
8147
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
8147
8148
|
* @param {boolean} [params.portfolioMargin] set to true if you would like to fetch trades for a portfolio margin account
|
|
8148
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
8149
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
8149
8150
|
*/
|
|
8150
8151
|
async fetchMyTrades(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
8151
8152
|
await this.loadMarkets();
|
|
@@ -8372,7 +8373,7 @@ export default class binance extends Exchange {
|
|
|
8372
8373
|
* @param {int} [limit] the maximum number of dust trades to retrieve
|
|
8373
8374
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
8374
8375
|
* @param {string} [params.type] 'spot' or 'margin', default spot
|
|
8375
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
8376
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
8376
8377
|
*/
|
|
8377
8378
|
async fetchMyDustTrades(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
8378
8379
|
//
|
|
@@ -8520,7 +8521,7 @@ export default class binance extends Exchange {
|
|
|
8520
8521
|
* @param {bool} [params.fiat] if true, only fiat deposits will be returned
|
|
8521
8522
|
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
8522
8523
|
* @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)
|
|
8523
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com
|
|
8524
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
8524
8525
|
*/
|
|
8525
8526
|
async fetchDeposits(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
8526
8527
|
await this.loadMarkets();
|
|
@@ -8633,7 +8634,7 @@ export default class binance extends Exchange {
|
|
|
8633
8634
|
* @param {bool} [params.fiat] if true, only fiat withdrawals will be returned
|
|
8634
8635
|
* @param {int} [params.until] the latest time in ms to fetch withdrawals for
|
|
8635
8636
|
* @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)
|
|
8636
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com
|
|
8637
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
8637
8638
|
*/
|
|
8638
8639
|
async fetchWithdrawals(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
8639
8640
|
await this.loadMarkets();
|
|
@@ -9069,7 +9070,7 @@ export default class binance extends Exchange {
|
|
|
9069
9070
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
9070
9071
|
* @param {string} [params.type] exchange specific transfer type
|
|
9071
9072
|
* @param {string} [params.symbol] the unified symbol, required for isolated margin transfers
|
|
9072
|
-
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com
|
|
9073
|
+
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com/?id=transfer-structure}
|
|
9073
9074
|
*/
|
|
9074
9075
|
async transfer(code, amount, fromAccount, toAccount, params = {}) {
|
|
9075
9076
|
await this.loadMarkets();
|
|
@@ -9175,7 +9176,7 @@ export default class binance extends Exchange {
|
|
|
9175
9176
|
* @param {int} [params.until] the latest time in ms to fetch transfers for
|
|
9176
9177
|
* @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)
|
|
9177
9178
|
* @param {boolean} [params.internal] default false, when true will fetch pay trade history
|
|
9178
|
-
* @returns {object[]} a list of [transfer structures]{@link https://docs.ccxt.com
|
|
9179
|
+
* @returns {object[]} a list of [transfer structures]{@link https://docs.ccxt.com/?id=transfer-structure}
|
|
9179
9180
|
*/
|
|
9180
9181
|
async fetchTransfers(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
9181
9182
|
await this.loadMarkets();
|
|
@@ -9316,7 +9317,7 @@ export default class binance extends Exchange {
|
|
|
9316
9317
|
* @param {string} code unified currency code
|
|
9317
9318
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
9318
9319
|
* @param {string} [params.network] network for fetch deposit address
|
|
9319
|
-
* @returns {object} an [address structure]{@link https://docs.ccxt.com
|
|
9320
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/?id=address-structure}
|
|
9320
9321
|
*/
|
|
9321
9322
|
async fetchDepositAddress(code, params = {}) {
|
|
9322
9323
|
await this.loadMarkets();
|
|
@@ -9386,7 +9387,7 @@ export default class binance extends Exchange {
|
|
|
9386
9387
|
* @see https://developers.binance.com/docs/wallet/capital/all-coins-info
|
|
9387
9388
|
* @param {string[]|undefined} codes not used by binance fetchTransactionFees ()
|
|
9388
9389
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
9389
|
-
* @returns {object[]} a list of [fee structures]{@link https://docs.ccxt.com
|
|
9390
|
+
* @returns {object[]} a list of [fee structures]{@link https://docs.ccxt.com/?id=fee-structure}
|
|
9390
9391
|
*/
|
|
9391
9392
|
async fetchTransactionFees(codes = undefined, params = {}) {
|
|
9392
9393
|
await this.loadMarkets();
|
|
@@ -9500,7 +9501,7 @@ export default class binance extends Exchange {
|
|
|
9500
9501
|
* @see https://developers.binance.com/docs/wallet/capital/all-coins-info
|
|
9501
9502
|
* @param {string[]|undefined} codes not used by binance fetchDepositWithdrawFees ()
|
|
9502
9503
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
9503
|
-
* @returns {object[]} a list of [fee structures]{@link https://docs.ccxt.com
|
|
9504
|
+
* @returns {object[]} a list of [fee structures]{@link https://docs.ccxt.com/?id=fee-structure}
|
|
9504
9505
|
*/
|
|
9505
9506
|
async fetchDepositWithdrawFees(codes = undefined, params = {}) {
|
|
9506
9507
|
await this.loadMarkets();
|
|
@@ -9627,7 +9628,7 @@ export default class binance extends Exchange {
|
|
|
9627
9628
|
* @param {string} address the address to withdraw to
|
|
9628
9629
|
* @param {string} tag
|
|
9629
9630
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
9630
|
-
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com
|
|
9631
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
9631
9632
|
*/
|
|
9632
9633
|
async withdraw(code, amount, address, tag = undefined, params = {}) {
|
|
9633
9634
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
@@ -9697,7 +9698,7 @@ export default class binance extends Exchange {
|
|
|
9697
9698
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
9698
9699
|
* @param {boolean} [params.portfolioMargin] set to true if you would like to fetch trading fees in a portfolio margin account
|
|
9699
9700
|
* @param {string} [params.subType] "linear" or "inverse"
|
|
9700
|
-
* @returns {object} a [fee structure]{@link https://docs.ccxt.com
|
|
9701
|
+
* @returns {object} a [fee structure]{@link https://docs.ccxt.com/?id=fee-structure}
|
|
9701
9702
|
*/
|
|
9702
9703
|
async fetchTradingFee(symbol, params = {}) {
|
|
9703
9704
|
await this.loadMarkets();
|
|
@@ -9767,7 +9768,7 @@ export default class binance extends Exchange {
|
|
|
9767
9768
|
* @see https://developers.binance.com/docs/derivatives/usds-margined-futures/account/rest-api/Account-Config
|
|
9768
9769
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
9769
9770
|
* @param {string} [params.subType] "linear" or "inverse"
|
|
9770
|
-
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com
|
|
9771
|
+
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/?id=fee-structure} indexed by market symbols
|
|
9771
9772
|
*/
|
|
9772
9773
|
async fetchTradingFees(params = {}) {
|
|
9773
9774
|
await this.loadMarkets();
|
|
@@ -9948,7 +9949,7 @@ export default class binance extends Exchange {
|
|
|
9948
9949
|
* @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
|
|
9949
9950
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
9950
9951
|
* @param {float} params.recvWindow
|
|
9951
|
-
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com
|
|
9952
|
+
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com/?id=futures-transfer-structure}
|
|
9952
9953
|
*/
|
|
9953
9954
|
async futuresTransfer(code, amount, type, params = {}) {
|
|
9954
9955
|
if ((type < 1) || (type > 4)) {
|
|
@@ -9977,7 +9978,7 @@ export default class binance extends Exchange {
|
|
|
9977
9978
|
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Index-Price-and-Mark-Price
|
|
9978
9979
|
* @param {string} symbol unified market symbol
|
|
9979
9980
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
9980
|
-
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com
|
|
9981
|
+
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/?id=funding-rate-structure}
|
|
9981
9982
|
*/
|
|
9982
9983
|
async fetchFundingRate(symbol, params = {}) {
|
|
9983
9984
|
await this.loadMarkets();
|
|
@@ -10020,12 +10021,12 @@ export default class binance extends Exchange {
|
|
|
10020
10021
|
* @see https://developers.binance.com/docs/derivatives/coin-margined-futures/market-data/rest-api/Get-Funding-Rate-History-of-Perpetual-Futures
|
|
10021
10022
|
* @param {string} symbol unified symbol of the market to fetch the funding rate history for
|
|
10022
10023
|
* @param {int} [since] timestamp in ms of the earliest funding rate to fetch
|
|
10023
|
-
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com
|
|
10024
|
+
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rate-history-structure} to fetch
|
|
10024
10025
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
10025
10026
|
* @param {int} [params.until] timestamp in ms of the latest funding rate
|
|
10026
10027
|
* @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)
|
|
10027
10028
|
* @param {string} [params.subType] "linear" or "inverse"
|
|
10028
|
-
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com
|
|
10029
|
+
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rate-history-structure}
|
|
10029
10030
|
*/
|
|
10030
10031
|
async fetchFundingRateHistory(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
10031
10032
|
await this.loadMarkets();
|
|
@@ -10103,7 +10104,7 @@ export default class binance extends Exchange {
|
|
|
10103
10104
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
10104
10105
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
10105
10106
|
* @param {string} [params.subType] "linear" or "inverse"
|
|
10106
|
-
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com
|
|
10107
|
+
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rates-structure}, indexed by market symbols
|
|
10107
10108
|
*/
|
|
10108
10109
|
async fetchFundingRates(symbols = undefined, params = {}) {
|
|
10109
10110
|
await this.loadMarkets();
|
|
@@ -10784,7 +10785,7 @@ export default class binance extends Exchange {
|
|
|
10784
10785
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
10785
10786
|
* @param {boolean} [params.portfolioMargin] set to true if you would like to fetch the leverage tiers for a portfolio margin account
|
|
10786
10787
|
* @param {string} [params.subType] "linear" or "inverse"
|
|
10787
|
-
* @returns {object} a dictionary of [leverage tiers structures]{@link https://docs.ccxt.com
|
|
10788
|
+
* @returns {object} a dictionary of [leverage tiers structures]{@link https://docs.ccxt.com/?id=leverage-tiers-structure}, indexed by market symbols
|
|
10788
10789
|
*/
|
|
10789
10790
|
async fetchLeverageTiers(symbols = undefined, params = {}) {
|
|
10790
10791
|
await this.loadMarkets();
|
|
@@ -10903,7 +10904,7 @@ export default class binance extends Exchange {
|
|
|
10903
10904
|
* @see https://developers.binance.com/docs/derivatives/option/trade/Option-Position-Information
|
|
10904
10905
|
* @param {string} symbol unified market symbol of the market the position is held in
|
|
10905
10906
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
10906
|
-
* @returns {object} a [position structure]{@link https://docs.ccxt.com
|
|
10907
|
+
* @returns {object} a [position structure]{@link https://docs.ccxt.com/?id=position-structure}
|
|
10907
10908
|
*/
|
|
10908
10909
|
async fetchPosition(symbol, params = {}) {
|
|
10909
10910
|
await this.loadMarkets();
|
|
@@ -10947,7 +10948,7 @@ export default class binance extends Exchange {
|
|
|
10947
10948
|
* @see https://developers.binance.com/docs/derivatives/option/trade/Option-Position-Information
|
|
10948
10949
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
10949
10950
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
10950
|
-
* @returns {object[]} a list of [position structures]{@link https://docs.ccxt.com
|
|
10951
|
+
* @returns {object[]} a list of [position structures]{@link https://docs.ccxt.com/?id=position-structure}
|
|
10951
10952
|
*/
|
|
10952
10953
|
async fetchOptionPositions(symbols = undefined, params = {}) {
|
|
10953
10954
|
await this.loadMarkets();
|
|
@@ -11070,7 +11071,7 @@ export default class binance extends Exchange {
|
|
|
11070
11071
|
* @param {object} [params.params] extra parameters specific to the exchange API endpoint
|
|
11071
11072
|
* @param {string} [params.method] method name to call, "positionRisk", "account" or "option", default is "positionRisk"
|
|
11072
11073
|
* @param {bool} [params.useV2] set to true if you want to use the obsolete endpoint, where some more additional fields were provided
|
|
11073
|
-
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com
|
|
11074
|
+
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/?id=position-structure}
|
|
11074
11075
|
*/
|
|
11075
11076
|
async fetchPositions(symbols = undefined, params = {}) {
|
|
11076
11077
|
let defaultMethod = undefined;
|
|
@@ -11424,7 +11425,7 @@ export default class binance extends Exchange {
|
|
|
11424
11425
|
* @param {int} [params.until] timestamp in ms of the latest funding history entry
|
|
11425
11426
|
* @param {boolean} [params.portfolioMargin] set to true if you would like to fetch the funding history for a portfolio margin account
|
|
11426
11427
|
* @param {string} [params.subType] "linear" or "inverse"
|
|
11427
|
-
* @returns {object} a [funding history structure]{@link https://docs.ccxt.com
|
|
11428
|
+
* @returns {object} a [funding history structure]{@link https://docs.ccxt.com/?id=funding-history-structure}
|
|
11428
11429
|
*/
|
|
11429
11430
|
async fetchFundingHistory(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
11430
11431
|
await this.loadMarkets();
|
|
@@ -11672,7 +11673,7 @@ export default class binance extends Exchange {
|
|
|
11672
11673
|
* @param {string[]} [symbols] a list of unified market symbols
|
|
11673
11674
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
11674
11675
|
* @param {string} [params.subType] "linear" or "inverse"
|
|
11675
|
-
* @returns {object} a list of [leverage structures]{@link https://docs.ccxt.com
|
|
11676
|
+
* @returns {object} a list of [leverage structures]{@link https://docs.ccxt.com/?id=leverage-structure}
|
|
11676
11677
|
*/
|
|
11677
11678
|
async fetchLeverages(symbols = undefined, params = {}) {
|
|
11678
11679
|
await this.loadMarkets();
|
|
@@ -11751,7 +11752,7 @@ export default class binance extends Exchange {
|
|
|
11751
11752
|
* @param {int} [since] timestamp in ms
|
|
11752
11753
|
* @param {int} [limit] number of records, default 100, max 100
|
|
11753
11754
|
* @param {object} [params] exchange specific params
|
|
11754
|
-
* @returns {object[]} a list of [settlement history objects]{@link https://docs.ccxt.com
|
|
11755
|
+
* @returns {object[]} a list of [settlement history objects]{@link https://docs.ccxt.com/?id=settlement-history-structure}
|
|
11755
11756
|
*/
|
|
11756
11757
|
async fetchSettlementHistory(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
11757
11758
|
await this.loadMarkets();
|
|
@@ -11933,7 +11934,7 @@ export default class binance extends Exchange {
|
|
|
11933
11934
|
* @param {string} id the identification number of the ledger entry
|
|
11934
11935
|
* @param {string} code unified currency code
|
|
11935
11936
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
11936
|
-
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com
|
|
11937
|
+
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com/?id=ledger}
|
|
11937
11938
|
*/
|
|
11938
11939
|
async fetchLedgerEntry(id, code = undefined, params = {}) {
|
|
11939
11940
|
await this.loadMarkets();
|
|
@@ -11980,7 +11981,7 @@ export default class binance extends Exchange {
|
|
|
11980
11981
|
* @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)
|
|
11981
11982
|
* @param {boolean} [params.portfolioMargin] set to true if you would like to fetch the ledger for a portfolio margin account
|
|
11982
11983
|
* @param {string} [params.subType] "linear" or "inverse"
|
|
11983
|
-
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com
|
|
11984
|
+
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com/?id=ledger}
|
|
11984
11985
|
*/
|
|
11985
11986
|
async fetchLedger(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
11986
11987
|
await this.loadMarkets();
|
|
@@ -12568,7 +12569,7 @@ export default class binance extends Exchange {
|
|
|
12568
12569
|
* @param {string} symbol unified market symbol
|
|
12569
12570
|
* @param {float} amount the amount of margin to remove
|
|
12570
12571
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
12571
|
-
* @returns {object} a [margin structure]{@link https://docs.ccxt.com
|
|
12572
|
+
* @returns {object} a [margin structure]{@link https://docs.ccxt.com/?id=reduce-margin-structure}
|
|
12572
12573
|
*/
|
|
12573
12574
|
async reduceMargin(symbol, amount, params = {}) {
|
|
12574
12575
|
return await this.modifyMarginHelper(symbol, amount, 2, params);
|
|
@@ -12582,7 +12583,7 @@ export default class binance extends Exchange {
|
|
|
12582
12583
|
* @param {string} symbol unified market symbol
|
|
12583
12584
|
* @param {float} amount amount of margin to add
|
|
12584
12585
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
12585
|
-
* @returns {object} a [margin structure]{@link https://docs.ccxt.com
|
|
12586
|
+
* @returns {object} a [margin structure]{@link https://docs.ccxt.com/?id=add-margin-structure}
|
|
12586
12587
|
*/
|
|
12587
12588
|
async addMargin(symbol, amount, params = {}) {
|
|
12588
12589
|
return await this.modifyMarginHelper(symbol, amount, 1, params);
|
|
@@ -12594,7 +12595,7 @@ export default class binance extends Exchange {
|
|
|
12594
12595
|
* @see https://developers.binance.com/docs/margin_trading/borrow-and-repay/Query-Margin-Interest-Rate-History
|
|
12595
12596
|
* @param {string} code unified currency code
|
|
12596
12597
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
12597
|
-
* @returns {object} a [borrow rate structure]{@link https://docs.ccxt.com
|
|
12598
|
+
* @returns {object} a [borrow rate structure]{@link https://docs.ccxt.com/?id=borrow-rate-structure}
|
|
12598
12599
|
*/
|
|
12599
12600
|
async fetchCrossBorrowRate(code, params = {}) {
|
|
12600
12601
|
await this.loadMarkets();
|
|
@@ -12627,7 +12628,7 @@ export default class binance extends Exchange {
|
|
|
12627
12628
|
*
|
|
12628
12629
|
* EXCHANGE SPECIFIC PARAMETERS
|
|
12629
12630
|
* @param {object} [params.vipLevel] user's current specific margin data will be returned if viplevel is omitted
|
|
12630
|
-
* @returns {object} an [isolated borrow rate structure]{@link https://docs.ccxt.com
|
|
12631
|
+
* @returns {object} an [isolated borrow rate structure]{@link https://docs.ccxt.com/?id=isolated-borrow-rate-structure}
|
|
12631
12632
|
*/
|
|
12632
12633
|
async fetchIsolatedBorrowRate(symbol, params = {}) {
|
|
12633
12634
|
const request = {
|
|
@@ -12646,7 +12647,7 @@ export default class binance extends Exchange {
|
|
|
12646
12647
|
*
|
|
12647
12648
|
* EXCHANGE SPECIFIC PARAMETERS
|
|
12648
12649
|
* @param {object} [params.vipLevel] user's current specific margin data will be returned if viplevel is omitted
|
|
12649
|
-
* @returns {object} a [borrow rate structure]{@link https://docs.ccxt.com
|
|
12650
|
+
* @returns {object} a [borrow rate structure]{@link https://docs.ccxt.com/?id=borrow-rate-structure}
|
|
12650
12651
|
*/
|
|
12651
12652
|
async fetchIsolatedBorrowRates(params = {}) {
|
|
12652
12653
|
await this.loadMarkets();
|
|
@@ -12688,9 +12689,9 @@ export default class binance extends Exchange {
|
|
|
12688
12689
|
* @see https://developers.binance.com/docs/margin_trading/borrow-and-repay/Query-Margin-Interest-Rate-History
|
|
12689
12690
|
* @param {string} code unified currency code
|
|
12690
12691
|
* @param {int} [since] timestamp for the earliest borrow rate
|
|
12691
|
-
* @param {int} [limit] the maximum number of [borrow rate structures]{@link https://docs.ccxt.com
|
|
12692
|
+
* @param {int} [limit] the maximum number of [borrow rate structures]{@link https://docs.ccxt.com/?id=borrow-rate-structure} to retrieve
|
|
12692
12693
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
12693
|
-
* @returns {object[]} an array of [borrow rate structures]{@link https://docs.ccxt.com
|
|
12694
|
+
* @returns {object[]} an array of [borrow rate structures]{@link https://docs.ccxt.com/?id=borrow-rate-structure}
|
|
12694
12695
|
*/
|
|
12695
12696
|
async fetchBorrowRateHistory(code, since = undefined, limit = undefined, params = {}) {
|
|
12696
12697
|
await this.loadMarkets();
|
|
@@ -12883,7 +12884,7 @@ export default class binance extends Exchange {
|
|
|
12883
12884
|
* @param {int} [limit] the maximum number of structures to retrieve
|
|
12884
12885
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
12885
12886
|
* @param {boolean} [params.portfolioMargin] set to true if you would like to fetch the borrow interest in a portfolio margin account
|
|
12886
|
-
* @returns {object[]} a list of [borrow interest structures]{@link https://docs.ccxt.com
|
|
12887
|
+
* @returns {object[]} a list of [borrow interest structures]{@link https://docs.ccxt.com/?id=borrow-interest-structure}
|
|
12887
12888
|
*/
|
|
12888
12889
|
async fetchBorrowInterest(code = undefined, symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
12889
12890
|
await this.loadMarkets();
|
|
@@ -12982,7 +12983,7 @@ export default class binance extends Exchange {
|
|
|
12982
12983
|
* @param {boolean} [params.portfolioMargin] set to true if you would like to repay margin in a portfolio margin account
|
|
12983
12984
|
* @param {string} [params.repayCrossMarginMethod] *portfolio margin only* 'papiPostRepayLoan' (default), 'papiPostMarginRepayDebt' (alternative)
|
|
12984
12985
|
* @param {string} [params.specifyRepayAssets] *portfolio margin papiPostMarginRepayDebt only* specific asset list to repay debt
|
|
12985
|
-
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com
|
|
12986
|
+
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/?id=margin-loan-structure}
|
|
12986
12987
|
*/
|
|
12987
12988
|
async repayCrossMargin(code, amount, params = {}) {
|
|
12988
12989
|
await this.loadMarkets();
|
|
@@ -13041,7 +13042,7 @@ export default class binance extends Exchange {
|
|
|
13041
13042
|
* @param {string} code unified currency code of the currency to repay
|
|
13042
13043
|
* @param {float} amount the amount to repay
|
|
13043
13044
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
13044
|
-
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com
|
|
13045
|
+
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/?id=margin-loan-structure}
|
|
13045
13046
|
*/
|
|
13046
13047
|
async repayIsolatedMargin(symbol, code, amount, params = {}) {
|
|
13047
13048
|
await this.loadMarkets();
|
|
@@ -13073,7 +13074,7 @@ export default class binance extends Exchange {
|
|
|
13073
13074
|
* @param {float} amount the amount to borrow
|
|
13074
13075
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
13075
13076
|
* @param {boolean} [params.portfolioMargin] set to true if you would like to borrow margin in a portfolio margin account
|
|
13076
|
-
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com
|
|
13077
|
+
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/?id=margin-loan-structure}
|
|
13077
13078
|
*/
|
|
13078
13079
|
async borrowCrossMargin(code, amount, params = {}) {
|
|
13079
13080
|
await this.loadMarkets();
|
|
@@ -13110,7 +13111,7 @@ export default class binance extends Exchange {
|
|
|
13110
13111
|
* @param {string} code unified currency code of the currency to borrow
|
|
13111
13112
|
* @param {float} amount the amount to borrow
|
|
13112
13113
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
13113
|
-
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com
|
|
13114
|
+
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/?id=margin-loan-structure}
|
|
13114
13115
|
*/
|
|
13115
13116
|
async borrowIsolatedMargin(symbol, code, amount, params = {}) {
|
|
13116
13117
|
await this.loadMarkets();
|
|
@@ -13174,7 +13175,7 @@ export default class binance extends Exchange {
|
|
|
13174
13175
|
* @param {object} [params] exchange specific parameters
|
|
13175
13176
|
* @param {int} [params.until] the time(ms) of the latest record to retrieve as a unix timestamp
|
|
13176
13177
|
* @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)
|
|
13177
|
-
* @returns {object} an array of [open interest structure]{@link https://docs.ccxt.com
|
|
13178
|
+
* @returns {object} an array of [open interest structure]{@link https://docs.ccxt.com/?id=open-interest-structure}
|
|
13178
13179
|
*/
|
|
13179
13180
|
async fetchOpenInterestHistory(symbol, timeframe = '5m', since = undefined, limit = undefined, params = {}) {
|
|
13180
13181
|
if (timeframe === '1m') {
|
|
@@ -13243,7 +13244,7 @@ export default class binance extends Exchange {
|
|
|
13243
13244
|
* @see https://developers.binance.com/docs/derivatives/option/market-data/Open-Interest
|
|
13244
13245
|
* @param {string} symbol unified CCXT market symbol
|
|
13245
13246
|
* @param {object} [params] exchange specific parameters
|
|
13246
|
-
* @returns {object} an open interest structure{@link https://docs.ccxt.com
|
|
13247
|
+
* @returns {object} an open interest structure{@link https://docs.ccxt.com/?id=open-interest-structure}
|
|
13247
13248
|
*/
|
|
13248
13249
|
async fetchOpenInterest(symbol, params = {}) {
|
|
13249
13250
|
await this.loadMarkets();
|
|
@@ -13350,7 +13351,7 @@ export default class binance extends Exchange {
|
|
|
13350
13351
|
* @param {boolean} [params.portfolioMargin] set to true if you would like to fetch liquidations in a portfolio margin account
|
|
13351
13352
|
* @param {string} [params.type] "spot"
|
|
13352
13353
|
* @param {string} [params.subType] "linear" or "inverse"
|
|
13353
|
-
* @returns {object} an array of [liquidation structures]{@link https://docs.ccxt.com
|
|
13354
|
+
* @returns {object} an array of [liquidation structures]{@link https://docs.ccxt.com/?id=liquidation-structure}
|
|
13354
13355
|
*/
|
|
13355
13356
|
async fetchMyLiquidations(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
13356
13357
|
await this.loadMarkets();
|
|
@@ -13590,7 +13591,7 @@ export default class binance extends Exchange {
|
|
|
13590
13591
|
* @see https://developers.binance.com/docs/derivatives/option/market-data/Option-Mark-Price
|
|
13591
13592
|
* @param {string} symbol unified symbol of the market to fetch greeks for
|
|
13592
13593
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
13593
|
-
* @returns {object} a [greeks structure]{@link https://docs.ccxt.com
|
|
13594
|
+
* @returns {object} a [greeks structure]{@link https://docs.ccxt.com/?id=greeks-structure}
|
|
13594
13595
|
*/
|
|
13595
13596
|
async fetchGreeks(symbol, params = {}) {
|
|
13596
13597
|
await this.loadMarkets();
|
|
@@ -13625,7 +13626,7 @@ export default class binance extends Exchange {
|
|
|
13625
13626
|
* @see https://developers.binance.com/docs/derivatives/option/market-data/Option-Mark-Price
|
|
13626
13627
|
* @param {string[]} [symbols] unified symbols of the markets to fetch greeks for, all markets are returned if not assigned
|
|
13627
13628
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
13628
|
-
* @returns {object} a [greeks structure]{@link https://docs.ccxt.com
|
|
13629
|
+
* @returns {object} a [greeks structure]{@link https://docs.ccxt.com/?id=greeks-structure}
|
|
13629
13630
|
*/
|
|
13630
13631
|
async fetchAllGreeks(symbols = undefined, params = {}) {
|
|
13631
13632
|
await this.loadMarkets();
|
|
@@ -13761,7 +13762,7 @@ export default class binance extends Exchange {
|
|
|
13761
13762
|
* @param {string[]} symbols unified market symbols
|
|
13762
13763
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
13763
13764
|
* @param {string} [params.subType] "linear" or "inverse"
|
|
13764
|
-
* @returns {object} a list of [margin mode structures]{@link https://docs.ccxt.com
|
|
13765
|
+
* @returns {object} a list of [margin mode structures]{@link https://docs.ccxt.com/?id=margin-mode-structure}
|
|
13765
13766
|
*/
|
|
13766
13767
|
async fetchMarginModes(symbols = undefined, params = {}) {
|
|
13767
13768
|
await this.loadMarkets();
|
|
@@ -13856,7 +13857,7 @@ export default class binance extends Exchange {
|
|
|
13856
13857
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
13857
13858
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
13858
13859
|
* @param {string} [params.subType] "linear" or "inverse"
|
|
13859
|
-
* @returns {object} a [margin mode structure]{@link https://docs.ccxt.com
|
|
13860
|
+
* @returns {object} a [margin mode structure]{@link https://docs.ccxt.com/?id=margin-mode-structure}
|
|
13860
13861
|
*/
|
|
13861
13862
|
async fetchMarginMode(symbol, params = {}) {
|
|
13862
13863
|
await this.loadMarkets();
|
|
@@ -13915,7 +13916,7 @@ export default class binance extends Exchange {
|
|
|
13915
13916
|
* @see https://developers.binance.com/docs/derivatives/option/market-data/24hr-Ticker-Price-Change-Statistics
|
|
13916
13917
|
* @param {string} symbol unified market symbol
|
|
13917
13918
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
13918
|
-
* @returns {object} an [option chain structure]{@link https://docs.ccxt.com
|
|
13919
|
+
* @returns {object} an [option chain structure]{@link https://docs.ccxt.com/?id=option-chain-structure}
|
|
13919
13920
|
*/
|
|
13920
13921
|
async fetchOption(symbol, params = {}) {
|
|
13921
13922
|
await this.loadMarkets();
|
|
@@ -14008,7 +14009,7 @@ export default class binance extends Exchange {
|
|
|
14008
14009
|
* @param {int} [limit] the maximum amount of changes to fetch
|
|
14009
14010
|
* @param {object} params extra parameters specific to the exchange api endpoint
|
|
14010
14011
|
* @param {int} [params.until] timestamp in ms of the latest change to fetch
|
|
14011
|
-
* @returns {object[]} a list of [margin structures]{@link https://docs.ccxt.com
|
|
14012
|
+
* @returns {object[]} a list of [margin structures]{@link https://docs.ccxt.com/?id=margin-loan-structure}
|
|
14012
14013
|
*/
|
|
14013
14014
|
async fetchMarginAdjustmentHistory(symbol = undefined, type = undefined, since = undefined, limit = undefined, params = {}) {
|
|
14014
14015
|
await this.loadMarkets();
|
|
@@ -14126,7 +14127,7 @@ export default class binance extends Exchange {
|
|
|
14126
14127
|
* @param {float} amount how much you want to trade in units of the from currency
|
|
14127
14128
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
14128
14129
|
* @param {string} [params.walletType] either 'SPOT' or 'FUNDING', the default is 'SPOT'
|
|
14129
|
-
* @returns {object} a [conversion structure]{@link https://docs.ccxt.com
|
|
14130
|
+
* @returns {object} a [conversion structure]{@link https://docs.ccxt.com/?id=conversion-structure}
|
|
14130
14131
|
*/
|
|
14131
14132
|
async fetchConvertQuote(fromCode, toCode, amount = undefined, params = {}) {
|
|
14132
14133
|
if (amount === undefined) {
|
|
@@ -14163,7 +14164,7 @@ export default class binance extends Exchange {
|
|
|
14163
14164
|
* @param {string} toCode the currency that you want to buy and convert into
|
|
14164
14165
|
* @param {float} [amount] how much you want to trade in units of the from currency
|
|
14165
14166
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
14166
|
-
* @returns {object} a [conversion structure]{@link https://docs.ccxt.com
|
|
14167
|
+
* @returns {object} a [conversion structure]{@link https://docs.ccxt.com/?id=conversion-structure}
|
|
14167
14168
|
*/
|
|
14168
14169
|
async createConvertTrade(id, fromCode, toCode, amount = undefined, params = {}) {
|
|
14169
14170
|
await this.loadMarkets();
|
|
@@ -14208,7 +14209,7 @@ export default class binance extends Exchange {
|
|
|
14208
14209
|
* @param {string} id the id of the trade that you want to fetch
|
|
14209
14210
|
* @param {string} [code] the unified currency code of the conversion trade
|
|
14210
14211
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
14211
|
-
* @returns {object} a [conversion structure]{@link https://docs.ccxt.com
|
|
14212
|
+
* @returns {object} a [conversion structure]{@link https://docs.ccxt.com/?id=conversion-structure}
|
|
14212
14213
|
*/
|
|
14213
14214
|
async fetchConvertTrade(id, code = undefined, params = {}) {
|
|
14214
14215
|
await this.loadMarkets();
|
|
@@ -14288,7 +14289,7 @@ export default class binance extends Exchange {
|
|
|
14288
14289
|
* @param {int} [limit] the maximum number of conversion structures to retrieve
|
|
14289
14290
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
14290
14291
|
* @param {int} [params.until] timestamp in ms of the latest conversion to fetch
|
|
14291
|
-
* @returns {object[]} a list of [conversion structures]{@link https://docs.ccxt.com
|
|
14292
|
+
* @returns {object[]} a list of [conversion structures]{@link https://docs.ccxt.com/?id=conversion-structure}
|
|
14292
14293
|
*/
|
|
14293
14294
|
async fetchConvertTradeHistory(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
14294
14295
|
await this.loadMarkets();
|
|
@@ -14477,7 +14478,7 @@ export default class binance extends Exchange {
|
|
|
14477
14478
|
* @param {string[]} [symbols] list of unified market symbols
|
|
14478
14479
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
14479
14480
|
* @param {string} [params.subType] "linear" or "inverse"
|
|
14480
|
-
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com
|
|
14481
|
+
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rate-structure}
|
|
14481
14482
|
*/
|
|
14482
14483
|
async fetchFundingIntervals(symbols = undefined, params = {}) {
|
|
14483
14484
|
await this.loadMarkets();
|
|
@@ -14524,7 +14525,7 @@ export default class binance extends Exchange {
|
|
|
14524
14525
|
* @param {int} [limit] the maximum number of long short ratio structures to retrieve
|
|
14525
14526
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
14526
14527
|
* @param {int} [params.until] timestamp in ms of the latest ratio to fetch
|
|
14527
|
-
* @returns {object[]} an array of [long short ratio structures]{@link https://docs.ccxt.com
|
|
14528
|
+
* @returns {object[]} an array of [long short ratio structures]{@link https://docs.ccxt.com/?id=long-short-ratio-structure}
|
|
14528
14529
|
*/
|
|
14529
14530
|
async fetchLongShortRatioHistory(symbol = undefined, timeframe = undefined, since = undefined, limit = undefined, params = {}) {
|
|
14530
14531
|
await this.loadMarkets();
|