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/oxfun.d.ts
CHANGED
|
@@ -33,7 +33,7 @@ export default class oxfun extends Exchange {
|
|
|
33
33
|
* @see https://docs.ox.fun/?json#get-v3-tickers
|
|
34
34
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
35
35
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
36
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com
|
|
36
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
37
37
|
*/
|
|
38
38
|
fetchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
|
|
39
39
|
/**
|
|
@@ -43,7 +43,7 @@ export default class oxfun extends Exchange {
|
|
|
43
43
|
* @see https://docs.ox.fun/?json#get-v3-tickers
|
|
44
44
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
45
45
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
46
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
46
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
47
47
|
*/
|
|
48
48
|
fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
|
49
49
|
parseTicker(ticker: any, market?: Market): Ticker;
|
|
@@ -70,7 +70,7 @@ export default class oxfun extends Exchange {
|
|
|
70
70
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
71
71
|
* @param {int} [limit] the maximum amount of order book entries to return (default 5, max 100)
|
|
72
72
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
73
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
73
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
74
74
|
*/
|
|
75
75
|
fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
76
76
|
/**
|
|
@@ -80,7 +80,7 @@ export default class oxfun extends Exchange {
|
|
|
80
80
|
* @see https://docs.ox.fun/?json#get-v3-funding-estimates
|
|
81
81
|
* @param {string[]} symbols unified market symbols
|
|
82
82
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
83
|
-
* @returns {Order[]} an array of [funding rate structures]{@link https://docs.ccxt.com
|
|
83
|
+
* @returns {Order[]} an array of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rate-structure}
|
|
84
84
|
*/
|
|
85
85
|
fetchFundingRates(symbols?: Strings, params?: {}): Promise<FundingRates>;
|
|
86
86
|
/**
|
|
@@ -90,7 +90,7 @@ export default class oxfun extends Exchange {
|
|
|
90
90
|
* @see https://docs.ox.fun/?json#get-v3-funding-estimates
|
|
91
91
|
* @param {string} symbol unified market symbols
|
|
92
92
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
93
|
-
* @returns {Order[]} an array of [funding rate structures]{@link https://docs.ccxt.com
|
|
93
|
+
* @returns {Order[]} an array of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rate-structure}
|
|
94
94
|
*/
|
|
95
95
|
fetchFundingRate(symbol: string, params?: {}): Promise<FundingRate>;
|
|
96
96
|
parseFundingRate(fundingRate: any, market?: Market): FundingRate;
|
|
@@ -104,7 +104,7 @@ export default class oxfun extends Exchange {
|
|
|
104
104
|
* @param {int} [limit] the maximum amount of trades to fetch (default 200, max 500)
|
|
105
105
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
106
106
|
* @param {int} [params.until] timestamp in ms of the latest trade to fetch (default now)
|
|
107
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
107
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
108
108
|
*/
|
|
109
109
|
fetchFundingRateHistory(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<import("./base/types.js").FundingRateHistory[]>;
|
|
110
110
|
parseFundingRateHistory(info: any, market?: Market): {
|
|
@@ -124,7 +124,7 @@ export default class oxfun extends Exchange {
|
|
|
124
124
|
* @param {int} [limit] the maximum amount of trades to fetch (default 200, max 500)
|
|
125
125
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
126
126
|
* @param {int} [params.until] timestamp in ms of the latest trade to fetch (default now)
|
|
127
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
127
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
128
128
|
*/
|
|
129
129
|
fetchFundingHistory(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<import("./base/types.js").FundingHistory[]>;
|
|
130
130
|
parseIncome(income: any, market?: Market): {
|
|
@@ -144,7 +144,7 @@ export default class oxfun extends Exchange {
|
|
|
144
144
|
* @see https://docs.ox.fun/?json#get-v3-leverage-tiers
|
|
145
145
|
* @param {string[]} [symbols] list of unified market symbols
|
|
146
146
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
147
|
-
* @returns {object} a dictionary of [leverage tiers structures]{@link https://docs.ccxt.com
|
|
147
|
+
* @returns {object} a dictionary of [leverage tiers structures]{@link https://docs.ccxt.com/?id=leverage-tiers-structure}, indexed by market symbols
|
|
148
148
|
*/
|
|
149
149
|
fetchLeverageTiers(symbols?: Strings, params?: {}): Promise<LeverageTiers>;
|
|
150
150
|
parseMarketLeverageTiers(info: any, market?: Market): LeverageTier[];
|
|
@@ -158,7 +158,7 @@ export default class oxfun extends Exchange {
|
|
|
158
158
|
* @param {int} [limit] the maximum amount of trades to fetch (default 200, max 500)
|
|
159
159
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
160
160
|
* @param {int} [params.until] timestamp in ms of the latest trade to fetch (default now)
|
|
161
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
161
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
162
162
|
*/
|
|
163
163
|
fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
164
164
|
/**
|
|
@@ -183,7 +183,7 @@ export default class oxfun extends Exchange {
|
|
|
183
183
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
184
184
|
* @param {string} [params.asset] currency id, if empty the exchange returns info about all currencies
|
|
185
185
|
* @param {string} [params.subAcc] Name of sub account. If no subAcc is given, then the response contains only the account linked to the API-Key.
|
|
186
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
186
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
187
187
|
*/
|
|
188
188
|
fetchBalance(params?: {}): Promise<Balances>;
|
|
189
189
|
parseBalance(balance: any): Balances;
|
|
@@ -193,7 +193,7 @@ export default class oxfun extends Exchange {
|
|
|
193
193
|
* @description fetch subaccounts associated with a profile
|
|
194
194
|
* @see https://docs.ox.fun/?json#get-v3-account-names
|
|
195
195
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
196
|
-
* @returns {object} a dictionary of [account structures]{@link https://docs.ccxt.com
|
|
196
|
+
* @returns {object} a dictionary of [account structures]{@link https://docs.ccxt.com/?id=account-structure} indexed by the account type
|
|
197
197
|
*/
|
|
198
198
|
fetchAccounts(params?: {}): Promise<Account[]>;
|
|
199
199
|
parseAccount(account: any): {
|
|
@@ -212,7 +212,7 @@ export default class oxfun extends Exchange {
|
|
|
212
212
|
* @param {string} fromAccount account id to transfer from
|
|
213
213
|
* @param {string} toAccount account id to transfer to
|
|
214
214
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
215
|
-
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com
|
|
215
|
+
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com/?id=transfer-structure}
|
|
216
216
|
*/
|
|
217
217
|
transfer(code: string, amount: number, fromAccount: string, toAccount: string, params?: {}): Promise<TransferEntry>;
|
|
218
218
|
/**
|
|
@@ -225,7 +225,7 @@ export default class oxfun extends Exchange {
|
|
|
225
225
|
* @param {int} [limit] the maximum number of transfer structures to retrieve (default 50, max 200)
|
|
226
226
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
227
227
|
* @param {int} [params.until] the latest time in ms to fetch transfers for (default time now)
|
|
228
|
-
* @returns {object[]} a list of [transfer structures]{@link https://docs.ccxt.com
|
|
228
|
+
* @returns {object[]} a list of [transfer structures]{@link https://docs.ccxt.com/?id=transfer-structure}
|
|
229
229
|
*/
|
|
230
230
|
fetchTransfers(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<TransferEntry[]>;
|
|
231
231
|
parseTransfer(transfer: any, currency?: Currency): {
|
|
@@ -248,7 +248,7 @@ export default class oxfun extends Exchange {
|
|
|
248
248
|
* @param {string} code unified currency code
|
|
249
249
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
250
250
|
* @param {string} [params.network] network for fetch deposit address
|
|
251
|
-
* @returns {object} an [address structure]{@link https://docs.ccxt.com
|
|
251
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/?id=address-structure}
|
|
252
252
|
*/
|
|
253
253
|
fetchDepositAddress(code: string, params?: {}): Promise<DepositAddress>;
|
|
254
254
|
parseDepositAddress(depositAddress: any, currency?: Currency): DepositAddress;
|
|
@@ -262,7 +262,7 @@ export default class oxfun extends Exchange {
|
|
|
262
262
|
* @param {int} [limit] the maximum number of transfer structures to retrieve (default 50, max 200)
|
|
263
263
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
264
264
|
* @param {int} [params.until] the latest time in ms to fetch transfers for (default time now)
|
|
265
|
-
* @returns {object[]} a list of [transfer structures]{@link https://docs.ccxt.com
|
|
265
|
+
* @returns {object[]} a list of [transfer structures]{@link https://docs.ccxt.com/?id=transfer-structure}
|
|
266
266
|
*/
|
|
267
267
|
fetchDeposits(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
268
268
|
/**
|
|
@@ -275,7 +275,7 @@ export default class oxfun extends Exchange {
|
|
|
275
275
|
* @param {int} [limit] the maximum number of transfer structures to retrieve (default 50, max 200)
|
|
276
276
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
277
277
|
* @param {int} [params.until] the latest time in ms to fetch transfers for (default time now)
|
|
278
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com
|
|
278
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
279
279
|
*/
|
|
280
280
|
fetchWithdrawals(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
281
281
|
parseTransactions(transactions: any, currency?: Currency, since?: Int, limit?: Int, params?: {}): Transaction[];
|
|
@@ -298,7 +298,7 @@ export default class oxfun extends Exchange {
|
|
|
298
298
|
* EXCHANGE SPECIFIC PARAMETERS
|
|
299
299
|
* @param {string} [params.tfaType] GOOGLE, or AUTHY_SECRET, or YUBIKEY, for 2FA
|
|
300
300
|
* @param {string} [params.code] 2FA code
|
|
301
|
-
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com
|
|
301
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
302
302
|
*/
|
|
303
303
|
withdraw(code: string, amount: number, address: string, tag?: Str, params?: {}): Promise<Transaction>;
|
|
304
304
|
/**
|
|
@@ -309,7 +309,7 @@ export default class oxfun extends Exchange {
|
|
|
309
309
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
310
310
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
311
311
|
* @param {boolean} [params.subAcc]
|
|
312
|
-
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com
|
|
312
|
+
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/?id=position-structure}
|
|
313
313
|
*/
|
|
314
314
|
fetchPositions(symbols?: Strings, params?: {}): Promise<Position[]>;
|
|
315
315
|
parsePosition(position: any, market?: Market): Position;
|
|
@@ -335,7 +335,7 @@ export default class oxfun extends Exchange {
|
|
|
335
335
|
* @param {string} [params.timeInForce] GTC (default), IOC, FOK, PO, MAKER_ONLY or MAKER_ONLY_REPRICE (reprices order to the best maker only price if the specified price were to lead to a taker trade)
|
|
336
336
|
* @param {string} [params.selfTradePrevention] NONE, EXPIRE_MAKER, EXPIRE_TAKER or EXPIRE_BOTH for more info check here {@link https://docs.ox.fun/?json#self-trade-prevention-modes}
|
|
337
337
|
* @param {string} [params.displayQuantity] for an iceberg order, pass both quantity and displayQuantity fields in the order request
|
|
338
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
338
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
339
339
|
*/
|
|
340
340
|
createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): Promise<Order>;
|
|
341
341
|
/**
|
|
@@ -348,7 +348,7 @@ export default class oxfun extends Exchange {
|
|
|
348
348
|
* @param {int} [params.timestamp] *for all orders* in milliseconds. If orders reach the matching engine and the current timestamp exceeds timestamp + recvWindow, then all orders will be rejected.
|
|
349
349
|
* @param {int} [params.recvWindow] *for all orders* in milliseconds. If orders reach the matching engine and the current timestamp exceeds timestamp + recvWindow, then all orders will be rejected. If timestamp is provided without recvWindow, then a default recvWindow of 1000ms is used.
|
|
350
350
|
* @param {string} [params.responseType] *for all orders* FULL or ACK
|
|
351
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
351
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
352
352
|
*/
|
|
353
353
|
createOrders(orders: OrderRequest[], params?: {}): Promise<Order[]>;
|
|
354
354
|
createOrderRequest(symbol: string, type: string, side: string, amount: any, price?: any, params?: {}): any;
|
|
@@ -360,7 +360,7 @@ export default class oxfun extends Exchange {
|
|
|
360
360
|
* @param {string} symbol unified symbol of the market to create an order in
|
|
361
361
|
* @param {float} cost how much you want to trade in units of the quote currency
|
|
362
362
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
363
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
363
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
364
364
|
*/
|
|
365
365
|
createMarketBuyOrderWithCost(symbol: string, cost: number, params?: {}): Promise<Order>;
|
|
366
366
|
/**
|
|
@@ -372,7 +372,7 @@ export default class oxfun extends Exchange {
|
|
|
372
372
|
* @param {string} [symbol] not used by oxfun fetchOrder
|
|
373
373
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
374
374
|
* @param {int} [params.clientOrderId] the client order id of the order
|
|
375
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
375
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
376
376
|
*/
|
|
377
377
|
fetchOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
|
|
378
378
|
/**
|
|
@@ -386,7 +386,7 @@ export default class oxfun extends Exchange {
|
|
|
386
386
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
387
387
|
* @param {int} [params.orderId] a unique id for the order
|
|
388
388
|
* @param {int} [params.clientOrderId] the client order id of the order
|
|
389
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
389
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
390
390
|
*/
|
|
391
391
|
fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
392
392
|
/**
|
|
@@ -401,7 +401,7 @@ export default class oxfun extends Exchange {
|
|
|
401
401
|
* @param {int} [params.timestamp] in milliseconds
|
|
402
402
|
* @param {int} [params.recvWindow] in milliseconds
|
|
403
403
|
* @param {string} [params.responseType] 'FULL' or 'ACK'
|
|
404
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
404
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
405
405
|
*/
|
|
406
406
|
cancelOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
|
|
407
407
|
/**
|
|
@@ -425,7 +425,7 @@ export default class oxfun extends Exchange {
|
|
|
425
425
|
* @param {int} [params.timestamp] in milliseconds
|
|
426
426
|
* @param {int} [params.recvWindow] in milliseconds
|
|
427
427
|
* @param {string} [params.responseType] 'FULL' or 'ACK'
|
|
428
|
-
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com
|
|
428
|
+
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
429
429
|
*/
|
|
430
430
|
cancelOrders(ids: string[], symbol?: Str, params?: {}): Promise<Order[]>;
|
|
431
431
|
parseOrder(order: any, market?: Market): Order;
|
package/js/src/oxfun.js
CHANGED
|
@@ -727,7 +727,7 @@ export default class oxfun extends Exchange {
|
|
|
727
727
|
* @see https://docs.ox.fun/?json#get-v3-tickers
|
|
728
728
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
729
729
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
730
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com
|
|
730
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
731
731
|
*/
|
|
732
732
|
async fetchTickers(symbols = undefined, params = {}) {
|
|
733
733
|
await this.loadMarkets();
|
|
@@ -790,7 +790,7 @@ export default class oxfun extends Exchange {
|
|
|
790
790
|
* @see https://docs.ox.fun/?json#get-v3-tickers
|
|
791
791
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
792
792
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
793
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
793
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
794
794
|
*/
|
|
795
795
|
async fetchTicker(symbol, params = {}) {
|
|
796
796
|
await this.loadMarkets();
|
|
@@ -963,7 +963,7 @@ export default class oxfun extends Exchange {
|
|
|
963
963
|
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
964
964
|
* @param {int} [limit] the maximum amount of order book entries to return (default 5, max 100)
|
|
965
965
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
966
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
966
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
967
967
|
*/
|
|
968
968
|
async fetchOrderBook(symbol, limit = undefined, params = {}) {
|
|
969
969
|
await this.loadMarkets();
|
|
@@ -1010,7 +1010,7 @@ export default class oxfun extends Exchange {
|
|
|
1010
1010
|
* @see https://docs.ox.fun/?json#get-v3-funding-estimates
|
|
1011
1011
|
* @param {string[]} symbols unified market symbols
|
|
1012
1012
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1013
|
-
* @returns {Order[]} an array of [funding rate structures]{@link https://docs.ccxt.com
|
|
1013
|
+
* @returns {Order[]} an array of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rate-structure}
|
|
1014
1014
|
*/
|
|
1015
1015
|
async fetchFundingRates(symbols = undefined, params = {}) {
|
|
1016
1016
|
await this.loadMarkets();
|
|
@@ -1044,7 +1044,7 @@ export default class oxfun extends Exchange {
|
|
|
1044
1044
|
* @see https://docs.ox.fun/?json#get-v3-funding-estimates
|
|
1045
1045
|
* @param {string} symbol unified market symbols
|
|
1046
1046
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1047
|
-
* @returns {Order[]} an array of [funding rate structures]{@link https://docs.ccxt.com
|
|
1047
|
+
* @returns {Order[]} an array of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rate-structure}
|
|
1048
1048
|
*/
|
|
1049
1049
|
async fetchFundingRate(symbol, params = {}) {
|
|
1050
1050
|
await this.loadMarkets();
|
|
@@ -1099,7 +1099,7 @@ export default class oxfun extends Exchange {
|
|
|
1099
1099
|
* @param {int} [limit] the maximum amount of trades to fetch (default 200, max 500)
|
|
1100
1100
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1101
1101
|
* @param {int} [params.until] timestamp in ms of the latest trade to fetch (default now)
|
|
1102
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
1102
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
1103
1103
|
*/
|
|
1104
1104
|
async fetchFundingRateHistory(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1105
1105
|
await this.loadMarkets();
|
|
@@ -1179,7 +1179,7 @@ export default class oxfun extends Exchange {
|
|
|
1179
1179
|
* @param {int} [limit] the maximum amount of trades to fetch (default 200, max 500)
|
|
1180
1180
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1181
1181
|
* @param {int} [params.until] timestamp in ms of the latest trade to fetch (default now)
|
|
1182
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
1182
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
1183
1183
|
*/
|
|
1184
1184
|
async fetchFundingHistory(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1185
1185
|
await this.loadMarkets();
|
|
@@ -1265,7 +1265,7 @@ export default class oxfun extends Exchange {
|
|
|
1265
1265
|
* @see https://docs.ox.fun/?json#get-v3-leverage-tiers
|
|
1266
1266
|
* @param {string[]} [symbols] list of unified market symbols
|
|
1267
1267
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1268
|
-
* @returns {object} a dictionary of [leverage tiers structures]{@link https://docs.ccxt.com
|
|
1268
|
+
* @returns {object} a dictionary of [leverage tiers structures]{@link https://docs.ccxt.com/?id=leverage-tiers-structure}, indexed by market symbols
|
|
1269
1269
|
*/
|
|
1270
1270
|
async fetchLeverageTiers(symbols = undefined, params = {}) {
|
|
1271
1271
|
await this.loadMarkets();
|
|
@@ -1360,7 +1360,7 @@ export default class oxfun extends Exchange {
|
|
|
1360
1360
|
* @param {int} [limit] the maximum amount of trades to fetch (default 200, max 500)
|
|
1361
1361
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1362
1362
|
* @param {int} [params.until] timestamp in ms of the latest trade to fetch (default now)
|
|
1363
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
1363
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
1364
1364
|
*/
|
|
1365
1365
|
async fetchTrades(symbol, since = undefined, limit = undefined, params = {}) {
|
|
1366
1366
|
await this.loadMarkets();
|
|
@@ -1526,7 +1526,7 @@ export default class oxfun extends Exchange {
|
|
|
1526
1526
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1527
1527
|
* @param {string} [params.asset] currency id, if empty the exchange returns info about all currencies
|
|
1528
1528
|
* @param {string} [params.subAcc] Name of sub account. If no subAcc is given, then the response contains only the account linked to the API-Key.
|
|
1529
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
1529
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
1530
1530
|
*/
|
|
1531
1531
|
async fetchBalance(params = {}) {
|
|
1532
1532
|
await this.loadMarkets();
|
|
@@ -1621,7 +1621,7 @@ export default class oxfun extends Exchange {
|
|
|
1621
1621
|
* @description fetch subaccounts associated with a profile
|
|
1622
1622
|
* @see https://docs.ox.fun/?json#get-v3-account-names
|
|
1623
1623
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1624
|
-
* @returns {object} a dictionary of [account structures]{@link https://docs.ccxt.com
|
|
1624
|
+
* @returns {object} a dictionary of [account structures]{@link https://docs.ccxt.com/?id=account-structure} indexed by the account type
|
|
1625
1625
|
*/
|
|
1626
1626
|
async fetchAccounts(params = {}) {
|
|
1627
1627
|
await this.loadMarkets();
|
|
@@ -1666,7 +1666,7 @@ export default class oxfun extends Exchange {
|
|
|
1666
1666
|
* @param {string} fromAccount account id to transfer from
|
|
1667
1667
|
* @param {string} toAccount account id to transfer to
|
|
1668
1668
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1669
|
-
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com
|
|
1669
|
+
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com/?id=transfer-structure}
|
|
1670
1670
|
*/
|
|
1671
1671
|
async transfer(code, amount, fromAccount, toAccount, params = {}) {
|
|
1672
1672
|
// transferring funds between sub-accounts is restricted to API keys linked to the parent account.
|
|
@@ -1709,7 +1709,7 @@ export default class oxfun extends Exchange {
|
|
|
1709
1709
|
* @param {int} [limit] the maximum number of transfer structures to retrieve (default 50, max 200)
|
|
1710
1710
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1711
1711
|
* @param {int} [params.until] the latest time in ms to fetch transfers for (default time now)
|
|
1712
|
-
* @returns {object[]} a list of [transfer structures]{@link https://docs.ccxt.com
|
|
1712
|
+
* @returns {object[]} a list of [transfer structures]{@link https://docs.ccxt.com/?id=transfer-structure}
|
|
1713
1713
|
*/
|
|
1714
1714
|
async fetchTransfers(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1715
1715
|
// API keys linked to the parent account can get all account transfers, while API keys linked to a sub-account can only see transfers where the sub-account is either the "fromAccount" or "toAccount"
|
|
@@ -1797,7 +1797,7 @@ export default class oxfun extends Exchange {
|
|
|
1797
1797
|
* @param {string} code unified currency code
|
|
1798
1798
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1799
1799
|
* @param {string} [params.network] network for fetch deposit address
|
|
1800
|
-
* @returns {object} an [address structure]{@link https://docs.ccxt.com
|
|
1800
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/?id=address-structure}
|
|
1801
1801
|
*/
|
|
1802
1802
|
async fetchDepositAddress(code, params = {}) {
|
|
1803
1803
|
const networkCode = this.safeString(params, 'network');
|
|
@@ -1843,7 +1843,7 @@ export default class oxfun extends Exchange {
|
|
|
1843
1843
|
* @param {int} [limit] the maximum number of transfer structures to retrieve (default 50, max 200)
|
|
1844
1844
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1845
1845
|
* @param {int} [params.until] the latest time in ms to fetch transfers for (default time now)
|
|
1846
|
-
* @returns {object[]} a list of [transfer structures]{@link https://docs.ccxt.com
|
|
1846
|
+
* @returns {object[]} a list of [transfer structures]{@link https://docs.ccxt.com/?id=transfer-structure}
|
|
1847
1847
|
*/
|
|
1848
1848
|
async fetchDeposits(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1849
1849
|
await this.loadMarkets();
|
|
@@ -1898,7 +1898,7 @@ export default class oxfun extends Exchange {
|
|
|
1898
1898
|
* @param {int} [limit] the maximum number of transfer structures to retrieve (default 50, max 200)
|
|
1899
1899
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1900
1900
|
* @param {int} [params.until] the latest time in ms to fetch transfers for (default time now)
|
|
1901
|
-
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com
|
|
1901
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
1902
1902
|
*/
|
|
1903
1903
|
async fetchWithdrawals(code = undefined, since = undefined, limit = undefined, params = {}) {
|
|
1904
1904
|
await this.loadMarkets();
|
|
@@ -2083,7 +2083,7 @@ export default class oxfun extends Exchange {
|
|
|
2083
2083
|
* EXCHANGE SPECIFIC PARAMETERS
|
|
2084
2084
|
* @param {string} [params.tfaType] GOOGLE, or AUTHY_SECRET, or YUBIKEY, for 2FA
|
|
2085
2085
|
* @param {string} [params.code] 2FA code
|
|
2086
|
-
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com
|
|
2086
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
2087
2087
|
*/
|
|
2088
2088
|
async withdraw(code, amount, address, tag = undefined, params = {}) {
|
|
2089
2089
|
[tag, params] = this.handleWithdrawTagAndParams(tag, params);
|
|
@@ -2133,7 +2133,7 @@ export default class oxfun extends Exchange {
|
|
|
2133
2133
|
* @param {string[]|undefined} symbols list of unified market symbols
|
|
2134
2134
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2135
2135
|
* @param {boolean} [params.subAcc]
|
|
2136
|
-
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com
|
|
2136
|
+
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/?id=position-structure}
|
|
2137
2137
|
*/
|
|
2138
2138
|
async fetchPositions(symbols = undefined, params = {}) {
|
|
2139
2139
|
// Calling this endpoint using an API key pair linked to the parent account with the parameter "subAcc"
|
|
@@ -2263,7 +2263,7 @@ export default class oxfun extends Exchange {
|
|
|
2263
2263
|
* @param {string} [params.timeInForce] GTC (default), IOC, FOK, PO, MAKER_ONLY or MAKER_ONLY_REPRICE (reprices order to the best maker only price if the specified price were to lead to a taker trade)
|
|
2264
2264
|
* @param {string} [params.selfTradePrevention] NONE, EXPIRE_MAKER, EXPIRE_TAKER or EXPIRE_BOTH for more info check here {@link https://docs.ox.fun/?json#self-trade-prevention-modes}
|
|
2265
2265
|
* @param {string} [params.displayQuantity] for an iceberg order, pass both quantity and displayQuantity fields in the order request
|
|
2266
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
2266
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
2267
2267
|
*/
|
|
2268
2268
|
async createOrder(symbol, type, side, amount, price = undefined, params = {}) {
|
|
2269
2269
|
await this.loadMarkets();
|
|
@@ -2410,7 +2410,7 @@ export default class oxfun extends Exchange {
|
|
|
2410
2410
|
* @param {int} [params.timestamp] *for all orders* in milliseconds. If orders reach the matching engine and the current timestamp exceeds timestamp + recvWindow, then all orders will be rejected.
|
|
2411
2411
|
* @param {int} [params.recvWindow] *for all orders* in milliseconds. If orders reach the matching engine and the current timestamp exceeds timestamp + recvWindow, then all orders will be rejected. If timestamp is provided without recvWindow, then a default recvWindow of 1000ms is used.
|
|
2412
2412
|
* @param {string} [params.responseType] *for all orders* FULL or ACK
|
|
2413
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
2413
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
2414
2414
|
*/
|
|
2415
2415
|
async createOrders(orders, params = {}) {
|
|
2416
2416
|
await this.loadMarkets();
|
|
@@ -2507,7 +2507,7 @@ export default class oxfun extends Exchange {
|
|
|
2507
2507
|
* @param {string} symbol unified symbol of the market to create an order in
|
|
2508
2508
|
* @param {float} cost how much you want to trade in units of the quote currency
|
|
2509
2509
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2510
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
2510
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
2511
2511
|
*/
|
|
2512
2512
|
async createMarketBuyOrderWithCost(symbol, cost, params = {}) {
|
|
2513
2513
|
await this.loadMarkets();
|
|
@@ -2529,7 +2529,7 @@ export default class oxfun extends Exchange {
|
|
|
2529
2529
|
* @param {string} [symbol] not used by oxfun fetchOrder
|
|
2530
2530
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2531
2531
|
* @param {int} [params.clientOrderId] the client order id of the order
|
|
2532
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
2532
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
2533
2533
|
*/
|
|
2534
2534
|
async fetchOrder(id, symbol = undefined, params = {}) {
|
|
2535
2535
|
await this.loadMarkets();
|
|
@@ -2574,7 +2574,7 @@ export default class oxfun extends Exchange {
|
|
|
2574
2574
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
2575
2575
|
* @param {int} [params.orderId] a unique id for the order
|
|
2576
2576
|
* @param {int} [params.clientOrderId] the client order id of the order
|
|
2577
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
2577
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
2578
2578
|
*/
|
|
2579
2579
|
async fetchOpenOrders(symbol = undefined, since = undefined, limit = undefined, params = {}) {
|
|
2580
2580
|
await this.loadMarkets();
|
|
@@ -2599,7 +2599,7 @@ export default class oxfun extends Exchange {
|
|
|
2599
2599
|
* @param {int} [params.timestamp] in milliseconds
|
|
2600
2600
|
* @param {int} [params.recvWindow] in milliseconds
|
|
2601
2601
|
* @param {string} [params.responseType] 'FULL' or 'ACK'
|
|
2602
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
2602
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
2603
2603
|
*/
|
|
2604
2604
|
async cancelOrder(id, symbol = undefined, params = {}) {
|
|
2605
2605
|
if (symbol === undefined) {
|
|
@@ -2665,7 +2665,7 @@ export default class oxfun extends Exchange {
|
|
|
2665
2665
|
* @param {int} [params.timestamp] in milliseconds
|
|
2666
2666
|
* @param {int} [params.recvWindow] in milliseconds
|
|
2667
2667
|
* @param {string} [params.responseType] 'FULL' or 'ACK'
|
|
2668
|
-
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com
|
|
2668
|
+
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
2669
2669
|
*/
|
|
2670
2670
|
async cancelOrders(ids, symbol = undefined, params = {}) {
|
|
2671
2671
|
if (symbol === undefined) {
|
package/js/src/p2b.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ export default class p2b extends Exchange {
|
|
|
23
23
|
* @see https://futures-docs.poloniex.com/#get-real-time-ticker-of-all-symbols
|
|
24
24
|
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
25
25
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
26
|
-
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com
|
|
26
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
27
27
|
*/
|
|
28
28
|
fetchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
|
|
29
29
|
/**
|
|
@@ -33,7 +33,7 @@ export default class p2b extends Exchange {
|
|
|
33
33
|
* @see https://github.com/P2B-team/p2b-api-docs/blob/master/api-doc.md#ticker
|
|
34
34
|
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
35
35
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
36
|
-
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com
|
|
36
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
37
37
|
*/
|
|
38
38
|
fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
|
39
39
|
parseTicker(ticker: any, market?: Market): Ticker;
|
|
@@ -48,7 +48,7 @@ export default class p2b extends Exchange {
|
|
|
48
48
|
*
|
|
49
49
|
* EXCHANGE SPECIFIC PARAMETERS
|
|
50
50
|
* @param {string} [params.interval] 0 (default), 0.00000001, 0.0000001, 0.000001, 0.00001, 0.0001, 0.001, 0.01, 0.1, 1
|
|
51
|
-
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com
|
|
51
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/?id=order-book-structure} indexed by market symbols
|
|
52
52
|
*/
|
|
53
53
|
fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<import("./base/types.js").OrderBook>;
|
|
54
54
|
/**
|
|
@@ -61,7 +61,7 @@ export default class p2b extends Exchange {
|
|
|
61
61
|
* @param {int} [limit] 1-100, default=50
|
|
62
62
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
63
63
|
* @param {int} params.lastId order id
|
|
64
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
64
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
65
65
|
*/
|
|
66
66
|
fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<import("./base/types.js").Trade[]>;
|
|
67
67
|
parseTrade(trade: Dict, market?: Market): import("./base/types.js").Trade;
|
|
@@ -86,7 +86,7 @@ export default class p2b extends Exchange {
|
|
|
86
86
|
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
87
87
|
* @see https://github.com/P2B-team/p2b-api-docs/blob/master/api-doc.md#all-balances
|
|
88
88
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
89
|
-
* @returns {object} a [balance structure]{@link https://docs.ccxt.com
|
|
89
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
90
90
|
*/
|
|
91
91
|
fetchBalance(params?: {}): Promise<import("./base/types.js").Balances>;
|
|
92
92
|
parseBalance(response: any): import("./base/types.js").Balances;
|
|
@@ -101,7 +101,7 @@ export default class p2b extends Exchange {
|
|
|
101
101
|
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
102
102
|
* @param {float} price the price at which the order is to be fulfilled, in units of the quote currency
|
|
103
103
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
104
|
-
* @returns {object} an [order structure]{@link https://docs.ccxt.com
|
|
104
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
105
105
|
*/
|
|
106
106
|
createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): Promise<Order>;
|
|
107
107
|
/**
|
|
@@ -112,7 +112,7 @@ export default class p2b extends Exchange {
|
|
|
112
112
|
* @param {string} id order id
|
|
113
113
|
* @param {string} symbol unified symbol of the market the order was made in
|
|
114
114
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
115
|
-
* @returns {object} An [order structure]{@link https://docs.ccxt.com
|
|
115
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
116
116
|
*/
|
|
117
117
|
cancelOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
|
|
118
118
|
/**
|
|
@@ -127,7 +127,7 @@ export default class p2b extends Exchange {
|
|
|
127
127
|
*
|
|
128
128
|
* EXCHANGE SPECIFIC PARAMETERS
|
|
129
129
|
* @param {int} [params.offset] 0-10000, default=0
|
|
130
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
130
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
131
131
|
*/
|
|
132
132
|
fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
133
133
|
/**
|
|
@@ -143,7 +143,7 @@ export default class p2b extends Exchange {
|
|
|
143
143
|
*
|
|
144
144
|
* EXCHANGE SPECIFIC PARAMETERS
|
|
145
145
|
* @param {int} [params.offset] 0-10000, default=0
|
|
146
|
-
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
146
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
147
147
|
*/
|
|
148
148
|
fetchOrderTrades(id: string, symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<import("./base/types.js").Trade[]>;
|
|
149
149
|
/**
|
|
@@ -159,7 +159,7 @@ export default class p2b extends Exchange {
|
|
|
159
159
|
*
|
|
160
160
|
* EXCHANGE SPECIFIC PARAMETERS
|
|
161
161
|
* @param {int} [params.offset] 0-10000, default=0
|
|
162
|
-
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com
|
|
162
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
163
163
|
*/
|
|
164
164
|
fetchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<import("./base/types.js").Trade[]>;
|
|
165
165
|
/**
|
|
@@ -175,7 +175,7 @@ export default class p2b extends Exchange {
|
|
|
175
175
|
*
|
|
176
176
|
* EXCHANGE SPECIFIC PARAMETERS
|
|
177
177
|
* @param {int} [params.offset] 0-10000, default=0
|
|
178
|
-
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com
|
|
178
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
179
179
|
*/
|
|
180
180
|
fetchClosedOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
181
181
|
parseOrder(order: Dict, market?: Market): Order;
|