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/bitget.d.ts
CHANGED
|
@@ -9,27 +9,197 @@ export default class bitget extends Exchange {
|
|
|
9
9
|
setSandboxMode(enabled: any): void;
|
|
10
10
|
convertSymbolForSandbox(symbol: any): any;
|
|
11
11
|
handleProductTypeAndParams(market?: any, params?: {}): {}[];
|
|
12
|
+
/**
|
|
13
|
+
* @method
|
|
14
|
+
* @name bitget#fetchTime
|
|
15
|
+
* @description fetches the current integer timestamp in milliseconds from the exchange server
|
|
16
|
+
* @see https://www.bitget.com/api-doc/common/public/Get-Server-Time
|
|
17
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
18
|
+
* @returns {int} the current integer timestamp in milliseconds from the exchange server
|
|
19
|
+
*/
|
|
12
20
|
fetchTime(params?: {}): Promise<number>;
|
|
21
|
+
/**
|
|
22
|
+
* @method
|
|
23
|
+
* @name bitget#fetchMarkets
|
|
24
|
+
* @description retrieves data on all markets for bitget
|
|
25
|
+
* @see https://www.bitget.com/api-doc/spot/market/Get-Symbols
|
|
26
|
+
* @see https://www.bitget.com/api-doc/contract/market/Get-All-Symbols-Contracts
|
|
27
|
+
* @see https://www.bitget.com/api-doc/margin/common/support-currencies
|
|
28
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
29
|
+
* @returns {object[]} an array of objects representing market data
|
|
30
|
+
*/
|
|
13
31
|
fetchMarkets(params?: {}): Promise<Market[]>;
|
|
14
32
|
parseMarket(market: Dict): Market;
|
|
33
|
+
/**
|
|
34
|
+
* @method
|
|
35
|
+
* @name bitget#fetchCurrencies
|
|
36
|
+
* @description fetches all available currencies on an exchange
|
|
37
|
+
* @see https://www.bitget.com/api-doc/spot/market/Get-Coin-List
|
|
38
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
39
|
+
* @returns {object} an associative dictionary of currencies
|
|
40
|
+
*/
|
|
15
41
|
fetchCurrencies(params?: {}): Promise<Currencies>;
|
|
42
|
+
/**
|
|
43
|
+
* @method
|
|
44
|
+
* @name bitget#fetchMarketLeverageTiers
|
|
45
|
+
* @description retrieve information on the maximum leverage, and maintenance margin for trades of varying trade sizes for a single market
|
|
46
|
+
* @see https://www.bitget.com/api-doc/contract/position/Get-Query-Position-Lever
|
|
47
|
+
* @see https://www.bitget.com/api-doc/margin/cross/account/Cross-Tier-Data
|
|
48
|
+
* @see https://www.bitget.com/api-doc/margin/isolated/account/Isolated-Tier-Data
|
|
49
|
+
* @param {string} symbol unified market symbol
|
|
50
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
51
|
+
* @param {string} [params.marginMode] for spot margin 'cross' or 'isolated', default is 'isolated'
|
|
52
|
+
* @param {string} [params.code] required for cross spot margin
|
|
53
|
+
* @param {string} [params.productType] *contract only* 'USDT-FUTURES', 'USDC-FUTURES', 'COIN-FUTURES', 'SUSDT-FUTURES', 'SUSDC-FUTURES' or 'SCOIN-FUTURES'
|
|
54
|
+
* @returns {object} a [leverage tiers structure]{@link https://docs.ccxt.com/#/?id=leverage-tiers-structure}
|
|
55
|
+
*/
|
|
16
56
|
fetchMarketLeverageTiers(symbol: string, params?: {}): Promise<LeverageTier[]>;
|
|
17
57
|
parseMarketLeverageTiers(info: any, market?: Market): LeverageTier[];
|
|
58
|
+
/**
|
|
59
|
+
* @method
|
|
60
|
+
* @name bitget#fetchDeposits
|
|
61
|
+
* @description fetch all deposits made to an account
|
|
62
|
+
* @see https://www.bitget.com/api-doc/spot/account/Get-Deposit-Record
|
|
63
|
+
* @param {string} code unified currency code
|
|
64
|
+
* @param {int} [since] the earliest time in ms to fetch deposits for
|
|
65
|
+
* @param {int} [limit] the maximum number of deposits structures to retrieve
|
|
66
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
67
|
+
* @param {int} [params.until] end time in milliseconds
|
|
68
|
+
* @param {string} [params.idLessThan] return records with id less than the provided value
|
|
69
|
+
* @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)
|
|
70
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
71
|
+
*/
|
|
18
72
|
fetchDeposits(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
73
|
+
/**
|
|
74
|
+
* @method
|
|
75
|
+
* @name bitget#withdraw
|
|
76
|
+
* @description make a withdrawal
|
|
77
|
+
* @see https://www.bitget.com/api-doc/spot/account/Wallet-Withdrawal
|
|
78
|
+
* @param {string} code unified currency code
|
|
79
|
+
* @param {float} amount the amount to withdraw
|
|
80
|
+
* @param {string} address the address to withdraw to
|
|
81
|
+
* @param {string} tag
|
|
82
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
83
|
+
* @param {string} [params.chain] the blockchain network the withdrawal is taking place on
|
|
84
|
+
* @returns {object} a [transaction structure]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
85
|
+
*/
|
|
19
86
|
withdraw(code: string, amount: number, address: string, tag?: any, params?: {}): Promise<Transaction>;
|
|
87
|
+
/**
|
|
88
|
+
* @method
|
|
89
|
+
* @name bitget#fetchWithdrawals
|
|
90
|
+
* @description fetch all withdrawals made from an account
|
|
91
|
+
* @see https://www.bitget.com/api-doc/spot/account/Get-Withdraw-Record
|
|
92
|
+
* @param {string} code unified currency code
|
|
93
|
+
* @param {int} [since] the earliest time in ms to fetch withdrawals for
|
|
94
|
+
* @param {int} [limit] the maximum number of withdrawals structures to retrieve
|
|
95
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
96
|
+
* @param {int} [params.until] end time in milliseconds
|
|
97
|
+
* @param {string} [params.idLessThan] return records with id less than the provided value
|
|
98
|
+
* @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)
|
|
99
|
+
* @returns {object[]} a list of [transaction structures]{@link https://docs.ccxt.com/#/?id=transaction-structure}
|
|
100
|
+
*/
|
|
20
101
|
fetchWithdrawals(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Transaction[]>;
|
|
21
102
|
parseTransaction(transaction: Dict, currency?: Currency): Transaction;
|
|
22
103
|
parseTransactionStatus(status: Str): string;
|
|
104
|
+
/**
|
|
105
|
+
* @method
|
|
106
|
+
* @name bitget#fetchDepositAddress
|
|
107
|
+
* @description fetch the deposit address for a currency associated with this account
|
|
108
|
+
* @see https://www.bitget.com/api-doc/spot/account/Get-Deposit-Address
|
|
109
|
+
* @param {string} code unified currency code
|
|
110
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
111
|
+
* @returns {object} an [address structure]{@link https://docs.ccxt.com/#/?id=address-structure}
|
|
112
|
+
*/
|
|
23
113
|
fetchDepositAddress(code: string, params?: {}): Promise<DepositAddress>;
|
|
24
114
|
parseDepositAddress(depositAddress: any, currency?: Currency): DepositAddress;
|
|
115
|
+
/**
|
|
116
|
+
* @method
|
|
117
|
+
* @name bitget#fetchOrderBook
|
|
118
|
+
* @description fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data
|
|
119
|
+
* @see https://www.bitget.com/api-doc/spot/market/Get-Orderbook
|
|
120
|
+
* @see https://www.bitget.com/api-doc/contract/market/Get-Merge-Depth
|
|
121
|
+
* @param {string} symbol unified symbol of the market to fetch the order book for
|
|
122
|
+
* @param {int} [limit] the maximum amount of order book entries to return
|
|
123
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
124
|
+
* @returns {object} A dictionary of [order book structures]{@link https://docs.ccxt.com/#/?id=order-book-structure} indexed by market symbols
|
|
125
|
+
*/
|
|
25
126
|
fetchOrderBook(symbol: string, limit?: Int, params?: {}): Promise<OrderBook>;
|
|
26
127
|
parseTicker(ticker: Dict, market?: Market): Ticker;
|
|
128
|
+
/**
|
|
129
|
+
* @method
|
|
130
|
+
* @name bitget#fetchTicker
|
|
131
|
+
* @description fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market
|
|
132
|
+
* @see https://www.bitget.com/api-doc/spot/market/Get-Tickers
|
|
133
|
+
* @see https://www.bitget.com/api-doc/contract/market/Get-Ticker
|
|
134
|
+
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
135
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
136
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
137
|
+
*/
|
|
27
138
|
fetchTicker(symbol: string, params?: {}): Promise<Ticker>;
|
|
139
|
+
/**
|
|
140
|
+
* @method
|
|
141
|
+
* @name bitget#fetchMarkPrice
|
|
142
|
+
* @description fetches the mark price for a specific market
|
|
143
|
+
* @see https://www.bitget.com/api-doc/contract/market/Get-Symbol-Price
|
|
144
|
+
* @param {string} symbol unified symbol of the market to fetch the ticker for
|
|
145
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
146
|
+
* @returns {object} a [ticker structure]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
147
|
+
*/
|
|
28
148
|
fetchMarkPrice(symbol: string, params?: {}): Promise<Ticker>;
|
|
149
|
+
/**
|
|
150
|
+
* @method
|
|
151
|
+
* @name bitget#fetchTickers
|
|
152
|
+
* @description fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market
|
|
153
|
+
* @see https://www.bitget.com/api-doc/spot/market/Get-Tickers
|
|
154
|
+
* @see https://www.bitget.com/api-doc/contract/market/Get-All-Symbol-Ticker
|
|
155
|
+
* @param {string[]|undefined} symbols unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
|
|
156
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
157
|
+
* @param {string} [params.subType] *contract only* 'linear', 'inverse'
|
|
158
|
+
* @param {string} [params.productType] *contract only* 'USDT-FUTURES', 'USDC-FUTURES', 'COIN-FUTURES', 'SUSDT-FUTURES', 'SUSDC-FUTURES' or 'SCOIN-FUTURES'
|
|
159
|
+
* @returns {object} a dictionary of [ticker structures]{@link https://docs.ccxt.com/#/?id=ticker-structure}
|
|
160
|
+
*/
|
|
29
161
|
fetchTickers(symbols?: Strings, params?: {}): Promise<Tickers>;
|
|
30
162
|
parseTrade(trade: Dict, market?: Market): Trade;
|
|
163
|
+
/**
|
|
164
|
+
* @method
|
|
165
|
+
* @name bitget#fetchTrades
|
|
166
|
+
* @description get the list of most recent trades for a particular symbol
|
|
167
|
+
* @see https://www.bitget.com/api-doc/spot/market/Get-Recent-Trades
|
|
168
|
+
* @see https://www.bitget.com/api-doc/spot/market/Get-Market-Trades
|
|
169
|
+
* @see https://www.bitget.com/api-doc/contract/market/Get-Recent-Fills
|
|
170
|
+
* @see https://www.bitget.com/api-doc/contract/market/Get-Fills-History
|
|
171
|
+
* @param {string} symbol unified symbol of the market to fetch trades for
|
|
172
|
+
* @param {int} [since] timestamp in ms of the earliest trade to fetch
|
|
173
|
+
* @param {int} [limit] the maximum amount of trades to fetch
|
|
174
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
175
|
+
* @param {int} [params.until] *only applies to publicSpotGetV2SpotMarketFillsHistory and publicMixGetV2MixMarketFillsHistory* the latest time in ms to fetch trades for
|
|
176
|
+
* @param {boolean} [params.paginate] *only applies to publicSpotGetV2SpotMarketFillsHistory and publicMixGetV2MixMarketFillsHistory* default false, when true will automatically paginate by calling this endpoint multiple times
|
|
177
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=public-trades}
|
|
178
|
+
*/
|
|
31
179
|
fetchTrades(symbol: string, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
180
|
+
/**
|
|
181
|
+
* @method
|
|
182
|
+
* @name bitget#fetchTradingFee
|
|
183
|
+
* @description fetch the trading fees for a market
|
|
184
|
+
* @see https://www.bitget.com/api-doc/common/public/Get-Trade-Rate
|
|
185
|
+
* @param {string} symbol unified market symbol
|
|
186
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
187
|
+
* @param {string} [params.marginMode] 'isolated' or 'cross', for finding the fee rate of spot margin trading pairs
|
|
188
|
+
* @returns {object} a [fee structure]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
189
|
+
*/
|
|
32
190
|
fetchTradingFee(symbol: string, params?: {}): Promise<TradingFeeInterface>;
|
|
191
|
+
/**
|
|
192
|
+
* @method
|
|
193
|
+
* @name bitget#fetchTradingFees
|
|
194
|
+
* @description fetch the trading fees for multiple markets
|
|
195
|
+
* @see https://www.bitget.com/api-doc/spot/market/Get-Symbols
|
|
196
|
+
* @see https://www.bitget.com/api-doc/contract/market/Get-All-Symbols-Contracts
|
|
197
|
+
* @see https://www.bitget.com/api-doc/margin/common/support-currencies
|
|
198
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
199
|
+
* @param {string} [params.productType] *contract only* 'USDT-FUTURES', 'USDC-FUTURES', 'COIN-FUTURES', 'SUSDT-FUTURES', 'SUSDC-FUTURES' or 'SCOIN-FUTURES'
|
|
200
|
+
* @param {boolean} [params.margin] set to true for spot margin
|
|
201
|
+
* @returns {object} a dictionary of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure} indexed by market symbols
|
|
202
|
+
*/
|
|
33
203
|
fetchTradingFees(params?: {}): Promise<TradingFees>;
|
|
34
204
|
parseTradingFee(data: any, market?: Market): {
|
|
35
205
|
info: any;
|
|
@@ -40,35 +210,407 @@ export default class bitget extends Exchange {
|
|
|
40
210
|
tierBased: any;
|
|
41
211
|
};
|
|
42
212
|
parseOHLCV(ohlcv: any, market?: Market): OHLCV;
|
|
213
|
+
/**
|
|
214
|
+
* @method
|
|
215
|
+
* @name bitget#fetchOHLCV
|
|
216
|
+
* @description fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market
|
|
217
|
+
* @see https://www.bitget.com/api-doc/spot/market/Get-Candle-Data
|
|
218
|
+
* @see https://www.bitget.com/api-doc/spot/market/Get-History-Candle-Data
|
|
219
|
+
* @see https://www.bitget.com/api-doc/contract/market/Get-Candle-Data
|
|
220
|
+
* @see https://www.bitget.com/api-doc/contract/market/Get-History-Candle-Data
|
|
221
|
+
* @see https://www.bitget.com/api-doc/contract/market/Get-History-Index-Candle-Data
|
|
222
|
+
* @see https://www.bitget.com/api-doc/contract/market/Get-History-Mark-Candle-Data
|
|
223
|
+
* @param {string} symbol unified symbol of the market to fetch OHLCV data for
|
|
224
|
+
* @param {string} timeframe the length of time each candle represents
|
|
225
|
+
* @param {int} [since] timestamp in ms of the earliest candle to fetch
|
|
226
|
+
* @param {int} [limit] the maximum amount of candles to fetch
|
|
227
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
228
|
+
* @param {int} [params.until] timestamp in ms of the latest candle to fetch
|
|
229
|
+
* @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)
|
|
230
|
+
* @param {string} [params.price] *swap only* "mark" (to fetch mark price candles) or "index" (to fetch index price candles)
|
|
231
|
+
* @returns {int[][]} A list of candles ordered as timestamp, open, high, low, close, volume
|
|
232
|
+
*/
|
|
43
233
|
fetchOHLCV(symbol: string, timeframe?: string, since?: Int, limit?: Int, params?: {}): Promise<OHLCV[]>;
|
|
234
|
+
/**
|
|
235
|
+
* @method
|
|
236
|
+
* @name bitget#fetchBalance
|
|
237
|
+
* @description query for balance and get the amount of funds available for trading or funds locked in orders
|
|
238
|
+
* @see https://www.bitget.com/api-doc/spot/account/Get-Account-Assets
|
|
239
|
+
* @see https://www.bitget.com/api-doc/contract/account/Get-Account-List
|
|
240
|
+
* @see https://www.bitget.com/api-doc/margin/cross/account/Get-Cross-Assets
|
|
241
|
+
* @see https://www.bitget.com/api-doc/margin/isolated/account/Get-Isolated-Assets
|
|
242
|
+
* @see https://bitgetlimited.github.io/apidoc/en/margin/#get-cross-assets
|
|
243
|
+
* @see https://bitgetlimited.github.io/apidoc/en/margin/#get-isolated-assets
|
|
244
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
245
|
+
* @param {string} [params.productType] *contract only* 'USDT-FUTURES', 'USDC-FUTURES', 'COIN-FUTURES', 'SUSDT-FUTURES', 'SUSDC-FUTURES' or 'SCOIN-FUTURES'
|
|
246
|
+
* @returns {object} a [balance structure]{@link https://docs.ccxt.com/#/?id=balance-structure}
|
|
247
|
+
*/
|
|
44
248
|
fetchBalance(params?: {}): Promise<Balances>;
|
|
45
249
|
parseBalance(balance: any): Balances;
|
|
46
250
|
parseOrderStatus(status: Str): string;
|
|
47
251
|
parseOrder(order: Dict, market?: Market): Order;
|
|
252
|
+
/**
|
|
253
|
+
* @method
|
|
254
|
+
* @name bitget#createMarketBuyOrderWithCost
|
|
255
|
+
* @description create a market buy order by providing the symbol and cost
|
|
256
|
+
* @see https://www.bitget.com/api-doc/spot/trade/Place-Order
|
|
257
|
+
* @see https://www.bitget.com/api-doc/margin/cross/trade/Cross-Place-Order
|
|
258
|
+
* @see https://www.bitget.com/api-doc/margin/isolated/trade/Isolated-Place-Order
|
|
259
|
+
* @param {string} symbol unified symbol of the market to create an order in
|
|
260
|
+
* @param {float} cost how much you want to trade in units of the quote currency
|
|
261
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
262
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
263
|
+
*/
|
|
48
264
|
createMarketBuyOrderWithCost(symbol: string, cost: number, params?: {}): Promise<Order>;
|
|
265
|
+
/**
|
|
266
|
+
* @method
|
|
267
|
+
* @name bitget#createOrder
|
|
268
|
+
* @description create a trade order
|
|
269
|
+
* @see https://www.bitget.com/api-doc/spot/trade/Place-Order
|
|
270
|
+
* @see https://www.bitget.com/api-doc/spot/plan/Place-Plan-Order
|
|
271
|
+
* @see https://www.bitget.com/api-doc/contract/trade/Place-Order
|
|
272
|
+
* @see https://www.bitget.com/api-doc/contract/plan/Place-Tpsl-Order
|
|
273
|
+
* @see https://www.bitget.com/api-doc/contract/plan/Place-Plan-Order
|
|
274
|
+
* @see https://www.bitget.com/api-doc/margin/cross/trade/Cross-Place-Order
|
|
275
|
+
* @see https://www.bitget.com/api-doc/margin/isolated/trade/Isolated-Place-Order
|
|
276
|
+
* @param {string} symbol unified symbol of the market to create an order in
|
|
277
|
+
* @param {string} type 'market' or 'limit'
|
|
278
|
+
* @param {string} side 'buy' or 'sell'
|
|
279
|
+
* @param {float} amount how much you want to trade in units of the base currency
|
|
280
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
281
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
282
|
+
* @param {float} [params.cost] *spot only* how much you want to trade in units of the quote currency, for market buy orders only
|
|
283
|
+
* @param {float} [params.triggerPrice] *swap only* The price at which a trigger order is triggered at
|
|
284
|
+
* @param {float} [params.stopLossPrice] *swap only* The price at which a stop loss order is triggered at
|
|
285
|
+
* @param {float} [params.takeProfitPrice] *swap only* The price at which a take profit order is triggered at
|
|
286
|
+
* @param {object} [params.takeProfit] *takeProfit object in params* containing the triggerPrice at which the attached take profit order will be triggered (perpetual swap markets only)
|
|
287
|
+
* @param {float} [params.takeProfit.triggerPrice] *swap only* take profit trigger price
|
|
288
|
+
* @param {object} [params.stopLoss] *stopLoss object in params* containing the triggerPrice at which the attached stop loss order will be triggered (perpetual swap markets only)
|
|
289
|
+
* @param {float} [params.stopLoss.triggerPrice] *swap only* stop loss trigger price
|
|
290
|
+
* @param {string} [params.timeInForce] "GTC", "IOC", "FOK", or "PO"
|
|
291
|
+
* @param {string} [params.marginMode] 'isolated' or 'cross' for spot margin trading
|
|
292
|
+
* @param {string} [params.loanType] *spot margin only* 'normal', 'autoLoan', 'autoRepay', or 'autoLoanAndRepay' default is 'normal'
|
|
293
|
+
* @param {string} [params.holdSide] *contract stopLossPrice, takeProfitPrice only* Two-way position: ('long' or 'short'), one-way position: ('buy' or 'sell')
|
|
294
|
+
* @param {float} [params.stopLoss.price] *swap only* the execution price for a stop loss attached to a trigger order
|
|
295
|
+
* @param {float} [params.takeProfit.price] *swap only* the execution price for a take profit attached to a trigger order
|
|
296
|
+
* @param {string} [params.stopLoss.type] *swap only* the type for a stop loss attached to a trigger order, 'fill_price', 'index_price' or 'mark_price', default is 'mark_price'
|
|
297
|
+
* @param {string} [params.takeProfit.type] *swap only* the type for a take profit attached to a trigger order, 'fill_price', 'index_price' or 'mark_price', default is 'mark_price'
|
|
298
|
+
* @param {string} [params.trailingPercent] *swap and future only* the percent to trail away from the current market price, rate can not be greater than 10
|
|
299
|
+
* @param {string} [params.trailingTriggerPrice] *swap and future only* the price to trigger a trailing stop order, default uses the price argument
|
|
300
|
+
* @param {string} [params.triggerType] *swap and future only* 'fill_price', 'mark_price' or 'index_price'
|
|
301
|
+
* @param {boolean} [params.oneWayMode] *swap and future only* required to set this to true in one_way_mode and you can leave this as undefined in hedge_mode, can adjust the mode using the setPositionMode() method
|
|
302
|
+
* @param {bool} [params.hedged] *swap and future only* true for hedged mode, false for one way mode, default is false
|
|
303
|
+
* @param {bool} [params.reduceOnly] true or false whether the order is reduce-only
|
|
304
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
305
|
+
*/
|
|
49
306
|
createOrder(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): Promise<Order>;
|
|
50
307
|
createOrderRequest(symbol: string, type: OrderType, side: OrderSide, amount: number, price?: Num, params?: {}): any;
|
|
308
|
+
/**
|
|
309
|
+
* @method
|
|
310
|
+
* @name bitget#createOrders
|
|
311
|
+
* @description create a list of trade orders (all orders should be of the same symbol)
|
|
312
|
+
* @see https://www.bitget.com/api-doc/spot/trade/Batch-Place-Orders
|
|
313
|
+
* @see https://www.bitget.com/api-doc/contract/trade/Batch-Order
|
|
314
|
+
* @see https://www.bitget.com/api-doc/margin/isolated/trade/Isolated-Batch-Order
|
|
315
|
+
* @see https://www.bitget.com/api-doc/margin/cross/trade/Cross-Batch-Order
|
|
316
|
+
* @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
|
|
317
|
+
* @param {object} [params] extra parameters specific to the api endpoint
|
|
318
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
319
|
+
*/
|
|
51
320
|
createOrders(orders: OrderRequest[], params?: {}): Promise<Order[]>;
|
|
321
|
+
/**
|
|
322
|
+
* @method
|
|
323
|
+
* @name bitget#editOrder
|
|
324
|
+
* @description edit a trade order
|
|
325
|
+
* @see https://www.bitget.com/api-doc/spot/plan/Modify-Plan-Order
|
|
326
|
+
* @see https://www.bitget.com/api-doc/contract/trade/Modify-Order
|
|
327
|
+
* @see https://www.bitget.com/api-doc/contract/plan/Modify-Tpsl-Order
|
|
328
|
+
* @see https://www.bitget.com/api-doc/contract/plan/Modify-Plan-Order
|
|
329
|
+
* @param {string} id cancel order id
|
|
330
|
+
* @param {string} symbol unified symbol of the market to create an order in
|
|
331
|
+
* @param {string} type 'market' or 'limit'
|
|
332
|
+
* @param {string} side 'buy' or 'sell'
|
|
333
|
+
* @param {float} amount how much you want to trade in units of the base currency
|
|
334
|
+
* @param {float} [price] the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
|
|
335
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
336
|
+
* @param {float} [params.triggerPrice] the price that a trigger order is triggered at
|
|
337
|
+
* @param {float} [params.stopLossPrice] *swap only* The price at which a stop loss order is triggered at
|
|
338
|
+
* @param {float} [params.takeProfitPrice] *swap only* The price at which a take profit order is triggered at
|
|
339
|
+
* @param {object} [params.takeProfit] *takeProfit object in params* containing the triggerPrice at which the attached take profit order will be triggered (perpetual swap markets only)
|
|
340
|
+
* @param {float} [params.takeProfit.triggerPrice] *swap only* take profit trigger price
|
|
341
|
+
* @param {object} [params.stopLoss] *stopLoss object in params* containing the triggerPrice at which the attached stop loss order will be triggered (perpetual swap markets only)
|
|
342
|
+
* @param {float} [params.stopLoss.triggerPrice] *swap only* stop loss trigger price
|
|
343
|
+
* @param {float} [params.stopLoss.price] *swap only* the execution price for a stop loss attached to a trigger order
|
|
344
|
+
* @param {float} [params.takeProfit.price] *swap only* the execution price for a take profit attached to a trigger order
|
|
345
|
+
* @param {string} [params.stopLoss.type] *swap only* the type for a stop loss attached to a trigger order, 'fill_price', 'index_price' or 'mark_price', default is 'mark_price'
|
|
346
|
+
* @param {string} [params.takeProfit.type] *swap only* the type for a take profit attached to a trigger order, 'fill_price', 'index_price' or 'mark_price', default is 'mark_price'
|
|
347
|
+
* @param {string} [params.trailingPercent] *swap and future only* the percent to trail away from the current market price, rate can not be greater than 10
|
|
348
|
+
* @param {string} [params.trailingTriggerPrice] *swap and future only* the price to trigger a trailing stop order, default uses the price argument
|
|
349
|
+
* @param {string} [params.newTriggerType] *swap and future only* 'fill_price', 'mark_price' or 'index_price'
|
|
350
|
+
* @returns {object} an [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
351
|
+
*/
|
|
52
352
|
editOrder(id: string, symbol: string, type: OrderType, side: OrderSide, amount?: Num, price?: Num, params?: {}): Promise<Order>;
|
|
353
|
+
/**
|
|
354
|
+
* @method
|
|
355
|
+
* @name bitget#cancelOrder
|
|
356
|
+
* @description cancels an open order
|
|
357
|
+
* @see https://www.bitget.com/api-doc/spot/trade/Cancel-Order
|
|
358
|
+
* @see https://www.bitget.com/api-doc/spot/plan/Cancel-Plan-Order
|
|
359
|
+
* @see https://www.bitget.com/api-doc/contract/trade/Cancel-Order
|
|
360
|
+
* @see https://www.bitget.com/api-doc/contract/plan/Cancel-Plan-Order
|
|
361
|
+
* @see https://www.bitget.com/api-doc/margin/cross/trade/Cross-Cancel-Order
|
|
362
|
+
* @see https://www.bitget.com/api-doc/margin/isolated/trade/Isolated-Cancel-Order
|
|
363
|
+
* @param {string} id order id
|
|
364
|
+
* @param {string} symbol unified symbol of the market the order was made in
|
|
365
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
366
|
+
* @param {string} [params.marginMode] 'isolated' or 'cross' for spot margin trading
|
|
367
|
+
* @param {boolean} [params.stop] set to true for canceling trigger orders
|
|
368
|
+
* @param {string} [params.planType] *swap only* either profit_plan, loss_plan, normal_plan, pos_profit, pos_loss, moving_plan or track_plan
|
|
369
|
+
* @param {boolean} [params.trailing] set to true if you want to cancel a trailing order
|
|
370
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
371
|
+
*/
|
|
53
372
|
cancelOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
|
|
373
|
+
/**
|
|
374
|
+
* @method
|
|
375
|
+
* @name bitget#cancelOrders
|
|
376
|
+
* @description cancel multiple orders
|
|
377
|
+
* @see https://www.bitget.com/api-doc/spot/trade/Batch-Cancel-Orders
|
|
378
|
+
* @see https://www.bitget.com/api-doc/contract/trade/Batch-Cancel-Orders
|
|
379
|
+
* @see https://www.bitget.com/api-doc/contract/plan/Cancel-Plan-Order
|
|
380
|
+
* @see https://www.bitget.com/api-doc/margin/cross/trade/Cross-Batch-Cancel-Order
|
|
381
|
+
* @see https://www.bitget.com/api-doc/margin/isolated/trade/Isolated-Batch-Cancel-Orders
|
|
382
|
+
* @param {string[]} ids order ids
|
|
383
|
+
* @param {string} symbol unified market symbol, default is undefined
|
|
384
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
385
|
+
* @param {string} [params.marginMode] 'isolated' or 'cross' for spot margin trading
|
|
386
|
+
* @param {boolean} [params.stop] *contract only* set to true for canceling trigger orders
|
|
387
|
+
* @returns {object} an array of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
388
|
+
*/
|
|
54
389
|
cancelOrders(ids: any, symbol?: Str, params?: {}): Promise<Order[]>;
|
|
390
|
+
/**
|
|
391
|
+
* @method
|
|
392
|
+
* @name bitget#cancelAllOrders
|
|
393
|
+
* @description cancel all open orders
|
|
394
|
+
* @see https://www.bitget.com/api-doc/spot/trade/Cancel-Symbol-Orders
|
|
395
|
+
* @see https://www.bitget.com/api-doc/spot/plan/Batch-Cancel-Plan-Order
|
|
396
|
+
* @see https://www.bitget.com/api-doc/contract/trade/Batch-Cancel-Orders
|
|
397
|
+
* @see https://bitgetlimited.github.io/apidoc/en/margin/#isolated-batch-cancel-orders
|
|
398
|
+
* @see https://bitgetlimited.github.io/apidoc/en/margin/#cross-batch-cancel-order
|
|
399
|
+
* @param {string} symbol unified market symbol
|
|
400
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
401
|
+
* @param {string} [params.marginMode] 'isolated' or 'cross' for spot margin trading
|
|
402
|
+
* @param {boolean} [params.stop] *contract only* set to true for canceling trigger orders
|
|
403
|
+
* @returns {object[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
404
|
+
*/
|
|
55
405
|
cancelAllOrders(symbol?: Str, params?: {}): Promise<Order[]>;
|
|
406
|
+
/**
|
|
407
|
+
* @method
|
|
408
|
+
* @name bitget#fetchOrder
|
|
409
|
+
* @description fetches information on an order made by the user
|
|
410
|
+
* @see https://www.bitget.com/api-doc/spot/trade/Get-Order-Info
|
|
411
|
+
* @see https://www.bitget.com/api-doc/contract/trade/Get-Order-Details
|
|
412
|
+
* @param {string} id the order id
|
|
413
|
+
* @param {string} symbol unified symbol of the market the order was made in
|
|
414
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
415
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
416
|
+
*/
|
|
56
417
|
fetchOrder(id: string, symbol?: Str, params?: {}): Promise<Order>;
|
|
418
|
+
/**
|
|
419
|
+
* @method
|
|
420
|
+
* @name bitget#fetchOpenOrders
|
|
421
|
+
* @description fetch all unfilled currently open orders
|
|
422
|
+
* @see https://www.bitget.com/api-doc/spot/trade/Get-Unfilled-Orders
|
|
423
|
+
* @see https://www.bitget.com/api-doc/spot/plan/Get-Current-Plan-Order
|
|
424
|
+
* @see https://www.bitget.com/api-doc/contract/trade/Get-Orders-Pending
|
|
425
|
+
* @see https://www.bitget.com/api-doc/contract/plan/get-orders-plan-pending
|
|
426
|
+
* @see https://www.bitget.com/api-doc/margin/cross/trade/Get-Cross-Open-Orders
|
|
427
|
+
* @see https://www.bitget.com/api-doc/margin/isolated/trade/Isolated-Open-Orders
|
|
428
|
+
* @param {string} symbol unified market symbol
|
|
429
|
+
* @param {int} [since] the earliest time in ms to fetch open orders for
|
|
430
|
+
* @param {int} [limit] the maximum number of open order structures to retrieve
|
|
431
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
432
|
+
* @param {int} [params.until] the latest time in ms to fetch orders for
|
|
433
|
+
* @param {string} [params.planType] *contract stop only* 'normal_plan': average trigger order, 'profit_loss': opened tp/sl orders, 'track_plan': trailing stop order, default is 'normal_plan'
|
|
434
|
+
* @param {boolean} [params.stop] set to true for fetching trigger orders
|
|
435
|
+
* @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)
|
|
436
|
+
* @param {string} [params.isPlan] *swap only* 'plan' for stop orders and 'profit_loss' for tp/sl orders, default is 'plan'
|
|
437
|
+
* @param {boolean} [params.trailing] set to true if you want to fetch trailing orders
|
|
438
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
439
|
+
*/
|
|
57
440
|
fetchOpenOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
441
|
+
/**
|
|
442
|
+
* @method
|
|
443
|
+
* @name bitget#fetchClosedOrders
|
|
444
|
+
* @description fetches information on multiple closed orders made by the user
|
|
445
|
+
* @see https://www.bitget.com/api-doc/spot/trade/Get-History-Orders
|
|
446
|
+
* @see https://www.bitget.com/api-doc/spot/plan/Get-History-Plan-Order
|
|
447
|
+
* @see https://www.bitget.com/api-doc/contract/trade/Get-Orders-History
|
|
448
|
+
* @see https://www.bitget.com/api-doc/contract/plan/orders-plan-history
|
|
449
|
+
* @see https://www.bitget.com/api-doc/margin/cross/trade/Get-Cross-Order-History
|
|
450
|
+
* @see https://www.bitget.com/api-doc/margin/isolated/trade/Get-Isolated-Order-History
|
|
451
|
+
* @param {string} symbol unified market symbol of the closed orders
|
|
452
|
+
* @param {int} [since] timestamp in ms of the earliest order
|
|
453
|
+
* @param {int} [limit] the max number of closed orders to return
|
|
454
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
455
|
+
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
456
|
+
* @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)
|
|
457
|
+
* @param {string} [params.isPlan] *swap only* 'plan' for stop orders and 'profit_loss' for tp/sl orders, default is 'plan'
|
|
458
|
+
* @param {string} [params.productType] *contract only* 'USDT-FUTURES', 'USDC-FUTURES', 'COIN-FUTURES', 'SUSDT-FUTURES', 'SUSDC-FUTURES' or 'SCOIN-FUTURES'
|
|
459
|
+
* @param {boolean} [params.trailing] set to true if you want to fetch trailing orders
|
|
460
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
461
|
+
*/
|
|
58
462
|
fetchClosedOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
463
|
+
/**
|
|
464
|
+
* @method
|
|
465
|
+
* @name bitget#fetchCanceledOrders
|
|
466
|
+
* @description fetches information on multiple canceled orders made by the user
|
|
467
|
+
* @see https://www.bitget.com/api-doc/spot/trade/Get-History-Orders
|
|
468
|
+
* @see https://www.bitget.com/api-doc/spot/plan/Get-History-Plan-Order
|
|
469
|
+
* @see https://www.bitget.com/api-doc/contract/trade/Get-Orders-History
|
|
470
|
+
* @see https://www.bitget.com/api-doc/contract/plan/orders-plan-history
|
|
471
|
+
* @see https://www.bitget.com/api-doc/margin/cross/trade/Get-Cross-Order-History
|
|
472
|
+
* @see https://www.bitget.com/api-doc/margin/isolated/trade/Get-Isolated-Order-History
|
|
473
|
+
* @param {string} symbol unified market symbol of the canceled orders
|
|
474
|
+
* @param {int} [since] timestamp in ms of the earliest order
|
|
475
|
+
* @param {int} [limit] the max number of canceled orders to return
|
|
476
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
477
|
+
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
478
|
+
* @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)
|
|
479
|
+
* @param {string} [params.isPlan] *swap only* 'plan' for stop orders and 'profit_loss' for tp/sl orders, default is 'plan'
|
|
480
|
+
* @param {string} [params.productType] *contract only* 'USDT-FUTURES', 'USDC-FUTURES', 'COIN-FUTURES', 'SUSDT-FUTURES', 'SUSDC-FUTURES' or 'SCOIN-FUTURES'
|
|
481
|
+
* @param {boolean} [params.trailing] set to true if you want to fetch trailing orders
|
|
482
|
+
* @returns {object} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
483
|
+
*/
|
|
59
484
|
fetchCanceledOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
485
|
+
/**
|
|
486
|
+
* @method
|
|
487
|
+
* @name bitget#fetchCanceledAndClosedOrders
|
|
488
|
+
* @see https://www.bitget.com/api-doc/spot/trade/Get-History-Orders
|
|
489
|
+
* @see https://www.bitget.com/api-doc/spot/plan/Get-History-Plan-Order
|
|
490
|
+
* @see https://www.bitget.com/api-doc/contract/trade/Get-Orders-History
|
|
491
|
+
* @see https://www.bitget.com/api-doc/contract/plan/orders-plan-history
|
|
492
|
+
* @see https://www.bitget.com/api-doc/margin/cross/trade/Get-Cross-Order-History
|
|
493
|
+
* @see https://www.bitget.com/api-doc/margin/isolated/trade/Get-Isolated-Order-History
|
|
494
|
+
* @description fetches information on multiple canceled and closed orders made by the user
|
|
495
|
+
* @param {string} symbol unified market symbol of the market orders were made in
|
|
496
|
+
* @param {int} [since] the earliest time in ms to fetch orders for
|
|
497
|
+
* @param {int} [limit] the maximum number of order structures to retrieve
|
|
498
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
499
|
+
* @returns {Order[]} a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
500
|
+
*/
|
|
60
501
|
fetchCanceledAndClosedOrders(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Order[]>;
|
|
502
|
+
/**
|
|
503
|
+
* @method
|
|
504
|
+
* @name bitget#fetchLedger
|
|
505
|
+
* @description fetch the history of changes, actions done by the user or operations that altered the balance of the user
|
|
506
|
+
* @see https://www.bitget.com/api-doc/spot/account/Get-Account-Bills
|
|
507
|
+
* @see https://www.bitget.com/api-doc/contract/account/Get-Account-Bill
|
|
508
|
+
* @param {string} [code] unified currency code, default is undefined
|
|
509
|
+
* @param {int} [since] timestamp in ms of the earliest ledger entry, default is undefined
|
|
510
|
+
* @param {int} [limit] max number of ledger entries to return, default is undefined
|
|
511
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
512
|
+
* @param {int} [params.until] end time in ms
|
|
513
|
+
* @param {string} [params.symbol] *contract only* unified market symbol
|
|
514
|
+
* @param {string} [params.productType] *contract only* 'USDT-FUTURES', 'USDC-FUTURES', 'COIN-FUTURES', 'SUSDT-FUTURES', 'SUSDC-FUTURES' or 'SCOIN-FUTURES'
|
|
515
|
+
* @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)
|
|
516
|
+
* @returns {object} a [ledger structure]{@link https://docs.ccxt.com/#/?id=ledger-structure}
|
|
517
|
+
*/
|
|
61
518
|
fetchLedger(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<LedgerEntry[]>;
|
|
62
519
|
parseLedgerEntry(item: Dict, currency?: Currency): LedgerEntry;
|
|
63
520
|
parseLedgerType(type: any): string;
|
|
521
|
+
/**
|
|
522
|
+
* @method
|
|
523
|
+
* @name bitget#fetchMyTrades
|
|
524
|
+
* @description fetch all trades made by the user
|
|
525
|
+
* @see https://www.bitget.com/api-doc/spot/trade/Get-Fills
|
|
526
|
+
* @see https://www.bitget.com/api-doc/contract/trade/Get-Order-Fills
|
|
527
|
+
* @see https://www.bitget.com/api-doc/margin/cross/trade/Get-Cross-Order-Fills
|
|
528
|
+
* @see https://www.bitget.com/api-doc/margin/isolated/trade/Get-Isolated-Transaction-Details
|
|
529
|
+
* @param {string} symbol unified market symbol
|
|
530
|
+
* @param {int} [since] the earliest time in ms to fetch trades for
|
|
531
|
+
* @param {int} [limit] the maximum number of trades structures to retrieve
|
|
532
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
533
|
+
* @param {int} [params.until] the latest time in ms to fetch trades for
|
|
534
|
+
* @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)
|
|
535
|
+
* @returns {Trade[]} a list of [trade structures]{@link https://docs.ccxt.com/#/?id=trade-structure}
|
|
536
|
+
*/
|
|
64
537
|
fetchMyTrades(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Trade[]>;
|
|
538
|
+
/**
|
|
539
|
+
* @method
|
|
540
|
+
* @name bitget#fetchPosition
|
|
541
|
+
* @description fetch data on a single open contract trade position
|
|
542
|
+
* @see https://www.bitget.com/api-doc/contract/position/get-single-position
|
|
543
|
+
* @param {string} symbol unified market symbol of the market the position is held in
|
|
544
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
545
|
+
* @returns {object} a [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
|
|
546
|
+
*/
|
|
65
547
|
fetchPosition(symbol: string, params?: {}): Promise<Position>;
|
|
548
|
+
/**
|
|
549
|
+
* @method
|
|
550
|
+
* @name bitget#fetchPositions
|
|
551
|
+
* @description fetch all open positions
|
|
552
|
+
* @see https://www.bitget.com/api-doc/contract/position/get-all-position
|
|
553
|
+
* @see https://www.bitget.com/api-doc/contract/position/Get-History-Position
|
|
554
|
+
* @param {string[]} [symbols] list of unified market symbols
|
|
555
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
556
|
+
* @param {string} [params.marginCoin] the settle currency of the positions, needs to match the productType
|
|
557
|
+
* @param {string} [params.productType] 'USDT-FUTURES', 'USDC-FUTURES', 'COIN-FUTURES', 'SUSDT-FUTURES', 'SUSDC-FUTURES' or 'SCOIN-FUTURES'
|
|
558
|
+
* @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)
|
|
559
|
+
* @param {boolean} [params.useHistoryEndpoint] default false, when true will use the historic endpoint to fetch positions
|
|
560
|
+
* @param {string} [params.method] either (default) 'privateMixGetV2MixPositionAllPosition' or 'privateMixGetV2MixPositionHistoryPosition'
|
|
561
|
+
* @returns {object[]} a list of [position structure]{@link https://docs.ccxt.com/#/?id=position-structure}
|
|
562
|
+
*/
|
|
66
563
|
fetchPositions(symbols?: Strings, params?: {}): Promise<Position[]>;
|
|
67
564
|
parsePosition(position: Dict, market?: Market): Position;
|
|
565
|
+
/**
|
|
566
|
+
* @method
|
|
567
|
+
* @name bitget#fetchFundingRateHistory
|
|
568
|
+
* @description fetches historical funding rate prices
|
|
569
|
+
* @see https://www.bitget.com/api-doc/contract/market/Get-History-Funding-Rate
|
|
570
|
+
* @param {string} symbol unified symbol of the market to fetch the funding rate history for
|
|
571
|
+
* @param {int} [since] timestamp in ms of the earliest funding rate to fetch
|
|
572
|
+
* @param {int} [limit] the maximum amount of funding rate structures to fetch
|
|
573
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
574
|
+
* @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)
|
|
575
|
+
* @returns {object[]} a list of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rate-history-structure}
|
|
576
|
+
*/
|
|
68
577
|
fetchFundingRateHistory(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<FundingRateHistory[]>;
|
|
578
|
+
/**
|
|
579
|
+
* @method
|
|
580
|
+
* @name bitget#fetchFundingRate
|
|
581
|
+
* @description fetch the current funding rate
|
|
582
|
+
* @see https://www.bitget.com/api-doc/contract/market/Get-Current-Funding-Rate
|
|
583
|
+
* @param {string} symbol unified market symbol
|
|
584
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
585
|
+
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
|
|
586
|
+
*/
|
|
69
587
|
fetchFundingRate(symbol: string, params?: {}): Promise<FundingRate>;
|
|
588
|
+
/**
|
|
589
|
+
* @method
|
|
590
|
+
* @name bitget#fetchFundingRates
|
|
591
|
+
* @description fetch the current funding rates for all markets
|
|
592
|
+
* @see https://www.bitget.com/api-doc/contract/market/Get-All-Symbol-Ticker
|
|
593
|
+
* @param {string[]} [symbols] list of unified market symbols
|
|
594
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
595
|
+
* @param {string} [params.subType] *contract only* 'linear', 'inverse'
|
|
596
|
+
* @param {string} [params.productType] *contract only* 'USDT-FUTURES', 'USDC-FUTURES', 'COIN-FUTURES', 'SUSDT-FUTURES', 'SUSDC-FUTURES' or 'SCOIN-FUTURES'
|
|
597
|
+
* @returns {object} a dictionary of [funding rate structures]{@link https://docs.ccxt.com/#/?id=funding-rates-structure}, indexed by market symbols
|
|
598
|
+
*/
|
|
70
599
|
fetchFundingRates(symbols?: Strings, params?: {}): Promise<FundingRates>;
|
|
71
600
|
parseFundingRate(contract: any, market?: Market): FundingRate;
|
|
601
|
+
/**
|
|
602
|
+
* @method
|
|
603
|
+
* @name bitget#fetchFundingHistory
|
|
604
|
+
* @description fetch the funding history
|
|
605
|
+
* @see https://www.bitget.com/api-doc/contract/account/Get-Account-Bill
|
|
606
|
+
* @param {string} symbol unified market symbol
|
|
607
|
+
* @param {int} [since] the starting timestamp in milliseconds
|
|
608
|
+
* @param {int} [limit] the number of entries to return
|
|
609
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
610
|
+
* @param {int} [params.until] the latest time in ms to fetch funding history for
|
|
611
|
+
* @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)
|
|
612
|
+
* @returns {object[]} a list of [funding history structures]{@link https://docs.ccxt.com/#/?id=funding-history-structure}
|
|
613
|
+
*/
|
|
72
614
|
fetchFundingHistory(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<FundingHistory[]>;
|
|
73
615
|
parseFundingHistory(contract: any, market?: Market): {
|
|
74
616
|
info: any;
|
|
@@ -82,21 +624,136 @@ export default class bitget extends Exchange {
|
|
|
82
624
|
parseFundingHistories(contracts: any, market?: any, since?: Int, limit?: Int): FundingHistory[];
|
|
83
625
|
modifyMarginHelper(symbol: string, amount: any, type: any, params?: {}): Promise<MarginModification>;
|
|
84
626
|
parseMarginModification(data: Dict, market?: Market): MarginModification;
|
|
627
|
+
/**
|
|
628
|
+
* @method
|
|
629
|
+
* @name bitget#reduceMargin
|
|
630
|
+
* @description remove margin from a position
|
|
631
|
+
* @see https://www.bitget.com/api-doc/contract/account/Change-Margin
|
|
632
|
+
* @param {string} symbol unified market symbol
|
|
633
|
+
* @param {float} amount the amount of margin to remove
|
|
634
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
635
|
+
* @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=reduce-margin-structure}
|
|
636
|
+
*/
|
|
85
637
|
reduceMargin(symbol: string, amount: number, params?: {}): Promise<MarginModification>;
|
|
638
|
+
/**
|
|
639
|
+
* @method
|
|
640
|
+
* @name bitget#addMargin
|
|
641
|
+
* @description add margin
|
|
642
|
+
* @see https://www.bitget.com/api-doc/contract/account/Change-Margin
|
|
643
|
+
* @param {string} symbol unified market symbol
|
|
644
|
+
* @param {float} amount the amount of margin to add
|
|
645
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
646
|
+
* @returns {object} a [margin structure]{@link https://docs.ccxt.com/#/?id=add-margin-structure}
|
|
647
|
+
*/
|
|
86
648
|
addMargin(symbol: string, amount: number, params?: {}): Promise<MarginModification>;
|
|
649
|
+
/**
|
|
650
|
+
* @method
|
|
651
|
+
* @name bitget#fetchLeverage
|
|
652
|
+
* @description fetch the set leverage for a market
|
|
653
|
+
* @see https://www.bitget.com/api-doc/contract/account/Get-Single-Account
|
|
654
|
+
* @param {string} symbol unified market symbol
|
|
655
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
656
|
+
* @returns {object} a [leverage structure]{@link https://docs.ccxt.com/#/?id=leverage-structure}
|
|
657
|
+
*/
|
|
87
658
|
fetchLeverage(symbol: string, params?: {}): Promise<Leverage>;
|
|
88
659
|
parseLeverage(leverage: Dict, market?: Market): Leverage;
|
|
660
|
+
/**
|
|
661
|
+
* @method
|
|
662
|
+
* @name bitget#setLeverage
|
|
663
|
+
* @description set the level of leverage for a market
|
|
664
|
+
* @see https://www.bitget.com/api-doc/contract/account/Change-Leverage
|
|
665
|
+
* @param {int} leverage the rate of leverage
|
|
666
|
+
* @param {string} symbol unified market symbol
|
|
667
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
668
|
+
* @param {string} [params.holdSide] *isolated only* position direction, 'long' or 'short'
|
|
669
|
+
* @returns {object} response from the exchange
|
|
670
|
+
*/
|
|
89
671
|
setLeverage(leverage: Int, symbol?: Str, params?: {}): Promise<any>;
|
|
672
|
+
/**
|
|
673
|
+
* @method
|
|
674
|
+
* @name bitget#setMarginMode
|
|
675
|
+
* @description set margin mode to 'cross' or 'isolated'
|
|
676
|
+
* @see https://www.bitget.com/api-doc/contract/account/Change-Margin-Mode
|
|
677
|
+
* @param {string} marginMode 'cross' or 'isolated'
|
|
678
|
+
* @param {string} symbol unified market symbol
|
|
679
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
680
|
+
* @returns {object} response from the exchange
|
|
681
|
+
*/
|
|
90
682
|
setMarginMode(marginMode: string, symbol?: Str, params?: {}): Promise<any>;
|
|
683
|
+
/**
|
|
684
|
+
* @method
|
|
685
|
+
* @name bitget#setPositionMode
|
|
686
|
+
* @description set hedged to true or false for a market
|
|
687
|
+
* @see https://www.bitget.com/api-doc/contract/account/Change-Hold-Mode
|
|
688
|
+
* @param {bool} hedged set to true to use dualSidePosition
|
|
689
|
+
* @param {string} symbol not used by bitget setPositionMode ()
|
|
690
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
691
|
+
* @param {string} [params.productType] required if symbol is undefined: 'USDT-FUTURES', 'USDC-FUTURES', 'COIN-FUTURES', 'SUSDT-FUTURES', 'SUSDC-FUTURES' or 'SCOIN-FUTURES'
|
|
692
|
+
* @returns {object} response from the exchange
|
|
693
|
+
*/
|
|
91
694
|
setPositionMode(hedged: boolean, symbol?: Str, params?: {}): Promise<any>;
|
|
695
|
+
/**
|
|
696
|
+
* @method
|
|
697
|
+
* @name bitget#fetchOpenInterest
|
|
698
|
+
* @description retrieves the open interest of a contract trading pair
|
|
699
|
+
* @see https://www.bitget.com/api-doc/contract/market/Get-Open-Interest
|
|
700
|
+
* @param {string} symbol unified CCXT market symbol
|
|
701
|
+
* @param {object} [params] exchange specific parameters
|
|
702
|
+
* @returns {object} an open interest structure{@link https://docs.ccxt.com/#/?id=open-interest-structure}
|
|
703
|
+
*/
|
|
92
704
|
fetchOpenInterest(symbol: string, params?: {}): Promise<import("./base/types.js").OpenInterest>;
|
|
93
705
|
parseOpenInterest(interest: any, market?: Market): import("./base/types.js").OpenInterest;
|
|
706
|
+
/**
|
|
707
|
+
* @method
|
|
708
|
+
* @name bitget#fetchTransfers
|
|
709
|
+
* @description fetch a history of internal transfers made on an account
|
|
710
|
+
* @see https://www.bitget.com/api-doc/spot/account/Get-Account-TransferRecords
|
|
711
|
+
* @param {string} code unified currency code of the currency transferred
|
|
712
|
+
* @param {int} [since] the earliest time in ms to fetch transfers for
|
|
713
|
+
* @param {int} [limit] the maximum number of transfers structures to retrieve
|
|
714
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
715
|
+
* @param {int} [params.until] the latest time in ms to fetch entries for
|
|
716
|
+
* @returns {object[]} a list of [transfer structures]{@link https://docs.ccxt.com/#/?id=transfer-structure}
|
|
717
|
+
*/
|
|
94
718
|
fetchTransfers(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<TransferEntry[]>;
|
|
719
|
+
/**
|
|
720
|
+
* @method
|
|
721
|
+
* @name bitget#transfer
|
|
722
|
+
* @description transfer currency internally between wallets on the same account
|
|
723
|
+
* @see https://www.bitget.com/api-doc/spot/account/Wallet-Transfer
|
|
724
|
+
* @param {string} code unified currency code
|
|
725
|
+
* @param {float} amount amount to transfer
|
|
726
|
+
* @param {string} fromAccount account to transfer from
|
|
727
|
+
* @param {string} toAccount account to transfer to
|
|
728
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
729
|
+
* @param {string} [params.symbol] unified CCXT market symbol, required when transferring to or from an account type that is a leveraged position-by-position account
|
|
730
|
+
* @param {string} [params.clientOid] custom id
|
|
731
|
+
* @returns {object} a [transfer structure]{@link https://docs.ccxt.com/#/?id=transfer-structure}
|
|
732
|
+
*/
|
|
95
733
|
transfer(code: string, amount: number, fromAccount: string, toAccount: string, params?: {}): Promise<TransferEntry>;
|
|
96
734
|
parseTransfer(transfer: Dict, currency?: Currency): TransferEntry;
|
|
97
735
|
parseTransferStatus(status: Str): Str;
|
|
98
736
|
parseDepositWithdrawFee(fee: any, currency?: Currency): Dict;
|
|
737
|
+
/**
|
|
738
|
+
* @method
|
|
739
|
+
* @name bitget#fetchDepositWithdrawFees
|
|
740
|
+
* @description fetch deposit and withdraw fees
|
|
741
|
+
* @see https://www.bitget.com/api-doc/spot/market/Get-Coin-List
|
|
742
|
+
* @param {string[]|undefined} codes list of unified currency codes
|
|
743
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
744
|
+
* @returns {object} a list of [fee structures]{@link https://docs.ccxt.com/#/?id=fee-structure}
|
|
745
|
+
*/
|
|
99
746
|
fetchDepositWithdrawFees(codes?: Strings, params?: {}): Promise<any>;
|
|
747
|
+
/**
|
|
748
|
+
* @method
|
|
749
|
+
* @name bitget#borrowCrossMargin
|
|
750
|
+
* @description create a loan to borrow margin
|
|
751
|
+
* @see https://www.bitget.com/api-doc/margin/cross/account/Cross-Borrow
|
|
752
|
+
* @param {string} code unified currency code of the currency to borrow
|
|
753
|
+
* @param {string} amount the amount to borrow
|
|
754
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
755
|
+
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/#/?id=margin-loan-structure}
|
|
756
|
+
*/
|
|
100
757
|
borrowCrossMargin(code: string, amount: number, params?: {}): Promise<{
|
|
101
758
|
id: string;
|
|
102
759
|
currency: string;
|
|
@@ -106,6 +763,17 @@ export default class bitget extends Exchange {
|
|
|
106
763
|
datetime: any;
|
|
107
764
|
info: any;
|
|
108
765
|
}>;
|
|
766
|
+
/**
|
|
767
|
+
* @method
|
|
768
|
+
* @name bitget#borrowIsolatedMargin
|
|
769
|
+
* @description create a loan to borrow margin
|
|
770
|
+
* @see https://www.bitget.com/api-doc/margin/isolated/account/Isolated-Borrow
|
|
771
|
+
* @param {string} symbol unified market symbol
|
|
772
|
+
* @param {string} code unified currency code of the currency to borrow
|
|
773
|
+
* @param {string} amount the amount to borrow
|
|
774
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
775
|
+
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/#/?id=margin-loan-structure}
|
|
776
|
+
*/
|
|
109
777
|
borrowIsolatedMargin(symbol: string, code: string, amount: number, params?: {}): Promise<{
|
|
110
778
|
id: string;
|
|
111
779
|
currency: string;
|
|
@@ -115,6 +783,17 @@ export default class bitget extends Exchange {
|
|
|
115
783
|
datetime: any;
|
|
116
784
|
info: any;
|
|
117
785
|
}>;
|
|
786
|
+
/**
|
|
787
|
+
* @method
|
|
788
|
+
* @name bitget#repayIsolatedMargin
|
|
789
|
+
* @description repay borrowed margin and interest
|
|
790
|
+
* @see https://www.bitget.com/api-doc/margin/isolated/account/Isolated-Repay
|
|
791
|
+
* @param {string} symbol unified market symbol
|
|
792
|
+
* @param {string} code unified currency code of the currency to repay
|
|
793
|
+
* @param {string} amount the amount to repay
|
|
794
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
795
|
+
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/#/?id=margin-loan-structure}
|
|
796
|
+
*/
|
|
118
797
|
repayIsolatedMargin(symbol: string, code: string, amount: any, params?: {}): Promise<{
|
|
119
798
|
id: string;
|
|
120
799
|
currency: string;
|
|
@@ -124,6 +803,16 @@ export default class bitget extends Exchange {
|
|
|
124
803
|
datetime: any;
|
|
125
804
|
info: any;
|
|
126
805
|
}>;
|
|
806
|
+
/**
|
|
807
|
+
* @method
|
|
808
|
+
* @name bitget#repayCrossMargin
|
|
809
|
+
* @description repay borrowed margin and interest
|
|
810
|
+
* @see https://www.bitget.com/api-doc/margin/cross/account/Cross-Repay
|
|
811
|
+
* @param {string} code unified currency code of the currency to repay
|
|
812
|
+
* @param {string} amount the amount to repay
|
|
813
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
814
|
+
* @returns {object} a [margin loan structure]{@link https://docs.ccxt.com/#/?id=margin-loan-structure}
|
|
815
|
+
*/
|
|
127
816
|
repayCrossMargin(code: string, amount: any, params?: {}): Promise<{
|
|
128
817
|
id: string;
|
|
129
818
|
currency: string;
|
|
@@ -142,10 +831,44 @@ export default class bitget extends Exchange {
|
|
|
142
831
|
datetime: any;
|
|
143
832
|
info: any;
|
|
144
833
|
};
|
|
834
|
+
/**
|
|
835
|
+
* @method
|
|
836
|
+
* @name bitget#fetchMyLiquidations
|
|
837
|
+
* @description retrieves the users liquidated positions
|
|
838
|
+
* @see https://www.bitget.com/api-doc/margin/cross/record/Get-Cross-Liquidation-Records
|
|
839
|
+
* @see https://www.bitget.com/api-doc/margin/isolated/record/Get-Isolated-Liquidation-Records
|
|
840
|
+
* @param {string} [symbol] unified CCXT market symbol
|
|
841
|
+
* @param {int} [since] the earliest time in ms to fetch liquidations for
|
|
842
|
+
* @param {int} [limit] the maximum number of liquidation structures to retrieve
|
|
843
|
+
* @param {object} [params] exchange specific parameters for the bitget api endpoint
|
|
844
|
+
* @param {int} [params.until] timestamp in ms of the latest liquidation
|
|
845
|
+
* @param {string} [params.marginMode] 'cross' or 'isolated' default value is 'cross'
|
|
846
|
+
* @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)
|
|
847
|
+
* @returns {object} an array of [liquidation structures]{@link https://docs.ccxt.com/#/?id=liquidation-structure}
|
|
848
|
+
*/
|
|
145
849
|
fetchMyLiquidations(symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<Liquidation[]>;
|
|
146
850
|
parseLiquidation(liquidation: any, market?: Market): Liquidation;
|
|
851
|
+
/**
|
|
852
|
+
* @method
|
|
853
|
+
* @name bitget#fetchIsolatedBorrowRate
|
|
854
|
+
* @description fetch the rate of interest to borrow a currency for margin trading
|
|
855
|
+
* @see https://www.bitget.com/api-doc/margin/isolated/account/Isolated-Margin-Interest-Rate-And-Max-Borrowable-Amount
|
|
856
|
+
* @param {string} symbol unified market symbol
|
|
857
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
858
|
+
* @returns {object} an [isolated borrow rate structure]{@link https://docs.ccxt.com/#/?id=isolated-borrow-rate-structure}
|
|
859
|
+
*/
|
|
147
860
|
fetchIsolatedBorrowRate(symbol: string, params?: {}): Promise<IsolatedBorrowRate>;
|
|
148
861
|
parseIsolatedBorrowRate(info: Dict, market?: Market): IsolatedBorrowRate;
|
|
862
|
+
/**
|
|
863
|
+
* @method
|
|
864
|
+
* @name bitget#fetchCrossBorrowRate
|
|
865
|
+
* @description fetch the rate of interest to borrow a currency for margin trading
|
|
866
|
+
* @see https://www.bitget.com/api-doc/margin/cross/account/Get-Cross-Margin-Interest-Rate-And-Borrowable
|
|
867
|
+
* @param {string} code unified currency code
|
|
868
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
869
|
+
* @param {string} [params.symbol] required for isolated margin
|
|
870
|
+
* @returns {object} a [borrow rate structure]{@link https://github.com/ccxt/ccxt/wiki/Manual#borrow-rate-structure}
|
|
871
|
+
*/
|
|
149
872
|
fetchCrossBorrowRate(code: string, params?: {}): Promise<CrossBorrowRate>;
|
|
150
873
|
parseBorrowRate(info: any, currency?: Currency): {
|
|
151
874
|
currency: string;
|
|
@@ -155,19 +878,142 @@ export default class bitget extends Exchange {
|
|
|
155
878
|
datetime: string;
|
|
156
879
|
info: any;
|
|
157
880
|
};
|
|
881
|
+
/**
|
|
882
|
+
* @method
|
|
883
|
+
* @name bitget#fetchBorrowInterest
|
|
884
|
+
* @description fetch the interest owed by the user for borrowing currency for margin trading
|
|
885
|
+
* @see https://www.bitget.com/api-doc/margin/cross/record/Get-Cross-Interest-Records
|
|
886
|
+
* @see https://www.bitget.com/api-doc/margin/isolated/record/Get-Isolated-Interest-Records
|
|
887
|
+
* @param {string} [code] unified currency code
|
|
888
|
+
* @param {string} [symbol] unified market symbol when fetching interest in isolated markets
|
|
889
|
+
* @param {int} [since] the earliest time in ms to fetch borrow interest for
|
|
890
|
+
* @param {int} [limit] the maximum number of structures to retrieve
|
|
891
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
892
|
+
* @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)
|
|
893
|
+
* @returns {object[]} a list of [borrow interest structures]{@link https://docs.ccxt.com/#/?id=borrow-interest-structure}
|
|
894
|
+
*/
|
|
158
895
|
fetchBorrowInterest(code?: Str, symbol?: Str, since?: Int, limit?: Int, params?: {}): Promise<BorrowInterest[]>;
|
|
159
896
|
parseBorrowInterest(info: Dict, market?: Market): BorrowInterest;
|
|
897
|
+
/**
|
|
898
|
+
* @method
|
|
899
|
+
* @name bitget#closePosition
|
|
900
|
+
* @description closes an open position for a market
|
|
901
|
+
* @see https://www.bitget.com/api-doc/contract/trade/Flash-Close-Position
|
|
902
|
+
* @param {string} symbol unified CCXT market symbol
|
|
903
|
+
* @param {string} [side] one-way mode: 'buy' or 'sell', hedge-mode: 'long' or 'short'
|
|
904
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
905
|
+
* @returns {object} An [order structure]{@link https://docs.ccxt.com/#/?id=order-structure}
|
|
906
|
+
*/
|
|
160
907
|
closePosition(symbol: string, side?: OrderSide, params?: {}): Promise<Order>;
|
|
908
|
+
/**
|
|
909
|
+
* @method
|
|
910
|
+
* @name bitget#closeAllPositions
|
|
911
|
+
* @description closes all open positions for a market type
|
|
912
|
+
* @see https://www.bitget.com/api-doc/contract/trade/Flash-Close-Position
|
|
913
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
914
|
+
* @param {string} [params.productType] 'USDT-FUTURES', 'USDC-FUTURES', 'COIN-FUTURES', 'SUSDT-FUTURES', 'SUSDC-FUTURES' or 'SCOIN-FUTURES'
|
|
915
|
+
* @returns {object[]} A list of [position structures]{@link https://docs.ccxt.com/#/?id=position-structure}
|
|
916
|
+
*/
|
|
161
917
|
closeAllPositions(params?: {}): Promise<Position[]>;
|
|
918
|
+
/**
|
|
919
|
+
* @method
|
|
920
|
+
* @name bitget#fetchMarginMode
|
|
921
|
+
* @description fetches the margin mode of a trading pair
|
|
922
|
+
* @see https://www.bitget.com/api-doc/contract/account/Get-Single-Account
|
|
923
|
+
* @param {string} symbol unified symbol of the market to fetch the margin mode for
|
|
924
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
925
|
+
* @returns {object} a [margin mode structure]{@link https://docs.ccxt.com/#/?id=margin-mode-structure}
|
|
926
|
+
*/
|
|
162
927
|
fetchMarginMode(symbol: string, params?: {}): Promise<MarginMode>;
|
|
163
928
|
parseMarginMode(marginMode: Dict, market?: any): MarginMode;
|
|
929
|
+
/**
|
|
930
|
+
* @method
|
|
931
|
+
* @name bitget#fetchPositionsHistory
|
|
932
|
+
* @description fetches historical positions
|
|
933
|
+
* @see https://www.bitget.com/api-doc/contract/position/Get-History-Position
|
|
934
|
+
* @param {string[]} [symbols] unified contract symbols
|
|
935
|
+
* @param {int} [since] timestamp in ms of the earliest position to fetch, default=3 months ago, max range for params["until"] - since is 3 months
|
|
936
|
+
* @param {int} [limit] the maximum amount of records to fetch, default=20, max=100
|
|
937
|
+
* @param {object} params extra parameters specific to the exchange api endpoint
|
|
938
|
+
* @param {int} [params.until] timestamp in ms of the latest position to fetch, max range for params["until"] - since is 3 months
|
|
939
|
+
*
|
|
940
|
+
* EXCHANGE SPECIFIC PARAMETERS
|
|
941
|
+
* @param {string} [params.productType] USDT-FUTURES (default), COIN-FUTURES, USDC-FUTURES, SUSDT-FUTURES, SCOIN-FUTURES, or SUSDC-FUTURES
|
|
942
|
+
* @returns {object[]} a list of [position structures]{@link https://docs.ccxt.com/#/?id=position-structure}
|
|
943
|
+
*/
|
|
164
944
|
fetchPositionsHistory(symbols?: Strings, since?: Int, limit?: Int, params?: {}): Promise<Position[]>;
|
|
945
|
+
/**
|
|
946
|
+
* @method
|
|
947
|
+
* @name bitget#fetchConvertQuote
|
|
948
|
+
* @description fetch a quote for converting from one currency to another
|
|
949
|
+
* @see https://www.bitget.com/api-doc/common/convert/Get-Quoted-Price
|
|
950
|
+
* @param {string} fromCode the currency that you want to sell and convert from
|
|
951
|
+
* @param {string} toCode the currency that you want to buy and convert into
|
|
952
|
+
* @param {float} [amount] how much you want to trade in units of the from currency
|
|
953
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
954
|
+
* @returns {object} a [conversion structure]{@link https://docs.ccxt.com/#/?id=conversion-structure}
|
|
955
|
+
*/
|
|
165
956
|
fetchConvertQuote(fromCode: string, toCode: string, amount?: Num, params?: {}): Promise<Conversion>;
|
|
957
|
+
/**
|
|
958
|
+
* @method
|
|
959
|
+
* @name bitget#createConvertTrade
|
|
960
|
+
* @description convert from one currency to another
|
|
961
|
+
* @see https://www.bitget.com/api-doc/common/convert/Trade
|
|
962
|
+
* @param {string} id the id of the trade that you want to make
|
|
963
|
+
* @param {string} fromCode the currency that you want to sell and convert from
|
|
964
|
+
* @param {string} toCode the currency that you want to buy and convert into
|
|
965
|
+
* @param {float} amount how much you want to trade in units of the from currency
|
|
966
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
967
|
+
* @param {string} params.price the price of the conversion, obtained from fetchConvertQuote()
|
|
968
|
+
* @param {string} params.toAmount the amount you want to trade in units of the toCurrency, obtained from fetchConvertQuote()
|
|
969
|
+
* @returns {object} a [conversion structure]{@link https://docs.ccxt.com/#/?id=conversion-structure}
|
|
970
|
+
*/
|
|
166
971
|
createConvertTrade(id: string, fromCode: string, toCode: string, amount?: Num, params?: {}): Promise<Conversion>;
|
|
972
|
+
/**
|
|
973
|
+
* @method
|
|
974
|
+
* @name bitget#fetchConvertTradeHistory
|
|
975
|
+
* @description fetch the users history of conversion trades
|
|
976
|
+
* @see https://www.bitget.com/api-doc/common/convert/Get-Convert-Record
|
|
977
|
+
* @param {string} [code] the unified currency code
|
|
978
|
+
* @param {int} [since] the earliest time in ms to fetch conversions for
|
|
979
|
+
* @param {int} [limit] the maximum number of conversion structures to retrieve
|
|
980
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
981
|
+
* @returns {object[]} a list of [conversion structures]{@link https://docs.ccxt.com/#/?id=conversion-structure}
|
|
982
|
+
*/
|
|
167
983
|
fetchConvertTradeHistory(code?: Str, since?: Int, limit?: Int, params?: {}): Promise<Conversion[]>;
|
|
168
984
|
parseConversion(conversion: Dict, fromCurrency?: Currency, toCurrency?: Currency): Conversion;
|
|
985
|
+
/**
|
|
986
|
+
* @method
|
|
987
|
+
* @name bitget#fetchConvertCurrencies
|
|
988
|
+
* @description fetches all available currencies that can be converted
|
|
989
|
+
* @see https://www.bitget.com/api-doc/common/convert/Get-Convert-Currencies
|
|
990
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
991
|
+
* @returns {object} an associative dictionary of currencies
|
|
992
|
+
*/
|
|
169
993
|
fetchConvertCurrencies(params?: {}): Promise<Currencies>;
|
|
994
|
+
/**
|
|
995
|
+
* @method
|
|
996
|
+
* @name bitget#fetchFundingInterval
|
|
997
|
+
* @description fetch the current funding rate interval
|
|
998
|
+
* @see https://www.bitget.com/api-doc/contract/market/Get-Symbol-Next-Funding-Time
|
|
999
|
+
* @param {string} symbol unified market symbol
|
|
1000
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1001
|
+
* @returns {object} a [funding rate structure]{@link https://docs.ccxt.com/#/?id=funding-rate-structure}
|
|
1002
|
+
*/
|
|
170
1003
|
fetchFundingInterval(symbol: string, params?: {}): Promise<FundingRate>;
|
|
1004
|
+
/**
|
|
1005
|
+
* @method
|
|
1006
|
+
* @name bitget#fetchLongShortRatioHistory
|
|
1007
|
+
* @description fetches the long short ratio history for a unified market symbol
|
|
1008
|
+
* @see https://www.bitget.com/api-doc/common/apidata/Margin-Ls-Ratio
|
|
1009
|
+
* @see https://www.bitget.com/api-doc/common/apidata/Account-Long-Short
|
|
1010
|
+
* @param {string} symbol unified symbol of the market to fetch the long short ratio for
|
|
1011
|
+
* @param {string} [timeframe] the period for the ratio
|
|
1012
|
+
* @param {int} [since] the earliest time in ms to fetch ratios for
|
|
1013
|
+
* @param {int} [limit] the maximum number of long short ratio structures to retrieve
|
|
1014
|
+
* @param {object} [params] extra parameters specific to the exchange API endpoint
|
|
1015
|
+
* @returns {object[]} an array of [long short ratio structures]{@link https://docs.ccxt.com/#/?id=long-short-ratio-structure}
|
|
1016
|
+
*/
|
|
171
1017
|
fetchLongShortRatioHistory(symbol?: Str, timeframe?: Str, since?: Int, limit?: Int, params?: {}): Promise<LongShortRatio[]>;
|
|
172
1018
|
parseLongShortRatio(info: Dict, market?: Market): LongShortRatio;
|
|
173
1019
|
handleErrors(code: int, reason: string, url: string, method: string, headers: Dict, body: string, response: any, requestHeaders: any, requestBody: any): any;
|