ccxt 4.5.82 → 4.5.83
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 +5 -4
- package/dist/ccxt.browser.min.js +2 -2
- package/dist/cjs/ccxt.js +3 -1
- package/dist/cjs/src/abstract/prediction/sxbet.js +11 -0
- package/dist/cjs/src/apex.js +1 -0
- package/dist/cjs/src/aster.js +2 -2
- package/dist/cjs/src/base/Exchange.js +1 -1
- package/dist/cjs/src/bigone.js +2 -2
- package/dist/cjs/src/binance.js +10 -10
- package/dist/cjs/src/bingx.js +3 -3
- package/dist/cjs/src/bit2c.js +4 -4
- package/dist/cjs/src/bitbank.js +15 -15
- package/dist/cjs/src/bitfinex.js +15 -15
- package/dist/cjs/src/bitget.js +109 -73
- package/dist/cjs/src/bitmex.js +7 -7
- package/dist/cjs/src/bitopro.js +2 -2
- package/dist/cjs/src/bitrue.js +6 -6
- package/dist/cjs/src/bitso.js +18 -18
- package/dist/cjs/src/bitstamp.js +5 -5
- package/dist/cjs/src/bitteam.js +32 -32
- package/dist/cjs/src/bittrade.js +10 -10
- package/dist/cjs/src/bitvavo.js +9 -9
- package/dist/cjs/src/blockchaincom.js +2 -2
- package/dist/cjs/src/btcbox.js +2 -2
- package/dist/cjs/src/btcmarkets.js +2 -2
- package/dist/cjs/src/btcturk.js +2 -2
- package/dist/cjs/src/btse.js +2 -2
- package/dist/cjs/src/bybitid.js +4 -0
- package/dist/cjs/src/coinbase.js +1 -1
- package/dist/cjs/src/coinbaseexchange.js +13 -13
- package/dist/cjs/src/coincheck.js +4 -4
- package/dist/cjs/src/coinex.js +10 -10
- package/dist/cjs/src/coinmate.js +4 -4
- package/dist/cjs/src/coinone.js +4 -4
- package/dist/cjs/src/coinsph.js +5 -5
- package/dist/cjs/src/cryptocom.js +5 -5
- package/dist/cjs/src/deribit.js +31 -31
- package/dist/cjs/src/derive.js +1 -1
- package/dist/cjs/src/digifinex.js +31 -31
- package/dist/cjs/src/gate.js +25 -25
- package/dist/cjs/src/gemini.js +5 -5
- package/dist/cjs/src/grvt.js +1 -1
- package/dist/cjs/src/hibachi.js +5 -5
- package/dist/cjs/src/hitbtc.js +15 -15
- package/dist/cjs/src/hollaex.js +15 -15
- package/dist/cjs/src/htx.js +52 -52
- package/dist/cjs/src/hyperliquid.js +2 -2
- package/dist/cjs/src/independentreserve.js +2 -2
- package/dist/cjs/src/indodax.js +8 -8
- package/dist/cjs/src/kraken.js +29 -29
- package/dist/cjs/src/krakenfutures.js +16 -16
- package/dist/cjs/src/kucoin.js +15 -15
- package/dist/cjs/src/latoken.js +8 -8
- package/dist/cjs/src/lbank.js +31 -31
- package/dist/cjs/src/lighter.js +2 -2
- package/dist/cjs/src/luno.js +2 -2
- package/dist/cjs/src/mercado.js +12 -12
- package/dist/cjs/src/mexc.js +27 -27
- package/dist/cjs/src/modetrade.js +10 -10
- package/dist/cjs/src/ndax.js +4 -4
- package/dist/cjs/src/okx.js +19 -20
- package/dist/cjs/src/onetrading.js +7 -7
- package/dist/cjs/src/p2b.js +8 -8
- package/dist/cjs/src/pacifica.js +9 -3
- package/dist/cjs/src/paymium.js +2 -2
- package/dist/cjs/src/phemex.js +37 -37
- package/dist/cjs/src/poloniex.js +14 -14
- package/dist/cjs/src/prediction/sxbet.js +2710 -0
- package/dist/cjs/src/pro/alpaca.js +5 -5
- package/dist/cjs/src/pro/apex.js +6 -6
- package/dist/cjs/src/pro/aster.js +8 -8
- package/dist/cjs/src/pro/backpack.js +1 -1
- package/dist/cjs/src/pro/binance.js +26 -26
- package/dist/cjs/src/pro/bingx.js +11 -11
- package/dist/cjs/src/pro/bitfinex.js +11 -11
- package/dist/cjs/src/pro/bitget.js +20 -20
- package/dist/cjs/src/pro/bithumb.js +1 -1
- package/dist/cjs/src/pro/bitmex.js +12 -12
- package/dist/cjs/src/pro/bitopro.js +5 -5
- package/dist/cjs/src/pro/bitrue.js +7 -7
- package/dist/cjs/src/pro/bitstamp.js +5 -5
- package/dist/cjs/src/pro/bittrade.js +11 -11
- package/dist/cjs/src/pro/bitvavo.js +16 -16
- package/dist/cjs/src/pro/blockchaincom.js +5 -5
- package/dist/cjs/src/pro/blofin.js +2 -2
- package/dist/cjs/src/pro/bybit.js +21 -21
- package/dist/cjs/src/pro/bydfi.js +2 -2
- package/dist/cjs/src/pro/cex.js +19 -19
- package/dist/cjs/src/pro/coinbase.js +2 -2
- package/dist/cjs/src/pro/coinbaseexchange.js +9 -9
- package/dist/cjs/src/pro/coinbaseinternational.js +2 -2
- package/dist/cjs/src/pro/coincheck.js +2 -2
- package/dist/cjs/src/pro/coinex.js +3 -3
- package/dist/cjs/src/pro/coinone.js +6 -6
- package/dist/cjs/src/pro/cryptocom.js +10 -10
- package/dist/cjs/src/pro/deribit.js +13 -13
- package/dist/cjs/src/pro/derive.js +4 -4
- package/dist/cjs/src/pro/dydx.js +1 -1
- package/dist/cjs/src/pro/extended.js +16 -10
- package/dist/cjs/src/pro/gate.js +10 -10
- package/dist/cjs/src/pro/gemini.js +3 -3
- package/dist/cjs/src/pro/grvt.js +2 -2
- package/dist/cjs/src/pro/hashkey.js +2 -2
- package/dist/cjs/src/pro/hitbtc.js +6 -6
- package/dist/cjs/src/pro/hollaex.js +3 -3
- package/dist/cjs/src/pro/htx.js +28 -28
- package/dist/cjs/src/pro/hyperliquid.js +1 -1
- package/dist/cjs/src/pro/independentreserve.js +2 -2
- package/dist/cjs/src/pro/kraken.js +7 -7
- package/dist/cjs/src/pro/krakenfutures.js +12 -12
- package/dist/cjs/src/pro/kucoin.js +12 -12
- package/dist/cjs/src/pro/lbank.js +16 -16
- package/dist/cjs/src/pro/luno.js +2 -2
- package/dist/cjs/src/pro/mexc.js +8 -8
- package/dist/cjs/src/pro/modetrade.js +3 -3
- package/dist/cjs/src/pro/mudrex.js +2 -2
- package/dist/cjs/src/pro/nado.js +3 -3
- package/dist/cjs/src/pro/ndax.js +6 -6
- package/dist/cjs/src/pro/okx.js +20 -20
- package/dist/cjs/src/pro/onetrading.js +14 -14
- package/dist/cjs/src/pro/p2b.js +5 -5
- package/dist/cjs/src/pro/pacifica.js +1 -1
- package/dist/cjs/src/pro/paradex.js +1 -1
- package/dist/cjs/src/pro/phemex.js +13 -13
- package/dist/cjs/src/pro/poloniex.js +17 -17
- package/dist/cjs/src/pro/toobit.js +2 -2
- package/dist/cjs/src/pro/upbit.js +4 -4
- package/dist/cjs/src/pro/weex.js +2 -2
- package/dist/cjs/src/pro/whitebit.js +12 -12
- package/dist/cjs/src/pro/woo.js +13 -13
- package/dist/cjs/src/pro/woofipro.js +3 -3
- package/dist/cjs/src/pro/xt.js +3 -3
- package/dist/cjs/src/tokocrypto.js +20 -20
- package/dist/cjs/src/upbit.js +12 -12
- package/dist/cjs/src/whitebit.js +15 -15
- package/dist/cjs/src/woo.js +3 -3
- package/dist/cjs/src/woofipro.js +14 -14
- package/dist/cjs/src/zaif.js +9 -3
- package/dist/cjs/src/zebpay.js +1 -1
- package/js/ccxt.d.ts +4 -1
- package/js/ccxt.js +3 -1
- package/js/src/abstract/prediction/sxbet.d.ts +41 -0
- package/js/src/abstract/prediction/sxbet.js +11 -0
- package/js/src/alpaca.d.ts +28 -33
- package/js/src/apex.d.ts +28 -42
- package/js/src/apex.js +1 -0
- package/js/src/aster.d.ts +58 -108
- package/js/src/aster.js +2 -2
- package/js/src/backpack.d.ts +34 -48
- package/js/src/base/Exchange.d.ts +304 -320
- package/js/src/base/Exchange.js +1 -1
- package/js/src/bigone.d.ts +24 -29
- package/js/src/bigone.js +2 -2
- package/js/src/binance.d.ts +112 -138
- package/js/src/binance.js +10 -10
- package/js/src/binancecoinm.d.ts +3 -2
- package/js/src/binanceusdm.d.ts +3 -2
- package/js/src/bingx.d.ts +65 -84
- package/js/src/bingx.js +3 -3
- package/js/src/bit2c.d.ts +13 -18
- package/js/src/bit2c.js +4 -4
- package/js/src/bitbank.d.ts +16 -21
- package/js/src/bitbank.js +15 -15
- package/js/src/bitbns.d.ts +15 -20
- package/js/src/bitfinex.d.ts +46 -51
- package/js/src/bitfinex.js +15 -15
- package/js/src/bitflyer.d.ts +20 -25
- package/js/src/bitget.d.ts +105 -93
- package/js/src/bitget.js +109 -73
- package/js/src/bithumb.d.ts +26 -31
- package/js/src/bitmex.d.ts +48 -65
- package/js/src/bitmex.js +7 -7
- package/js/src/bitopro.d.ts +25 -41
- package/js/src/bitopro.js +2 -2
- package/js/src/bitrue.d.ts +30 -45
- package/js/src/bitrue.js +6 -6
- package/js/src/bitso.d.ts +24 -29
- package/js/src/bitso.js +18 -18
- package/js/src/bitstamp.d.ts +36 -47
- package/js/src/bitstamp.js +5 -5
- package/js/src/bitteam.d.ts +22 -27
- package/js/src/bitteam.js +32 -32
- package/js/src/bittrade.d.ts +35 -46
- package/js/src/bittrade.js +10 -10
- package/js/src/bitvavo.d.ts +43 -48
- package/js/src/bitvavo.js +9 -9
- package/js/src/blockchaincom.d.ts +26 -31
- package/js/src/blockchaincom.js +2 -2
- package/js/src/blofin.d.ts +38 -43
- package/js/src/btcbox.d.ts +14 -19
- package/js/src/btcbox.js +2 -2
- package/js/src/btcmarkets.d.ts +25 -30
- package/js/src/btcmarkets.js +2 -2
- package/js/src/btcturk.d.ts +13 -18
- package/js/src/btcturk.js +2 -2
- package/js/src/btse.d.ts +44 -50
- package/js/src/btse.js +2 -2
- package/js/src/bullish.d.ts +35 -57
- package/js/src/bybit.d.ts +95 -106
- package/js/src/bybitid.js +4 -0
- package/js/src/bydfi.d.ts +37 -48
- package/js/src/cex.d.ts +29 -34
- package/js/src/coinbase.d.ts +66 -82
- package/js/src/coinbase.js +1 -1
- package/js/src/coinbaseexchange.d.ts +33 -43
- package/js/src/coinbaseexchange.js +13 -13
- package/js/src/coinbaseinternational.d.ts +34 -73
- package/js/src/coincheck.d.ts +13 -18
- package/js/src/coincheck.js +4 -4
- package/js/src/coinex.d.ts +63 -68
- package/js/src/coinex.js +10 -10
- package/js/src/coinmate.d.ts +15 -20
- package/js/src/coinmate.js +4 -4
- package/js/src/coinone.d.ts +14 -19
- package/js/src/coinone.js +4 -4
- package/js/src/coinsph.d.ts +32 -37
- package/js/src/coinsph.js +5 -5
- package/js/src/coinspot.d.ts +10 -15
- package/js/src/cryptocom.d.ts +48 -64
- package/js/src/cryptocom.js +5 -5
- package/js/src/cryptomus.d.ts +15 -23
- package/js/src/deepcoin.d.ts +43 -48
- package/js/src/delta.d.ts +43 -54
- package/js/src/deribit.d.ts +48 -69
- package/js/src/deribit.js +31 -31
- package/js/src/derive.d.ts +28 -42
- package/js/src/derive.js +1 -1
- package/js/src/digifinex.d.ts +54 -67
- package/js/src/digifinex.js +31 -31
- package/js/src/dydx.d.ts +26 -31
- package/js/src/extended.d.ts +51 -56
- package/js/src/foxbit.d.ts +34 -64
- package/js/src/gate.d.ts +94 -162
- package/js/src/gate.js +25 -25
- package/js/src/gemini.d.ts +33 -43
- package/js/src/gemini.js +5 -5
- package/js/src/grvt.d.ts +36 -47
- package/js/src/grvt.js +1 -1
- package/js/src/hashkey.d.ts +58 -78
- package/js/src/hibachi.d.ts +42 -52
- package/js/src/hibachi.js +5 -5
- package/js/src/hitbtc.d.ts +49 -56
- package/js/src/hitbtc.js +15 -15
- package/js/src/hollaex.d.ts +26 -31
- package/js/src/hollaex.js +15 -15
- package/js/src/htx.d.ts +80 -121
- package/js/src/htx.js +52 -52
- package/js/src/hyperliquid.d.ts +77 -127
- package/js/src/hyperliquid.js +2 -2
- package/js/src/independentreserve.d.ts +15 -20
- package/js/src/independentreserve.js +2 -2
- package/js/src/indodax.d.ts +19 -24
- package/js/src/indodax.js +8 -8
- package/js/src/kraken.d.ts +43 -55
- package/js/src/kraken.js +29 -29
- package/js/src/krakenfutures.d.ts +34 -39
- package/js/src/krakenfutures.js +16 -16
- package/js/src/kucoin.d.ts +121 -132
- package/js/src/kucoin.js +15 -15
- package/js/src/kucoinfutures.d.ts +4 -4
- package/js/src/latoken.d.ts +24 -29
- package/js/src/latoken.js +8 -8
- package/js/src/lbank.d.ts +40 -53
- package/js/src/lbank.js +31 -31
- package/js/src/lighter.d.ts +40 -45
- package/js/src/lighter.js +2 -2
- package/js/src/luno.d.ts +25 -30
- package/js/src/luno.js +2 -2
- package/js/src/mercado.d.ts +15 -20
- package/js/src/mercado.js +12 -12
- package/js/src/mexc.d.ts +70 -83
- package/js/src/mexc.js +27 -27
- package/js/src/modetrade.d.ts +43 -57
- package/js/src/modetrade.js +10 -10
- package/js/src/mudrex.d.ts +25 -35
- package/js/src/nado.d.ts +45 -50
- package/js/src/ndax.d.ts +27 -32
- package/js/src/ndax.js +4 -4
- package/js/src/okx.d.ts +97 -108
- package/js/src/okx.js +19 -20
- package/js/src/onetrading.d.ts +23 -31
- package/js/src/onetrading.js +7 -7
- package/js/src/p2b.d.ts +17 -22
- package/js/src/p2b.js +8 -8
- package/js/src/pacifica.d.ts +55 -73
- package/js/src/pacifica.js +9 -3
- package/js/src/paradex.d.ts +47 -68
- package/js/src/paymium.d.ts +12 -17
- package/js/src/paymium.js +2 -2
- package/js/src/phemex.d.ts +47 -52
- package/js/src/phemex.js +37 -37
- package/js/src/poloniex.d.ts +45 -50
- package/js/src/poloniex.js +14 -14
- package/js/src/prediction/sxbet.d.ts +595 -0
- package/js/src/prediction/sxbet.js +2708 -0
- package/js/src/pro/alpaca.d.ts +23 -23
- package/js/src/pro/alpaca.js +5 -5
- package/js/src/pro/apex.d.ts +28 -28
- package/js/src/pro/apex.js +6 -6
- package/js/src/pro/aster.d.ts +33 -33
- package/js/src/pro/aster.js +8 -8
- package/js/src/pro/backpack.d.ts +28 -28
- package/js/src/pro/backpack.js +1 -1
- package/js/src/pro/binance.d.ts +57 -57
- package/js/src/pro/binance.js +26 -26
- package/js/src/pro/bingx.d.ts +26 -26
- package/js/src/pro/bingx.js +11 -11
- package/js/src/pro/bitfinex.d.ts +25 -25
- package/js/src/pro/bitfinex.js +11 -11
- package/js/src/pro/bitget.d.ts +41 -41
- package/js/src/pro/bitget.js +20 -20
- package/js/src/pro/bithumb.d.ts +15 -15
- package/js/src/pro/bithumb.js +1 -1
- package/js/src/pro/bitmex.d.ts +29 -29
- package/js/src/pro/bitmex.js +12 -12
- package/js/src/pro/bitopro.d.ts +13 -13
- package/js/src/pro/bitopro.js +5 -5
- package/js/src/pro/bitrue.d.ts +25 -25
- package/js/src/pro/bitrue.js +7 -7
- package/js/src/pro/bitstamp.d.ts +21 -21
- package/js/src/pro/bitstamp.js +5 -5
- package/js/src/pro/bittrade.d.ts +19 -19
- package/js/src/pro/bittrade.js +11 -11
- package/js/src/pro/bitvavo.d.ts +62 -62
- package/js/src/pro/bitvavo.js +16 -16
- package/js/src/pro/blockchaincom.d.ts +19 -19
- package/js/src/pro/blockchaincom.js +5 -5
- package/js/src/pro/blofin.d.ts +23 -23
- package/js/src/pro/blofin.js +2 -2
- package/js/src/pro/bullish.d.ts +19 -25
- package/js/src/pro/bybit.d.ts +42 -45
- package/js/src/pro/bybit.js +21 -21
- package/js/src/pro/bydfi.d.ts +24 -24
- package/js/src/pro/bydfi.js +2 -2
- package/js/src/pro/cex.d.ts +37 -37
- package/js/src/pro/cex.js +19 -19
- package/js/src/pro/coinbase.d.ts +19 -19
- package/js/src/pro/coinbase.js +2 -2
- package/js/src/pro/coinbaseexchange.d.ts +25 -25
- package/js/src/pro/coinbaseexchange.js +9 -9
- package/js/src/pro/coinbaseinternational.d.ts +20 -20
- package/js/src/pro/coinbaseinternational.js +2 -2
- package/js/src/pro/coincheck.d.ts +5 -5
- package/js/src/pro/coincheck.js +2 -2
- package/js/src/pro/coinex.d.ts +24 -24
- package/js/src/pro/coinex.js +3 -3
- package/js/src/pro/coinone.d.ts +9 -11
- package/js/src/pro/coinone.js +6 -6
- package/js/src/pro/cryptocom.d.ts +40 -40
- package/js/src/pro/cryptocom.js +10 -10
- package/js/src/pro/deepcoin.d.ts +24 -32
- package/js/src/pro/deribit.d.ts +24 -24
- package/js/src/pro/deribit.js +13 -13
- package/js/src/pro/derive.d.ts +22 -22
- package/js/src/pro/derive.js +4 -4
- package/js/src/pro/dydx.d.ts +9 -9
- package/js/src/pro/dydx.js +1 -1
- package/js/src/pro/extended.d.ts +22 -22
- package/js/src/pro/extended.js +16 -10
- package/js/src/pro/gate.d.ts +50 -50
- package/js/src/pro/gate.js +10 -10
- package/js/src/pro/gemini.d.ts +26 -26
- package/js/src/pro/gemini.js +3 -3
- package/js/src/pro/grvt.d.ts +22 -22
- package/js/src/pro/grvt.js +2 -2
- package/js/src/pro/hashkey.d.ts +19 -19
- package/js/src/pro/hashkey.js +2 -2
- package/js/src/pro/hitbtc.d.ts +32 -32
- package/js/src/pro/hitbtc.js +6 -6
- package/js/src/pro/hollaex.d.ts +15 -17
- package/js/src/pro/hollaex.js +3 -3
- package/js/src/pro/htx.d.ts +36 -36
- package/js/src/pro/htx.js +28 -28
- package/js/src/pro/hyperliquid.d.ts +29 -31
- package/js/src/pro/hyperliquid.js +1 -1
- package/js/src/pro/independentreserve.d.ts +10 -10
- package/js/src/pro/independentreserve.js +2 -2
- package/js/src/pro/kraken.d.ts +41 -55
- package/js/src/pro/kraken.js +7 -7
- package/js/src/pro/krakenfutures.d.ts +32 -32
- package/js/src/pro/krakenfutures.js +12 -12
- package/js/src/pro/kucoin.d.ts +69 -72
- package/js/src/pro/kucoin.js +12 -12
- package/js/src/pro/kucoinfutures.d.ts +4 -4
- package/js/src/pro/lbank.d.ts +22 -22
- package/js/src/pro/lbank.js +16 -16
- package/js/src/pro/lighter.d.ts +27 -27
- package/js/src/pro/luno.d.ts +8 -8
- package/js/src/pro/luno.js +2 -2
- package/js/src/pro/mexc.d.ts +33 -33
- package/js/src/pro/mexc.js +8 -8
- package/js/src/pro/modetrade.d.ts +37 -39
- package/js/src/pro/modetrade.js +3 -3
- package/js/src/pro/mudrex.d.ts +8 -8
- package/js/src/pro/mudrex.js +2 -2
- package/js/src/pro/nado.d.ts +42 -46
- package/js/src/pro/nado.js +3 -3
- package/js/src/pro/ndax.d.ts +12 -12
- package/js/src/pro/ndax.js +6 -6
- package/js/src/pro/okx.d.ts +49 -49
- package/js/src/pro/okx.js +20 -20
- package/js/src/pro/onetrading.d.ts +28 -28
- package/js/src/pro/onetrading.js +14 -14
- package/js/src/pro/p2b.d.ts +15 -19
- package/js/src/pro/p2b.js +5 -5
- package/js/src/pro/pacifica.d.ts +22 -22
- package/js/src/pro/pacifica.js +1 -1
- package/js/src/pro/paradex.d.ts +18 -18
- package/js/src/pro/paradex.js +1 -1
- package/js/src/pro/phemex.d.ts +25 -25
- package/js/src/pro/phemex.js +13 -13
- package/js/src/pro/poloniex.d.ts +30 -32
- package/js/src/pro/poloniex.js +17 -17
- package/js/src/pro/toobit.d.ts +31 -31
- package/js/src/pro/toobit.js +2 -2
- package/js/src/pro/upbit.d.ts +24 -24
- package/js/src/pro/upbit.js +4 -4
- package/js/src/pro/weex.d.ts +39 -39
- package/js/src/pro/weex.js +2 -2
- package/js/src/pro/whitebit.d.ts +26 -30
- package/js/src/pro/whitebit.js +12 -12
- package/js/src/pro/woo.d.ts +44 -46
- package/js/src/pro/woo.js +13 -13
- package/js/src/pro/woofipro.d.ts +39 -41
- package/js/src/pro/woofipro.js +3 -3
- package/js/src/pro/xt.d.ts +20 -20
- package/js/src/pro/xt.js +3 -3
- package/js/src/revolutx.d.ts +17 -17
- package/js/src/tokocrypto.d.ts +25 -30
- package/js/src/tokocrypto.js +20 -20
- package/js/src/toobit.d.ts +45 -79
- package/js/src/upbit.d.ts +28 -61
- package/js/src/upbit.js +12 -12
- package/js/src/weex.d.ts +57 -68
- package/js/src/whitebit.d.ts +53 -64
- package/js/src/whitebit.js +15 -15
- package/js/src/woo.d.ts +61 -75
- package/js/src/woo.js +3 -3
- package/js/src/woofipro.d.ts +53 -67
- package/js/src/woofipro.js +14 -14
- package/js/src/xt.d.ts +57 -67
- package/js/src/zaif.d.ts +11 -16
- package/js/src/zaif.js +9 -3
- package/js/src/zebpay.d.ts +32 -37
- package/js/src/zebpay.js +1 -1
- package/package.json +2 -2
package/js/src/okx.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Exchange from './abstract/okx.js';
|
|
2
|
-
import type { TransferEntry, Int, OrderSide, OrderType, Trade, OHLCV, Order, FundingRateHistory, OrderRequest, FundingHistory, Str, Transaction, Ticker, OrderBook, Balances, Tickers, Market, Greeks, Strings, MarketInterface, Currency, CurrencyInterface, Leverage, Num, Account, OptionChain, Option, MarginModification, TradingFeeInterface, Currencies, Conversion, CancellationRequest, Dict, NullableDict, List, Position, CrossBorrowRate, CrossBorrowRates, LeverageTier, int, LedgerEntry, FundingRate, FundingRates, DepositAddress, LongShortRatio, BorrowInterest, OpenInterests, DepositWithdrawFees, Status, PositionModeInfo, MarginLoan, AllGreeks, DepositAddresses } from './base/types.js';
|
|
2
|
+
import type { TransferEntry, Int, OrderSide, OrderType, Trade, OHLCV, Order, FundingRateHistory, OrderRequest, FundingHistory, Str, Transaction, Ticker, OrderBook, Balances, Tickers, Market, Greeks, Strings, MarketInterface, Currency, CurrencyInterface, Leverage, Num, Account, OptionChain, Option, MarginModification, TradingFeeInterface, Currencies, Conversion, CancellationRequest, Dict, NullableDict, List, Position, CrossBorrowRate, CrossBorrowRates, LeverageTier, int, LedgerEntry, FundingRate, FundingRates, DepositAddress, LongShortRatio, BorrowInterest, OpenInterests, OpenInterest, DepositWithdrawFees, Status, PositionModeInfo, MarginLoan, AllGreeks, DepositAddresses } from './base/types.js';
|
|
3
3
|
/**
|
|
4
4
|
* @class okx
|
|
5
5
|
* @augments Exchange
|
|
@@ -18,7 +18,7 @@ export default class okx extends Exchange {
|
|
|
18
18
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
19
19
|
* @returns {object} a [status structure]{@link https://docs.ccxt.com/?id=exchange-status-structure}
|
|
20
20
|
*/
|
|
21
|
-
fetchStatus(params?:
|
|
21
|
+
fetchStatus(params?: Dict): Promise<Status>;
|
|
22
22
|
/**
|
|
23
23
|
* @method
|
|
24
24
|
* @name okx#fetchTime
|
|
@@ -27,7 +27,7 @@ export default class okx extends Exchange {
|
|
|
27
27
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
28
28
|
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
29
29
|
*/
|
|
30
|
-
fetchTime(params?:
|
|
30
|
+
fetchTime(params?: Dict): Promise<Int>;
|
|
31
31
|
/**
|
|
32
32
|
* @method
|
|
33
33
|
* @name okx#fetchAccounts
|
|
@@ -36,7 +36,7 @@ export default class okx extends Exchange {
|
|
|
36
36
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
37
37
|
* @returns {object} a dictionary of [account structures]{@link https://docs.ccxt.com/?id=account-structure} indexed by the account type
|
|
38
38
|
*/
|
|
39
|
-
fetchAccounts(params?:
|
|
39
|
+
fetchAccounts(params?: Dict): Promise<Account[]>;
|
|
40
40
|
nonce(): number;
|
|
41
41
|
/**
|
|
42
42
|
* @method
|
|
@@ -46,9 +46,9 @@ export default class okx extends Exchange {
|
|
|
46
46
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
47
47
|
* @returns {object[]} an array of objects representing market data
|
|
48
48
|
*/
|
|
49
|
-
fetchMarkets(params?:
|
|
49
|
+
fetchMarkets(params?: Dict): Promise<Market[]>;
|
|
50
50
|
parseMarket(market: Dict): Market;
|
|
51
|
-
fetchMarketsByType(type: any, params?:
|
|
51
|
+
fetchMarketsByType(type: any, params?: Dict): Promise<Market[]>;
|
|
52
52
|
/**
|
|
53
53
|
* @method
|
|
54
54
|
* @name okx#fetchCurrencies
|
|
@@ -57,7 +57,7 @@ export default class okx extends Exchange {
|
|
|
57
57
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
58
58
|
* @returns {object} an associative dictionary of currencies
|
|
59
59
|
*/
|
|
60
|
-
fetchCurrencies(params?:
|
|
60
|
+
fetchCurrencies(params?: Dict): Promise<Currencies>;
|
|
61
61
|
parseCurrency(currency: Dict): CurrencyInterface;
|
|
62
62
|
/**
|
|
63
63
|
* @method
|
|
@@ -73,7 +73,7 @@ export default class okx extends Exchange {
|
|
|
73
73
|
* @param {bool} [params.rpi] set to true to use the RPI order book, which consolidates organic and retail-price-improvement liquidity, capped at 400 entries
|
|
74
74
|
* @returns {object} an [order book structure]{@link https://docs.ccxt.com/?id=order-book-structure}
|
|
75
75
|
*/
|
|
76
|
-
fetchOrderBook(symbol: string, limit?: Int, params?:
|
|
76
|
+
fetchOrderBook(symbol: string, limit?: Int, params?: Dict): Promise<OrderBook>;
|
|
77
77
|
parseTicker(ticker: Dict, market?: Market): Ticker;
|
|
78
78
|
/**
|
|
79
79
|
* @method
|
|
@@ -84,7 +84,7 @@ export default class okx extends Exchange {
|
|
|
84
84
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
85
85
|
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
86
86
|
*/
|
|
87
|
-
fetchTicker(symbol: string, params?:
|
|
87
|
+
fetchTicker(symbol: string, params?: Dict): Promise<Ticker>;
|
|
88
88
|
/**
|
|
89
89
|
* @method
|
|
90
90
|
* @name okx#fetchTickers
|
|
@@ -94,7 +94,7 @@ export default class okx extends Exchange {
|
|
|
94
94
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
95
95
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
96
96
|
*/
|
|
97
|
-
fetchTickers(symbols?: Strings, params?:
|
|
97
|
+
fetchTickers(symbols?: Strings, params?: Dict): Promise<Tickers>;
|
|
98
98
|
/**
|
|
99
99
|
* @method
|
|
100
100
|
* @name okx#fetchMarkPrice
|
|
@@ -104,7 +104,7 @@ export default class okx extends Exchange {
|
|
|
104
104
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
105
105
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
106
106
|
*/
|
|
107
|
-
fetchMarkPrice(symbol: string, params?:
|
|
107
|
+
fetchMarkPrice(symbol: string, params?: Dict): Promise<Ticker>;
|
|
108
108
|
/**
|
|
109
109
|
* @method
|
|
110
110
|
* @name okx#fetchMarkPrices
|
|
@@ -114,7 +114,7 @@ export default class okx extends Exchange {
|
|
|
114
114
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
115
115
|
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/?id=ticker-structure}
|
|
116
116
|
*/
|
|
117
|
-
fetchMarkPrices(symbols?: Strings, params?:
|
|
117
|
+
fetchMarkPrices(symbols?: Strings, params?: Dict): Promise<Tickers>;
|
|
118
118
|
parseTrade(trade: Dict, market?: Market): Trade;
|
|
119
119
|
/**
|
|
120
120
|
* @method
|
|
@@ -131,7 +131,7 @@ export default class okx extends Exchange {
|
|
|
131
131
|
* @param {boolean} [params.paginate] *only applies to publicGetMarketHistoryTrades* default false, when true will automatically paginate by calling this endpoint multiple times
|
|
132
132
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=public-trades}
|
|
133
133
|
*/
|
|
134
|
-
fetchTrades(symbol: string, since?: Int, limit?: Int, params?:
|
|
134
|
+
fetchTrades(symbol: string, since?: Int, limit?: Int, params?: Dict): Promise<Trade[]>;
|
|
135
135
|
parseOHLCV(ohlcv: any, market?: Market): OHLCV;
|
|
136
136
|
/**
|
|
137
137
|
* @method
|
|
@@ -155,7 +155,7 @@ export default class okx extends Exchange {
|
|
|
155
155
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
156
156
|
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
157
157
|
*/
|
|
158
|
-
fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?:
|
|
158
|
+
fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: Dict): Promise<OHLCV[]>;
|
|
159
159
|
/**
|
|
160
160
|
* @method
|
|
161
161
|
* @name okx#fetchFundingRateHistory
|
|
@@ -168,10 +168,10 @@ export default class okx extends Exchange {
|
|
|
168
168
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
169
169
|
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/?id=funding-rate-history-structure}
|
|
170
170
|
*/
|
|
171
|
-
fetchFundingRateHistory(symbol?: Str, since?: Int, limit?: Int, params?:
|
|
172
|
-
parseBalanceByType(type:
|
|
173
|
-
parseTradingBalance(response:
|
|
174
|
-
parseFundingBalance(response:
|
|
171
|
+
fetchFundingRateHistory(symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise<FundingRateHistory[]>;
|
|
172
|
+
parseBalanceByType(type: Str, response: Dict): Balances;
|
|
173
|
+
parseTradingBalance(response: Dict): Balances;
|
|
174
|
+
parseFundingBalance(response: Dict): Balances;
|
|
175
175
|
parseTradingFee(fee: Dict, market?: Market): TradingFeeInterface;
|
|
176
176
|
/**
|
|
177
177
|
* @method
|
|
@@ -182,7 +182,7 @@ export default class okx extends Exchange {
|
|
|
182
182
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
183
183
|
* @returns {object} a [fee structure]{@link https://docs.ccxt.com/?id=fee-structure}
|
|
184
184
|
*/
|
|
185
|
-
fetchTradingFee(symbol: string, params?:
|
|
185
|
+
fetchTradingFee(symbol: string, params?: Dict): Promise<TradingFeeInterface>;
|
|
186
186
|
/**
|
|
187
187
|
* @method
|
|
188
188
|
* @name okx#fetchBalance
|
|
@@ -193,7 +193,7 @@ export default class okx extends Exchange {
|
|
|
193
193
|
* @param {string} [params.type] wallet type, ['funding' or 'trading'] default is 'trading'
|
|
194
194
|
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/?id=balance-structure}
|
|
195
195
|
*/
|
|
196
|
-
fetchBalance(params?:
|
|
196
|
+
fetchBalance(params?: Dict): Promise<Balances>;
|
|
197
197
|
/**
|
|
198
198
|
* @method
|
|
199
199
|
* @name okx#createMarketBuyOrderWithCost
|
|
@@ -204,7 +204,7 @@ export default class okx extends Exchange {
|
|
|
204
204
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
205
205
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
206
206
|
*/
|
|
207
|
-
createMarketBuyOrderWithCost(symbol: string, cost: number, params?:
|
|
207
|
+
createMarketBuyOrderWithCost(symbol: string, cost: number, params?: Dict): Promise<Order>;
|
|
208
208
|
/**
|
|
209
209
|
* @method
|
|
210
210
|
* @name okx#createMarketSellOrderWithCost
|
|
@@ -215,8 +215,8 @@ export default class okx extends Exchange {
|
|
|
215
215
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
216
216
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
217
217
|
*/
|
|
218
|
-
createMarketSellOrderWithCost(symbol: string, cost: number, params?:
|
|
219
|
-
createOrderRequest(symbol: Str, type: Str, side: Str, amount: Num, price?: Num, params?:
|
|
218
|
+
createMarketSellOrderWithCost(symbol: string, cost: number, params?: Dict): Promise<Order>;
|
|
219
|
+
createOrderRequest(symbol: Str, type: Str, side: Str, amount: Num, price?: Num, params?: Dict): Dict;
|
|
220
220
|
/**
|
|
221
221
|
* @method
|
|
222
222
|
* @name okx#createOrder
|
|
@@ -249,7 +249,7 @@ export default class okx extends Exchange {
|
|
|
249
249
|
* @param {bool} [params.rpiPxRound] *rpi orders only* true to round the price outward to the nearest placeable non-crossing level
|
|
250
250
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
251
251
|
*/
|
|
252
|
-
createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?:
|
|
252
|
+
createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: Dict): Promise<Order>;
|
|
253
253
|
/**
|
|
254
254
|
* @method
|
|
255
255
|
* @name okx#createOrders
|
|
@@ -259,8 +259,8 @@ export default class okx extends Exchange {
|
|
|
259
259
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
260
260
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
261
261
|
*/
|
|
262
|
-
createOrders(orders: OrderRequest[], params?:
|
|
263
|
-
editOrderRequest(id: string, symbol: Str, type:
|
|
262
|
+
createOrders(orders: OrderRequest[], params?: Dict): Promise<Order[]>;
|
|
263
|
+
editOrderRequest(id: string, symbol: Str, type: Str, side: Str, amount?: Num, price?: Num, params?: Dict): Dict;
|
|
264
264
|
/**
|
|
265
265
|
* @method
|
|
266
266
|
* @name okx#editOrder
|
|
@@ -292,7 +292,7 @@ export default class okx extends Exchange {
|
|
|
292
292
|
* @param {string} [params.newTpOrdKind] 'condition' or 'limit', the default is 'condition'
|
|
293
293
|
* @returns {object} an [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
294
294
|
*/
|
|
295
|
-
editOrder(id: string, symbol: string, type: OrderType, side: OrderSide, amount?: Num, price?: Num, params?:
|
|
295
|
+
editOrder(id: string, symbol: string, type: OrderType, side: OrderSide, amount?: Num, price?: Num, params?: Dict): Promise<Order>;
|
|
296
296
|
/**
|
|
297
297
|
* @method
|
|
298
298
|
* @name okx#cancelOrder
|
|
@@ -306,7 +306,7 @@ export default class okx extends Exchange {
|
|
|
306
306
|
* @param {boolean} [params.trailing] set to true if you want to cancel a trailing order
|
|
307
307
|
* @returns {object} An [order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
308
308
|
*/
|
|
309
|
-
cancelOrder(id: string, symbol?: Str, params?:
|
|
309
|
+
cancelOrder(id: string, symbol?: Str, params?: Dict): Promise<Order>;
|
|
310
310
|
parseIds(ids: any): any;
|
|
311
311
|
/**
|
|
312
312
|
* @method
|
|
@@ -321,7 +321,7 @@ export default class okx extends Exchange {
|
|
|
321
321
|
* @param {boolean} [params.trailing] set to true if you want to cancel trailing orders
|
|
322
322
|
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
323
323
|
*/
|
|
324
|
-
cancelOrders(ids: string[], symbol?: Str, params?:
|
|
324
|
+
cancelOrders(ids: string[], symbol?: Str, params?: Dict): Promise<Order[]>;
|
|
325
325
|
/**
|
|
326
326
|
* @method
|
|
327
327
|
* @name okx#cancelOrdersForSymbols
|
|
@@ -334,7 +334,7 @@ export default class okx extends Exchange {
|
|
|
334
334
|
* @param {boolean} [params.trailing] set to true if you want to cancel trailing orders
|
|
335
335
|
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
336
336
|
*/
|
|
337
|
-
cancelOrdersForSymbols(orders: CancellationRequest[], params?:
|
|
337
|
+
cancelOrdersForSymbols(orders: CancellationRequest[], params?: Dict): Promise<Order[]>;
|
|
338
338
|
/**
|
|
339
339
|
* @method
|
|
340
340
|
* @name okx#cancelAllOrdersAfter
|
|
@@ -344,7 +344,7 @@ export default class okx extends Exchange {
|
|
|
344
344
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
345
345
|
* @returns {object} the api result
|
|
346
346
|
*/
|
|
347
|
-
cancelAllOrdersAfter(timeout: Int, params?:
|
|
347
|
+
cancelAllOrdersAfter(timeout: Int, params?: Dict): Promise<Dict>;
|
|
348
348
|
parseOrderStatus(status: Str): string | undefined;
|
|
349
349
|
parseOrder(order: Dict, market?: Market): Order;
|
|
350
350
|
/**
|
|
@@ -359,7 +359,7 @@ export default class okx extends Exchange {
|
|
|
359
359
|
* @param {boolean} [params.trigger] true if fetching trigger orders
|
|
360
360
|
* @returns [an order structure]{@link https://docs.ccxt.com/?id=order-structure}
|
|
361
361
|
*/
|
|
362
|
-
fetchOrder(id: string, symbol?: Str, params?:
|
|
362
|
+
fetchOrder(id: string, symbol?: Str, params?: Dict): Promise<Order>;
|
|
363
363
|
/**
|
|
364
364
|
* @method
|
|
365
365
|
* @name okx#fetchOpenOrders
|
|
@@ -377,7 +377,7 @@ export default class okx extends Exchange {
|
|
|
377
377
|
* @param {boolean} [params.trailing] set to true if you want to fetch trailing orders
|
|
378
378
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
379
379
|
*/
|
|
380
|
-
fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?:
|
|
380
|
+
fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Order[]>;
|
|
381
381
|
/**
|
|
382
382
|
* @method
|
|
383
383
|
* @name okx#fetchCanceledOrders
|
|
@@ -395,7 +395,7 @@ export default class okx extends Exchange {
|
|
|
395
395
|
* @param {boolean} [params.trailing] set to true if you want to fetch trailing orders
|
|
396
396
|
* @returns {object} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
397
397
|
*/
|
|
398
|
-
fetchCanceledOrders(symbol?: Str, since?: Int, limit?: Int, params?:
|
|
398
|
+
fetchCanceledOrders(symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Order[]>;
|
|
399
399
|
/**
|
|
400
400
|
* @method
|
|
401
401
|
* @name okx#fetchClosedOrders
|
|
@@ -416,7 +416,7 @@ export default class okx extends Exchange {
|
|
|
416
416
|
* @param {boolean} [params.trailing] set to true if you want to fetch trailing orders
|
|
417
417
|
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/?id=order-structure}
|
|
418
418
|
*/
|
|
419
|
-
fetchClosedOrders(symbol?: Str, since?: Int, limit?: Int, params?:
|
|
419
|
+
fetchClosedOrders(symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Order[]>;
|
|
420
420
|
/**
|
|
421
421
|
* @method
|
|
422
422
|
* @name okx#fetchMyTrades
|
|
@@ -430,7 +430,7 @@ export default class okx extends Exchange {
|
|
|
430
430
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
431
431
|
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
432
432
|
*/
|
|
433
|
-
fetchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?:
|
|
433
|
+
fetchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Trade[]>;
|
|
434
434
|
/**
|
|
435
435
|
* @method
|
|
436
436
|
* @name okx#fetchOrderTrades
|
|
@@ -443,7 +443,7 @@ export default class okx extends Exchange {
|
|
|
443
443
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
444
444
|
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/?id=trade-structure}
|
|
445
445
|
*/
|
|
446
|
-
fetchOrderTrades(id: string, symbol?: Str, since?: Int, limit?: Int, params?:
|
|
446
|
+
fetchOrderTrades(id: string, symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Trade[]>;
|
|
447
447
|
/**
|
|
448
448
|
* @method
|
|
449
449
|
* @name okx#fetchLedger
|
|
@@ -460,8 +460,8 @@ export default class okx extends Exchange {
|
|
|
460
460
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [available parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
461
461
|
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com/?id=ledger-entry-structure}
|
|
462
462
|
*/
|
|
463
|
-
fetchLedger(code?: Str, since?: Int, limit?: Int, params?:
|
|
464
|
-
parseLedgerEntryType(type:
|
|
463
|
+
fetchLedger(code?: Str, since?: Int, limit?: Int, params?: Dict): Promise<LedgerEntry[]>;
|
|
464
|
+
parseLedgerEntryType(type: Str): Str;
|
|
465
465
|
parseLedgerEntry(item: Dict, currency?: Currency): LedgerEntry;
|
|
466
466
|
parseDepositAddress(depositAddress: any, currency?: Currency): DepositAddress;
|
|
467
467
|
/**
|
|
@@ -473,7 +473,7 @@ export default class okx extends Exchange {
|
|
|
473
473
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
474
474
|
* @returns {object} a dictionary of [address structures]{@link https://docs.ccxt.com/?id=address-structure} indexed by the network
|
|
475
475
|
*/
|
|
476
|
-
fetchDepositAddressesByNetwork(code: string, params?:
|
|
476
|
+
fetchDepositAddressesByNetwork(code: string, params?: Dict): Promise<DepositAddresses>;
|
|
477
477
|
/**
|
|
478
478
|
* @method
|
|
479
479
|
* @name okx#fetchDepositAddress
|
|
@@ -484,7 +484,7 @@ export default class okx extends Exchange {
|
|
|
484
484
|
* @param {string} [params.network] the network name for the deposit address
|
|
485
485
|
* @returns {object} an [address structure]{@link https://docs.ccxt.com/?id=address-structure}
|
|
486
486
|
*/
|
|
487
|
-
fetchDepositAddress(code: string, params?:
|
|
487
|
+
fetchDepositAddress(code: string, params?: Dict): Promise<DepositAddress>;
|
|
488
488
|
/**
|
|
489
489
|
* @method
|
|
490
490
|
* @name okx#withdraw
|
|
@@ -497,7 +497,7 @@ export default class okx extends Exchange {
|
|
|
497
497
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
498
498
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
499
499
|
*/
|
|
500
|
-
withdraw(code: string, amount: number, address: string, tag?: Str, params?:
|
|
500
|
+
withdraw(code: string, amount: number, address: string, tag?: Str, params?: Dict): Promise<Transaction>;
|
|
501
501
|
/**
|
|
502
502
|
* @method
|
|
503
503
|
* @name okx#fetchDeposits
|
|
@@ -511,7 +511,7 @@ export default class okx extends Exchange {
|
|
|
511
511
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
512
512
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
513
513
|
*/
|
|
514
|
-
fetchDeposits(code?: Str, since?: Int, limit?: Int, params?:
|
|
514
|
+
fetchDeposits(code?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Transaction[]>;
|
|
515
515
|
/**
|
|
516
516
|
* @method
|
|
517
517
|
* @name okx#fetchDeposit
|
|
@@ -522,7 +522,7 @@ export default class okx extends Exchange {
|
|
|
522
522
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
523
523
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
524
524
|
*/
|
|
525
|
-
fetchDeposit(id: string, code?: Str, params?:
|
|
525
|
+
fetchDeposit(id: string, code?: Str, params?: Dict): Promise<Transaction>;
|
|
526
526
|
/**
|
|
527
527
|
* @method
|
|
528
528
|
* @name okx#fetchWithdrawals
|
|
@@ -536,7 +536,7 @@ export default class okx extends Exchange {
|
|
|
536
536
|
* @param {boolean} [params.paginate] default false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the [availble parameters](https://github.com/ccxt/ccxt/wiki/Manual#pagination-params)
|
|
537
537
|
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
538
538
|
*/
|
|
539
|
-
fetchWithdrawals(code?: Str, since?: Int, limit?: Int, params?:
|
|
539
|
+
fetchWithdrawals(code?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Transaction[]>;
|
|
540
540
|
/**
|
|
541
541
|
* @method
|
|
542
542
|
* @name okx#fetchWithdrawal
|
|
@@ -547,7 +547,7 @@ export default class okx extends Exchange {
|
|
|
547
547
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
548
548
|
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/?id=transaction-structure}
|
|
549
549
|
*/
|
|
550
|
-
fetchWithdrawal(id: string, code?: Str, params?:
|
|
550
|
+
fetchWithdrawal(id: string, code?: Str, params?: Dict): Promise<Transaction>;
|
|
551
551
|
parseTransactionStatus(status: Str): string | undefined;
|
|
552
552
|
parseTransaction(transaction: Dict, currency?: Currency): Transaction;
|
|
553
553
|
/**
|
|
@@ -560,7 +560,7 @@ export default class okx extends Exchange {
|
|
|
560
560
|
* @param {string} [params.marginMode] 'cross' or 'isolated'
|
|
561
561
|
* @returns {object} a [leverage structure]{@link https://docs.ccxt.com/?id=leverage-structure}
|
|
562
562
|
*/
|
|
563
|
-
fetchLeverage(symbol: string, params?:
|
|
563
|
+
fetchLeverage(symbol: string, params?: Dict): Promise<Leverage>;
|
|
564
564
|
parseLeverage(leverage: Dict, market?: Market): Leverage;
|
|
565
565
|
/**
|
|
566
566
|
* @method
|
|
@@ -572,7 +572,7 @@ export default class okx extends Exchange {
|
|
|
572
572
|
* @param {string} [params.instType] MARGIN, SWAP, FUTURES, OPTION
|
|
573
573
|
* @returns {object} a [position structure]{@link https://docs.ccxt.com/?id=position-structure}
|
|
574
574
|
*/
|
|
575
|
-
fetchPosition(symbol: string, params?:
|
|
575
|
+
fetchPosition(symbol: string, params?: Dict): Promise<Position>;
|
|
576
576
|
/**
|
|
577
577
|
* @method
|
|
578
578
|
* @name okx#fetchPositions
|
|
@@ -584,7 +584,7 @@ export default class okx extends Exchange {
|
|
|
584
584
|
* @param {string} [params.instType] MARGIN, SWAP, FUTURES, OPTION
|
|
585
585
|
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/?id=position-structure}
|
|
586
586
|
*/
|
|
587
|
-
fetchPositions(symbols?: Strings, params?:
|
|
587
|
+
fetchPositions(symbols?: Strings, params?: Dict): Promise<Position[]>;
|
|
588
588
|
/**
|
|
589
589
|
* @method
|
|
590
590
|
* @name okx#fetchPositionsForSymbol
|
|
@@ -595,7 +595,7 @@ export default class okx extends Exchange {
|
|
|
595
595
|
* @param {string} [params.instType] MARGIN (if needed)
|
|
596
596
|
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/?id=position-structure}
|
|
597
597
|
*/
|
|
598
|
-
fetchPositionsForSymbol(symbol: string, params?:
|
|
598
|
+
fetchPositionsForSymbol(symbol: string, params?: Dict): Promise<Position[]>;
|
|
599
599
|
parsePosition(position: Dict, market?: Market): Position;
|
|
600
600
|
/**
|
|
601
601
|
* @method
|
|
@@ -609,7 +609,7 @@ export default class okx extends Exchange {
|
|
|
609
609
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
610
610
|
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com/?id=transfer-structure}
|
|
611
611
|
*/
|
|
612
|
-
transfer(code: string, amount: number, fromAccount: string, toAccount: string, params?:
|
|
612
|
+
transfer(code: string, amount: number, fromAccount: string, toAccount: string, params?: Dict): Promise<TransferEntry>;
|
|
613
613
|
parseTransfer(transfer: Dict, currency?: Currency): TransferEntry;
|
|
614
614
|
parseTransferStatus(status: Str): Str;
|
|
615
615
|
/**
|
|
@@ -622,7 +622,7 @@ export default class okx extends Exchange {
|
|
|
622
622
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
623
623
|
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com/?id=transfer-structure}
|
|
624
624
|
*/
|
|
625
|
-
fetchTransfer(id: string, code?: Str, params?:
|
|
625
|
+
fetchTransfer(id: string, code?: Str, params?: Dict): Promise<TransferEntry>;
|
|
626
626
|
/**
|
|
627
627
|
* @method
|
|
628
628
|
* @name okx#fetchTransfers
|
|
@@ -634,15 +634,10 @@ export default class okx extends Exchange {
|
|
|
634
634
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
635
635
|
* @returns {object[]} a list of [transfer structures]{@link https://docs.ccxt.com/?id=transfer-structure}
|
|
636
636
|
*/
|
|
637
|
-
fetchTransfers(code?: Str, since?: Int, limit?: Int, params?:
|
|
638
|
-
sign(path: any, api?: any, method?: string, params?: Dict, headers?: NullableDict, body?: Str):
|
|
639
|
-
url: string;
|
|
640
|
-
method: string;
|
|
641
|
-
body: Str;
|
|
642
|
-
headers: NullableDict;
|
|
643
|
-
};
|
|
637
|
+
fetchTransfers(code?: Str, since?: Int, limit?: Int, params?: Dict): Promise<TransferEntry[]>;
|
|
638
|
+
sign(path: any, api?: any, method?: string, params?: Dict, headers?: NullableDict, body?: Str): Dict;
|
|
644
639
|
parseFundingRate(contract: any, market?: Market): FundingRate;
|
|
645
|
-
parseFundingInterval(interval:
|
|
640
|
+
parseFundingInterval(interval: Str): Str;
|
|
646
641
|
/**
|
|
647
642
|
* @method
|
|
648
643
|
* @name okx#fetchFundingInterval
|
|
@@ -652,7 +647,7 @@ export default class okx extends Exchange {
|
|
|
652
647
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
653
648
|
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/?id=funding-rate-structure}
|
|
654
649
|
*/
|
|
655
|
-
fetchFundingInterval(symbol: string, params?:
|
|
650
|
+
fetchFundingInterval(symbol: string, params?: Dict): Promise<FundingRate>;
|
|
656
651
|
/**
|
|
657
652
|
* @method
|
|
658
653
|
* @name okx#fetchFundingRate
|
|
@@ -672,7 +667,7 @@ export default class okx extends Exchange {
|
|
|
672
667
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
673
668
|
* @returns {object} a dictionary of [funding rates structure]{@link https://docs.ccxt.com/?id=funding-rates-structure}
|
|
674
669
|
*/
|
|
675
|
-
fetchFundingRates(symbols?: Strings, params?:
|
|
670
|
+
fetchFundingRates(symbols?: Strings, params?: Dict): Promise<FundingRates>;
|
|
676
671
|
/**
|
|
677
672
|
* @method
|
|
678
673
|
* @name okx#fetchFundingHistory
|
|
@@ -684,7 +679,7 @@ export default class okx extends Exchange {
|
|
|
684
679
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
685
680
|
* @returns {object} a [funding history structure]{@link https://docs.ccxt.com/?id=funding-history-structure}
|
|
686
681
|
*/
|
|
687
|
-
fetchFundingHistory(symbol?: Str, since?: Int, limit?: Int, params?:
|
|
682
|
+
fetchFundingHistory(symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise<FundingHistory[]>;
|
|
688
683
|
/**
|
|
689
684
|
* @method
|
|
690
685
|
* @name okx#setLeverage
|
|
@@ -697,7 +692,7 @@ export default class okx extends Exchange {
|
|
|
697
692
|
* @param {string} [params.posSide] 'long' or 'short' or 'net' for isolated margin long/short mode on futures and swap markets, default is 'net'
|
|
698
693
|
* @returns {object} response from the exchange
|
|
699
694
|
*/
|
|
700
|
-
setLeverage(leverage: int, symbol?: Str, params?:
|
|
695
|
+
setLeverage(leverage: int, symbol?: Str, params?: Dict): Promise<Dict>;
|
|
701
696
|
/**
|
|
702
697
|
* @method
|
|
703
698
|
* @name okx#fetchPositionMode
|
|
@@ -708,7 +703,7 @@ export default class okx extends Exchange {
|
|
|
708
703
|
* @param {string} [params.accountId] if you have multiple accounts, you must specify the account id to fetch the position mode
|
|
709
704
|
* @returns {object} an object detailing whether the market is in hedged or one-way mode
|
|
710
705
|
*/
|
|
711
|
-
fetchPositionMode(symbol?: Str, params?:
|
|
706
|
+
fetchPositionMode(symbol?: Str, params?: Dict): Promise<PositionModeInfo>;
|
|
712
707
|
/**
|
|
713
708
|
* @method
|
|
714
709
|
* @name okx#setPositionMode
|
|
@@ -719,7 +714,7 @@ export default class okx extends Exchange {
|
|
|
719
714
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
720
715
|
* @returns {object} response from the exchange
|
|
721
716
|
*/
|
|
722
|
-
setPositionMode(hedged: boolean, symbol?: Str, params?:
|
|
717
|
+
setPositionMode(hedged: boolean, symbol?: Str, params?: Dict): Promise<Dict>;
|
|
723
718
|
/**
|
|
724
719
|
* @method
|
|
725
720
|
* @name okx#setMarginMode
|
|
@@ -731,7 +726,7 @@ export default class okx extends Exchange {
|
|
|
731
726
|
* @param {int} [params.leverage] leverage
|
|
732
727
|
* @returns {object} response from the exchange
|
|
733
728
|
*/
|
|
734
|
-
setMarginMode(marginMode: string, symbol?: Str, params?:
|
|
729
|
+
setMarginMode(marginMode: string, symbol?: Str, params?: Dict): Promise<Dict>;
|
|
735
730
|
/**
|
|
736
731
|
* @method
|
|
737
732
|
* @name okx#fetchCrossBorrowRates
|
|
@@ -740,7 +735,7 @@ export default class okx extends Exchange {
|
|
|
740
735
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
741
736
|
* @returns {object} a list of [borrow rate structures]{@link https://docs.ccxt.com/?id=borrow-rate-structure}
|
|
742
737
|
*/
|
|
743
|
-
fetchCrossBorrowRates(params?:
|
|
738
|
+
fetchCrossBorrowRates(params?: Dict): Promise<CrossBorrowRates>;
|
|
744
739
|
/**
|
|
745
740
|
* @method
|
|
746
741
|
* @name okx#fetchCrossBorrowRate
|
|
@@ -759,7 +754,7 @@ export default class okx extends Exchange {
|
|
|
759
754
|
datetime: string | undefined;
|
|
760
755
|
info: any;
|
|
761
756
|
};
|
|
762
|
-
parseBorrowRateHistories(response:
|
|
757
|
+
parseBorrowRateHistories(response: List, codes: Strings, since: Int, limit: Int): Dict;
|
|
763
758
|
/**
|
|
764
759
|
* @method
|
|
765
760
|
* @name okx#fetchBorrowRateHistories
|
|
@@ -771,7 +766,7 @@ export default class okx extends Exchange {
|
|
|
771
766
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
772
767
|
* @returns {object} a dictionary of [borrow rate structures]{@link https://docs.ccxt.com/?id=borrow-rate-structure} indexed by the market symbol
|
|
773
768
|
*/
|
|
774
|
-
fetchBorrowRateHistories(codes?: Strings, since?: Int, limit?: Int, params?:
|
|
769
|
+
fetchBorrowRateHistories(codes?: Strings, since?: Int, limit?: Int, params?: Dict): Promise<Dict>;
|
|
775
770
|
/**
|
|
776
771
|
* @method
|
|
777
772
|
* @name okx#fetchBorrowRateHistory
|
|
@@ -783,8 +778,8 @@ export default class okx extends Exchange {
|
|
|
783
778
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
784
779
|
* @returns {object[]} an array of [borrow rate structures]{@link https://docs.ccxt.com/?id=borrow-rate-structure}
|
|
785
780
|
*/
|
|
786
|
-
fetchBorrowRateHistory(code: string, since?: Int, limit?: Int, params?:
|
|
787
|
-
modifyMarginHelper(symbol: string, amount: any, type: any, params?:
|
|
781
|
+
fetchBorrowRateHistory(code: string, since?: Int, limit?: Int, params?: Dict): Promise<Dict[]>;
|
|
782
|
+
modifyMarginHelper(symbol: string, amount: any, type: any, params?: Dict): Promise<MarginModification>;
|
|
788
783
|
parseMarginModification(data: Dict, market?: Market): MarginModification;
|
|
789
784
|
/**
|
|
790
785
|
* @method
|
|
@@ -796,7 +791,7 @@ export default class okx extends Exchange {
|
|
|
796
791
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
797
792
|
* @returns {object} a [margin structure]{@link https://docs.ccxt.com/?id=margin-structure}
|
|
798
793
|
*/
|
|
799
|
-
reduceMargin(symbol: string, amount: number, params?:
|
|
794
|
+
reduceMargin(symbol: string, amount: number, params?: Dict): Promise<MarginModification>;
|
|
800
795
|
/**
|
|
801
796
|
* @method
|
|
802
797
|
* @name okx#addMargin
|
|
@@ -807,7 +802,7 @@ export default class okx extends Exchange {
|
|
|
807
802
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
808
803
|
* @returns {object} a [margin structure]{@link https://docs.ccxt.com/?id=margin-structure}
|
|
809
804
|
*/
|
|
810
|
-
addMargin(symbol: string, amount: number, params?:
|
|
805
|
+
addMargin(symbol: string, amount: number, params?: Dict): Promise<MarginModification>;
|
|
811
806
|
/**
|
|
812
807
|
* @method
|
|
813
808
|
* @name okx#fetchMarketLeverageTiers
|
|
@@ -818,7 +813,7 @@ export default class okx extends Exchange {
|
|
|
818
813
|
* @param {string} [params.marginMode] 'cross' or 'isolated'
|
|
819
814
|
* @returns {object} a [leverage tiers structure]{@link https://docs.ccxt.com/?id=leverage-tiers-structure}
|
|
820
815
|
*/
|
|
821
|
-
fetchMarketLeverageTiers(symbol: string, params?:
|
|
816
|
+
fetchMarketLeverageTiers(symbol: string, params?: Dict): Promise<LeverageTier[]>;
|
|
822
817
|
parseMarketLeverageTiers(info: any, market?: Market): LeverageTier[];
|
|
823
818
|
/**
|
|
824
819
|
* @method
|
|
@@ -834,7 +829,7 @@ export default class okx extends Exchange {
|
|
|
834
829
|
* @param {string} [params.marginMode] 'cross' or 'isolated'
|
|
835
830
|
* @returns {object[]} An list of [borrow interest structures]{@link https://docs.ccxt.com/?id=borrow-interest-structure}
|
|
836
831
|
*/
|
|
837
|
-
fetchBorrowInterest(code?: Str, symbol?: Str, since?: Int, limit?: Int, params?:
|
|
832
|
+
fetchBorrowInterest(code?: Str, symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise<BorrowInterest[]>;
|
|
838
833
|
parseBorrowInterest(info: Dict, market?: Market): BorrowInterest;
|
|
839
834
|
/**
|
|
840
835
|
* @method
|
|
@@ -846,7 +841,7 @@ export default class okx extends Exchange {
|
|
|
846
841
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
847
842
|
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/?id=margin-loan-structure}
|
|
848
843
|
*/
|
|
849
|
-
borrowCrossMargin(code: string, amount: number, params?:
|
|
844
|
+
borrowCrossMargin(code: string, amount: number, params?: Dict): Promise<MarginLoan>;
|
|
850
845
|
/**
|
|
851
846
|
* @method
|
|
852
847
|
* @name okx#repayCrossMargin
|
|
@@ -858,8 +853,8 @@ export default class okx extends Exchange {
|
|
|
858
853
|
* @param {string} [params.id] the order ID of borrowing, it is necessary while repaying
|
|
859
854
|
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/?id=margin-loan-structure}
|
|
860
855
|
*/
|
|
861
|
-
repayCrossMargin(code: string, amount: number, params?:
|
|
862
|
-
parseMarginLoan(info:
|
|
856
|
+
repayCrossMargin(code: string, amount: number, params?: Dict): Promise<MarginLoan>;
|
|
857
|
+
parseMarginLoan(info: Dict, currency?: Currency): MarginLoan;
|
|
863
858
|
/**
|
|
864
859
|
* @method
|
|
865
860
|
* @name okx#fetchOpenInterest
|
|
@@ -869,7 +864,7 @@ export default class okx extends Exchange {
|
|
|
869
864
|
* @param {object} [params] exchange specific parameters
|
|
870
865
|
* @returns {object} an open interest structure{@link https://docs.ccxt.com/?id=open-interest-structure}
|
|
871
866
|
*/
|
|
872
|
-
fetchOpenInterest(symbol: string, params?:
|
|
867
|
+
fetchOpenInterest(symbol: string, params?: Dict): Promise<OpenInterest>;
|
|
873
868
|
/**
|
|
874
869
|
* @method
|
|
875
870
|
* @name okx#fetchOpenInterests
|
|
@@ -882,7 +877,7 @@ export default class okx extends Exchange {
|
|
|
882
877
|
* @param {string} params.instFamily Instrument family, Applicable to FUTURES/SWAP/OPTION, if instType is 'OPTION', either uly or instFamily is required
|
|
883
878
|
* @returns {object} an dictionary of [open interest structures]{@link https://docs.ccxt.com/?id=open-interest-structure}
|
|
884
879
|
*/
|
|
885
|
-
fetchOpenInterests(symbols?: Strings, params?:
|
|
880
|
+
fetchOpenInterests(symbols?: Strings, params?: Dict): Promise<OpenInterests>;
|
|
886
881
|
/**
|
|
887
882
|
* @method
|
|
888
883
|
* @name okx#fetchOpenInterestHistory
|
|
@@ -897,8 +892,8 @@ export default class okx extends Exchange {
|
|
|
897
892
|
* @param {int} [params.until] The time in ms of the latest record to retrieve as a unix timestamp
|
|
898
893
|
* @returns An array of [open interest structures]{@link https://docs.ccxt.com/?id=open-interest-structure}
|
|
899
894
|
*/
|
|
900
|
-
fetchOpenInterestHistory(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?:
|
|
901
|
-
parseOpenInterest(interest: any, market?: Market):
|
|
895
|
+
fetchOpenInterestHistory(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: Dict): Promise<OpenInterest[]>;
|
|
896
|
+
parseOpenInterest(interest: any, market?: Market): OpenInterest;
|
|
902
897
|
setSandboxMode(enable: boolean): void;
|
|
903
898
|
/**
|
|
904
899
|
* @method
|
|
@@ -909,8 +904,8 @@ export default class okx extends Exchange {
|
|
|
909
904
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
910
905
|
* @returns {object[]} a list of [fees structures]{@link https://docs.ccxt.com/?id=fee-structure}
|
|
911
906
|
*/
|
|
912
|
-
fetchDepositWithdrawFees(codes?: Strings, params?:
|
|
913
|
-
parseDepositWithdrawFees(response: any, codes?: Strings, currencyIdKey?:
|
|
907
|
+
fetchDepositWithdrawFees(codes?: Strings, params?: Dict): Promise<DepositWithdrawFees>;
|
|
908
|
+
parseDepositWithdrawFees(response: any, codes?: Strings, currencyIdKey?: Str): any;
|
|
914
909
|
/**
|
|
915
910
|
* @method
|
|
916
911
|
* @name okx#fetchSettlementHistory
|
|
@@ -922,15 +917,9 @@ export default class okx extends Exchange {
|
|
|
922
917
|
* @param {object} [params] exchange specific params
|
|
923
918
|
* @returns {object[]} a list of [settlement history objects]{@link https://docs.ccxt.com/?id=settlement-history-structure}
|
|
924
919
|
*/
|
|
925
|
-
fetchSettlementHistory(symbol?: Str, since?: Int, limit?: Int, params?:
|
|
926
|
-
parseSettlement(settlement:
|
|
927
|
-
|
|
928
|
-
symbol: string;
|
|
929
|
-
price: Num;
|
|
930
|
-
timestamp: undefined;
|
|
931
|
-
datetime: undefined;
|
|
932
|
-
};
|
|
933
|
-
parseSettlements(settlements: any, market: any): List;
|
|
920
|
+
fetchSettlementHistory(symbol?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Dict[]>;
|
|
921
|
+
parseSettlement(settlement: Dict, market: Market): Dict;
|
|
922
|
+
parseSettlements(settlements: List, market: Market): List;
|
|
934
923
|
/**
|
|
935
924
|
* @method
|
|
936
925
|
* @name okx#fetchUnderlyingAssets
|
|
@@ -940,7 +929,7 @@ export default class okx extends Exchange {
|
|
|
940
929
|
* @param {string} [params.type] the contract market type, 'option', 'swap' or 'future', the default is 'option'
|
|
941
930
|
* @returns {object[]} a list of [underlying assets]{@link https://docs.ccxt.com/?id=underlying-assets-structure}
|
|
942
931
|
*/
|
|
943
|
-
fetchUnderlyingAssets(params?:
|
|
932
|
+
fetchUnderlyingAssets(params?: Dict): Promise<string[]>;
|
|
944
933
|
/**
|
|
945
934
|
* @method
|
|
946
935
|
* @name okx#fetchGreeks
|
|
@@ -950,7 +939,7 @@ export default class okx extends Exchange {
|
|
|
950
939
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
951
940
|
* @returns {object} a [greeks structure]{@link https://docs.ccxt.com/?id=greeks-structure}
|
|
952
941
|
*/
|
|
953
|
-
fetchGreeks(symbol: string, params?:
|
|
942
|
+
fetchGreeks(symbol: string, params?: Dict): Promise<Greeks>;
|
|
954
943
|
/**
|
|
955
944
|
* @method
|
|
956
945
|
* @name okx#fetchAllGreeks
|
|
@@ -962,7 +951,7 @@ export default class okx extends Exchange {
|
|
|
962
951
|
* @param {string} params.instFamily Instrument family, either uly or instFamily is required
|
|
963
952
|
* @returns {object} a dictionary of [greeks structures]{@link https://docs.ccxt.com/?id=greeks-structure} indexed by market symbol
|
|
964
953
|
*/
|
|
965
|
-
fetchAllGreeks(symbols?: Strings, params?:
|
|
954
|
+
fetchAllGreeks(symbols?: Strings, params?: Dict): Promise<AllGreeks>;
|
|
966
955
|
parseGreeks(greeks: Dict, market?: Market): Greeks;
|
|
967
956
|
/**
|
|
968
957
|
* @method
|
|
@@ -981,7 +970,7 @@ export default class okx extends Exchange {
|
|
|
981
970
|
* @param {string} [params.tag] order tag a combination of case-sensitive alphanumerics, all numbers, or all letters of up to 16 characters
|
|
982
971
|
* @returns {object[]} [A list of position structures]{@link https://docs.ccxt.com/?id=position-structure}
|
|
983
972
|
*/
|
|
984
|
-
closePosition(symbol: string, side?: OrderSide, params?:
|
|
973
|
+
closePosition(symbol: string, side?: OrderSide, params?: Dict): Promise<Order>;
|
|
985
974
|
/**
|
|
986
975
|
* @method
|
|
987
976
|
* @name okx#fetchOption
|
|
@@ -991,7 +980,7 @@ export default class okx extends Exchange {
|
|
|
991
980
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
992
981
|
* @returns {object} an [option chain structure]{@link https://docs.ccxt.com/?id=option-chain-structure}
|
|
993
982
|
*/
|
|
994
|
-
fetchOption(symbol: string, params?:
|
|
983
|
+
fetchOption(symbol: string, params?: Dict): Promise<Option>;
|
|
995
984
|
/**
|
|
996
985
|
* @method
|
|
997
986
|
* @name okx#fetchOptionChain
|
|
@@ -1002,7 +991,7 @@ export default class okx extends Exchange {
|
|
|
1002
991
|
* @param {string} [params.uly] the underlying asset, can be obtained from fetchUnderlyingAssets ()
|
|
1003
992
|
* @returns {object} a list of [option chain structures]{@link https://docs.ccxt.com/?id=option-chain-structure}
|
|
1004
993
|
*/
|
|
1005
|
-
fetchOptionChain(code: string, params?:
|
|
994
|
+
fetchOptionChain(code: string, params?: Dict): Promise<OptionChain>;
|
|
1006
995
|
parseOption(chain: Dict, currency?: Currency, market?: Market): Option;
|
|
1007
996
|
/**
|
|
1008
997
|
* @method
|
|
@@ -1015,7 +1004,7 @@ export default class okx extends Exchange {
|
|
|
1015
1004
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1016
1005
|
* @returns {object} a [conversion structure]{@link https://docs.ccxt.com/?id=conversion-structure}
|
|
1017
1006
|
*/
|
|
1018
|
-
fetchConvertQuote(fromCode: string, toCode: string, amount?: Num, params?:
|
|
1007
|
+
fetchConvertQuote(fromCode: string, toCode: string, amount?: Num, params?: Dict): Promise<Conversion>;
|
|
1019
1008
|
/**
|
|
1020
1009
|
* @method
|
|
1021
1010
|
* @name okx#createConvertTrade
|
|
@@ -1028,7 +1017,7 @@ export default class okx extends Exchange {
|
|
|
1028
1017
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1029
1018
|
* @returns {object} a [conversion structure]{@link https://docs.ccxt.com/?id=conversion-structure}
|
|
1030
1019
|
*/
|
|
1031
|
-
createConvertTrade(id: string, fromCode: string, toCode: string, amount?: Num, params?:
|
|
1020
|
+
createConvertTrade(id: string, fromCode: string, toCode: string, amount?: Num, params?: Dict): Promise<Conversion>;
|
|
1032
1021
|
/**
|
|
1033
1022
|
* @method
|
|
1034
1023
|
* @name okx#fetchConvertTrade
|
|
@@ -1039,7 +1028,7 @@ export default class okx extends Exchange {
|
|
|
1039
1028
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1040
1029
|
* @returns {object} a [conversion structure]{@link https://docs.ccxt.com/?id=conversion-structure}
|
|
1041
1030
|
*/
|
|
1042
|
-
fetchConvertTrade(id: string, code?: Str, params?:
|
|
1031
|
+
fetchConvertTrade(id: string, code?: Str, params?: Dict): Promise<Conversion>;
|
|
1043
1032
|
/**
|
|
1044
1033
|
* @method
|
|
1045
1034
|
* @name okx#fetchConvertTradeHistory
|
|
@@ -1052,7 +1041,7 @@ export default class okx extends Exchange {
|
|
|
1052
1041
|
* @param {int} [params.until] timestamp in ms of the latest conversion to fetch
|
|
1053
1042
|
* @returns {object[]} a list of [conversion structures]{@link https://docs.ccxt.com/?id=conversion-structure}
|
|
1054
1043
|
*/
|
|
1055
|
-
fetchConvertTradeHistory(code?: Str, since?: Int, limit?: Int, params?:
|
|
1044
|
+
fetchConvertTradeHistory(code?: Str, since?: Int, limit?: Int, params?: Dict): Promise<Conversion[]>;
|
|
1056
1045
|
parseConversion(conversion: Dict, fromCurrency?: Currency, toCurrency?: Currency): Conversion;
|
|
1057
1046
|
/**
|
|
1058
1047
|
* @method
|
|
@@ -1062,7 +1051,7 @@ export default class okx extends Exchange {
|
|
|
1062
1051
|
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1063
1052
|
* @returns {object} an associative dictionary of currencies
|
|
1064
1053
|
*/
|
|
1065
|
-
fetchConvertCurrencies(params?:
|
|
1054
|
+
fetchConvertCurrencies(params?: Dict): Promise<Currencies>;
|
|
1066
1055
|
handleErrors(httpCode: int, reason: string, url: string, method: string, headers: Dict, body: string, response: any, requestHeaders: any, requestBody: any): undefined;
|
|
1067
1056
|
/**
|
|
1068
1057
|
* @method
|
|
@@ -1078,7 +1067,7 @@ export default class okx extends Exchange {
|
|
|
1078
1067
|
* @param {boolean} [params.auto] true if fetching auto margin increases
|
|
1079
1068
|
* @returns {object[]} a list of [margin structures]{@link https://docs.ccxt.com/?id=margin-loan-structure}
|
|
1080
1069
|
*/
|
|
1081
|
-
fetchMarginAdjustmentHistory(symbol?: Str, type?: Str, since?: Num, limit?: Num, params?:
|
|
1070
|
+
fetchMarginAdjustmentHistory(symbol?: Str, type?: Str, since?: Num, limit?: Num, params?: Dict): Promise<MarginModification[]>;
|
|
1082
1071
|
/**
|
|
1083
1072
|
* @method
|
|
1084
1073
|
* @name okx#fetchPositionsHistory
|
|
@@ -1098,7 +1087,7 @@ export default class okx extends Exchange {
|
|
|
1098
1087
|
* @param {string} [params.after] timestamp in ms of the latest position to fetch based on the last update time of the position
|
|
1099
1088
|
* @returns {object[]} a list of [position structures]{@link https://docs.ccxt.com/?id=position-structure}
|
|
1100
1089
|
*/
|
|
1101
|
-
fetchPositionsHistory(symbols?: Strings, since?: Int, limit?: Int, params?:
|
|
1090
|
+
fetchPositionsHistory(symbols?: Strings, since?: Int, limit?: Int, params?: Dict): Promise<Position[]>;
|
|
1102
1091
|
/**
|
|
1103
1092
|
* @method
|
|
1104
1093
|
* @name okx#fetchLongShortRatioHistory
|
|
@@ -1112,6 +1101,6 @@ export default class okx extends Exchange {
|
|
|
1112
1101
|
* @param {int} [params.until] timestamp in ms of the latest ratio to fetch
|
|
1113
1102
|
* @returns {object[]} an array of [long short ratio structures]{@link https://docs.ccxt.com/?id=long-short-ratio-structure}
|
|
1114
1103
|
*/
|
|
1115
|
-
fetchLongShortRatioHistory(symbol?: Str, timeframe?: Str, since?: Int, limit?: Int, params?:
|
|
1104
|
+
fetchLongShortRatioHistory(symbol?: Str, timeframe?: Str, since?: Int, limit?: Int, params?: Dict): Promise<LongShortRatio[]>;
|
|
1116
1105
|
parseLongShortRatio(info: Dict, market?: Market): LongShortRatio;
|
|
1117
1106
|
}
|