ccxt 4.4.30 → 4.4.32
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 +9 -3
- package/dist/ccxt.browser.min.js +3 -3
- package/dist/cjs/ccxt.js +1 -1
- package/dist/cjs/src/ace.js +123 -123
- package/dist/cjs/src/alpaca.js +237 -237
- package/dist/cjs/src/ascendex.js +342 -341
- package/dist/cjs/src/bigone.js +242 -242
- package/dist/cjs/src/binance.js +1339 -1291
- package/dist/cjs/src/bingx.js +639 -639
- package/dist/cjs/src/bit2c.js +111 -111
- package/dist/cjs/src/bitbank.js +142 -142
- package/dist/cjs/src/bitbns.js +140 -140
- package/dist/cjs/src/bitfinex.js +231 -231
- package/dist/cjs/src/bitfinex2.js +403 -403
- package/dist/cjs/src/bitflyer.js +184 -184
- package/dist/cjs/src/bitget.js +848 -846
- package/dist/cjs/src/bithumb.js +125 -124
- package/dist/cjs/src/bitmart.js +525 -525
- package/dist/cjs/src/bitmex.js +317 -317
- package/dist/cjs/src/bitopro.js +221 -221
- package/dist/cjs/src/bitrue.js +315 -315
- package/dist/cjs/src/bitso.js +220 -220
- package/dist/cjs/src/bitstamp.js +251 -251
- package/dist/cjs/src/bitteam.js +183 -183
- package/dist/cjs/src/bitvavo.js +247 -251
- package/dist/cjs/src/bl3p.js +82 -82
- package/dist/cjs/src/blockchaincom.js +211 -211
- package/dist/cjs/src/blofin.js +332 -331
- package/dist/cjs/src/btcalpha.js +166 -166
- package/dist/cjs/src/btcbox.js +108 -108
- package/dist/cjs/src/btcmarkets.js +198 -198
- package/dist/cjs/src/btcturk.js +124 -124
- package/dist/cjs/src/bybit.js +906 -900
- package/dist/cjs/src/cex.js +227 -226
- package/dist/cjs/src/coinbase.js +481 -481
- package/dist/cjs/src/coinbaseexchange.js +274 -274
- package/dist/cjs/src/coinbaseinternational.js +304 -304
- package/dist/cjs/src/coincatch.js +650 -650
- package/dist/cjs/src/coincheck.js +113 -113
- package/dist/cjs/src/coinex.js +611 -601
- package/dist/cjs/src/coinlist.js +304 -303
- package/dist/cjs/src/coinmate.js +162 -161
- package/dist/cjs/src/coinmetro.js +187 -187
- package/dist/cjs/src/coinone.js +124 -123
- package/dist/cjs/src/coinsph.js +237 -237
- package/dist/cjs/src/coinspot.js +82 -82
- package/dist/cjs/src/cryptocom.js +342 -341
- package/dist/cjs/src/currencycom.js +225 -224
- package/dist/cjs/src/delta.js +320 -320
- package/dist/cjs/src/deribit.js +411 -408
- package/dist/cjs/src/digifinex.js +432 -431
- package/dist/cjs/src/exmo.js +328 -327
- package/dist/cjs/src/gate.js +830 -791
- package/dist/cjs/src/gemini.js +199 -198
- package/dist/cjs/src/hashkey.js +520 -517
- package/dist/cjs/src/hitbtc.js +465 -462
- package/dist/cjs/src/hollaex.js +253 -252
- package/dist/cjs/src/htx.js +791 -848
- package/dist/cjs/src/huobijp.js +219 -218
- package/dist/cjs/src/hyperliquid.js +421 -417
- package/dist/cjs/src/idex.js +238 -237
- package/dist/cjs/src/independentreserve.js +133 -132
- package/dist/cjs/src/indodax.js +177 -171
- package/dist/cjs/src/kraken.js +381 -377
- package/dist/cjs/src/krakenfutures.js +285 -279
- package/dist/cjs/src/kucoin.js +632 -622
- package/dist/cjs/src/kucoinfutures.js +533 -457
- package/dist/cjs/src/kuna.js +283 -282
- package/dist/cjs/src/latoken.js +211 -210
- package/dist/cjs/src/lbank.js +268 -267
- package/dist/cjs/src/luno.js +174 -173
- package/dist/cjs/src/lykke.js +172 -171
- package/dist/cjs/src/mercado.js +123 -122
- package/dist/cjs/src/mexc.js +650 -646
- package/dist/cjs/src/ndax.js +229 -228
- package/dist/cjs/src/novadax.js +230 -229
- package/dist/cjs/src/oceanex.js +187 -186
- package/dist/cjs/src/okcoin.js +286 -285
- package/dist/cjs/src/okx.js +909 -904
- package/dist/cjs/src/onetrading.js +218 -218
- package/dist/cjs/src/oxfun.js +335 -334
- package/dist/cjs/src/p2b.js +154 -154
- package/dist/cjs/src/paradex.js +249 -244
- package/dist/cjs/src/paymium.js +101 -101
- package/dist/cjs/src/phemex.js +388 -390
- package/dist/cjs/src/poloniex.js +270 -270
- package/dist/cjs/src/poloniexfutures.js +250 -250
- package/dist/cjs/src/pro/alpaca.js +64 -64
- package/dist/cjs/src/pro/ascendex.js +64 -64
- package/dist/cjs/src/pro/binance.js +546 -543
- package/dist/cjs/src/pro/bingx.js +116 -116
- package/dist/cjs/src/pro/bitfinex.js +42 -42
- package/dist/cjs/src/pro/bitfinex2.js +66 -66
- package/dist/cjs/src/pro/bitget.js +188 -181
- package/dist/cjs/src/pro/bithumb.js +40 -40
- package/dist/cjs/src/pro/bitmart.js +121 -119
- package/dist/cjs/src/pro/bitmex.js +135 -133
- package/dist/cjs/src/pro/bitopro.js +49 -49
- package/dist/cjs/src/pro/bitrue.js +19 -19
- package/dist/cjs/src/pro/bitstamp.js +29 -29
- package/dist/cjs/src/pro/bitvavo.js +299 -301
- package/dist/cjs/src/pro/blockchaincom.js +62 -62
- package/dist/cjs/src/pro/blofin.js +132 -130
- package/dist/cjs/src/pro/bybit.js +317 -313
- package/dist/cjs/src/pro/cex.js +168 -168
- package/dist/cjs/src/pro/coinbase.js +93 -91
- package/dist/cjs/src/pro/coinbaseexchange.js +95 -95
- package/dist/cjs/src/pro/coinbaseinternational.js +111 -111
- package/dist/cjs/src/pro/coincatch.js +150 -143
- package/dist/cjs/src/pro/coincheck.js +21 -21
- package/dist/cjs/src/pro/coinex.js +110 -110
- package/dist/cjs/src/pro/coinone.js +30 -30
- package/dist/cjs/src/pro/cryptocom.js +227 -227
- package/dist/cjs/src/pro/currencycom.js +45 -45
- package/dist/cjs/src/pro/deribit.js +127 -127
- package/dist/cjs/src/pro/exmo.js +66 -66
- package/dist/cjs/src/pro/gate.js +287 -283
- package/dist/cjs/src/pro/gemini.js +74 -74
- package/dist/cjs/src/pro/hashkey.js +87 -85
- package/dist/cjs/src/pro/hitbtc.js +190 -190
- package/dist/cjs/src/pro/hollaex.js +51 -51
- package/dist/cjs/src/pro/htx.js +96 -94
- package/dist/cjs/src/pro/huobijp.js +38 -38
- package/dist/cjs/src/pro/hyperliquid.js +151 -150
- package/dist/cjs/src/pro/idex.js +48 -48
- package/dist/cjs/src/pro/independentreserve.js +19 -19
- package/dist/cjs/src/pro/kraken.js +167 -167
- package/dist/cjs/src/pro/krakenfutures.js +137 -138
- package/dist/cjs/src/pro/kucoin.js +167 -168
- package/dist/cjs/src/pro/kucoinfutures.js +147 -147
- package/dist/cjs/src/pro/lbank.js +95 -95
- package/dist/cjs/src/pro/luno.js +21 -21
- package/dist/cjs/src/pro/mexc.js +102 -103
- package/dist/cjs/src/pro/ndax.js +42 -42
- package/dist/cjs/src/pro/okcoin.js +61 -61
- package/dist/cjs/src/pro/okx.js +332 -330
- package/dist/cjs/src/pro/onetrading.js +71 -71
- package/dist/cjs/src/pro/oxfun.js +193 -191
- package/dist/cjs/src/pro/p2b.js +77 -77
- package/dist/cjs/src/pro/paradex.js +39 -39
- package/dist/cjs/src/pro/phemex.js +94 -94
- package/dist/cjs/src/pro/poloniex.js +171 -171
- package/dist/cjs/src/pro/poloniexfutures.js +62 -62
- package/dist/cjs/src/pro/probit.js +63 -63
- package/dist/cjs/src/pro/upbit.js +80 -80
- package/dist/cjs/src/pro/vertex.js +65 -63
- package/dist/cjs/src/pro/wazirx.js +70 -70
- package/dist/cjs/src/pro/whitebit.js +83 -83
- package/dist/cjs/src/pro/woo.js +106 -104
- package/dist/cjs/src/pro/woofipro.js +105 -103
- package/dist/cjs/src/pro/xt.js +119 -119
- package/dist/cjs/src/probit.js +229 -229
- package/dist/cjs/src/timex.js +198 -197
- package/dist/cjs/src/tokocrypto.js +214 -213
- package/dist/cjs/src/tradeogre.js +92 -91
- package/dist/cjs/src/upbit.js +243 -242
- package/dist/cjs/src/vertex.js +258 -258
- package/dist/cjs/src/wavesexchange.js +176 -172
- package/dist/cjs/src/wazirx.js +168 -168
- package/dist/cjs/src/whitebit.js +361 -361
- package/dist/cjs/src/woo.js +571 -572
- package/dist/cjs/src/woofipro.js +392 -391
- package/dist/cjs/src/xt.js +436 -435
- package/dist/cjs/src/yobit.js +159 -158
- package/dist/cjs/src/zaif.js +103 -103
- package/dist/cjs/src/zonda.js +168 -168
- package/js/ccxt.d.ts +1 -1
- package/js/ccxt.js +1 -1
- package/js/src/ace.d.ts +123 -0
- package/js/src/ace.js +123 -123
- package/js/src/alpaca.d.ts +237 -0
- package/js/src/alpaca.js +237 -237
- package/js/src/ascendex.d.ts +339 -0
- package/js/src/ascendex.js +342 -341
- package/js/src/base/types.d.ts +1 -0
- package/js/src/bigone.d.ts +242 -0
- package/js/src/bigone.js +242 -242
- package/js/src/binance.d.ts +1306 -0
- package/js/src/binance.js +1339 -1291
- package/js/src/bingx.d.ts +639 -0
- package/js/src/bingx.js +639 -639
- package/js/src/bit2c.d.ts +111 -0
- package/js/src/bit2c.js +111 -111
- package/js/src/bitbank.d.ts +142 -0
- package/js/src/bitbank.js +142 -142
- package/js/src/bitbns.d.ts +140 -0
- package/js/src/bitbns.js +140 -140
- package/js/src/bitfinex.d.ts +231 -0
- package/js/src/bitfinex.js +231 -231
- package/js/src/bitfinex2.d.ts +403 -0
- package/js/src/bitfinex2.js +403 -403
- package/js/src/bitflyer.d.ts +184 -0
- package/js/src/bitflyer.js +184 -184
- package/js/src/bitget.d.ts +846 -0
- package/js/src/bitget.js +848 -846
- package/js/src/bithumb.d.ts +125 -0
- package/js/src/bithumb.js +125 -124
- package/js/src/bitmart.d.ts +525 -0
- package/js/src/bitmart.js +525 -525
- package/js/src/bitmex.d.ts +317 -0
- package/js/src/bitmex.js +317 -317
- package/js/src/bitopro.d.ts +221 -0
- package/js/src/bitopro.js +221 -221
- package/js/src/bitrue.d.ts +315 -0
- package/js/src/bitrue.js +315 -315
- package/js/src/bitso.d.ts +220 -0
- package/js/src/bitso.js +220 -220
- package/js/src/bitstamp.d.ts +251 -0
- package/js/src/bitstamp.js +251 -251
- package/js/src/bitteam.d.ts +183 -0
- package/js/src/bitteam.js +183 -183
- package/js/src/bitvavo.d.ts +247 -0
- package/js/src/bitvavo.js +247 -251
- package/js/src/bl3p.d.ts +82 -0
- package/js/src/bl3p.js +82 -82
- package/js/src/blockchaincom.d.ts +211 -0
- package/js/src/blockchaincom.js +211 -211
- package/js/src/blofin.d.ts +332 -0
- package/js/src/blofin.js +332 -331
- package/js/src/btcalpha.d.ts +166 -0
- package/js/src/btcalpha.js +166 -166
- package/js/src/btcbox.d.ts +108 -0
- package/js/src/btcbox.js +108 -108
- package/js/src/btcmarkets.d.ts +198 -0
- package/js/src/btcmarkets.js +198 -198
- package/js/src/btcturk.d.ts +124 -0
- package/js/src/btcturk.js +124 -124
- package/js/src/bybit.d.ts +906 -1
- package/js/src/bybit.js +906 -900
- package/js/src/cex.d.ts +227 -0
- package/js/src/cex.js +227 -226
- package/js/src/coinbase.d.ts +481 -0
- package/js/src/coinbase.js +481 -481
- package/js/src/coinbaseexchange.d.ts +274 -0
- package/js/src/coinbaseexchange.js +274 -274
- package/js/src/coinbaseinternational.d.ts +304 -0
- package/js/src/coinbaseinternational.js +304 -304
- package/js/src/coincatch.d.ts +646 -0
- package/js/src/coincatch.js +650 -650
- package/js/src/coincheck.d.ts +113 -0
- package/js/src/coincheck.js +113 -113
- package/js/src/coinex.d.ts +603 -0
- package/js/src/coinex.js +611 -601
- package/js/src/coinlist.d.ts +304 -0
- package/js/src/coinlist.js +304 -303
- package/js/src/coinmate.d.ts +162 -0
- package/js/src/coinmate.js +162 -161
- package/js/src/coinmetro.d.ts +187 -0
- package/js/src/coinmetro.js +187 -187
- package/js/src/coinone.d.ts +124 -0
- package/js/src/coinone.js +124 -123
- package/js/src/coinsph.d.ts +237 -0
- package/js/src/coinsph.js +237 -237
- package/js/src/coinspot.d.ts +82 -0
- package/js/src/coinspot.js +82 -82
- package/js/src/cryptocom.d.ts +342 -0
- package/js/src/cryptocom.js +342 -341
- package/js/src/currencycom.d.ts +225 -0
- package/js/src/currencycom.js +225 -224
- package/js/src/delta.d.ts +320 -0
- package/js/src/delta.js +320 -320
- package/js/src/deribit.d.ts +411 -0
- package/js/src/deribit.js +411 -408
- package/js/src/digifinex.d.ts +430 -0
- package/js/src/digifinex.js +432 -431
- package/js/src/exmo.d.ts +328 -0
- package/js/src/exmo.js +328 -327
- package/js/src/gate.d.ts +803 -1
- package/js/src/gate.js +830 -791
- package/js/src/gemini.d.ts +199 -0
- package/js/src/gemini.js +199 -198
- package/js/src/hashkey.d.ts +516 -0
- package/js/src/hashkey.js +520 -517
- package/js/src/hitbtc.d.ts +465 -0
- package/js/src/hitbtc.js +465 -462
- package/js/src/hollaex.d.ts +253 -0
- package/js/src/hollaex.js +253 -252
- package/js/src/htx.d.ts +765 -2
- package/js/src/htx.js +791 -848
- package/js/src/huobijp.d.ts +219 -0
- package/js/src/huobijp.js +219 -218
- package/js/src/hyperliquid.d.ts +419 -0
- package/js/src/hyperliquid.js +421 -417
- package/js/src/idex.d.ts +238 -0
- package/js/src/idex.js +238 -237
- package/js/src/independentreserve.d.ts +133 -0
- package/js/src/independentreserve.js +133 -132
- package/js/src/indodax.d.ts +171 -0
- package/js/src/indodax.js +177 -171
- package/js/src/kraken.d.ts +381 -0
- package/js/src/kraken.js +381 -377
- package/js/src/krakenfutures.d.ts +282 -0
- package/js/src/krakenfutures.js +285 -279
- package/js/src/kucoin.d.ts +613 -0
- package/js/src/kucoin.js +632 -622
- package/js/src/kucoinfutures.d.ts +441 -0
- package/js/src/kucoinfutures.js +533 -457
- package/js/src/kuna.d.ts +283 -0
- package/js/src/kuna.js +283 -282
- package/js/src/latoken.d.ts +211 -0
- package/js/src/latoken.js +211 -210
- package/js/src/lbank.d.ts +268 -0
- package/js/src/lbank.js +268 -267
- package/js/src/luno.d.ts +174 -0
- package/js/src/luno.js +174 -173
- package/js/src/lykke.d.ts +172 -0
- package/js/src/lykke.js +172 -171
- package/js/src/mercado.d.ts +123 -0
- package/js/src/mercado.js +123 -122
- package/js/src/mexc.d.ts +647 -0
- package/js/src/mexc.js +650 -646
- package/js/src/ndax.d.ts +229 -0
- package/js/src/ndax.js +229 -228
- package/js/src/novadax.d.ts +230 -0
- package/js/src/novadax.js +230 -229
- package/js/src/oceanex.d.ts +187 -0
- package/js/src/oceanex.js +187 -186
- package/js/src/okcoin.d.ts +286 -0
- package/js/src/okcoin.js +286 -285
- package/js/src/okx.d.ts +907 -0
- package/js/src/okx.js +909 -904
- package/js/src/onetrading.d.ts +218 -0
- package/js/src/onetrading.js +218 -218
- package/js/src/oxfun.d.ts +336 -3
- package/js/src/oxfun.js +335 -334
- package/js/src/p2b.d.ts +154 -0
- package/js/src/p2b.js +154 -154
- package/js/src/paradex.d.ts +241 -0
- package/js/src/paradex.js +249 -244
- package/js/src/paymium.d.ts +101 -0
- package/js/src/paymium.js +101 -101
- package/js/src/phemex.d.ts +366 -0
- package/js/src/phemex.js +388 -390
- package/js/src/poloniex.d.ts +270 -0
- package/js/src/poloniex.js +270 -270
- package/js/src/poloniexfutures.d.ts +250 -0
- package/js/src/poloniexfutures.js +250 -250
- package/js/src/pro/alpaca.d.ts +64 -0
- package/js/src/pro/alpaca.js +64 -64
- package/js/src/pro/ascendex.d.ts +64 -0
- package/js/src/pro/ascendex.js +64 -64
- package/js/src/pro/binance.d.ts +546 -0
- package/js/src/pro/binance.js +546 -543
- package/js/src/pro/bingx.d.ts +116 -0
- package/js/src/pro/bingx.js +116 -116
- package/js/src/pro/bitfinex.d.ts +42 -0
- package/js/src/pro/bitfinex.js +42 -42
- package/js/src/pro/bitfinex2.d.ts +66 -0
- package/js/src/pro/bitfinex2.js +66 -66
- package/js/src/pro/bitget.d.ts +187 -0
- package/js/src/pro/bitget.js +188 -181
- package/js/src/pro/bithumb.d.ts +40 -0
- package/js/src/pro/bithumb.js +40 -40
- package/js/src/pro/bitmart.d.ts +121 -0
- package/js/src/pro/bitmart.js +121 -119
- package/js/src/pro/bitmex.d.ts +135 -0
- package/js/src/pro/bitmex.js +135 -133
- package/js/src/pro/bitopro.d.ts +49 -0
- package/js/src/pro/bitopro.js +49 -49
- package/js/src/pro/bitrue.d.ts +19 -0
- package/js/src/pro/bitrue.js +19 -19
- package/js/src/pro/bitstamp.d.ts +29 -0
- package/js/src/pro/bitstamp.js +29 -29
- package/js/src/pro/bitvavo.d.ts +254 -1
- package/js/src/pro/bitvavo.js +299 -301
- package/js/src/pro/blockchaincom.d.ts +62 -0
- package/js/src/pro/blockchaincom.js +62 -62
- package/js/src/pro/blofin.d.ts +132 -0
- package/js/src/pro/blofin.js +132 -130
- package/js/src/pro/bybit.d.ts +317 -0
- package/js/src/pro/bybit.js +317 -313
- package/js/src/pro/cex.d.ts +168 -0
- package/js/src/pro/cex.js +168 -168
- package/js/src/pro/coinbase.d.ts +93 -0
- package/js/src/pro/coinbase.js +93 -91
- package/js/src/pro/coinbaseexchange.d.ts +95 -0
- package/js/src/pro/coinbaseexchange.js +95 -95
- package/js/src/pro/coinbaseinternational.d.ts +111 -0
- package/js/src/pro/coinbaseinternational.js +111 -111
- package/js/src/pro/coincatch.d.ts +150 -0
- package/js/src/pro/coincatch.js +150 -143
- package/js/src/pro/coincheck.d.ts +21 -0
- package/js/src/pro/coincheck.js +21 -21
- package/js/src/pro/coinex.d.ts +110 -0
- package/js/src/pro/coinex.js +110 -110
- package/js/src/pro/coinone.d.ts +30 -0
- package/js/src/pro/coinone.js +30 -30
- package/js/src/pro/cryptocom.d.ts +227 -0
- package/js/src/pro/cryptocom.js +227 -227
- package/js/src/pro/currencycom.d.ts +45 -0
- package/js/src/pro/currencycom.js +45 -45
- package/js/src/pro/deribit.d.ts +127 -0
- package/js/src/pro/deribit.js +127 -127
- package/js/src/pro/exmo.d.ts +66 -0
- package/js/src/pro/exmo.js +66 -66
- package/js/src/pro/gate.d.ts +287 -0
- package/js/src/pro/gate.js +287 -283
- package/js/src/pro/gemini.d.ts +74 -0
- package/js/src/pro/gemini.js +74 -74
- package/js/src/pro/hashkey.d.ts +87 -0
- package/js/src/pro/hashkey.js +87 -85
- package/js/src/pro/hitbtc.d.ts +190 -0
- package/js/src/pro/hitbtc.js +190 -190
- package/js/src/pro/hollaex.d.ts +51 -0
- package/js/src/pro/hollaex.js +51 -51
- package/js/src/pro/htx.d.ts +96 -0
- package/js/src/pro/htx.js +96 -94
- package/js/src/pro/huobijp.d.ts +38 -0
- package/js/src/pro/huobijp.js +38 -38
- package/js/src/pro/hyperliquid.d.ts +151 -0
- package/js/src/pro/hyperliquid.js +151 -150
- package/js/src/pro/idex.d.ts +48 -0
- package/js/src/pro/idex.js +48 -48
- package/js/src/pro/independentreserve.d.ts +19 -0
- package/js/src/pro/independentreserve.js +19 -19
- package/js/src/pro/kraken.d.ts +167 -0
- package/js/src/pro/kraken.js +167 -167
- package/js/src/pro/krakenfutures.d.ts +137 -0
- package/js/src/pro/krakenfutures.js +137 -138
- package/js/src/pro/kucoin.d.ts +167 -0
- package/js/src/pro/kucoin.js +167 -168
- package/js/src/pro/kucoinfutures.d.ts +147 -0
- package/js/src/pro/kucoinfutures.js +147 -147
- package/js/src/pro/lbank.d.ts +95 -0
- package/js/src/pro/lbank.js +95 -95
- package/js/src/pro/luno.d.ts +21 -0
- package/js/src/pro/luno.js +21 -21
- package/js/src/pro/mexc.d.ts +101 -0
- package/js/src/pro/mexc.js +102 -103
- package/js/src/pro/ndax.d.ts +42 -0
- package/js/src/pro/ndax.js +42 -42
- package/js/src/pro/okcoin.d.ts +61 -0
- package/js/src/pro/okcoin.js +61 -61
- package/js/src/pro/okx.d.ts +332 -0
- package/js/src/pro/okx.js +332 -330
- package/js/src/pro/onetrading.d.ts +71 -0
- package/js/src/pro/onetrading.js +71 -71
- package/js/src/pro/oxfun.d.ts +193 -0
- package/js/src/pro/oxfun.js +193 -191
- package/js/src/pro/p2b.d.ts +77 -0
- package/js/src/pro/p2b.js +77 -77
- package/js/src/pro/paradex.d.ts +39 -0
- package/js/src/pro/paradex.js +39 -39
- package/js/src/pro/phemex.d.ts +94 -0
- package/js/src/pro/phemex.js +94 -94
- package/js/src/pro/poloniex.d.ts +171 -0
- package/js/src/pro/poloniex.js +171 -171
- package/js/src/pro/poloniexfutures.d.ts +62 -0
- package/js/src/pro/poloniexfutures.js +62 -62
- package/js/src/pro/probit.d.ts +63 -0
- package/js/src/pro/probit.js +63 -63
- package/js/src/pro/upbit.d.ts +80 -0
- package/js/src/pro/upbit.js +80 -80
- package/js/src/pro/vertex.d.ts +65 -0
- package/js/src/pro/vertex.js +65 -63
- package/js/src/pro/wazirx.d.ts +70 -0
- package/js/src/pro/wazirx.js +70 -70
- package/js/src/pro/whitebit.d.ts +83 -0
- package/js/src/pro/whitebit.js +83 -83
- package/js/src/pro/woo.d.ts +106 -0
- package/js/src/pro/woo.js +106 -104
- package/js/src/pro/woofipro.d.ts +105 -0
- package/js/src/pro/woofipro.js +105 -103
- package/js/src/pro/xt.d.ts +119 -0
- package/js/src/pro/xt.js +119 -119
- package/js/src/probit.d.ts +229 -0
- package/js/src/probit.js +229 -229
- package/js/src/timex.d.ts +198 -0
- package/js/src/timex.js +198 -197
- package/js/src/tokocrypto.d.ts +214 -0
- package/js/src/tokocrypto.js +214 -213
- package/js/src/tradeogre.d.ts +92 -0
- package/js/src/tradeogre.js +92 -91
- package/js/src/upbit.d.ts +243 -0
- package/js/src/upbit.js +243 -242
- package/js/src/vertex.d.ts +258 -0
- package/js/src/vertex.js +258 -258
- package/js/src/wavesexchange.d.ts +176 -0
- package/js/src/wavesexchange.js +176 -172
- package/js/src/wazirx.d.ts +168 -0
- package/js/src/wazirx.js +168 -168
- package/js/src/whitebit.d.ts +361 -0
- package/js/src/whitebit.js +361 -361
- package/js/src/woo.d.ts +571 -0
- package/js/src/woo.js +571 -572
- package/js/src/woofipro.d.ts +392 -0
- package/js/src/woofipro.js +392 -391
- package/js/src/xt.d.ts +439 -4
- package/js/src/xt.js +436 -435
- package/js/src/yobit.d.ts +159 -0
- package/js/src/yobit.js +159 -158
- package/js/src/zaif.d.ts +103 -0
- package/js/src/zaif.js +103 -103
- package/js/src/zonda.d.ts +168 -0
- package/js/src/zonda.js +168 -168
- package/package.json +1 -1
package/js/src/bybit.d.ts
CHANGED
|
@@ -9,7 +9,24 @@ export default class bybit extends Exchange {
|
|
|
9
9
|
enableDemoTrading(enable: boolean): void;
|
|
10
10
|
nonce(): number;
|
|
11
11
|
addPaginationCursorToResult(response: any): any;
|
|
12
|
+
/**
|
|
13
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
14
|
+
* @method
|
|
15
|
+
* @name bybit#isUnifiedEnabled
|
|
16
|
+
* @see https://bybit-exchange.github.io/docs/v5/user/apikey-info#http-request
|
|
17
|
+
* @see https://bybit-exchange.github.io/docs/v5/account/account-info
|
|
18
|
+
* @description returns [enableUnifiedMargin, enableUnifiedAccount] so the user can check if unified account is enabled
|
|
19
|
+
* @returns {any} [enableUnifiedMargin, enableUnifiedAccount]
|
|
20
|
+
*/
|
|
12
21
|
isUnifiedEnabled(params?: {}): Promise<any[]>;
|
|
22
|
+
/**
|
|
23
|
+
* @method
|
|
24
|
+
* @name bybit#upgradeUnifiedTradeAccount
|
|
25
|
+
* @description upgrades the account to unified trade account *warning* this is irreversible
|
|
26
|
+
* @see https://bybit-exchange.github.io/docs/v5/account/upgrade-unified-account
|
|
27
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
28
|
+
* @returns {any} nothing
|
|
29
|
+
*/
|
|
13
30
|
upgradeUnifiedTradeAccount(params?: {}): Promise<any>;
|
|
14
31
|
createExpiredOptionMarket(symbol: string): MarketInterface;
|
|
15
32
|
safeMarket(marketId?: Str, market?: Market, delimiter?: Str, marketType?: Str): MarketInterface;
|
|
@@ -17,76 +34,677 @@ export default class bybit extends Exchange {
|
|
|
17
34
|
getAmount(symbol: string, amount: number): string;
|
|
18
35
|
getPrice(symbol: string, price: string): string;
|
|
19
36
|
getCost(symbol: string, cost: string): string;
|
|
37
|
+
/**
|
|
38
|
+
* @method
|
|
39
|
+
* @name bybit#fetchTime
|
|
40
|
+
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
41
|
+
* @see https://bybit-exchange.github.io/docs/v5/market/time
|
|
42
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
43
|
+
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
44
|
+
*/
|
|
20
45
|
fetchTime(params?: {}): Promise<number>;
|
|
46
|
+
/**
|
|
47
|
+
* @method
|
|
48
|
+
* @name bybit#fetchCurrencies
|
|
49
|
+
* @description fetches all available currencies on an exchange
|
|
50
|
+
* @see https://bybit-exchange.github.io/docs/v5/asset/coin-info
|
|
51
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
52
|
+
* @returns {object} an associative dictionary of currencies
|
|
53
|
+
*/
|
|
21
54
|
fetchCurrencies(params?: {}): Promise<Currencies>;
|
|
55
|
+
/**
|
|
56
|
+
* @method
|
|
57
|
+
* @name bybit#fetchMarkets
|
|
58
|
+
* @description retrieves data on all markets for bybit
|
|
59
|
+
* @see https://bybit-exchange.github.io/docs/v5/market/instrument
|
|
60
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
61
|
+
* @returns {object[]} an array of objects representing market data
|
|
62
|
+
*/
|
|
22
63
|
fetchMarkets(params?: {}): Promise<Market[]>;
|
|
23
64
|
fetchSpotMarkets(params: any): Promise<any[]>;
|
|
24
65
|
fetchFutureMarkets(params: any): Promise<any[]>;
|
|
25
66
|
fetchOptionMarkets(params: any): Promise<any[]>;
|
|
26
67
|
parseTicker(ticker: Dict, market?: Market): Ticker;
|
|
68
|
+
/**
|
|
69
|
+
* @method
|
|
70
|
+
* @name bybit#fetchTicker
|
|
71
|
+
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
72
|
+
* @see https://bybit-exchange.github.io/docs/v5/market/tickers
|
|
73
|
+
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
74
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
75
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
76
|
+
*/
|
|
27
77
|
fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
|
78
|
+
/**
|
|
79
|
+
* @method
|
|
80
|
+
* @name bybit#fetchTickers
|
|
81
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
82
|
+
* @see https://bybit-exchange.github.io/docs/v5/market/tickers
|
|
83
|
+
* @param {string[]} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
84
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
85
|
+
* @param {string} [params.subType] *contract only* 'linear', 'inverse'
|
|
86
|
+
* @returns {object} an array of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
87
|
+
*/
|
|
28
88
|
fetchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
|
|
29
89
|
parseOHLCV(ohlcv: any, market?: Market): OHLCV;
|
|
90
|
+
/**
|
|
91
|
+
* @method
|
|
92
|
+
* @name bybit#fetchOHLCV
|
|
93
|
+
* @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
94
|
+
* @see https://bybit-exchange.github.io/docs/v5/market/kline
|
|
95
|
+
* @see https://bybit-exchange.github.io/docs/v5/market/mark-kline
|
|
96
|
+
* @see https://bybit-exchange.github.io/docs/v5/market/index-kline
|
|
97
|
+
* @see https://bybit-exchange.github.io/docs/v5/market/preimum-index-kline
|
|
98
|
+
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
99
|
+
* @param {string} timeframe the length of time each candle represents
|
|
100
|
+
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
101
|
+
* @param {int} [limit] the maximum amount of candles to fetch
|
|
102
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
103
|
+
* @param {int} [params.until] the latest time in ms to fetch orders for
|
|
104
|
+
* @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)
|
|
105
|
+
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
106
|
+
*/
|
|
30
107
|
fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
|
|
31
108
|
parseFundingRate(ticker: any, market?: Market): FundingRate;
|
|
109
|
+
/**
|
|
110
|
+
* @method
|
|
111
|
+
* @name bybit#fetchFundingRates
|
|
112
|
+
* @description fetches funding rates for multiple markets
|
|
113
|
+
* @see https://bybit-exchange.github.io/docs/v5/market/tickers
|
|
114
|
+
* @param {string[]} symbols unified symbols of the markets to fetch the funding rates for, all market funding rates are returned if not assigned
|
|
115
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
116
|
+
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
|
|
117
|
+
*/
|
|
32
118
|
fetchFundingRates(symbols?: Strings, params?: {}): Promise<FundingRates>;
|
|
119
|
+
/**
|
|
120
|
+
* @method
|
|
121
|
+
* @name bybit#fetchFundingRateHistory
|
|
122
|
+
* @description fetches historical funding rate prices
|
|
123
|
+
* @see https://bybit-exchange.github.io/docs/v5/market/history-fund-rate
|
|
124
|
+
* @param {string} symbol unified symbol of the market to fetch the funding rate history for
|
|
125
|
+
* @param {int} [since] timestamp in ms of the earliest funding rate to fetch
|
|
126
|
+
* @param {int} [limit] the maximum amount of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-history-structure} to fetch
|
|
127
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
128
|
+
* @param {int} [params.until] timestamp in ms of the latest funding rate
|
|
129
|
+
* @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)
|
|
130
|
+
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-history-structure}
|
|
131
|
+
*/
|
|
33
132
|
fetchFundingRateHistory(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<FundingRateHistory[]>;
|
|
34
133
|
parseTrade(trade: Dict, market?: Market): Trade;
|
|
134
|
+
/**
|
|
135
|
+
* @method
|
|
136
|
+
* @name bybit#fetchTrades
|
|
137
|
+
* @description get the list of most recent trades for a particular symbol
|
|
138
|
+
* @see https://bybit-exchange.github.io/docs/v5/market/recent-trade
|
|
139
|
+
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
140
|
+
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
141
|
+
* @param {int} [limit] the maximum amount of trades to fetch
|
|
142
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
143
|
+
* @param {string} [params.type] market type, ['swap', 'option', 'spot']
|
|
144
|
+
* @param {string} [params.subType] market subType, ['linear', 'inverse']
|
|
145
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
146
|
+
*/
|
|
35
147
|
fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
148
|
+
/**
|
|
149
|
+
* @method
|
|
150
|
+
* @name bybit#fetchOrderBook
|
|
151
|
+
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
152
|
+
* @see https://bybit-exchange.github.io/docs/v5/market/orderbook
|
|
153
|
+
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
154
|
+
* @param {int} [limit] the maximum amount of order book entries to return
|
|
155
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
156
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
157
|
+
*/
|
|
36
158
|
fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
37
159
|
parseBalance(response: any): Balances;
|
|
160
|
+
/**
|
|
161
|
+
* @method
|
|
162
|
+
* @name bybit#fetchBalance
|
|
163
|
+
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
164
|
+
* @see https://bybit-exchange.github.io/docs/v5/spot-margin-normal/account-info
|
|
165
|
+
* @see https://bybit-exchange.github.io/docs/v5/asset/all-balance
|
|
166
|
+
* @see https://bybit-exchange.github.io/docs/v5/account/wallet-balance
|
|
167
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
168
|
+
* @param {string} [params.type] wallet type, ['spot', 'swap', 'funding']
|
|
169
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
170
|
+
*/
|
|
38
171
|
fetchBalance(params?: {}): Promise<Balances>;
|
|
39
172
|
parseOrderStatus(status: Str): string;
|
|
40
173
|
parseTimeInForce(timeInForce: Str): string;
|
|
41
174
|
parseOrder(order: Dict, market?: Market): Order;
|
|
175
|
+
/**
|
|
176
|
+
* @method
|
|
177
|
+
* @name bybit#createMarketBuyOrderWithCost
|
|
178
|
+
* @description create a market buy order by providing the symbol and cost
|
|
179
|
+
* @see https://bybit-exchange.github.io/docs/v5/order/create-order
|
|
180
|
+
* @param {string} symbol unified symbol of the market to create an order in
|
|
181
|
+
* @param {float} cost how much you want to trade in units of the quote currency
|
|
182
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
183
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
184
|
+
*/
|
|
42
185
|
createMarketBuyOrderWithCost(symbol: string, cost: number, params?: {}): Promise<Order>;
|
|
186
|
+
/**
|
|
187
|
+
* @method
|
|
188
|
+
* @name bybit#createMarkeSellOrderWithCost
|
|
189
|
+
* @description create a market sell order by providing the symbol and cost
|
|
190
|
+
* @see https://bybit-exchange.github.io/docs/v5/order/create-order
|
|
191
|
+
* @param {string} symbol unified symbol of the market to create an order in
|
|
192
|
+
* @param {float} cost how much you want to trade in units of the quote currency
|
|
193
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
194
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
195
|
+
*/
|
|
43
196
|
createMarketSellOrderWithCost(symbol: string, cost: number, params?: {}): Promise<Order>;
|
|
197
|
+
/**
|
|
198
|
+
* @method
|
|
199
|
+
* @name bybit#createOrder
|
|
200
|
+
* @description create a trade order
|
|
201
|
+
* @see https://bybit-exchange.github.io/docs/v5/order/create-order
|
|
202
|
+
* @see https://bybit-exchange.github.io/docs/v5/position/trading-stop
|
|
203
|
+
* @param {string} symbol unified symbol of the market to create an order in
|
|
204
|
+
* @param {string} type 'market' or 'limit'
|
|
205
|
+
* @param {string} side 'buy' or 'sell'
|
|
206
|
+
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
207
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
208
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
209
|
+
* @param {string} [params.timeInForce] "GTC", "IOC", "FOK"
|
|
210
|
+
* @param {bool} [params.postOnly] true or false whether the order is post-only
|
|
211
|
+
* @param {bool} [params.reduceOnly] true or false whether the order is reduce-only
|
|
212
|
+
* @param {string} [params.positionIdx] *contracts only* 0 for one-way mode, 1 buy side of hedged mode, 2 sell side of hedged mode
|
|
213
|
+
* @param {bool} [params.hedged] *contracts only* true for hedged mode, false for one way mode, default is false
|
|
214
|
+
* @param {boolean} [params.isLeverage] *unified spot only* false then spot trading true then margin trading
|
|
215
|
+
* @param {string} [params.tpslMode] *contract only* 'full' or 'partial'
|
|
216
|
+
* @param {string} [params.mmp] *option only* market maker protection
|
|
217
|
+
* @param {string} [params.triggerDirection] *contract only* the direction for trigger orders, 'above' or 'below'
|
|
218
|
+
* @param {float} [params.triggerPrice] The price at which a trigger order is triggered at
|
|
219
|
+
* @param {float} [params.stopLossPrice] The price at which a stop loss order is triggered at
|
|
220
|
+
* @param {float} [params.takeProfitPrice] The price at which a take profit order is triggered at
|
|
221
|
+
* @param {object} [params.takeProfit] *takeProfit object in params* containing the triggerPrice at which the attached take profit order will be triggered
|
|
222
|
+
* @param {float} [params.takeProfit.triggerPrice] take profit trigger price
|
|
223
|
+
* @param {object} [params.stopLoss] *stopLoss object in params* containing the triggerPrice at which the attached stop loss order will be triggered
|
|
224
|
+
* @param {float} [params.stopLoss.triggerPrice] stop loss trigger price
|
|
225
|
+
* @param {string} [params.trailingAmount] the quote amount to trail away from the current market price
|
|
226
|
+
* @param {string} [params.trailingTriggerPrice] the price to trigger a trailing order, default uses the price argument
|
|
227
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
228
|
+
*/
|
|
44
229
|
createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): Promise<Order>;
|
|
45
230
|
createOrderRequest(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}, isUTA?: boolean): any;
|
|
231
|
+
/**
|
|
232
|
+
* @method
|
|
233
|
+
* @name bybit#createOrders
|
|
234
|
+
* @description create a list of trade orders
|
|
235
|
+
* @see https://bybit-exchange.github.io/docs/v5/order/batch-place
|
|
236
|
+
* @param {Array} orders list of orders to create, each object should contain the parameters required by createOrder, namely symbol, type, side, amount, price and params
|
|
237
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
238
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
239
|
+
*/
|
|
46
240
|
createOrders(orders: OrderRequest[], params?: {}): Promise<Order[]>;
|
|
47
241
|
editOrderRequest(id: string, symbol: string, type: OrderType, side: OrderSide, amount?: Num, price?: Num, params?: {}): Dict;
|
|
242
|
+
/**
|
|
243
|
+
* @method
|
|
244
|
+
* @name bybit#editOrder
|
|
245
|
+
* @description edit a trade order
|
|
246
|
+
* @see https://bybit-exchange.github.io/docs/v5/order/amend-order
|
|
247
|
+
* @see https://bybit-exchange.github.io/docs/derivatives/unified/replace-order
|
|
248
|
+
* @see https://bybit-exchange.github.io/docs/api-explorer/derivatives/trade/contract/replace-order
|
|
249
|
+
* @param {string} id cancel order id
|
|
250
|
+
* @param {string} symbol unified symbol of the market to create an order in
|
|
251
|
+
* @param {string} type 'market' or 'limit'
|
|
252
|
+
* @param {string} side 'buy' or 'sell'
|
|
253
|
+
* @param {float} amount how much of currency you want to trade in units of base currency
|
|
254
|
+
* @param {float} price the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
255
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
256
|
+
* @param {float} [params.triggerPrice] The price that a trigger order is triggered at
|
|
257
|
+
* @param {float} [params.stopLossPrice] The price that a stop loss order is triggered at
|
|
258
|
+
* @param {float} [params.takeProfitPrice] The price that a take profit order is triggered at
|
|
259
|
+
* @param {object} [params.takeProfit] *takeProfit object in params* containing the triggerPrice that the attached take profit order will be triggered
|
|
260
|
+
* @param {float} [params.takeProfit.triggerPrice] take profit trigger price
|
|
261
|
+
* @param {object} [params.stopLoss] *stopLoss object in params* containing the triggerPrice that the attached stop loss order will be triggered
|
|
262
|
+
* @param {float} [params.stopLoss.triggerPrice] stop loss trigger price
|
|
263
|
+
* @param {string} [params.triggerBy] 'IndexPrice', 'MarkPrice' or 'LastPrice', default is 'LastPrice', required if no initial value for triggerPrice
|
|
264
|
+
* @param {string} [params.slTriggerBy] 'IndexPrice', 'MarkPrice' or 'LastPrice', default is 'LastPrice', required if no initial value for stopLoss
|
|
265
|
+
* @param {string} [params.tpTriggerby] 'IndexPrice', 'MarkPrice' or 'LastPrice', default is 'LastPrice', required if no initial value for takeProfit
|
|
266
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
267
|
+
*/
|
|
48
268
|
editOrder(id: string, symbol: string, type: OrderType, side: OrderSide, amount?: Num, price?: Num, params?: {}): Promise<Order>;
|
|
49
269
|
cancelOrderRequest(id: string, symbol?: Str, params?: {}): any;
|
|
270
|
+
/**
|
|
271
|
+
* @method
|
|
272
|
+
* @name bybit#cancelOrder
|
|
273
|
+
* @description cancels an open order
|
|
274
|
+
* @see https://bybit-exchange.github.io/docs/v5/order/cancel-order
|
|
275
|
+
* @param {string} id order id
|
|
276
|
+
* @param {string} symbol unified symbol of the market the order was made in
|
|
277
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
278
|
+
* @param {boolean} [params.trigger] *spot only* whether the order is a trigger order
|
|
279
|
+
* @param {boolean} [params.stop] alias for trigger
|
|
280
|
+
* @param {string} [params.orderFilter] *spot only* 'Order' or 'StopOrder' or 'tpslOrder'
|
|
281
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
282
|
+
*/
|
|
50
283
|
cancelOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
|
|
284
|
+
/**
|
|
285
|
+
* @method
|
|
286
|
+
* @name bybit#cancelOrders
|
|
287
|
+
* @description cancel multiple orders
|
|
288
|
+
* @see https://bybit-exchange.github.io/docs/v5/order/batch-cancel
|
|
289
|
+
* @param {string[]} ids order ids
|
|
290
|
+
* @param {string} symbol unified symbol of the market the order was made in
|
|
291
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
292
|
+
* @param {string[]} [params.clientOrderIds] client order ids
|
|
293
|
+
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
294
|
+
*/
|
|
51
295
|
cancelOrders(ids: any, symbol?: Str, params?: {}): Promise<Order[]>;
|
|
296
|
+
/**
|
|
297
|
+
* @method
|
|
298
|
+
* @name bybit#cancelAllOrdersAfter
|
|
299
|
+
* @description dead man's switch, cancel all orders after the given timeout
|
|
300
|
+
* @see https://bybit-exchange.github.io/docs/v5/order/dcp
|
|
301
|
+
* @param {number} timeout time in milliseconds
|
|
302
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
303
|
+
* @param {string} [params.product] OPTIONS, DERIVATIVES, SPOT, default is 'DERIVATIVES'
|
|
304
|
+
* @returns {object} the api result
|
|
305
|
+
*/
|
|
52
306
|
cancelAllOrdersAfter(timeout: Int, params?: {}): Promise<any>;
|
|
307
|
+
/**
|
|
308
|
+
* @method
|
|
309
|
+
* @name bybit#cancelOrdersForSymbols
|
|
310
|
+
* @description cancel multiple orders for multiple symbols
|
|
311
|
+
* @see https://bybit-exchange.github.io/docs/v5/order/batch-cancel
|
|
312
|
+
* @param {CancellationRequest[]} orders list of order ids with symbol, example [{"id": "a", "symbol": "BTC/USDT"}, {"id": "b", "symbol": "ETH/USDT"}]
|
|
313
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
314
|
+
* @returns {object} an list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
315
|
+
*/
|
|
53
316
|
cancelOrdersForSymbols(orders: CancellationRequest[], params?: {}): Promise<Order[]>;
|
|
317
|
+
/**
|
|
318
|
+
* @method
|
|
319
|
+
* @name bybit#cancelAllOrders
|
|
320
|
+
* @description cancel all open orders
|
|
321
|
+
* @see https://bybit-exchange.github.io/docs/v5/order/cancel-all
|
|
322
|
+
* @param {string} symbol unified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
|
|
323
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
324
|
+
* @param {boolean} [params.trigger] true if trigger order
|
|
325
|
+
* @param {boolean} [params.stop] alias for trigger
|
|
326
|
+
* @param {string} [params.type] market type, ['swap', 'option', 'spot']
|
|
327
|
+
* @param {string} [params.subType] market subType, ['linear', 'inverse']
|
|
328
|
+
* @param {string} [params.baseCoin] Base coin. Supports linear, inverse & option
|
|
329
|
+
* @param {string} [params.settleCoin] Settle coin. Supports linear, inverse & option
|
|
330
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
331
|
+
*/
|
|
54
332
|
cancelAllOrders(symbol?: Str, params?: {}): Promise<any>;
|
|
333
|
+
/**
|
|
334
|
+
* @method
|
|
335
|
+
* @name bybit#fetchOrderClassic
|
|
336
|
+
* @description fetches information on an order made by the user *classic accounts only*
|
|
337
|
+
* @see https://bybit-exchange.github.io/docs/v5/order/order-list
|
|
338
|
+
* @param {string} id the order id
|
|
339
|
+
* @param {string} symbol unified symbol of the market the order was made in
|
|
340
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
341
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
342
|
+
*/
|
|
55
343
|
fetchOrderClassic(id: string, symbol?: Str, params?: {}): Promise<Order>;
|
|
344
|
+
/**
|
|
345
|
+
* @method
|
|
346
|
+
* @name bybit#fetchOrderClassic
|
|
347
|
+
* @description *classic accounts only/ spot not supported* fetches information on an order made by the user *classic accounts only*
|
|
348
|
+
* @see https://bybit-exchange.github.io/docs/v5/order/order-list
|
|
349
|
+
* @param {string} id the order id
|
|
350
|
+
* @param {string} symbol unified symbol of the market the order was made in
|
|
351
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
352
|
+
* @param {object} [params.acknowledged] to suppress the warning, set to true
|
|
353
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
354
|
+
*/
|
|
56
355
|
fetchOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
|
|
57
356
|
fetchOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
357
|
+
/**
|
|
358
|
+
* @method
|
|
359
|
+
* @name bybit#fetchOrders
|
|
360
|
+
* @description fetches information on multiple orders made by the user *classic accounts only*
|
|
361
|
+
* @see https://bybit-exchange.github.io/docs/v5/order/order-list
|
|
362
|
+
* @param {string} symbol unified market symbol of the market orders were made in
|
|
363
|
+
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
364
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
365
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
366
|
+
* @param {boolean} [params.trigger] true if trigger order
|
|
367
|
+
* @param {boolean} [params.stop] alias for trigger
|
|
368
|
+
* @param {string} [params.type] market type, ['swap', 'option', 'spot']
|
|
369
|
+
* @param {string} [params.subType] market subType, ['linear', 'inverse']
|
|
370
|
+
* @param {string} [params.orderFilter] 'Order' or 'StopOrder' or 'tpslOrder'
|
|
371
|
+
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
372
|
+
* @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)
|
|
373
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
374
|
+
*/
|
|
58
375
|
fetchOrdersClassic(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
376
|
+
/**
|
|
377
|
+
* @method
|
|
378
|
+
* @name bybit#fetchClosedOrder
|
|
379
|
+
* @description fetches information on a closed order made by the user
|
|
380
|
+
* @see https://bybit-exchange.github.io/docs/v5/order/order-list
|
|
381
|
+
* @param {string} id order id
|
|
382
|
+
* @param {string} [symbol] unified symbol of the market the order was made in
|
|
383
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
384
|
+
* @param {boolean} [params.trigger] set to true for fetching a closed trigger order
|
|
385
|
+
* @param {boolean} [params.stop] alias for trigger
|
|
386
|
+
* @param {string} [params.type] market type, ['swap', 'option', 'spot']
|
|
387
|
+
* @param {string} [params.subType] market subType, ['linear', 'inverse']
|
|
388
|
+
* @param {string} [params.orderFilter] 'Order' or 'StopOrder' or 'tpslOrder'
|
|
389
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
390
|
+
*/
|
|
59
391
|
fetchClosedOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
|
|
392
|
+
/**
|
|
393
|
+
* @method
|
|
394
|
+
* @name bybit#fetchOpenOrder
|
|
395
|
+
* @description fetches information on an open order made by the user
|
|
396
|
+
* @see https://bybit-exchange.github.io/docs/v5/order/open-order
|
|
397
|
+
* @param {string} id order id
|
|
398
|
+
* @param {string} [symbol] unified symbol of the market the order was made in
|
|
399
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
400
|
+
* @param {boolean} [params.trigger] set to true for fetching an open trigger order
|
|
401
|
+
* @param {boolean} [params.stop] alias for trigger
|
|
402
|
+
* @param {string} [params.type] market type, ['swap', 'option', 'spot']
|
|
403
|
+
* @param {string} [params.subType] market subType, ['linear', 'inverse']
|
|
404
|
+
* @param {string} [params.baseCoin] Base coin. Supports linear, inverse & option
|
|
405
|
+
* @param {string} [params.settleCoin] Settle coin. Supports linear, inverse & option
|
|
406
|
+
* @param {string} [params.orderFilter] 'Order' or 'StopOrder' or 'tpslOrder'
|
|
407
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
408
|
+
*/
|
|
60
409
|
fetchOpenOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
|
|
410
|
+
/**
|
|
411
|
+
* @method
|
|
412
|
+
* @name bybit#fetchCanceledAndClosedOrders
|
|
413
|
+
* @description fetches information on multiple canceled and closed orders made by the user
|
|
414
|
+
* @see https://bybit-exchange.github.io/docs/v5/order/order-list
|
|
415
|
+
* @param {string} [symbol] unified market symbol of the market orders were made in
|
|
416
|
+
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
417
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
418
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
419
|
+
* @param {boolean} [params.trigger] set to true for fetching trigger orders
|
|
420
|
+
* @param {boolean} [params.stop] alias for trigger
|
|
421
|
+
* @param {string} [params.type] market type, ['swap', 'option', 'spot']
|
|
422
|
+
* @param {string} [params.subType] market subType, ['linear', 'inverse']
|
|
423
|
+
* @param {string} [params.orderFilter] 'Order' or 'StopOrder' or 'tpslOrder'
|
|
424
|
+
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
425
|
+
* @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)
|
|
426
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
427
|
+
*/
|
|
61
428
|
fetchCanceledAndClosedOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
429
|
+
/**
|
|
430
|
+
* @method
|
|
431
|
+
* @name bybit#fetchClosedOrders
|
|
432
|
+
* @description fetches information on multiple closed orders made by the user
|
|
433
|
+
* @see https://bybit-exchange.github.io/docs/v5/order/order-list
|
|
434
|
+
* @param {string} [symbol] unified market symbol of the market orders were made in
|
|
435
|
+
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
436
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
437
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
438
|
+
* @param {boolean} [params.trigger] set to true for fetching closed trigger orders
|
|
439
|
+
* @param {boolean} [params.stop] alias for trigger
|
|
440
|
+
* @param {string} [params.type] market type, ['swap', 'option', 'spot']
|
|
441
|
+
* @param {string} [params.subType] market subType, ['linear', 'inverse']
|
|
442
|
+
* @param {string} [params.orderFilter] 'Order' or 'StopOrder' or 'tpslOrder'
|
|
443
|
+
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
444
|
+
* @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)
|
|
445
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
446
|
+
*/
|
|
62
447
|
fetchClosedOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
448
|
+
/**
|
|
449
|
+
* @method
|
|
450
|
+
* @name bybit#fetchCanceledOrders
|
|
451
|
+
* @description fetches information on multiple canceled orders made by the user
|
|
452
|
+
* @see https://bybit-exchange.github.io/docs/v5/order/order-list
|
|
453
|
+
* @param {string} [symbol] unified market symbol of the market orders were made in
|
|
454
|
+
* @param {int} [since] timestamp in ms of the earliest order, default is undefined
|
|
455
|
+
* @param {int} [limit] max number of orders to return, default is undefined
|
|
456
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
457
|
+
* @param {boolean} [params.trigger] true if trigger order
|
|
458
|
+
* @param {boolean} [params.stop] alias for trigger
|
|
459
|
+
* @param {string} [params.type] market type, ['swap', 'option', 'spot']
|
|
460
|
+
* @param {string} [params.subType] market subType, ['linear', 'inverse']
|
|
461
|
+
* @param {string} [params.orderFilter] 'Order' or 'StopOrder' or 'tpslOrder'
|
|
462
|
+
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
463
|
+
* @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)
|
|
464
|
+
* @returns {object} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
465
|
+
*/
|
|
63
466
|
fetchCanceledOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
467
|
+
/**
|
|
468
|
+
* @method
|
|
469
|
+
* @name bybit#fetchOpenOrders
|
|
470
|
+
* @description fetch all unfilled currently open orders
|
|
471
|
+
* @see https://bybit-exchange.github.io/docs/v5/order/open-order
|
|
472
|
+
* @param {string} symbol unified market symbol
|
|
473
|
+
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
474
|
+
* @param {int} [limit] the maximum number of open orders structures to retrieve
|
|
475
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
476
|
+
* @param {boolean} [params.trigger] set to true for fetching open trigger orders
|
|
477
|
+
* @param {boolean} [params.stop] alias for trigger
|
|
478
|
+
* @param {string} [params.type] market type, ['swap', 'option', 'spot']
|
|
479
|
+
* @param {string} [params.subType] market subType, ['linear', 'inverse']
|
|
480
|
+
* @param {string} [params.baseCoin] Base coin. Supports linear, inverse & option
|
|
481
|
+
* @param {string} [params.settleCoin] Settle coin. Supports linear, inverse & option
|
|
482
|
+
* @param {string} [params.orderFilter] 'Order' or 'StopOrder' or 'tpslOrder'
|
|
483
|
+
* @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)
|
|
484
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
485
|
+
*/
|
|
64
486
|
fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
487
|
+
/**
|
|
488
|
+
* @method
|
|
489
|
+
* @name bybit#fetchOrderTrades
|
|
490
|
+
* @description fetch all the trades made from a single order
|
|
491
|
+
* @see https://bybit-exchange.github.io/docs/v5/position/execution
|
|
492
|
+
* @param {string} id order id
|
|
493
|
+
* @param {string} symbol unified market symbol
|
|
494
|
+
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
495
|
+
* @param {int} [limit] the maximum number of trades to retrieve
|
|
496
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
497
|
+
* @returns {object[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
498
|
+
*/
|
|
65
499
|
fetchOrderTrades(id: string, symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
500
|
+
/**
|
|
501
|
+
* @method
|
|
502
|
+
* @name bybit#fetchMyTrades
|
|
503
|
+
* @description fetch all trades made by the user
|
|
504
|
+
* @see https://bybit-exchange.github.io/docs/api-explorer/v5/position/execution
|
|
505
|
+
* @param {string} symbol unified market symbol
|
|
506
|
+
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
507
|
+
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
508
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
509
|
+
* @param {string} [params.type] market type, ['swap', 'option', 'spot']
|
|
510
|
+
* @param {string} [params.subType] market subType, ['linear', 'inverse']
|
|
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
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
513
|
+
*/
|
|
66
514
|
fetchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
67
515
|
parseDepositAddress(depositAddress: any, currency?: Currency): DepositAddress;
|
|
516
|
+
/**
|
|
517
|
+
* @method
|
|
518
|
+
* @name bybit#fetchDepositAddressesByNetwork
|
|
519
|
+
* @description fetch a dictionary of addresses for a currency, indexed by network
|
|
520
|
+
* @see https://bybit-exchange.github.io/docs/v5/asset/master-deposit-addr
|
|
521
|
+
* @param {string} code unified currency code of the currency for the deposit address
|
|
522
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
523
|
+
* @returns {object} a dictionary of [address structures]{@link https://docs.ccxt.com/#/?id=address-structure} indexed by the network
|
|
524
|
+
*/
|
|
68
525
|
fetchDepositAddressesByNetwork(code: string, params?: {}): Promise<DepositAddress[]>;
|
|
526
|
+
/**
|
|
527
|
+
* @method
|
|
528
|
+
* @name bybit#fetchDepositAddress
|
|
529
|
+
* @description fetch the deposit address for a currency associated with this account
|
|
530
|
+
* @see https://bybit-exchange.github.io/docs/v5/asset/master-deposit-addr
|
|
531
|
+
* @param {string} code unified currency code
|
|
532
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
533
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
534
|
+
*/
|
|
69
535
|
fetchDepositAddress(code: string, params?: {}): Promise<DepositAddress>;
|
|
536
|
+
/**
|
|
537
|
+
* @method
|
|
538
|
+
* @name bybit#fetchDeposits
|
|
539
|
+
* @description fetch all deposits made to an account
|
|
540
|
+
* @see https://bybit-exchange.github.io/docs/v5/asset/deposit-record
|
|
541
|
+
* @param {string} code unified currency code
|
|
542
|
+
* @param {int} [since] the earliest time in ms to fetch deposits for, default = 30 days before the current time
|
|
543
|
+
* @param {int} [limit] the maximum number of deposits structures to retrieve, default = 50, max = 50
|
|
544
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
545
|
+
* @param {int} [params.until] the latest time in ms to fetch deposits for, default = 30 days after since
|
|
546
|
+
* EXCHANGE SPECIFIC PARAMETERS
|
|
547
|
+
* @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)
|
|
548
|
+
* @param {string} [params.cursor] used for pagination
|
|
549
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
550
|
+
*/
|
|
70
551
|
fetchDeposits(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
552
|
+
/**
|
|
553
|
+
* @method
|
|
554
|
+
* @name bybit#fetchWithdrawals
|
|
555
|
+
* @description fetch all withdrawals made from an account
|
|
556
|
+
* @see https://bybit-exchange.github.io/docs/v5/asset/withdraw-record
|
|
557
|
+
* @param {string} code unified currency code
|
|
558
|
+
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
559
|
+
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
560
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
561
|
+
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
562
|
+
* @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)
|
|
563
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
564
|
+
*/
|
|
71
565
|
fetchWithdrawals(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
72
566
|
parseTransactionStatus(status: Str): string;
|
|
73
567
|
parseTransaction(transaction: Dict, currency?: Currency): Transaction;
|
|
568
|
+
/**
|
|
569
|
+
* @method
|
|
570
|
+
* @name bybit#fetchLedger
|
|
571
|
+
* @description fetch the history of changes, actions done by the user or operations that altered the balance of the user
|
|
572
|
+
* @see https://bybit-exchange.github.io/docs/v5/account/transaction-log
|
|
573
|
+
* @see https://bybit-exchange.github.io/docs/v5/account/contract-transaction-log
|
|
574
|
+
* @param {string} [code] unified currency code, default is undefined
|
|
575
|
+
* @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
|
|
576
|
+
* @param {int} [limit] max number of ledger entries to return, default is undefined
|
|
577
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
578
|
+
* @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)
|
|
579
|
+
* @param {string} [params.subType] if inverse will use v5/account/contract-transaction-log
|
|
580
|
+
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com/#/?id=ledger-structure}
|
|
581
|
+
*/
|
|
74
582
|
fetchLedger(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<LedgerEntry[]>;
|
|
75
583
|
parseLedgerEntry(item: Dict, currency?: Currency): LedgerEntry;
|
|
76
584
|
parseLedgerEntryType(type: any): string;
|
|
585
|
+
/**
|
|
586
|
+
* @method
|
|
587
|
+
* @name bybit#withdraw
|
|
588
|
+
* @description make a withdrawal
|
|
589
|
+
* @see https://bybit-exchange.github.io/docs/v5/asset/withdraw
|
|
590
|
+
* @param {string} code unified currency code
|
|
591
|
+
* @param {float} amount the amount to withdraw
|
|
592
|
+
* @param {string} address the address to withdraw to
|
|
593
|
+
* @param {string} tag
|
|
594
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
595
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
596
|
+
*/
|
|
77
597
|
withdraw(code: string, amount: number, address: string, tag?: any, params?: {}): Promise<Transaction>;
|
|
598
|
+
/**
|
|
599
|
+
* @method
|
|
600
|
+
* @name bybit#fetchPosition
|
|
601
|
+
* @description fetch data on a single open contract trade position
|
|
602
|
+
* @see https://bybit-exchange.github.io/docs/v5/position
|
|
603
|
+
* @param {string} symbol unified market symbol of the market the position is held in, default is undefined
|
|
604
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
605
|
+
* @returns {object} a [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
|
|
606
|
+
*/
|
|
78
607
|
fetchPosition(symbol: string, params?: {}): Promise<Position>;
|
|
608
|
+
/**
|
|
609
|
+
* @method
|
|
610
|
+
* @name bybit#fetchPositions
|
|
611
|
+
* @description fetch all open positions
|
|
612
|
+
* @see https://bybit-exchange.github.io/docs/v5/position
|
|
613
|
+
* @param {string[]} symbols list of unified market symbols
|
|
614
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
615
|
+
* @param {string} [params.type] market type, ['swap', 'option', 'spot']
|
|
616
|
+
* @param {string} [params.subType] market subType, ['linear', 'inverse']
|
|
617
|
+
* @param {string} [params.baseCoin] Base coin. Supports linear, inverse & option
|
|
618
|
+
* @param {string} [params.settleCoin] Settle coin. Supports linear, inverse & option
|
|
619
|
+
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
|
|
620
|
+
*/
|
|
79
621
|
fetchPositions(symbols?: Strings, params?: {}): Promise<Position[]>;
|
|
80
622
|
parsePosition(position: Dict, market?: Market): Position;
|
|
623
|
+
/**
|
|
624
|
+
* @method
|
|
625
|
+
* @name bybit#fetchLeverage
|
|
626
|
+
* @description fetch the set leverage for a market
|
|
627
|
+
* @see https://bybit-exchange.github.io/docs/v5/position
|
|
628
|
+
* @param {string} symbol unified market symbol
|
|
629
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
630
|
+
* @returns {object} a [leverage structure]{@link https://docs.ccxt.com/#/?id=leverage-structure}
|
|
631
|
+
*/
|
|
81
632
|
fetchLeverage(symbol: string, params?: {}): Promise<Leverage>;
|
|
82
633
|
parseLeverage(leverage: Dict, market?: Market): Leverage;
|
|
634
|
+
/**
|
|
635
|
+
* @method
|
|
636
|
+
* @name bybit#setMarginMode
|
|
637
|
+
* @description set margin mode (account) or trade mode (symbol)
|
|
638
|
+
* @see https://bybit-exchange.github.io/docs/v5/account/set-margin-mode
|
|
639
|
+
* @see https://bybit-exchange.github.io/docs/v5/position/cross-isolate
|
|
640
|
+
* @param {string} marginMode account mode must be either [isolated, cross, portfolio], trade mode must be either [isolated, cross]
|
|
641
|
+
* @param {string} symbol unified market symbol of the market the position is held in, default is undefined
|
|
642
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
643
|
+
* @param {string} [params.leverage] the rate of leverage, is required if setting trade mode (symbol)
|
|
644
|
+
* @returns {object} response from the exchange
|
|
645
|
+
*/
|
|
83
646
|
setMarginMode(marginMode: string, symbol?: Str, params?: {}): Promise<any>;
|
|
647
|
+
/**
|
|
648
|
+
* @method
|
|
649
|
+
* @name bybit#setLeverage
|
|
650
|
+
* @description set the level of leverage for a market
|
|
651
|
+
* @see https://bybit-exchange.github.io/docs/v5/position/leverage
|
|
652
|
+
* @param {float} leverage the rate of leverage
|
|
653
|
+
* @param {string} symbol unified market symbol
|
|
654
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
655
|
+
* @param {string} [params.buyLeverage] leverage for buy side
|
|
656
|
+
* @param {string} [params.sellLeverage] leverage for sell side
|
|
657
|
+
* @returns {object} response from the exchange
|
|
658
|
+
*/
|
|
84
659
|
setLeverage(leverage: Int, symbol?: Str, params?: {}): Promise<any>;
|
|
660
|
+
/**
|
|
661
|
+
* @method
|
|
662
|
+
* @name bybit#setPositionMode
|
|
663
|
+
* @description set hedged to true or false for a market
|
|
664
|
+
* @see https://bybit-exchange.github.io/docs/v5/position/position-mode
|
|
665
|
+
* @param {bool} hedged
|
|
666
|
+
* @param {string} symbol used for unified account with inverse market
|
|
667
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
668
|
+
* @returns {object} response from the exchange
|
|
669
|
+
*/
|
|
85
670
|
setPositionMode(hedged: boolean, symbol?: Str, params?: {}): Promise<any>;
|
|
86
671
|
fetchDerivativesOpenInterestHistory(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OpenInterest[]>;
|
|
672
|
+
/**
|
|
673
|
+
* @method
|
|
674
|
+
* @name bybit#fetchOpenInterest
|
|
675
|
+
* @description Retrieves the open interest of a derivative trading pair
|
|
676
|
+
* @see https://bybit-exchange.github.io/docs/v5/market/open-interest
|
|
677
|
+
* @param {string} symbol Unified CCXT market symbol
|
|
678
|
+
* @param {object} [params] exchange specific parameters
|
|
679
|
+
* @param {string} [params.interval] 5m, 15m, 30m, 1h, 4h, 1d
|
|
680
|
+
* @param {string} [params.category] "linear" or "inverse"
|
|
681
|
+
* @returns {object} an open interest structure{@link https://docs.ccxt.com/#/?id=open-interest-structure}
|
|
682
|
+
*/
|
|
87
683
|
fetchOpenInterest(symbol: string, params?: {}): Promise<OpenInterest>;
|
|
684
|
+
/**
|
|
685
|
+
* @method
|
|
686
|
+
* @name bybit#fetchOpenInterestHistory
|
|
687
|
+
* @description Gets the total amount of unsettled contracts. In other words, the total number of contracts held in open positions
|
|
688
|
+
* @see https://bybit-exchange.github.io/docs/v5/market/open-interest
|
|
689
|
+
* @param {string} symbol Unified market symbol
|
|
690
|
+
* @param {string} timeframe "5m", 15m, 30m, 1h, 4h, 1d
|
|
691
|
+
* @param {int} [since] Not used by Bybit
|
|
692
|
+
* @param {int} [limit] The number of open interest structures to return. Max 200, default 50
|
|
693
|
+
* @param {object} [params] Exchange specific parameters
|
|
694
|
+
* @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)
|
|
695
|
+
* @returns An array of open interest structures
|
|
696
|
+
*/
|
|
88
697
|
fetchOpenInterestHistory(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OpenInterest[]>;
|
|
89
698
|
parseOpenInterest(interest: any, market?: Market): OpenInterest;
|
|
699
|
+
/**
|
|
700
|
+
* @method
|
|
701
|
+
* @name bybit#fetchCrossBorrowRate
|
|
702
|
+
* @description fetch the rate of interest to borrow a currency for margin trading
|
|
703
|
+
* @see https://bybit-exchange.github.io/docs/zh-TW/v5/spot-margin-normal/interest-quota
|
|
704
|
+
* @param {string} code unified currency code
|
|
705
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
706
|
+
* @returns {object} a [borrow rate structure]{@link https://docs.ccxt.com/#/?id=borrow-rate-structure}
|
|
707
|
+
*/
|
|
90
708
|
fetchCrossBorrowRate(code: string, params?: {}): Promise<CrossBorrowRate>;
|
|
91
709
|
parseBorrowRate(info: any, currency?: Currency): {
|
|
92
710
|
currency: string;
|
|
@@ -96,12 +714,82 @@ export default class bybit extends Exchange {
|
|
|
96
714
|
datetime: string;
|
|
97
715
|
info: any;
|
|
98
716
|
};
|
|
717
|
+
/**
|
|
718
|
+
* @method
|
|
719
|
+
* @name bybit#fetchBorrowInterest
|
|
720
|
+
* @description fetch the interest owed by the user for borrowing currency for margin trading
|
|
721
|
+
* @see https://bybit-exchange.github.io/docs/zh-TW/v5/spot-margin-normal/account-info
|
|
722
|
+
* @param {string} code unified currency code
|
|
723
|
+
* @param {string} symbol unified market symbol when fetch interest in isolated markets
|
|
724
|
+
* @param {number} [since] the earliest time in ms to fetch borrrow interest for
|
|
725
|
+
* @param {number} [limit] the maximum number of structures to retrieve
|
|
726
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
727
|
+
* @returns {object[]} a list of [borrow interest structures]{@link https://docs.ccxt.com/#/?id=borrow-interest-structure}
|
|
728
|
+
*/
|
|
99
729
|
fetchBorrowInterest(code?: Str, symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<BorrowInterest[]>;
|
|
730
|
+
/**
|
|
731
|
+
* @method
|
|
732
|
+
* @name bybit#fetchBorrowRateHistory
|
|
733
|
+
* @description retrieves a history of a currencies borrow interest rate at specific time slots
|
|
734
|
+
* @see https://bybit-exchange.github.io/docs/v5/spot-margin-uta/historical-interest
|
|
735
|
+
* @param {string} code unified currency code
|
|
736
|
+
* @param {int} [since] timestamp for the earliest borrow rate
|
|
737
|
+
* @param {int} [limit] the maximum number of [borrow rate structures]{@link https://docs.ccxt.com/#/?id=borrow-rate-structure} to retrieve
|
|
738
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
739
|
+
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
740
|
+
* @returns {object[]} an array of [borrow rate structures]{@link https://docs.ccxt.com/#/?id=borrow-rate-structure}
|
|
741
|
+
*/
|
|
100
742
|
fetchBorrowRateHistory(code: string, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
101
743
|
parseBorrowInterest(info: Dict, market?: Market): BorrowInterest;
|
|
744
|
+
/**
|
|
745
|
+
* @method
|
|
746
|
+
* @name bybit#transfer
|
|
747
|
+
* @description transfer currency internally between wallets on the same account
|
|
748
|
+
* @see https://bybit-exchange.github.io/docs/v5/asset/create-inter-transfer
|
|
749
|
+
* @param {string} code unified currency code
|
|
750
|
+
* @param {float} amount amount to transfer
|
|
751
|
+
* @param {string} fromAccount account to transfer from
|
|
752
|
+
* @param {string} toAccount account to transfer to
|
|
753
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
754
|
+
* @param {string} [params.transferId] UUID, which is unique across the platform
|
|
755
|
+
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
|
|
756
|
+
*/
|
|
102
757
|
transfer(code: string, amount: number, fromAccount: string, toAccount: string, params?: {}): Promise<TransferEntry>;
|
|
758
|
+
/**
|
|
759
|
+
* @method
|
|
760
|
+
* @name bybit#fetchTransfers
|
|
761
|
+
* @description fetch a history of internal transfers made on an account
|
|
762
|
+
* @see https://bybit-exchange.github.io/docs/v5/asset/inter-transfer-list
|
|
763
|
+
* @param {string} code unified currency code of the currency transferred
|
|
764
|
+
* @param {int} [since] the earliest time in ms to fetch transfers for
|
|
765
|
+
* @param {int} [limit] the maximum number of transfer structures to retrieve
|
|
766
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
767
|
+
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
768
|
+
* @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)
|
|
769
|
+
* @returns {object[]} a list of [transfer structures]{@link https://docs.ccxt.com/#/?id=transfer-structure}
|
|
770
|
+
*/
|
|
103
771
|
fetchTransfers(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<TransferEntry[]>;
|
|
772
|
+
/**
|
|
773
|
+
* @method
|
|
774
|
+
* @name bybit#borrowCrossMargin
|
|
775
|
+
* @description create a loan to borrow margin
|
|
776
|
+
* @see https://bybit-exchange.github.io/docs/v5/spot-margin-normal/borrow
|
|
777
|
+
* @param {string} code unified currency code of the currency to borrow
|
|
778
|
+
* @param {float} amount the amount to borrow
|
|
779
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
780
|
+
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/#/?id=margin-loan-structure}
|
|
781
|
+
*/
|
|
104
782
|
borrowCrossMargin(code: string, amount: number, params?: {}): Promise<any>;
|
|
783
|
+
/**
|
|
784
|
+
* @method
|
|
785
|
+
* @name bybit#repayCrossMargin
|
|
786
|
+
* @description repay borrowed margin and interest
|
|
787
|
+
* @see https://bybit-exchange.github.io/docs/v5/spot-margin-normal/repay
|
|
788
|
+
* @param {string} code unified currency code of the currency to repay
|
|
789
|
+
* @param {float} amount the amount to repay
|
|
790
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
791
|
+
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/#/?id=margin-loan-structure}
|
|
792
|
+
*/
|
|
105
793
|
repayCrossMargin(code: string, amount: any, params?: {}): Promise<any>;
|
|
106
794
|
parseMarginLoan(info: any, currency?: Currency): {
|
|
107
795
|
id: string;
|
|
@@ -115,13 +803,75 @@ export default class bybit extends Exchange {
|
|
|
115
803
|
parseTransferStatus(status: Str): Str;
|
|
116
804
|
parseTransfer(transfer: Dict, currency?: Currency): TransferEntry;
|
|
117
805
|
fetchDerivativesMarketLeverageTiers(symbol: string, params?: {}): Promise<LeverageTier[]>;
|
|
806
|
+
/**
|
|
807
|
+
* @method
|
|
808
|
+
* @name bybit#fetchMarketLeverageTiers
|
|
809
|
+
* @description retrieve information on the maximum leverage, and maintenance margin for trades of varying trade sizes for a single market
|
|
810
|
+
* @see https://bybit-exchange.github.io/docs/v5/market/risk-limit
|
|
811
|
+
* @param {string} symbol unified market symbol
|
|
812
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
813
|
+
* @returns {object} a [leverage tiers structure]{@link https://docs.ccxt.com/#/?id=leverage-tiers-structure}
|
|
814
|
+
*/
|
|
118
815
|
fetchMarketLeverageTiers(symbol: string, params?: {}): Promise<LeverageTier[]>;
|
|
119
816
|
parseTradingFee(fee: Dict, market?: Market): TradingFeeInterface;
|
|
817
|
+
/**
|
|
818
|
+
* @method
|
|
819
|
+
* @name bybit#fetchTradingFee
|
|
820
|
+
* @description fetch the trading fees for a market
|
|
821
|
+
* @see https://bybit-exchange.github.io/docs/v5/account/fee-rate
|
|
822
|
+
* @param {string} symbol unified market symbol
|
|
823
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
824
|
+
* @returns {object} a [fee structure]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
825
|
+
*/
|
|
120
826
|
fetchTradingFee(symbol: string, params?: {}): Promise<TradingFeeInterface>;
|
|
827
|
+
/**
|
|
828
|
+
* @method
|
|
829
|
+
* @name bybit#fetchTradingFees
|
|
830
|
+
* @description fetch the trading fees for multiple markets
|
|
831
|
+
* @see https://bybit-exchange.github.io/docs/v5/account/fee-rate
|
|
832
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
833
|
+
* @param {string} [params.type] market type, ['swap', 'option', 'spot']
|
|
834
|
+
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
835
|
+
*/
|
|
121
836
|
fetchTradingFees(params?: {}): Promise<TradingFees>;
|
|
122
837
|
parseDepositWithdrawFee(fee: any, currency?: Currency): Dict;
|
|
838
|
+
/**
|
|
839
|
+
* @method
|
|
840
|
+
* @name bybit#fetchDepositWithdrawFees
|
|
841
|
+
* @description fetch deposit and withdraw fees
|
|
842
|
+
* @see https://bybit-exchange.github.io/docs/v5/asset/coin-info
|
|
843
|
+
* @param {string[]} codes list of unified currency codes
|
|
844
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
845
|
+
* @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
846
|
+
*/
|
|
123
847
|
fetchDepositWithdrawFees(codes?: Strings, params?: {}): Promise<any>;
|
|
848
|
+
/**
|
|
849
|
+
* @method
|
|
850
|
+
* @name bybit#fetchSettlementHistory
|
|
851
|
+
* @description fetches historical settlement records
|
|
852
|
+
* @see https://bybit-exchange.github.io/docs/v5/market/delivery-price
|
|
853
|
+
* @param {string} symbol unified market symbol of the settlement history
|
|
854
|
+
* @param {int} [since] timestamp in ms
|
|
855
|
+
* @param {int} [limit] number of records
|
|
856
|
+
* @param {object} [params] exchange specific params
|
|
857
|
+
* @param {string} [params.type] market type, ['swap', 'option', 'spot']
|
|
858
|
+
* @param {string} [params.subType] market subType, ['linear', 'inverse']
|
|
859
|
+
* @returns {object[]} a list of [settlement history objects]
|
|
860
|
+
*/
|
|
124
861
|
fetchSettlementHistory(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
862
|
+
/**
|
|
863
|
+
* @method
|
|
864
|
+
* @name bybit#fetchMySettlementHistory
|
|
865
|
+
* @description fetches historical settlement records of the user
|
|
866
|
+
* @see https://bybit-exchange.github.io/docs/v5/asset/delivery
|
|
867
|
+
* @param {string} symbol unified market symbol of the settlement history
|
|
868
|
+
* @param {int} [since] timestamp in ms
|
|
869
|
+
* @param {int} [limit] number of records
|
|
870
|
+
* @param {object} [params] exchange specific params
|
|
871
|
+
* @param {string} [params.type] market type, ['swap', 'option', 'spot']
|
|
872
|
+
* @param {string} [params.subType] market subType, ['linear', 'inverse']
|
|
873
|
+
* @returns {object[]} a list of [settlement history objects]
|
|
874
|
+
*/
|
|
125
875
|
fetchMySettlementHistory(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<any>;
|
|
126
876
|
parseSettlement(settlement: any, market: any): {
|
|
127
877
|
info: any;
|
|
@@ -131,16 +881,72 @@ export default class bybit extends Exchange {
|
|
|
131
881
|
datetime: string;
|
|
132
882
|
};
|
|
133
883
|
parseSettlements(settlements: any, market: any): any[];
|
|
884
|
+
/**
|
|
885
|
+
* @method
|
|
886
|
+
* @name bybit#fetchVolatilityHistory
|
|
887
|
+
* @description fetch the historical volatility of an option market based on an underlying asset
|
|
888
|
+
* @see https://bybit-exchange.github.io/docs/v5/market/iv
|
|
889
|
+
* @param {string} code unified currency code
|
|
890
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
891
|
+
* @param {int} [params.period] the period in days to fetch the volatility for: 7,14,21,30,60,90,180,270
|
|
892
|
+
* @returns {object[]} a list of [volatility history objects]{@link https://docs.ccxt.com/#/?id=volatility-structure}
|
|
893
|
+
*/
|
|
134
894
|
fetchVolatilityHistory(code: string, params?: {}): Promise<any[]>;
|
|
135
895
|
parseVolatilityHistory(volatility: any): any[];
|
|
896
|
+
/**
|
|
897
|
+
* @method
|
|
898
|
+
* @name bybit#fetchGreeks
|
|
899
|
+
* @description fetches an option contracts greeks, financial metrics used to measure the factors that affect the price of an options contract
|
|
900
|
+
* @see https://bybit-exchange.github.io/docs/api-explorer/v5/market/tickers
|
|
901
|
+
* @param {string} symbol unified symbol of the market to fetch greeks for
|
|
902
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
903
|
+
* @returns {object} a [greeks structure]{@link https://docs.ccxt.com/#/?id=greeks-structure}
|
|
904
|
+
*/
|
|
136
905
|
fetchGreeks(symbol: string, params?: {}): Promise<Greeks>;
|
|
137
906
|
parseGreeks(greeks: Dict, market?: Market): Greeks;
|
|
907
|
+
/**
|
|
908
|
+
* @method
|
|
909
|
+
* @name bybit#fetchMyLiquidations
|
|
910
|
+
* @description retrieves the users liquidated positions
|
|
911
|
+
* @see https://bybit-exchange.github.io/docs/api-explorer/v5/position/execution
|
|
912
|
+
* @param {string} [symbol] unified CCXT market symbol
|
|
913
|
+
* @param {int} [since] the earliest time in ms to fetch liquidations for
|
|
914
|
+
* @param {int} [limit] the maximum number of liquidation structures to retrieve
|
|
915
|
+
* @param {object} [params] exchange specific parameters for the exchange API endpoint
|
|
916
|
+
* @param {string} [params.type] market type, ['swap', 'option', 'spot']
|
|
917
|
+
* @param {string} [params.subType] market subType, ['linear', 'inverse']
|
|
918
|
+
* @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)
|
|
919
|
+
* @returns {object} an array of [liquidation structures]{@link https://docs.ccxt.com/#/?id=liquidation-structure}
|
|
920
|
+
*/
|
|
138
921
|
fetchMyLiquidations(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Liquidation[]>;
|
|
139
922
|
parseLiquidation(liquidation: any, market?: Market): Liquidation;
|
|
140
923
|
getLeverageTiersPaginated(symbol?: Str, params?: {}): Promise<any>;
|
|
924
|
+
/**
|
|
925
|
+
* @method
|
|
926
|
+
* @name bybit#fetchLeverageTiers
|
|
927
|
+
* @description retrieve information on the maximum leverage, for different trade sizes
|
|
928
|
+
* @see https://bybit-exchange.github.io/docs/v5/market/risk-limit
|
|
929
|
+
* @param {string[]} [symbols] a list of unified market symbols
|
|
930
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
931
|
+
* @param {string} [params.subType] market subType, ['linear', 'inverse'], default is 'linear'
|
|
932
|
+
* @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)
|
|
933
|
+
* @returns {object} a dictionary of [leverage tiers structures]{@link https://docs.ccxt.com/#/?id=leverage-tiers-structure}, indexed by market symbols
|
|
934
|
+
*/
|
|
141
935
|
fetchLeverageTiers(symbols?: Strings, params?: {}): Promise<LeverageTiers>;
|
|
142
|
-
parseLeverageTiers(response: any, symbols?: Strings, marketIdKey?: any):
|
|
936
|
+
parseLeverageTiers(response: any, symbols?: Strings, marketIdKey?: any): LeverageTiers;
|
|
143
937
|
parseMarketLeverageTiers(info: any, market?: Market): LeverageTier[];
|
|
938
|
+
/**
|
|
939
|
+
* @method
|
|
940
|
+
* @name bybit#fetchFundingHistory
|
|
941
|
+
* @description fetch the history of funding payments paid and received on this account
|
|
942
|
+
* @see https://bybit-exchange.github.io/docs/api-explorer/v5/position/execution
|
|
943
|
+
* @param {string} [symbol] unified market symbol
|
|
944
|
+
* @param {int} [since] the earliest time in ms to fetch funding history for
|
|
945
|
+
* @param {int} [limit] the maximum number of funding history structures to retrieve
|
|
946
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
947
|
+
* @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)
|
|
948
|
+
* @returns {object} a [funding history structure]{@link https://docs.ccxt.com/#/?id=funding-history-structure}
|
|
949
|
+
*/
|
|
144
950
|
fetchFundingHistory(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<FundingHistory[]>;
|
|
145
951
|
parseIncome(income: any, market?: Market): {
|
|
146
952
|
info: any;
|
|
@@ -152,16 +958,115 @@ export default class bybit extends Exchange {
|
|
|
152
958
|
amount: number;
|
|
153
959
|
rate: number;
|
|
154
960
|
};
|
|
961
|
+
/**
|
|
962
|
+
* @method
|
|
963
|
+
* @name bybit#fetchOption
|
|
964
|
+
* @description fetches option data that is commonly found in an option chain
|
|
965
|
+
* @see https://bybit-exchange.github.io/docs/v5/market/tickers
|
|
966
|
+
* @param {string} symbol unified market symbol
|
|
967
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
968
|
+
* @returns {object} an [option chain structure]{@link https://docs.ccxt.com/#/?id=option-chain-structure}
|
|
969
|
+
*/
|
|
155
970
|
fetchOption(symbol: string, params?: {}): Promise<Option>;
|
|
971
|
+
/**
|
|
972
|
+
* @method
|
|
973
|
+
* @name bybit#fetchOptionChain
|
|
974
|
+
* @description fetches data for an underlying asset that is commonly found in an option chain
|
|
975
|
+
* @see https://bybit-exchange.github.io/docs/v5/market/tickers
|
|
976
|
+
* @param {string} code base currency to fetch an option chain for
|
|
977
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
978
|
+
* @returns {object} a list of [option chain structures]{@link https://docs.ccxt.com/#/?id=option-chain-structure}
|
|
979
|
+
*/
|
|
156
980
|
fetchOptionChain(code: string, params?: {}): Promise<OptionChain>;
|
|
157
981
|
parseOption(chain: Dict, currency?: Currency, market?: Market): Option;
|
|
982
|
+
/**
|
|
983
|
+
* @method
|
|
984
|
+
* @name bybit#fetchPositionsHistory
|
|
985
|
+
* @description fetches historical positions
|
|
986
|
+
* @see https://bybit-exchange.github.io/docs/v5/position/close-pnl
|
|
987
|
+
* @param {string[]} symbols a list of unified market symbols
|
|
988
|
+
* @param {int} [since] timestamp in ms of the earliest position to fetch, params["until"] - since <= 7 days
|
|
989
|
+
* @param {int} [limit] the maximum amount of records to fetch, default=50, max=100
|
|
990
|
+
* @param {object} params extra parameters specific to the exchange api endpoint
|
|
991
|
+
* @param {int} [params.until] timestamp in ms of the latest position to fetch, params["until"] - since <= 7 days
|
|
992
|
+
* @param {string} [params.subType] 'linear' or 'inverse'
|
|
993
|
+
* @returns {object[]} a list of [position structures]{@link https://docs.ccxt.com/#/?id=position-structure}
|
|
994
|
+
*/
|
|
158
995
|
fetchPositionsHistory(symbols?: Strings, since?: Int, limit?: Int, params?: {}): Promise<Position[]>;
|
|
996
|
+
/**
|
|
997
|
+
* @method
|
|
998
|
+
* @name bybit#fetchConvertCurrencies
|
|
999
|
+
* @description fetches all available currencies that can be converted
|
|
1000
|
+
* @see https://bybit-exchange.github.io/docs/v5/asset/convert/convert-coin-list
|
|
1001
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1002
|
+
* @param {string} [params.accountType] eb_convert_uta, eb_convert_spot, eb_convert_funding, eb_convert_inverse, or eb_convert_contract
|
|
1003
|
+
* @returns {object} an associative dictionary of currencies
|
|
1004
|
+
*/
|
|
159
1005
|
fetchConvertCurrencies(params?: {}): Promise<Currencies>;
|
|
1006
|
+
/**
|
|
1007
|
+
* @method
|
|
1008
|
+
* @name bybit#fetchConvertQuote
|
|
1009
|
+
* @description fetch a quote for converting from one currency to another
|
|
1010
|
+
* @see https://bybit-exchange.github.io/docs/v5/asset/convert/apply-quote
|
|
1011
|
+
* @param {string} fromCode the currency that you want to sell and convert from
|
|
1012
|
+
* @param {string} toCode the currency that you want to buy and convert into
|
|
1013
|
+
* @param {float} [amount] how much you want to trade in units of the from currency
|
|
1014
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1015
|
+
* @param {string} [params.accountType] eb_convert_uta, eb_convert_spot, eb_convert_funding, eb_convert_inverse, or eb_convert_contract
|
|
1016
|
+
* @returns {object} a [conversion structure]{@link https://docs.ccxt.com/#/?id=conversion-structure}
|
|
1017
|
+
*/
|
|
160
1018
|
fetchConvertQuote(fromCode: string, toCode: string, amount?: Num, params?: {}): Promise<Conversion>;
|
|
1019
|
+
/**
|
|
1020
|
+
* @method
|
|
1021
|
+
* @name bybit#createConvertTrade
|
|
1022
|
+
* @description convert from one currency to another
|
|
1023
|
+
* @see https://bybit-exchange.github.io/docs/v5/asset/convert/confirm-quote
|
|
1024
|
+
* @param {string} id the id of the trade that you want to make
|
|
1025
|
+
* @param {string} fromCode the currency that you want to sell and convert from
|
|
1026
|
+
* @param {string} toCode the currency that you want to buy and convert into
|
|
1027
|
+
* @param {float} amount how much you want to trade in units of the from currency
|
|
1028
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1029
|
+
* @returns {object} a [conversion structure]{@link https://docs.ccxt.com/#/?id=conversion-structure}
|
|
1030
|
+
*/
|
|
161
1031
|
createConvertTrade(id: string, fromCode: string, toCode: string, amount?: Num, params?: {}): Promise<Conversion>;
|
|
1032
|
+
/**
|
|
1033
|
+
* @method
|
|
1034
|
+
* @name bybit#fetchConvertTrade
|
|
1035
|
+
* @description fetch the data for a conversion trade
|
|
1036
|
+
* @see https://bybit-exchange.github.io/docs/v5/asset/convert/get-convert-result
|
|
1037
|
+
* @param {string} id the id of the trade that you want to fetch
|
|
1038
|
+
* @param {string} [code] the unified currency code of the conversion trade
|
|
1039
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1040
|
+
* @param {string} [params.accountType] eb_convert_uta, eb_convert_spot, eb_convert_funding, eb_convert_inverse, or eb_convert_contract
|
|
1041
|
+
* @returns {object} a [conversion structure]{@link https://docs.ccxt.com/#/?id=conversion-structure}
|
|
1042
|
+
*/
|
|
162
1043
|
fetchConvertTrade(id: string, code?: Str, params?: {}): Promise<Conversion>;
|
|
1044
|
+
/**
|
|
1045
|
+
* @method
|
|
1046
|
+
* @name bybit#fetchConvertTradeHistory
|
|
1047
|
+
* @description fetch the users history of conversion trades
|
|
1048
|
+
* @see https://bybit-exchange.github.io/docs/v5/asset/convert/get-convert-history
|
|
1049
|
+
* @param {string} [code] the unified currency code
|
|
1050
|
+
* @param {int} [since] the earliest time in ms to fetch conversions for
|
|
1051
|
+
* @param {int} [limit] the maximum number of conversion structures to retrieve
|
|
1052
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1053
|
+
* @param {string} [params.accountType] eb_convert_uta, eb_convert_spot, eb_convert_funding, eb_convert_inverse, or eb_convert_contract
|
|
1054
|
+
* @returns {object[]} a list of [conversion structures]{@link https://docs.ccxt.com/#/?id=conversion-structure}
|
|
1055
|
+
*/
|
|
163
1056
|
fetchConvertTradeHistory(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Conversion[]>;
|
|
164
1057
|
parseConversion(conversion: Dict, fromCurrency?: Currency, toCurrency?: Currency): Conversion;
|
|
1058
|
+
/**
|
|
1059
|
+
* @method
|
|
1060
|
+
* @name bybit#fetchLongShortRatioHistory
|
|
1061
|
+
* @description fetches the long short ratio history for a unified market symbol
|
|
1062
|
+
* @see https://bybit-exchange.github.io/docs/v5/market/long-short-ratio
|
|
1063
|
+
* @param {string} symbol unified symbol of the market to fetch the long short ratio for
|
|
1064
|
+
* @param {string} [timeframe] the period for the ratio, default is 24 hours
|
|
1065
|
+
* @param {int} [since] the earliest time in ms to fetch ratios for
|
|
1066
|
+
* @param {int} [limit] the maximum number of long short ratio structures to retrieve
|
|
1067
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1068
|
+
* @returns {object[]} an array of [long short ratio structures]{@link https://docs.ccxt.com/#/?id=long-short-ratio-structure}
|
|
1069
|
+
*/
|
|
165
1070
|
fetchLongShortRatioHistory(symbol?: Str, timeframe?: Str, since?: Int, limit?: Int, params?: {}): Promise<LongShortRatio[]>;
|
|
166
1071
|
parseLongShortRatio(info: Dict, market?: Market): LongShortRatio;
|
|
167
1072
|
sign(path: any, api?: string, method?: string, params?: {}, headers?: any, body?: any): {
|