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/zonda.js
CHANGED
|
@@ -508,7 +508,7 @@ class zonda extends zonda$1["default"] {
|
|
|
508
508
|
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
509
509
|
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
510
510
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
511
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
511
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
512
512
|
*/
|
|
513
513
|
async fetchOpenOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
514
514
|
await this.loadMarkets();
|
|
@@ -583,7 +583,7 @@ class zonda extends zonda$1["default"] {
|
|
|
583
583
|
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
584
584
|
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
585
585
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
586
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
586
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
587
587
|
*/
|
|
588
588
|
async fetchMyTrades(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
589
589
|
await this.loadMarkets();
|
|
@@ -645,7 +645,7 @@ class zonda extends zonda$1["default"] {
|
|
|
645
645
|
* @see https://docs.zondacrypto.exchange/reference/list-of-wallets
|
|
646
646
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
647
647
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
648
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
648
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
649
649
|
*/
|
|
650
650
|
async fetchBalance(params = {}) {
|
|
651
651
|
await this.loadMarkets();
|
|
@@ -660,7 +660,7 @@ class zonda extends zonda$1["default"] {
|
|
|
660
660
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
661
661
|
* @param {int} [limit] the maximum amount of order book entries to return
|
|
662
662
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
663
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
663
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
664
664
|
*/
|
|
665
665
|
async fetchOrderBook(symbol, limit = undefined, params = {}) {
|
|
666
666
|
await this.loadMarkets();
|
|
@@ -772,7 +772,7 @@ class zonda extends zonda$1["default"] {
|
|
|
772
772
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
773
773
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
774
774
|
* @param {string} [params.method] v1_01PublicGetTradingTickerSymbol (default) or v1_01PublicGetTradingStatsSymbol
|
|
775
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
775
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
776
776
|
*/
|
|
777
777
|
async fetchTicker(symbol, params = {}) {
|
|
778
778
|
await this.loadMarkets();
|
|
@@ -845,7 +845,7 @@ class zonda extends zonda$1["default"] {
|
|
|
845
845
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
846
846
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
847
847
|
* @param {string} [params.method] v1_01PublicGetTradingTicker (default) or v1_01PublicGetTradingStats
|
|
848
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com
|
|
848
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
849
849
|
*/
|
|
850
850
|
async fetchTickers(symbols = undefined, params = {}) {
|
|
851
851
|
await this.loadMarkets();
|
|
@@ -920,7 +920,7 @@ class zonda extends zonda$1["default"] {
|
|
|
920
920
|
* @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
|
|
921
921
|
* @param {int} [limit] max number of ledger entries to return, default is undefined
|
|
922
922
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
923
|
-
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com
|
|
923
|
+
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com/?id=ledger}
|
|
924
924
|
*/
|
|
925
925
|
async fetchLedger(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
926
926
|
const balanceCurrencies = [];
|
|
@@ -1424,7 +1424,7 @@ class zonda extends zonda$1["default"] {
|
|
|
1424
1424
|
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
1425
1425
|
* @param {int} [limit] the maximum amount of trades to fetch
|
|
1426
1426
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1427
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
1427
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
1428
1428
|
*/
|
|
1429
1429
|
async fetchTrades(symbol, since = undefined, limit = undefined, params = {}) {
|
|
1430
1430
|
await this.loadMarkets();
|
|
@@ -1454,7 +1454,7 @@ class zonda extends zonda$1["default"] {
|
|
|
1454
1454
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
1455
1455
|
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
1456
1456
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1457
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
1457
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1458
1458
|
*/
|
|
1459
1459
|
async createOrder(symbol, type, side, amount, price = undefined, params = {}) {
|
|
1460
1460
|
await this.loadMarkets();
|
|
@@ -1582,7 +1582,7 @@ class zonda extends zonda$1["default"] {
|
|
|
1582
1582
|
* @param {string} id order id
|
|
1583
1583
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
1584
1584
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1585
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
1585
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
1586
1586
|
*/
|
|
1587
1587
|
async cancelOrder(id, symbol = undefined, params = {}) {
|
|
1588
1588
|
const side = this.safeString(params, 'side');
|
|
@@ -1644,7 +1644,7 @@ class zonda extends zonda$1["default"] {
|
|
|
1644
1644
|
* @param {string} code unified currency code
|
|
1645
1645
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1646
1646
|
* @param {string} [params.walletId] Wallet id to filter deposit adresses.
|
|
1647
|
-
* @returns {object} an [address structure]{@link https://docs.ccxt.com
|
|
1647
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/?id=address-structure}
|
|
1648
1648
|
*/
|
|
1649
1649
|
async fetchDepositAddress(code, params = {}) {
|
|
1650
1650
|
await this.loadMarkets();
|
|
@@ -1677,7 +1677,7 @@ class zonda extends zonda$1["default"] {
|
|
|
1677
1677
|
* @description fetch deposit addresses for multiple currencies and chain types
|
|
1678
1678
|
* @param {string[]|undefined} codes zonda does not support filtering filtering by multiple codes and will ignore this parameter.
|
|
1679
1679
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1680
|
-
* @returns {object} a list of [address structures]{@link https://docs.ccxt.com
|
|
1680
|
+
* @returns {object} a list of [address structures]{@link https://docs.ccxt.com/?id=address-structure}
|
|
1681
1681
|
*/
|
|
1682
1682
|
async fetchDepositAddresses(codes = undefined, params = {}) {
|
|
1683
1683
|
await this.loadMarkets();
|
|
@@ -1708,7 +1708,7 @@ class zonda extends zonda$1["default"] {
|
|
|
1708
1708
|
* @param {string} fromAccount account to transfer from
|
|
1709
1709
|
* @param {string} toAccount account to transfer to
|
|
1710
1710
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1711
|
-
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com
|
|
1711
|
+
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com/?id=transfer-structure}
|
|
1712
1712
|
*/
|
|
1713
1713
|
async transfer(code, amount, fromAccount, toAccount, params = {}) {
|
|
1714
1714
|
await this.loadMarkets();
|
|
@@ -1820,7 +1820,7 @@ class zonda extends zonda$1["default"] {
|
|
|
1820
1820
|
* @param {string} address the address to withdraw to
|
|
1821
1821
|
* @param {string} tag
|
|
1822
1822
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1823
|
-
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com
|
|
1823
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
1824
1824
|
*/
|
|
1825
1825
|
async withdraw(code, amount, address, tag = undefined, params = {}) {
|
|
1826
1826
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
package/js/ccxt.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import * as functions from './src/base/functions.js';
|
|
|
4
4
|
import * as errors from './src/base/errors.js';
|
|
5
5
|
import type { Int, int, Str, Strings, Num, Bool, IndexType, OrderSide, OrderType, MarketType, SubType, Dict, NullableDict, List, NullableList, Fee, OHLCV, OHLCVC, implicitReturnType, Market, Currency, Dictionary, MinMax, FeeInterface, TradingFeeInterface, MarketInterface, Trade, Order, OrderBook, Ticker, Transaction, Tickers, CurrencyInterface, Balance, BalanceAccount, Account, PartialBalances, Balances, DepositAddress, WithdrawalResponse, FundingRate, FundingRates, Position, BorrowInterest, LeverageTier, LedgerEntry, DepositWithdrawFeeNetwork, DepositWithdrawFee, TransferEntry, CrossBorrowRate, IsolatedBorrowRate, FundingRateHistory, OpenInterest, Liquidation, OrderRequest, CancellationRequest, FundingHistory, MarketMarginModes, MarginMode, Greeks, Conversion, Option, LastPrice, Leverage, MarginModification, Leverages, LastPrices, Currencies, TradingFees, MarginModes, OptionChain, IsolatedBorrowRates, CrossBorrowRates, LeverageTiers, LongShortRatio, OrderBooks, OpenInterests, ConstructorArgs } from './src/base/types.js';
|
|
6
6
|
import { BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, RestrictedLocation, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError } from './src/base/errors.js';
|
|
7
|
-
declare const version = "4.5.
|
|
7
|
+
declare const version = "4.5.29";
|
|
8
8
|
import alpaca from './src/alpaca.js';
|
|
9
9
|
import apex from './src/apex.js';
|
|
10
10
|
import arkham from './src/arkham.js';
|
|
@@ -41,6 +41,7 @@ import btcmarkets from './src/btcmarkets.js';
|
|
|
41
41
|
import btcturk from './src/btcturk.js';
|
|
42
42
|
import bullish from './src/bullish.js';
|
|
43
43
|
import bybit from './src/bybit.js';
|
|
44
|
+
import bydfi from './src/bydfi.js';
|
|
44
45
|
import cex from './src/cex.js';
|
|
45
46
|
import coinbase from './src/coinbase.js';
|
|
46
47
|
import coinbaseadvanced from './src/coinbaseadvanced.js';
|
|
@@ -140,6 +141,7 @@ import blockchaincomPro from './src/pro/blockchaincom.js';
|
|
|
140
141
|
import blofinPro from './src/pro/blofin.js';
|
|
141
142
|
import bullishPro from './src/pro/bullish.js';
|
|
142
143
|
import bybitPro from './src/pro/bybit.js';
|
|
144
|
+
import bydfiPro from './src/pro/bydfi.js';
|
|
143
145
|
import cexPro from './src/pro/cex.js';
|
|
144
146
|
import coinbasePro from './src/pro/coinbase.js';
|
|
145
147
|
import coinbaseadvancedPro from './src/pro/coinbaseadvanced.js';
|
|
@@ -228,6 +230,7 @@ declare const exchanges: {
|
|
|
228
230
|
btcturk: typeof btcturk;
|
|
229
231
|
bullish: typeof bullish;
|
|
230
232
|
bybit: typeof bybit;
|
|
233
|
+
bydfi: typeof bydfi;
|
|
231
234
|
cex: typeof cex;
|
|
232
235
|
coinbase: typeof coinbase;
|
|
233
236
|
coinbaseadvanced: typeof coinbaseadvanced;
|
|
@@ -329,6 +332,7 @@ declare const pro: {
|
|
|
329
332
|
blofin: typeof blofinPro;
|
|
330
333
|
bullish: typeof bullishPro;
|
|
331
334
|
bybit: typeof bybitPro;
|
|
335
|
+
bydfi: typeof bydfiPro;
|
|
332
336
|
cex: typeof cexPro;
|
|
333
337
|
coinbase: typeof coinbasePro;
|
|
334
338
|
coinbaseadvanced: typeof coinbaseadvancedPro;
|
|
@@ -412,6 +416,7 @@ declare const ccxt: {
|
|
|
412
416
|
blofin: typeof blofinPro;
|
|
413
417
|
bullish: typeof bullishPro;
|
|
414
418
|
bybit: typeof bybitPro;
|
|
419
|
+
bydfi: typeof bydfiPro;
|
|
415
420
|
cex: typeof cexPro;
|
|
416
421
|
coinbase: typeof coinbasePro;
|
|
417
422
|
coinbaseadvanced: typeof coinbaseadvancedPro;
|
|
@@ -501,6 +506,7 @@ declare const ccxt: {
|
|
|
501
506
|
btcturk: typeof btcturk;
|
|
502
507
|
bullish: typeof bullish;
|
|
503
508
|
bybit: typeof bybit;
|
|
509
|
+
bydfi: typeof bydfi;
|
|
504
510
|
cex: typeof cex;
|
|
505
511
|
coinbase: typeof coinbase;
|
|
506
512
|
coinbaseadvanced: typeof coinbaseadvanced;
|
|
@@ -576,5 +582,5 @@ declare const ccxt: {
|
|
|
576
582
|
zebpay: typeof zebpay;
|
|
577
583
|
zonda: typeof zonda;
|
|
578
584
|
} & typeof functions & typeof errors;
|
|
579
|
-
export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, RestrictedLocation, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError, Int, int, Str, Strings, Num, Bool, IndexType, OrderSide, OrderType, MarketType, SubType, Dict, NullableDict, List, NullableList, Fee, OHLCV, OHLCVC, implicitReturnType, Market, Currency, ConstructorArgs, Dictionary, MinMax, FeeInterface, TradingFeeInterface, MarketMarginModes, MarketInterface, Trade, Order, OrderBook, OrderBooks, Ticker, Transaction, Tickers, CurrencyInterface, Balance, BalanceAccount, Account, PartialBalances, Balances, DepositAddress, WithdrawalResponse, FundingRate, FundingRates, Position, BorrowInterest, LeverageTier, LedgerEntry, DepositWithdrawFeeNetwork, DepositWithdrawFee, TransferEntry, CrossBorrowRate, IsolatedBorrowRate, FundingRateHistory, OpenInterest, OpenInterests, Liquidation, OrderRequest, CancellationRequest, FundingHistory, MarginMode, Greeks, Conversion, Option, LastPrice, Leverage, LongShortRatio, MarginModification, Leverages, LastPrices, Currencies, TradingFees, MarginModes, OptionChain, IsolatedBorrowRates, CrossBorrowRates, LeverageTiers, alpaca, apex, arkham, ascendex, backpack, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbns, bitfinex, bitflyer, bitget, bithumb, bitmart, bitmex, bitopro, bitrue, bitso, bitstamp, bitteam, bittrade, bitvavo, blockchaincom, blofin, btcalpha, btcbox, btcmarkets, btcturk, bullish, bybit, cex, coinbase, coinbaseadvanced, coinbaseexchange, coinbaseinternational, coincatch, coincheck, coinex, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, cryptomus, deepcoin, defx, delta, deribit, derive, digifinex, dydx, exmo, fmfwio, foxbit, gate, gateio, gemini, hashkey, hibachi, hitbtc, hollaex, htx, huobi, hyperliquid, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, latoken, lbank, luno, mercado, mexc, modetrade, myokx, ndax, novadax, oceanex, okx, okxus, onetrading, oxfun, p2b, paradex, paymium, phemex, poloniex, probit, timex, tokocrypto, toobit, upbit, wavesexchange, whitebit, woo, woofipro, xt, yobit, zaif, zebpay, zonda, };
|
|
585
|
+
export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, RestrictedLocation, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError, Int, int, Str, Strings, Num, Bool, IndexType, OrderSide, OrderType, MarketType, SubType, Dict, NullableDict, List, NullableList, Fee, OHLCV, OHLCVC, implicitReturnType, Market, Currency, ConstructorArgs, Dictionary, MinMax, FeeInterface, TradingFeeInterface, MarketMarginModes, MarketInterface, Trade, Order, OrderBook, OrderBooks, Ticker, Transaction, Tickers, CurrencyInterface, Balance, BalanceAccount, Account, PartialBalances, Balances, DepositAddress, WithdrawalResponse, FundingRate, FundingRates, Position, BorrowInterest, LeverageTier, LedgerEntry, DepositWithdrawFeeNetwork, DepositWithdrawFee, TransferEntry, CrossBorrowRate, IsolatedBorrowRate, FundingRateHistory, OpenInterest, OpenInterests, Liquidation, OrderRequest, CancellationRequest, FundingHistory, MarginMode, Greeks, Conversion, Option, LastPrice, Leverage, LongShortRatio, MarginModification, Leverages, LastPrices, Currencies, TradingFees, MarginModes, OptionChain, IsolatedBorrowRates, CrossBorrowRates, LeverageTiers, alpaca, apex, arkham, ascendex, backpack, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbns, bitfinex, bitflyer, bitget, bithumb, bitmart, bitmex, bitopro, bitrue, bitso, bitstamp, bitteam, bittrade, bitvavo, blockchaincom, blofin, btcalpha, btcbox, btcmarkets, btcturk, bullish, bybit, bydfi, cex, coinbase, coinbaseadvanced, coinbaseexchange, coinbaseinternational, coincatch, coincheck, coinex, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, cryptomus, deepcoin, defx, delta, deribit, derive, digifinex, dydx, exmo, fmfwio, foxbit, gate, gateio, gemini, hashkey, hibachi, hitbtc, hollaex, htx, huobi, hyperliquid, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, latoken, lbank, luno, mercado, mexc, modetrade, myokx, ndax, novadax, oceanex, okx, okxus, onetrading, oxfun, p2b, paradex, paymium, phemex, poloniex, probit, timex, tokocrypto, toobit, upbit, wavesexchange, whitebit, woo, woofipro, xt, yobit, zaif, zebpay, zonda, };
|
|
580
586
|
export default ccxt;
|
package/js/ccxt.js
CHANGED
|
@@ -38,7 +38,7 @@ import * as errors from './src/base/errors.js';
|
|
|
38
38
|
import { BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, RestrictedLocation, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError } from './src/base/errors.js';
|
|
39
39
|
//-----------------------------------------------------------------------------
|
|
40
40
|
// this is updated by vss.js when building
|
|
41
|
-
const version = '4.5.
|
|
41
|
+
const version = '4.5.29';
|
|
42
42
|
Exchange.ccxtVersion = version;
|
|
43
43
|
//-----------------------------------------------------------------------------
|
|
44
44
|
import alpaca from './src/alpaca.js';
|
|
@@ -77,6 +77,7 @@ import btcmarkets from './src/btcmarkets.js';
|
|
|
77
77
|
import btcturk from './src/btcturk.js';
|
|
78
78
|
import bullish from './src/bullish.js';
|
|
79
79
|
import bybit from './src/bybit.js';
|
|
80
|
+
import bydfi from './src/bydfi.js';
|
|
80
81
|
import cex from './src/cex.js';
|
|
81
82
|
import coinbase from './src/coinbase.js';
|
|
82
83
|
import coinbaseadvanced from './src/coinbaseadvanced.js';
|
|
@@ -177,6 +178,7 @@ import blockchaincomPro from './src/pro/blockchaincom.js';
|
|
|
177
178
|
import blofinPro from './src/pro/blofin.js';
|
|
178
179
|
import bullishPro from './src/pro/bullish.js';
|
|
179
180
|
import bybitPro from './src/pro/bybit.js';
|
|
181
|
+
import bydfiPro from './src/pro/bydfi.js';
|
|
180
182
|
import cexPro from './src/pro/cex.js';
|
|
181
183
|
import coinbasePro from './src/pro/coinbase.js';
|
|
182
184
|
import coinbaseadvancedPro from './src/pro/coinbaseadvanced.js';
|
|
@@ -265,6 +267,7 @@ const exchanges = {
|
|
|
265
267
|
'btcturk': btcturk,
|
|
266
268
|
'bullish': bullish,
|
|
267
269
|
'bybit': bybit,
|
|
270
|
+
'bydfi': bydfi,
|
|
268
271
|
'cex': cex,
|
|
269
272
|
'coinbase': coinbase,
|
|
270
273
|
'coinbaseadvanced': coinbaseadvanced,
|
|
@@ -366,6 +369,7 @@ const pro = {
|
|
|
366
369
|
'blofin': blofinPro,
|
|
367
370
|
'bullish': bullishPro,
|
|
368
371
|
'bybit': bybitPro,
|
|
372
|
+
'bydfi': bydfiPro,
|
|
369
373
|
'cex': cexPro,
|
|
370
374
|
'coinbase': coinbasePro,
|
|
371
375
|
'coinbaseadvanced': coinbaseadvancedPro,
|
|
@@ -430,6 +434,6 @@ pro.exchanges = Object.keys(pro);
|
|
|
430
434
|
pro['Exchange'] = Exchange; // now the same for rest and ts
|
|
431
435
|
//-----------------------------------------------------------------------------
|
|
432
436
|
const ccxt = Object.assign({ version, Exchange, Precise, 'exchanges': Object.keys(exchanges), 'pro': pro }, exchanges, functions, errors);
|
|
433
|
-
export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, RestrictedLocation, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError, alpaca, apex, arkham, ascendex, backpack, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbns, bitfinex, bitflyer, bitget, bithumb, bitmart, bitmex, bitopro, bitrue, bitso, bitstamp, bitteam, bittrade, bitvavo, blockchaincom, blofin, btcalpha, btcbox, btcmarkets, btcturk, bullish, bybit, cex, coinbase, coinbaseadvanced, coinbaseexchange, coinbaseinternational, coincatch, coincheck, coinex, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, cryptomus, deepcoin, defx, delta, deribit, derive, digifinex, dydx, exmo, fmfwio, foxbit, gate, gateio, gemini, hashkey, hibachi, hitbtc, hollaex, htx, huobi, hyperliquid, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, latoken, lbank, luno, mercado, mexc, modetrade, myokx, ndax, novadax, oceanex, okx, okxus, onetrading, oxfun, p2b, paradex, paymium, phemex, poloniex, probit, timex, tokocrypto, toobit, upbit, wavesexchange, whitebit, woo, woofipro, xt, yobit, zaif, zebpay, zonda, };
|
|
437
|
+
export { version, Exchange, exchanges, pro, Precise, functions, errors, BaseError, ExchangeError, AuthenticationError, PermissionDenied, AccountNotEnabled, AccountSuspended, ArgumentsRequired, BadRequest, BadSymbol, OperationRejected, NoChange, MarginModeAlreadySet, MarketClosed, ManualInteractionNeeded, RestrictedLocation, InsufficientFunds, InvalidAddress, AddressPending, InvalidOrder, OrderNotFound, OrderNotCached, OrderImmediatelyFillable, OrderNotFillable, DuplicateOrderId, ContractUnavailable, NotSupported, InvalidProxySettings, ExchangeClosedByUser, OperationFailed, NetworkError, DDoSProtection, RateLimitExceeded, ExchangeNotAvailable, OnMaintenance, InvalidNonce, ChecksumError, RequestTimeout, BadResponse, NullResponse, CancelPending, UnsubscribeError, alpaca, apex, arkham, ascendex, backpack, bequant, bigone, binance, binancecoinm, binanceus, binanceusdm, bingx, bit2c, bitbank, bitbns, bitfinex, bitflyer, bitget, bithumb, bitmart, bitmex, bitopro, bitrue, bitso, bitstamp, bitteam, bittrade, bitvavo, blockchaincom, blofin, btcalpha, btcbox, btcmarkets, btcturk, bullish, bybit, bydfi, cex, coinbase, coinbaseadvanced, coinbaseexchange, coinbaseinternational, coincatch, coincheck, coinex, coinmate, coinmetro, coinone, coinsph, coinspot, cryptocom, cryptomus, deepcoin, defx, delta, deribit, derive, digifinex, dydx, exmo, fmfwio, foxbit, gate, gateio, gemini, hashkey, hibachi, hitbtc, hollaex, htx, huobi, hyperliquid, independentreserve, indodax, kraken, krakenfutures, kucoin, kucoinfutures, latoken, lbank, luno, mercado, mexc, modetrade, myokx, ndax, novadax, oceanex, okx, okxus, onetrading, oxfun, p2b, paradex, paymium, phemex, poloniex, probit, timex, tokocrypto, toobit, upbit, wavesexchange, whitebit, woo, woofipro, xt, yobit, zaif, zebpay, zonda, };
|
|
434
438
|
export default ccxt;
|
|
435
439
|
//-----------------------------------------------------------------------------
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { implicitReturnType } from '../base/types.js';
|
|
2
|
+
import { Exchange as _Exchange } from '../base/Exchange.js';
|
|
3
|
+
interface Exchange {
|
|
4
|
+
publicGetV1PublicApiLimits(params?: {}): Promise<implicitReturnType>;
|
|
5
|
+
publicGetV1SwapMarketExchangeInfo(params?: {}): Promise<implicitReturnType>;
|
|
6
|
+
publicGetV1SwapMarketDepth(params?: {}): Promise<implicitReturnType>;
|
|
7
|
+
publicGetV1SwapMarketTrades(params?: {}): Promise<implicitReturnType>;
|
|
8
|
+
publicGetV1SwapMarketKlines(params?: {}): Promise<implicitReturnType>;
|
|
9
|
+
publicGetV1SwapMarketTicker24hr(params?: {}): Promise<implicitReturnType>;
|
|
10
|
+
publicGetV1SwapMarketTickerPrice(params?: {}): Promise<implicitReturnType>;
|
|
11
|
+
publicGetV1SwapMarketMarkPrice(params?: {}): Promise<implicitReturnType>;
|
|
12
|
+
publicGetV1SwapMarketFundingRate(params?: {}): Promise<implicitReturnType>;
|
|
13
|
+
publicGetV1SwapMarketFundingRateHistory(params?: {}): Promise<implicitReturnType>;
|
|
14
|
+
publicGetV1SwapMarketRiskLimit(params?: {}): Promise<implicitReturnType>;
|
|
15
|
+
privateGetV1AccountAssets(params?: {}): Promise<implicitReturnType>;
|
|
16
|
+
privateGetV1AccountTransferRecords(params?: {}): Promise<implicitReturnType>;
|
|
17
|
+
privateGetV1SpotDepositRecords(params?: {}): Promise<implicitReturnType>;
|
|
18
|
+
privateGetV1SpotWithdrawRecords(params?: {}): Promise<implicitReturnType>;
|
|
19
|
+
privateGetV1SwapTradeOpenOrder(params?: {}): Promise<implicitReturnType>;
|
|
20
|
+
privateGetV1SwapTradePlanOrder(params?: {}): Promise<implicitReturnType>;
|
|
21
|
+
privateGetV1SwapTradeLeverage(params?: {}): Promise<implicitReturnType>;
|
|
22
|
+
privateGetV1SwapTradeHistoryOrder(params?: {}): Promise<implicitReturnType>;
|
|
23
|
+
privateGetV1SwapTradeHistoryTrade(params?: {}): Promise<implicitReturnType>;
|
|
24
|
+
privateGetV1SwapTradePositionHistory(params?: {}): Promise<implicitReturnType>;
|
|
25
|
+
privateGetV1SwapTradePositions(params?: {}): Promise<implicitReturnType>;
|
|
26
|
+
privateGetV1SwapAccountBalance(params?: {}): Promise<implicitReturnType>;
|
|
27
|
+
privateGetV1SwapUserDataAssetsMargin(params?: {}): Promise<implicitReturnType>;
|
|
28
|
+
privateGetV1SwapUserDataPositionSideDual(params?: {}): Promise<implicitReturnType>;
|
|
29
|
+
privateGetV1AgentTeams(params?: {}): Promise<implicitReturnType>;
|
|
30
|
+
privateGetV1AgentAgentLinks(params?: {}): Promise<implicitReturnType>;
|
|
31
|
+
privateGetV1AgentRegularOverview(params?: {}): Promise<implicitReturnType>;
|
|
32
|
+
privateGetV1AgentAgentSubOverview(params?: {}): Promise<implicitReturnType>;
|
|
33
|
+
privateGetV1AgentPartenerUserDeposit(params?: {}): Promise<implicitReturnType>;
|
|
34
|
+
privateGetV1AgentPartenerUsersData(params?: {}): Promise<implicitReturnType>;
|
|
35
|
+
privateGetV1AgentAffiliateUids(params?: {}): Promise<implicitReturnType>;
|
|
36
|
+
privateGetV1AgentAffiliateCommission(params?: {}): Promise<implicitReturnType>;
|
|
37
|
+
privateGetV1AgentInternalWithdrawalStatus(params?: {}): Promise<implicitReturnType>;
|
|
38
|
+
privatePostV1AccountTransfer(params?: {}): Promise<implicitReturnType>;
|
|
39
|
+
privatePostV1SwapTradePlaceOrder(params?: {}): Promise<implicitReturnType>;
|
|
40
|
+
privatePostV1SwapTradeBatchPlaceOrder(params?: {}): Promise<implicitReturnType>;
|
|
41
|
+
privatePostV1SwapTradeEditOrder(params?: {}): Promise<implicitReturnType>;
|
|
42
|
+
privatePostV1SwapTradeBatchEditOrder(params?: {}): Promise<implicitReturnType>;
|
|
43
|
+
privatePostV1SwapTradeCancelAllOrder(params?: {}): Promise<implicitReturnType>;
|
|
44
|
+
privatePostV1SwapTradeLeverage(params?: {}): Promise<implicitReturnType>;
|
|
45
|
+
privatePostV1SwapTradeBatchLeverageMargin(params?: {}): Promise<implicitReturnType>;
|
|
46
|
+
privatePostV1SwapUserDataMarginType(params?: {}): Promise<implicitReturnType>;
|
|
47
|
+
privatePostV1SwapUserDataPositionSideDual(params?: {}): Promise<implicitReturnType>;
|
|
48
|
+
privatePostV1AgentInternalWithdrawal(params?: {}): Promise<implicitReturnType>;
|
|
49
|
+
}
|
|
50
|
+
declare abstract class Exchange extends _Exchange {
|
|
51
|
+
}
|
|
52
|
+
export default Exchange;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// ----------------------------------------------------------------------------
|
|
2
|
+
|
|
3
|
+
// PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
|
|
4
|
+
// https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
|
|
5
|
+
// EDIT THE CORRESPONDENT .ts FILE INSTEAD
|
|
6
|
+
|
|
7
|
+
// -------------------------------------------------------------------------------
|
|
8
|
+
import { Exchange as _Exchange } from '../base/Exchange.js';
|
|
9
|
+
class Exchange extends _Exchange {
|
|
10
|
+
}
|
|
11
|
+
export default Exchange;
|
package/js/src/alpaca.d.ts
CHANGED
|
@@ -36,7 +36,7 @@ export default class alpaca extends Exchange {
|
|
|
36
36
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
37
37
|
* @param {string} [params.loc] crypto location, default: us
|
|
38
38
|
* @param {string} [params.method] method, default: marketPublicGetV1beta3CryptoLocTrades
|
|
39
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
39
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
40
40
|
*/
|
|
41
41
|
fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
42
42
|
/**
|
|
@@ -76,7 +76,7 @@ export default class alpaca extends Exchange {
|
|
|
76
76
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
77
77
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
78
78
|
* @param {string} [params.loc] crypto location, default: us
|
|
79
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
79
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
80
80
|
*/
|
|
81
81
|
fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
|
82
82
|
/**
|
|
@@ -87,7 +87,7 @@ export default class alpaca extends Exchange {
|
|
|
87
87
|
* @param {string[]} symbols unified symbols of the markets to fetch tickers for
|
|
88
88
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
89
89
|
* @param {string} [params.loc] crypto location, default: us
|
|
90
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com
|
|
90
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
91
91
|
*/
|
|
92
92
|
fetchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
|
|
93
93
|
generateClientOrderId(params: any): string;
|
|
@@ -100,7 +100,7 @@ export default class alpaca extends Exchange {
|
|
|
100
100
|
* @param {string} side 'buy' or 'sell'
|
|
101
101
|
* @param {float} cost how much you want to trade in units of the quote currency
|
|
102
102
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
103
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
103
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
104
104
|
*/
|
|
105
105
|
createMarketOrderWithCost(symbol: string, side: OrderSide, cost: number, params?: {}): Promise<Order>;
|
|
106
106
|
/**
|
|
@@ -111,7 +111,7 @@ export default class alpaca extends Exchange {
|
|
|
111
111
|
* @param {string} symbol unified symbol of the market to create an order in
|
|
112
112
|
* @param {float} cost how much you want to trade in units of the quote currency
|
|
113
113
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
114
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
114
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
115
115
|
*/
|
|
116
116
|
createMarketBuyOrderWithCost(symbol: string, cost: number, params?: {}): Promise<Order>;
|
|
117
117
|
/**
|
|
@@ -122,7 +122,7 @@ export default class alpaca extends Exchange {
|
|
|
122
122
|
* @param {string} symbol unified symbol of the market to create an order in
|
|
123
123
|
* @param {float} cost how much you want to trade in units of the quote currency
|
|
124
124
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
125
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
125
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
126
126
|
*/
|
|
127
127
|
createMarketSellOrderWithCost(symbol: string, cost: number, params?: {}): Promise<Order>;
|
|
128
128
|
/**
|
|
@@ -138,7 +138,7 @@ export default class alpaca extends Exchange {
|
|
|
138
138
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
139
139
|
* @param {float} [params.triggerPrice] The price at which a trigger order is triggered at
|
|
140
140
|
* @param {float} [params.cost] *market orders only* the cost of the order in units of the quote currency
|
|
141
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
141
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
142
142
|
*/
|
|
143
143
|
createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): Promise<Order>;
|
|
144
144
|
/**
|
|
@@ -149,7 +149,7 @@ export default class alpaca extends Exchange {
|
|
|
149
149
|
* @param {string} id order id
|
|
150
150
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
151
151
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
152
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
152
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
153
153
|
*/
|
|
154
154
|
cancelOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
|
|
155
155
|
/**
|
|
@@ -159,7 +159,7 @@ export default class alpaca extends Exchange {
|
|
|
159
159
|
* @see https://docs.alpaca.markets/reference/deleteallorders
|
|
160
160
|
* @param {string} symbol alpaca cancelAllOrders cannot setting symbol, it will cancel all open orders
|
|
161
161
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
162
|
-
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
162
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
163
163
|
*/
|
|
164
164
|
cancelAllOrders(symbol?: Str, params?: {}): Promise<Order[]>;
|
|
165
165
|
/**
|
|
@@ -170,7 +170,7 @@ export default class alpaca extends Exchange {
|
|
|
170
170
|
* @param {string} id the order id
|
|
171
171
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
172
172
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
173
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
173
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
174
174
|
*/
|
|
175
175
|
fetchOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
|
|
176
176
|
/**
|
|
@@ -183,7 +183,7 @@ export default class alpaca extends Exchange {
|
|
|
183
183
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
184
184
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
185
185
|
* @param {int} [params.until] the latest time in ms to fetch orders for
|
|
186
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
186
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
187
187
|
*/
|
|
188
188
|
fetchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
189
189
|
/**
|
|
@@ -196,7 +196,7 @@ export default class alpaca extends Exchange {
|
|
|
196
196
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
197
197
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
198
198
|
* @param {int} [params.until] the latest time in ms to fetch orders for
|
|
199
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
199
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
200
200
|
*/
|
|
201
201
|
fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
202
202
|
/**
|
|
@@ -209,7 +209,7 @@ export default class alpaca extends Exchange {
|
|
|
209
209
|
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
210
210
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
211
211
|
* @param {int} [params.until] the latest time in ms to fetch orders for
|
|
212
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
212
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
213
213
|
*/
|
|
214
214
|
fetchClosedOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
215
215
|
/**
|
|
@@ -227,7 +227,7 @@ export default class alpaca extends Exchange {
|
|
|
227
227
|
* @param {string} [params.triggerPrice] the price to trigger a stop order
|
|
228
228
|
* @param {string} [params.timeInForce] for crypto trading either 'gtc' or 'ioc' can be used
|
|
229
229
|
* @param {string} [params.clientOrderId] a unique identifier for the order, automatically generated if not sent
|
|
230
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
230
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
231
231
|
*/
|
|
232
232
|
editOrder(id: string, symbol: string, type: OrderType, side: OrderSide, amount?: Num, price?: Num, params?: {}): Promise<Order>;
|
|
233
233
|
parseOrder(order: Dict, market?: Market): Order;
|
|
@@ -244,7 +244,7 @@ export default class alpaca extends Exchange {
|
|
|
244
244
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
245
245
|
* @param {int} [params.until] the latest time in ms to fetch trades for
|
|
246
246
|
* @param {string} [params.page_token] page_token - used for paging
|
|
247
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
247
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
248
248
|
*/
|
|
249
249
|
fetchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
250
250
|
parseTrade(trade: Dict, market?: Market): Trade;
|
|
@@ -255,7 +255,7 @@ export default class alpaca extends Exchange {
|
|
|
255
255
|
* @see https://docs.alpaca.markets/reference/listcryptofundingwallets
|
|
256
256
|
* @param {string} code unified currency code
|
|
257
257
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
258
|
-
* @returns {object} an [address structure]{@link https://docs.ccxt.com
|
|
258
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/?id=address-structure}
|
|
259
259
|
*/
|
|
260
260
|
fetchDepositAddress(code: string, params?: {}): Promise<DepositAddress>;
|
|
261
261
|
parseDepositAddress(depositAddress: any, currency?: Currency): DepositAddress;
|
|
@@ -269,7 +269,7 @@ export default class alpaca extends Exchange {
|
|
|
269
269
|
* @param {string} address the address to withdraw to
|
|
270
270
|
* @param {string} tag a memo for the transaction
|
|
271
271
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
272
|
-
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com
|
|
272
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
273
273
|
*/
|
|
274
274
|
withdraw(code: string, amount: number, address: string, tag?: Str, params?: {}): Promise<Transaction>;
|
|
275
275
|
fetchTransactionsHelper(type: any, code: any, since: any, limit: any, params: any): Promise<Transaction[]>;
|
|
@@ -282,7 +282,7 @@ export default class alpaca extends Exchange {
|
|
|
282
282
|
* @param {int} [since] timestamp in ms of the earliest deposit/withdrawal, default is undefined
|
|
283
283
|
* @param {int} [limit] max number of deposit/withdrawals to return, default is undefined
|
|
284
284
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
285
|
-
* @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com
|
|
285
|
+
* @returns {object} a list of [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
286
286
|
*/
|
|
287
287
|
fetchDepositsWithdrawals(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
288
288
|
/**
|
|
@@ -294,7 +294,7 @@ export default class alpaca extends Exchange {
|
|
|
294
294
|
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
295
295
|
* @param {int} [limit] the maximum number of deposit structures to retrieve
|
|
296
296
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
297
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com
|
|
297
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
298
298
|
*/
|
|
299
299
|
fetchDeposits(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
300
300
|
/**
|
|
@@ -306,7 +306,7 @@ export default class alpaca extends Exchange {
|
|
|
306
306
|
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
307
307
|
* @param {int} [limit] the maximum number of withdrawal structures to retrieve
|
|
308
308
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
309
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com
|
|
309
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
310
310
|
*/
|
|
311
311
|
fetchWithdrawals(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
312
312
|
parseTransaction(transaction: Dict, currency?: Currency): Transaction;
|
|
@@ -318,7 +318,7 @@ export default class alpaca extends Exchange {
|
|
|
318
318
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
319
319
|
* @see https://docs.alpaca.markets/reference/getaccount-1
|
|
320
320
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
321
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
321
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
322
322
|
*/
|
|
323
323
|
fetchBalance(params?: {}): Promise<Balances>;
|
|
324
324
|
parseBalance(response: any): Balances;
|