## addMargin add margin **Kind**: instance **Returns**: object - a [margin structure](https://docs.ccxt.com/#/?id=add-margin-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | unified market symbol | | amount | float | Yes | amount of margin to add | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [ascendex](/exchanges/ascendex.md#ascendexaddmargin) * [binance](/exchanges/binance.md#binanceaddmargin) * [bitget](/exchanges/bitget.md#bitgetaddmargin) * [coinex](/exchanges/coinex.md#coinexaddmargin) * [delta](/exchanges/delta.md#deltaaddmargin) * [digifinex](/exchanges/digifinex.md#digifinexaddmargin) * [exmo](/exchanges/exmo.md#exmoaddmargin) * [gate](/exchanges/gate.md#gateaddmargin) * [hitbtc](/exchanges/hitbtc.md#hitbtcaddmargin) * [hyperliquid](/exchanges/hyperliquid.md#hyperliquidaddmargin) * [kucoinfutures](/exchanges/kucoinfutures.md#kucoinfuturesaddmargin) * [mexc](/exchanges/mexc.md#mexcaddmargin) * [okx](/exchanges/okx.md#okxaddmargin) * [woo](/exchanges/woo.md#wooaddmargin) * [xt](/exchanges/xt.md#xtaddmargin) --- ## borrowCrossMargin create a loan to borrow margin **Kind**: instance **Returns**: object - a [margin loan structure](https://docs.ccxt.com/#/?id=margin-loan-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | code | string | Yes | unified currency code of the currency to borrow | | amount | float | Yes | the amount to borrow | | params | object | No | extra parameters specific to the exchange API endpoint | | params.portfolioMargin | boolean | No | set to true if you would like to borrow margin in a portfolio margin account | ##### Supported exchanges * [binance](/exchanges/binance.md#binanceborrowcrossmargin) * [bitget](/exchanges/bitget.md#bitgetborrowcrossmargin) * [bybit](/exchanges/bybit.md#bybitborrowcrossmargin) * [coinmetro](/exchanges/coinmetro.md#coinmetroborrowcrossmargin) * [htx](/exchanges/htx.md#htxborrowcrossmargin) * [kucoin](/exchanges/kucoin.md#kucoinborrowcrossmargin) * [okx](/exchanges/okx.md#okxborrowcrossmargin) --- ## borrowIsolatedMargin create a loan to borrow margin **Kind**: instance **Returns**: object - a [margin loan structure](https://docs.ccxt.com/#/?id=margin-loan-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | unified market symbol, required for isolated margin | | code | string | Yes | unified currency code of the currency to borrow | | amount | float | Yes | the amount to borrow | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [binance](/exchanges/binance.md#binanceborrowisolatedmargin) * [bitget](/exchanges/bitget.md#bitgetborrowisolatedmargin) * [bitmart](/exchanges/bitmart.md#bitmartborrowisolatedmargin) * [coinex](/exchanges/coinex.md#coinexborrowisolatedmargin) * [htx](/exchanges/htx.md#htxborrowisolatedmargin) * [kucoin](/exchanges/kucoin.md#kucoinborrowisolatedmargin) --- ## borrowMargin create a loan to borrow margin **Kind**: instance **Returns**: object - a [margin loan structure](https://docs.ccxt.com/#/?id=margin-loan-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | code | string | Yes | unified currency code of the currency to borrow | | amount | float | Yes | the amount to borrow | | symbol | string | Yes | unified market symbol, required for isolated margin | | params | object | No | extra parameters specific to the exchange API endpoint | | params.rate | string | No | '0.0002' or '0.002' extra parameter required for isolated margin | ##### Supported exchanges * [gate](/exchanges/gate.md#gateborrowmargin) * [gate](/exchanges/gate.md#gateborrowmargin) --- ## cancelAllOrders cancel all open orders in a market **Kind**: instance **Returns**: Array<object> - a list of [order structures](https://docs.ccxt.com/#/?id=order-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | alpaca cancelAllOrders cannot setting symbol, it will cancel all open orders | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [alpaca](/exchanges/alpaca.md#alpacacancelallorders) * [ascendex](/exchanges/ascendex.md#ascendexcancelallorders) * [bigone](/exchanges/bigone.md#bigonecancelallorders) * [binance](/exchanges/binance.md#binancecancelallorders) * [bingx](/exchanges/bingx.md#bingxcancelallorders) * [bitfinex](/exchanges/bitfinex.md#bitfinexcancelallorders) * [bitfinex2](/exchanges/bitfinex2.md#bitfinex2cancelallorders) * [bitget](/exchanges/bitget.md#bitgetcancelallorders) * [bitmart](/exchanges/bitmart.md#bitmartcancelallorders) * [bitmex](/exchanges/bitmex.md#bitmexcancelallorders) * [bitopro](/exchanges/bitopro.md#bitoprocancelallorders) * [bitrue](/exchanges/bitrue.md#bitruecancelallorders) * [bitso](/exchanges/bitso.md#bitsocancelallorders) * [bitstamp](/exchanges/bitstamp.md#bitstampcancelallorders) * [bitteam](/exchanges/bitteam.md#bitteamcancelallorders) * [bitvavo](/exchanges/bitvavo.md#bitvavocancelallorders) * [blockchaincom](/exchanges/blockchaincom.md#blockchaincomcancelallorders) * [bybit](/exchanges/bybit.md#bybitcancelallorders) * [cex](/exchanges/cex.md#cexcancelallorders) * [coinbaseexchange](/exchanges/coinbaseexchange.md#coinbaseexchangecancelallorders) * [coinbaseinternational](/exchanges/coinbaseinternational.md#coinbaseinternationalcancelallorders) * [coinex](/exchanges/coinex.md#coinexcancelallorders) * [coinlist](/exchanges/coinlist.md#coinlistcancelallorders) * [coinsph](/exchanges/coinsph.md#coinsphcancelallorders) * [cryptocom](/exchanges/cryptocom.md#cryptocomcancelallorders) * [delta](/exchanges/delta.md#deltacancelallorders) * [deribit](/exchanges/deribit.md#deribitcancelallorders) * [gate](/exchanges/gate.md#gatecancelallorders) * [hashkey](/exchanges/hashkey.md#hashkeycancelallorders) * [hitbtc](/exchanges/hitbtc.md#hitbtccancelallorders) * [hollaex](/exchanges/hollaex.md#hollaexcancelallorders) * [htx](/exchanges/htx.md#htxcancelallorders) * [huobijp](/exchanges/huobijp.md#huobijpcancelallorders) * [idex](/exchanges/idex.md#idexcancelallorders) * [kraken](/exchanges/kraken.md#krakencancelallorders) * [krakenfutures](/exchanges/krakenfutures.md#krakenfuturescancelallorders) * [kucoin](/exchanges/kucoin.md#kucoincancelallorders) * [kucoinfutures](/exchanges/kucoinfutures.md#kucoinfuturescancelallorders) * [latoken](/exchanges/latoken.md#latokencancelallorders) * [lbank](/exchanges/lbank.md#lbankcancelallorders) * [lykke](/exchanges/lykke.md#lykkecancelallorders) * [mexc](/exchanges/mexc.md#mexccancelallorders) * [ndax](/exchanges/ndax.md#ndaxcancelallorders) * [oceanex](/exchanges/oceanex.md#oceanexcancelallorders) * [onetrading](/exchanges/onetrading.md#onetradingcancelallorders) * [oxfun](/exchanges/oxfun.md#oxfuncancelallorders) * [paradex](/exchanges/paradex.md#paradexcancelallorders) * [phemex](/exchanges/phemex.md#phemexcancelallorders) * [poloniex](/exchanges/poloniex.md#poloniexcancelallorders) * [poloniexfutures](/exchanges/poloniexfutures.md#poloniexfuturescancelallorders) * [tradeogre](/exchanges/tradeogre.md#tradeogrecancelallorders) * [vertex](/exchanges/vertex.md#vertexcancelallorders) * [wazirx](/exchanges/wazirx.md#wazirxcancelallorders) * [whitebit](/exchanges/whitebit.md#whitebitcancelallorders) * [woo](/exchanges/woo.md#woocancelallorders) * [woofipro](/exchanges/woofipro.md#woofiprocancelallorders) * [xt](/exchanges/xt.md#xtcancelallorders) --- ## cancelAllOrdersAfter dead man's switch, cancel all orders after the given timeout **Kind**: instance **Returns**: object - the api result | Param | Type | Required | Description | | --- | --- | --- | --- | | timeout | number | Yes | time in milliseconds, 0 represents cancel the timer | | params | object | No | extra parameters specific to the exchange API endpoint | | params.type | string | No | spot or swap market | ##### Supported exchanges * [bingx](/exchanges/bingx.md#bingxcancelallordersafter) * [bitmex](/exchanges/bitmex.md#bitmexcancelallordersafter) * [bybit](/exchanges/bybit.md#bybitcancelallordersafter) * [htx](/exchanges/htx.md#htxcancelallordersafter) * [hyperliquid](/exchanges/hyperliquid.md#hyperliquidcancelallordersafter) * [kraken](/exchanges/kraken.md#krakencancelallordersafter) * [krakenfutures](/exchanges/krakenfutures.md#krakenfuturescancelallordersafter) * [okx](/exchanges/okx.md#okxcancelallordersafter) * [whitebit](/exchanges/whitebit.md#whitebitcancelallordersafter) * [woo](/exchanges/woo.md#woocancelallordersafter) --- ## cancelAllOrdersWs cancel all open orders in a market **Kind**: instance **Returns**: Array<object> - a list of [order structures](https://docs.ccxt.com/#/?id=order-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | unified market symbol of the market to cancel orders in | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [binance](/exchanges/binance.md#binancecancelallordersws) * [bitvavo](/exchanges/bitvavo.md#bitvavocancelallordersws) * [cryptocom](/exchanges/cryptocom.md#cryptocomcancelallordersws) * [gate](/exchanges/gate.md#gatecancelallordersws) * [hitbtc](/exchanges/hitbtc.md#hitbtccancelallordersws) * [okx](/exchanges/okx.md#okxcancelallordersws) * [poloniex](/exchanges/poloniex.md#poloniexcancelallordersws) --- ## cancelOrder cancels an open order **Kind**: instance **Returns**: object - An [order structure](https://docs.ccxt.com/#/?id=order-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | id | string | Yes | order id | | symbol | string | Yes | unified symbol of the market the order was made in | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [ace](/exchanges/ace.md#acecancelorder) * [alpaca](/exchanges/alpaca.md#alpacacancelorder) * [ascendex](/exchanges/ascendex.md#ascendexcancelorder) * [bigone](/exchanges/bigone.md#bigonecancelorder) * [binance](/exchanges/binance.md#binancecancelorder) * [bingx](/exchanges/bingx.md#bingxcancelorder) * [bit2c](/exchanges/bit2c.md#bit2ccancelorder) * [bitbank](/exchanges/bitbank.md#bitbankcancelorder) * [bitbns](/exchanges/bitbns.md#bitbnscancelorder) * [bitfinex](/exchanges/bitfinex.md#bitfinexcancelorder) * [bitfinex2](/exchanges/bitfinex2.md#bitfinex2cancelorder) * [bitflyer](/exchanges/bitflyer.md#bitflyercancelorder) * [bitget](/exchanges/bitget.md#bitgetcancelorder) * [bithumb](/exchanges/bithumb.md#bithumbcancelorder) * [bitmart](/exchanges/bitmart.md#bitmartcancelorder) * [bitmex](/exchanges/bitmex.md#bitmexcancelorder) * [bitopro](/exchanges/bitopro.md#bitoprocancelorder) * [bitrue](/exchanges/bitrue.md#bitruecancelorder) * [bitso](/exchanges/bitso.md#bitsocancelorder) * [bitstamp](/exchanges/bitstamp.md#bitstampcancelorder) * [bitteam](/exchanges/bitteam.md#bitteamcancelorder) * [bitvavo](/exchanges/bitvavo.md#bitvavocancelorder) * [bl3p](/exchanges/bl3p.md#bl3pcancelorder) * [blockchaincom](/exchanges/blockchaincom.md#blockchaincomcancelorder) * [blofin](/exchanges/blofin.md#blofincancelorder) * [btcalpha](/exchanges/btcalpha.md#btcalphacancelorder) * [btcbox](/exchanges/btcbox.md#btcboxcancelorder) * [btcmarkets](/exchanges/btcmarkets.md#btcmarketscancelorder) * [btcturk](/exchanges/btcturk.md#btcturkcancelorder) * [bybit](/exchanges/bybit.md#bybitcancelorder) * [cex](/exchanges/cex.md#cexcancelorder) * [coinbase](/exchanges/coinbase.md#coinbasecancelorder) * [coinbaseexchange](/exchanges/coinbaseexchange.md#coinbaseexchangecancelorder) * [coinbaseinternational](/exchanges/coinbaseinternational.md#coinbaseinternationalcancelorder) * [coincheck](/exchanges/coincheck.md#coincheckcancelorder) * [coinex](/exchanges/coinex.md#coinexcancelorder) * [coinlist](/exchanges/coinlist.md#coinlistcancelorder) * [coinmate](/exchanges/coinmate.md#coinmatecancelorder) * [coinmetro](/exchanges/coinmetro.md#coinmetrocancelorder) * [coinmetro](/exchanges/coinmetro.md#coinmetrocancelorder) * [coinone](/exchanges/coinone.md#coinonecancelorder) * [coinsph](/exchanges/coinsph.md#coinsphcancelorder) * [coinspot](/exchanges/coinspot.md#coinspotcancelorder) * [cryptocom](/exchanges/cryptocom.md#cryptocomcancelorder) * [cryptocom](/exchanges/cryptocom.md#cryptocomcancelorder) * [currencycom](/exchanges/currencycom.md#currencycomcancelorder) * [delta](/exchanges/delta.md#deltacancelorder) * [deribit](/exchanges/deribit.md#deribitcancelorder) * [digifinex](/exchanges/digifinex.md#digifinexcancelorder) * [exmo](/exchanges/exmo.md#exmocancelorder) * [gate](/exchanges/gate.md#gatecancelorder) * [gemini](/exchanges/gemini.md#geminicancelorder) * [hashkey](/exchanges/hashkey.md#hashkeycancelorder) * [hitbtc](/exchanges/hitbtc.md#hitbtccancelorder) * [hollaex](/exchanges/hollaex.md#hollaexcancelorder) * [htx](/exchanges/htx.md#htxcancelorder) * [huobijp](/exchanges/huobijp.md#huobijpcancelorder) * [hyperliquid](/exchanges/hyperliquid.md#hyperliquidcancelorder) * [idex](/exchanges/idex.md#idexcancelorder) * [independentreserve](/exchanges/independentreserve.md#independentreservecancelorder) * [indodax](/exchanges/indodax.md#indodaxcancelorder) * [kraken](/exchanges/kraken.md#krakencancelorder) * [krakenfutures](/exchanges/krakenfutures.md#krakenfuturescancelorder) * [kucoin](/exchanges/kucoin.md#kucoincancelorder) * [kucoinfutures](/exchanges/kucoinfutures.md#kucoinfuturescancelorder) * [kuna](/exchanges/kuna.md#kunacancelorder) * [kuna](/exchanges/kuna.md#kunacancelorder) * [latoken](/exchanges/latoken.md#latokencancelorder) * [lbank](/exchanges/lbank.md#lbankcancelorder) * [luno](/exchanges/luno.md#lunocancelorder) * [lykke](/exchanges/lykke.md#lykkecancelorder) * [mercado](/exchanges/mercado.md#mercadocancelorder) * [mexc](/exchanges/mexc.md#mexccancelorder) * [ndax](/exchanges/ndax.md#ndaxcancelorder) * [novadax](/exchanges/novadax.md#novadaxcancelorder) * [oceanex](/exchanges/oceanex.md#oceanexcancelorder) * [okcoin](/exchanges/okcoin.md#okcoincancelorder) * [okx](/exchanges/okx.md#okxcancelorder) * [onetrading](/exchanges/onetrading.md#onetradingcancelorder) * [oxfun](/exchanges/oxfun.md#oxfuncancelorder) * [p2b](/exchanges/p2b.md#p2bcancelorder) * [paradex](/exchanges/paradex.md#paradexcancelorder) * [paymium](/exchanges/paymium.md#paymiumcancelorder) * [phemex](/exchanges/phemex.md#phemexcancelorder) * [poloniexfutures](/exchanges/poloniexfutures.md#poloniexfuturescancelorder) * [probit](/exchanges/probit.md#probitcancelorder) * [timex](/exchanges/timex.md#timexcancelorder) * [tokocrypto](/exchanges/tokocrypto.md#tokocryptocancelorder) * [tradeogre](/exchanges/tradeogre.md#tradeogrecancelorder) * [upbit](/exchanges/upbit.md#upbitcancelorder) * [vertex](/exchanges/vertex.md#vertexcancelorder) * [wavesexchange](/exchanges/wavesexchange.md#wavesexchangecancelorder) * [wazirx](/exchanges/wazirx.md#wazirxcancelorder) * [whitebit](/exchanges/whitebit.md#whitebitcancelorder) * [woo](/exchanges/woo.md#woocancelorder) * [woofipro](/exchanges/woofipro.md#woofiprocancelorder) * [xt](/exchanges/xt.md#xtcancelorder) * [yobit](/exchanges/yobit.md#yobitcancelorder) * [zaif](/exchanges/zaif.md#zaifcancelorder) * [zonda](/exchanges/zonda.md#zondacancelorder) --- ## cancelOrderWs cancel multiple orders **Kind**: instance **Returns**: object - an list of [order structures](https://docs.ccxt.com/#/?id=order-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | id | string | Yes | order id | | symbol | string | Yes | unified market symbol, default is undefined | | params | object | No | extra parameters specific to the exchange API endpoint | | params.cancelRestrictions | string, undefined | No | Supported values: ONLY_NEW - Cancel will succeed if the order status is NEW. ONLY_PARTIALLY_FILLED - Cancel will succeed if order status is PARTIALLY_FILLED. | ##### Supported exchanges * [binance](/exchanges/binance.md#binancecancelorderws) * [bitvavo](/exchanges/bitvavo.md#bitvavocancelorderws) * [bybit](/exchanges/bybit.md#bybitcancelorderws) * [cex](/exchanges/cex.md#cexcancelorderws) * [gate](/exchanges/gate.md#gatecancelorderws) * [hitbtc](/exchanges/hitbtc.md#hitbtccancelorderws) * [okx](/exchanges/okx.md#okxcancelorderws) * [oxfun](/exchanges/oxfun.md#oxfuncancelorderws) * [poloniex](/exchanges/poloniex.md#poloniexcancelorderws) --- ## cancelOrders cancel multiple orders **Kind**: instance **Returns**: object - an list of [order structures](https://docs.ccxt.com/#/?id=order-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | ids | Array<string> | Yes | order ids | | symbol | string | No | unified market symbol | | params | object | No | extra parameters specific to the exchange API endpoint EXCHANGE SPECIFIC PARAMETERS | | params.origClientOrderIdList | Array<string> | No | max length 10 e.g. ["my_id_1","my_id_2"], encode the double quotes. No space after comma | | params.recvWindow | Array<int> | No | | ##### Supported exchanges * [binance](/exchanges/binance.md#binancecancelorders) * [bingx](/exchanges/bingx.md#bingxcancelorders) * [bitfinex2](/exchanges/bitfinex2.md#bitfinex2cancelorders) * [bitget](/exchanges/bitget.md#bitgetcancelorders) * [bitmart](/exchanges/bitmart.md#bitmartcancelorders) * [bitmex](/exchanges/bitmex.md#bitmexcancelorders) * [bitopro](/exchanges/bitopro.md#bitoprocancelorders) * [bitso](/exchanges/bitso.md#bitsocancelorders) * [blofin](/exchanges/blofin.md#blofincancelorders) * [btcmarkets](/exchanges/btcmarkets.md#btcmarketscancelorders) * [bybit](/exchanges/bybit.md#bybitcancelorders) * [coinbase](/exchanges/coinbase.md#coinbasecancelorders) * [coinex](/exchanges/coinex.md#coinexcancelorders) * [coinlist](/exchanges/coinlist.md#coinlistcancelorders) * [cryptocom](/exchanges/cryptocom.md#cryptocomcancelorders) * [digifinex](/exchanges/digifinex.md#digifinexcancelorders) * [gate](/exchanges/gate.md#gatecancelorders) * [hashkey](/exchanges/hashkey.md#hashkeycancelorders) * [htx](/exchanges/htx.md#htxcancelorders) * [huobijp](/exchanges/huobijp.md#huobijpcancelorders) * [hyperliquid](/exchanges/hyperliquid.md#hyperliquidcancelorders) * [kraken](/exchanges/kraken.md#krakencancelorders) * [krakenfutures](/exchanges/krakenfutures.md#krakenfuturescancelorders) * [mexc](/exchanges/mexc.md#mexccancelorders) * [oceanex](/exchanges/oceanex.md#oceanexcancelorders) * [okcoin](/exchanges/okcoin.md#okcoincancelorders) * [okx](/exchanges/okx.md#okxcancelorders) * [onetrading](/exchanges/onetrading.md#onetradingcancelorders) * [oxfun](/exchanges/oxfun.md#oxfuncancelorders) * [timex](/exchanges/timex.md#timexcancelorders) * [vertex](/exchanges/vertex.md#vertexcancelorders) * [woofipro](/exchanges/woofipro.md#woofiprocancelorders) * [xt](/exchanges/xt.md#xtcancelorders) --- ## cancelOrdersForSymbols cancel multiple orders for multiple symbols **Kind**: instance **Returns**: object - an list of [order structures](https://docs.ccxt.com/#/?id=order-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | orders | Array<CancellationRequest> | Yes | list of order ids with symbol, example [{"id": "a", "symbol": "BTC/USDT"}, {"id": "b", "symbol": "ETH/USDT"}] | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [bybit](/exchanges/bybit.md#bybitcancelordersforsymbols) * [cryptocom](/exchanges/cryptocom.md#cryptocomcancelordersforsymbols) * [gate](/exchanges/gate.md#gatecancelordersforsymbols) * [hyperliquid](/exchanges/hyperliquid.md#hyperliquidcancelordersforsymbols) * [okx](/exchanges/okx.md#okxcancelordersforsymbols) --- ## cancelOrdersWs cancel multiple orders **Kind**: instance **Returns**: object - a list of [order structures](https://docs.ccxt.com/#/?id=order-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | ids | Array<string> | Yes | order ids | | symbol | string | Yes | not used by cex cancelOrders() | | params | object | No | extra parameters specific to the cex api endpoint | ##### Supported exchanges * [cex](/exchanges/cex.md#cexcancelordersws) * [okx](/exchanges/okx.md#okxcancelordersws) * [okx](/exchanges/okx.md#okxcancelordersws) * [poloniex](/exchanges/poloniex.md#poloniexcancelordersws) --- ## closeAllPositions closes all open positions for a market type **Kind**: instance **Returns**: Array<object> - A list of [position structures](https://docs.ccxt.com/#/?id=position-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | params | object | No | extra parameters specific to the exchange API endpoint | | params.productType | string | No | 'USDT-FUTURES', 'USDC-FUTURES', 'COIN-FUTURES', 'SUSDT-FUTURES', 'SUSDC-FUTURES' or 'SCOIN-FUTURES' | ##### Supported exchanges * [bitget](/exchanges/bitget.md#bitgetcloseallpositions) * [delta](/exchanges/delta.md#deltacloseallpositions) --- ## closePosition closes open positions for a market **Kind**: instance **Returns**: object - an [order structure](https://docs.ccxt.com/#/?id=order-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | Unified CCXT market symbol | | side | string | No | not used by bingx | | params | object | No | extra parameters specific to the bingx api endpoint | | params.positionId | string, undefined | No | the id of the position you would like to close | ##### Supported exchanges * [bingx](/exchanges/bingx.md#bingxcloseposition) * [bitget](/exchanges/bitget.md#bitgetcloseposition) * [blofin](/exchanges/blofin.md#blofincloseposition) * [coinbase](/exchanges/coinbase.md#coinbasecloseposition) * [gate](/exchanges/gate.md#gatecloseposition) * [hitbtc](/exchanges/hitbtc.md#hitbtccloseposition) * [kucoinfutures](/exchanges/kucoinfutures.md#kucoinfuturescloseposition) * [okx](/exchanges/okx.md#okxcloseposition) --- ## closePositions closes open positions for a market **Kind**: instance **Returns**: Array<object> - [a list of position structures](https://docs.ccxt.com/#/?id=position-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | params | object | No | extra parameters specific to the bingx api endpoint | | params.recvWindow | string | No | request valid time window value | ##### Supported exchanges * [bitget](/exchanges/bitget.md#bitgetclosepositions) * [cryptocom](/exchanges/cryptocom.md#cryptocomclosepositions) * [htx](/exchanges/htx.md#htxclosepositions) --- ## createConvertTrade convert from one currency to another **Kind**: instance **Returns**: object - a [conversion structure](https://docs.ccxt.com/#/?id=conversion-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | id | string | Yes | the id of the trade that you want to make | | fromCode | string | Yes | the currency that you want to sell and convert from | | toCode | string | Yes | the currency that you want to buy and convert into | | amount | float | No | how much you want to trade in units of the from currency | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [binance](/exchanges/binance.md#binancecreateconverttrade) * [bitget](/exchanges/bitget.md#bitgetcreateconverttrade) * [coinbase](/exchanges/coinbase.md#coinbasecreateconverttrade) * [okx](/exchanges/okx.md#okxcreateconverttrade) * [woo](/exchanges/woo.md#woocreateconverttrade) --- ## createDepositAddress create a currency deposit address **Kind**: instance **Returns**: object - an [address structure](https://docs.ccxt.com/#/?id=address-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | code | string | Yes | unified currency code of the currency for the deposit address | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [bitfinex](/exchanges/bitfinex.md#bitfinexcreatedepositaddress) * [bitfinex2](/exchanges/bitfinex2.md#bitfinex2createdepositaddress) * [bl3p](/exchanges/bl3p.md#bl3pcreatedepositaddress) * [coinbase](/exchanges/coinbase.md#coinbasecreatedepositaddress) * [coinbaseexchange](/exchanges/coinbaseexchange.md#coinbaseexchangecreatedepositaddress) * [coinbaseinternational](/exchanges/coinbaseinternational.md#coinbaseinternationalcreatedepositaddress) * [coinex](/exchanges/coinex.md#coinexcreatedepositaddress) * [deribit](/exchanges/deribit.md#deribitcreatedepositaddress) * [gemini](/exchanges/gemini.md#geminicreatedepositaddress) * [hitbtc](/exchanges/hitbtc.md#hitbtccreatedepositaddress) * [kraken](/exchanges/kraken.md#krakencreatedepositaddress) * [kucoin](/exchanges/kucoin.md#kucoincreatedepositaddress) * [kuna](/exchanges/kuna.md#kunacreatedepositaddress) * [mexc](/exchanges/mexc.md#mexccreatedepositaddress) * [ndax](/exchanges/ndax.md#ndaxcreatedepositaddress) * [onetrading](/exchanges/onetrading.md#onetradingcreatedepositaddress) * [paymium](/exchanges/paymium.md#paymiumcreatedepositaddress) * [poloniex](/exchanges/poloniex.md#poloniexcreatedepositaddress) * [upbit](/exchanges/upbit.md#upbitcreatedepositaddress) * [yobit](/exchanges/yobit.md#yobitcreatedepositaddress) --- ## createGiftCode create gift code **Kind**: instance **Returns**: object - The gift code id, code, currency and amount | Param | Type | Required | Description | | --- | --- | --- | --- | | code | string | Yes | gift code | | amount | float | Yes | amount of currency for the gift | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [binance](/exchanges/binance.md#binancecreategiftcode) --- ## createMarkeSellOrderWithCost create a market sell order by providing the symbol and cost **Kind**: instance **Returns**: object - an [order structure](https://docs.ccxt.com/#/?id=order-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | unified symbol of the market to create an order in | | cost | float | Yes | how much you want to trade in units of the quote currency | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [bybit](/exchanges/bybit.md#bybitcreatemarkesellorderwithcost) --- ## createMarketBuyOrderWithCost create a market buy order by providing the symbol and cost **Kind**: instance **Returns**: object - an [order structure](https://docs.ccxt.com/#/?id=order-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | unified symbol of the market to create an order in | | cost | float | Yes | how much you want to trade in units of the quote currency | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [bigone](/exchanges/bigone.md#bigonecreatemarketbuyorderwithcost) * [binance](/exchanges/binance.md#binancecreatemarketbuyorderwithcost) * [bingx](/exchanges/bingx.md#bingxcreatemarketbuyorderwithcost) * [bitget](/exchanges/bitget.md#bitgetcreatemarketbuyorderwithcost) * [bitmart](/exchanges/bitmart.md#bitmartcreatemarketbuyorderwithcost) * [bitrue](/exchanges/bitrue.md#bitruecreatemarketbuyorderwithcost) * [bybit](/exchanges/bybit.md#bybitcreatemarketbuyorderwithcost) * [coinbase](/exchanges/coinbase.md#coinbasecreatemarketbuyorderwithcost) * [coinex](/exchanges/coinex.md#coinexcreatemarketbuyorderwithcost) * [digifinex](/exchanges/digifinex.md#digifinexcreatemarketbuyorderwithcost) * [gate](/exchanges/gate.md#gatecreatemarketbuyorderwithcost) * [hashkey](/exchanges/hashkey.md#hashkeycreatemarketbuyorderwithcost) * [htx](/exchanges/htx.md#htxcreatemarketbuyorderwithcost) * [huobijp](/exchanges/huobijp.md#huobijpcreatemarketbuyorderwithcost) * [kraken](/exchanges/kraken.md#krakencreatemarketbuyorderwithcost) * [kucoin](/exchanges/kucoin.md#kucoincreatemarketbuyorderwithcost) * [lbank](/exchanges/lbank.md#lbankcreatemarketbuyorderwithcost) * [mexc](/exchanges/mexc.md#mexccreatemarketbuyorderwithcost) * [okcoin](/exchanges/okcoin.md#okcoincreatemarketbuyorderwithcost) * [okx](/exchanges/okx.md#okxcreatemarketbuyorderwithcost) * [oxfun](/exchanges/oxfun.md#oxfuncreatemarketbuyorderwithcost) * [whitebit](/exchanges/whitebit.md#whitebitcreatemarketbuyorderwithcost) * [woo](/exchanges/woo.md#woocreatemarketbuyorderwithcost) * [xt](/exchanges/xt.md#xtcreatemarketbuyorderwithcost) --- ## createMarketOrderWithCost create a market order by providing the symbol, side and cost **Kind**: instance **Returns**: object - an [order structure](https://docs.ccxt.com/#/?id=order-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | unified symbol of the market to create an order in | | side | string | Yes | 'buy' or 'sell' | | cost | float | Yes | how much you want to trade in units of the quote currency | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [binance](/exchanges/binance.md#binancecreatemarketorderwithcost) * [bingx](/exchanges/bingx.md#bingxcreatemarketorderwithcost) * [kraken](/exchanges/kraken.md#krakencreatemarketorderwithcost) * [kucoin](/exchanges/kucoin.md#kucoincreatemarketorderwithcost) * [whitebit](/exchanges/whitebit.md#whitebitcreatemarketorderwithcost) --- ## createMarketSellOrderWithCost create a market sell order by providing the symbol and cost **Kind**: instance **Returns**: object - an [order structure](https://docs.ccxt.com/#/?id=order-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | unified symbol of the market to create an order in | | cost | float | Yes | how much you want to trade in units of the quote currency | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [binance](/exchanges/binance.md#binancecreatemarketsellorderwithcost) * [bingx](/exchanges/bingx.md#bingxcreatemarketsellorderwithcost) * [kucoin](/exchanges/kucoin.md#kucoincreatemarketsellorderwithcost) * [okx](/exchanges/okx.md#okxcreatemarketsellorderwithcost) * [woo](/exchanges/woo.md#woocreatemarketsellorderwithcost) --- ## createOrder create a trade order **Kind**: instance **Returns**: object - an [order structure](https://docs.ccxt.com/#/?id=order-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | unified symbol of the market to create an order in | | type | string | Yes | 'market' or 'limit' | | side | string | Yes | 'buy' or 'sell' | | amount | float | Yes | how much of currency you want to trade in units of base currency | | price | float | No | the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [ace](/exchanges/ace.md#acecreateorder) * [alpaca](/exchanges/alpaca.md#alpacacreateorder) * [ascendex](/exchanges/ascendex.md#ascendexcreateorder) * [bigone](/exchanges/bigone.md#bigonecreateorder) * [binance](/exchanges/binance.md#binancecreateorder) * [bingx](/exchanges/bingx.md#bingxcreateorder) * [bit2c](/exchanges/bit2c.md#bit2ccreateorder) * [bitbank](/exchanges/bitbank.md#bitbankcreateorder) * [bitbns](/exchanges/bitbns.md#bitbnscreateorder) * [bitfinex](/exchanges/bitfinex.md#bitfinexcreateorder) * [bitfinex2](/exchanges/bitfinex2.md#bitfinex2createorder) * [bitflyer](/exchanges/bitflyer.md#bitflyercreateorder) * [bitget](/exchanges/bitget.md#bitgetcreateorder) * [bithumb](/exchanges/bithumb.md#bithumbcreateorder) * [bitmart](/exchanges/bitmart.md#bitmartcreateorder) * [bitmex](/exchanges/bitmex.md#bitmexcreateorder) * [bitopro](/exchanges/bitopro.md#bitoprocreateorder) * [bitrue](/exchanges/bitrue.md#bitruecreateorder) * [bitso](/exchanges/bitso.md#bitsocreateorder) * [bitstamp](/exchanges/bitstamp.md#bitstampcreateorder) * [bitteam](/exchanges/bitteam.md#bitteamcreateorder) * [bitvavo](/exchanges/bitvavo.md#bitvavocreateorder) * [bl3p](/exchanges/bl3p.md#bl3pcreateorder) * [blockchaincom](/exchanges/blockchaincom.md#blockchaincomcreateorder) * [blofin](/exchanges/blofin.md#blofincreateorder) * [btcalpha](/exchanges/btcalpha.md#btcalphacreateorder) * [btcbox](/exchanges/btcbox.md#btcboxcreateorder) * [btcmarkets](/exchanges/btcmarkets.md#btcmarketscreateorder) * [btcturk](/exchanges/btcturk.md#btcturkcreateorder) * [bybit](/exchanges/bybit.md#bybitcreateorder) * [cex](/exchanges/cex.md#cexcreateorder) * [coinbase](/exchanges/coinbase.md#coinbasecreateorder) * [coinbaseexchange](/exchanges/coinbaseexchange.md#coinbaseexchangecreateorder) * [coinbaseinternational](/exchanges/coinbaseinternational.md#coinbaseinternationalcreateorder) * [coincheck](/exchanges/coincheck.md#coincheckcreateorder) * [coinex](/exchanges/coinex.md#coinexcreateorder) * [coinlist](/exchanges/coinlist.md#coinlistcreateorder) * [coinmate](/exchanges/coinmate.md#coinmatecreateorder) * [coinmetro](/exchanges/coinmetro.md#coinmetrocreateorder) * [coinone](/exchanges/coinone.md#coinonecreateorder) * [coinsph](/exchanges/coinsph.md#coinsphcreateorder) * [coinspot](/exchanges/coinspot.md#coinspotcreateorder) * [cryptocom](/exchanges/cryptocom.md#cryptocomcreateorder) * [currencycom](/exchanges/currencycom.md#currencycomcreateorder) * [delta](/exchanges/delta.md#deltacreateorder) * [deribit](/exchanges/deribit.md#deribitcreateorder) * [digifinex](/exchanges/digifinex.md#digifinexcreateorder) * [exmo](/exchanges/exmo.md#exmocreateorder) * [gate](/exchanges/gate.md#gatecreateorder) * [gemini](/exchanges/gemini.md#geminicreateorder) * [hashkey](/exchanges/hashkey.md#hashkeycreateorder) * [hitbtc](/exchanges/hitbtc.md#hitbtccreateorder) * [hitbtc](/exchanges/hitbtc.md#hitbtccreateorder) * [hollaex](/exchanges/hollaex.md#hollaexcreateorder) * [htx](/exchanges/htx.md#htxcreateorder) * [huobijp](/exchanges/huobijp.md#huobijpcreateorder) * [hyperliquid](/exchanges/hyperliquid.md#hyperliquidcreateorder) * [hyperliquid](/exchanges/hyperliquid.md#hyperliquidcreateorder) * [idex](/exchanges/idex.md#idexcreateorder) * [independentreserve](/exchanges/independentreserve.md#independentreservecreateorder) * [indodax](/exchanges/indodax.md#indodaxcreateorder) * [kraken](/exchanges/kraken.md#krakencreateorder) * [krakenfutures](/exchanges/krakenfutures.md#krakenfuturescreateorder) * [kucoin](/exchanges/kucoin.md#kucoincreateorder) * [kucoinfutures](/exchanges/kucoinfutures.md#kucoinfuturescreateorder) * [kuna](/exchanges/kuna.md#kunacreateorder) * [latoken](/exchanges/latoken.md#latokencreateorder) * [lbank](/exchanges/lbank.md#lbankcreateorder) * [luno](/exchanges/luno.md#lunocreateorder) * [lykke](/exchanges/lykke.md#lykkecreateorder) * [mercado](/exchanges/mercado.md#mercadocreateorder) * [mexc](/exchanges/mexc.md#mexccreateorder) * [ndax](/exchanges/ndax.md#ndaxcreateorder) * [novadax](/exchanges/novadax.md#novadaxcreateorder) * [oceanex](/exchanges/oceanex.md#oceanexcreateorder) * [okcoin](/exchanges/okcoin.md#okcoincreateorder) * [okx](/exchanges/okx.md#okxcreateorder) * [onetrading](/exchanges/onetrading.md#onetradingcreateorder) * [oxfun](/exchanges/oxfun.md#oxfuncreateorder) * [p2b](/exchanges/p2b.md#p2bcreateorder) * [paradex](/exchanges/paradex.md#paradexcreateorder) * [paymium](/exchanges/paymium.md#paymiumcreateorder) * [phemex](/exchanges/phemex.md#phemexcreateorder) * [poloniex](/exchanges/poloniex.md#poloniexcreateorder) * [poloniexfutures](/exchanges/poloniexfutures.md#poloniexfuturescreateorder) * [probit](/exchanges/probit.md#probitcreateorder) * [timex](/exchanges/timex.md#timexcreateorder) * [tokocrypto](/exchanges/tokocrypto.md#tokocryptocreateorder) * [tradeogre](/exchanges/tradeogre.md#tradeogrecreateorder) * [upbit](/exchanges/upbit.md#upbitcreateorder) * [vertex](/exchanges/vertex.md#vertexcreateorder) * [wavesexchange](/exchanges/wavesexchange.md#wavesexchangecreateorder) * [wazirx](/exchanges/wazirx.md#wazirxcreateorder) * [whitebit](/exchanges/whitebit.md#whitebitcreateorder) * [woo](/exchanges/woo.md#woocreateorder) * [woofipro](/exchanges/woofipro.md#woofiprocreateorder) * [xt](/exchanges/xt.md#xtcreateorder) * [yobit](/exchanges/yobit.md#yobitcreateorder) * [zaif](/exchanges/zaif.md#zaifcreateorder) * [zonda](/exchanges/zonda.md#zondacreateorder) --- ## createOrderWs create a trade order **Kind**: instance **Returns**: object - an [order structure](https://docs.ccxt.com/#/?id=order-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | unified symbol of the market to create an order in | | type | string | Yes | 'market' or 'limit' | | side | string | Yes | 'buy' or 'sell' | | amount | float | Yes | how much of currency you want to trade in units of base currency | | price | float, undefined | No | the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders | | params | object | No | extra parameters specific to the exchange API endpoint | | params.test | boolean | Yes | test order, default false | | params.returnRateLimits | boolean | Yes | set to true to return rate limit information, default false | ##### Supported exchanges * [binance](/exchanges/binance.md#binancecreateorderws) * [bitvavo](/exchanges/bitvavo.md#bitvavocreateorderws) * [bybit](/exchanges/bybit.md#bybitcreateorderws) * [cex](/exchanges/cex.md#cexcreateorderws) * [cryptocom](/exchanges/cryptocom.md#cryptocomcreateorderws) * [gate](/exchanges/gate.md#gatecreateorderws) * [okx](/exchanges/okx.md#okxcreateorderws) * [oxfun](/exchanges/oxfun.md#oxfuncreateorderws) * [poloniex](/exchanges/poloniex.md#poloniexcreateorderws) --- ## createOrders create a list of trade orders **Kind**: instance **Returns**: object - an [order structure](https://docs.ccxt.com/#/?id=order-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | orders | Array | Yes | list of orders to create, each object should contain the parameters required by createOrder, namely symbol, type, side, amount, price and params | | params | object | No | extra parameters specific to the exchange API endpoint | | params.timeInForce | string | No | "GTC", "IOC", "FOK", or "PO" | | params.postOnly | bool | No | true or false | | params.stopPrice | float | No | the price at which a trigger order is triggered at | ##### Supported exchanges * [ascendex](/exchanges/ascendex.md#ascendexcreateorders) * [binance](/exchanges/binance.md#binancecreateorders) * [bingx](/exchanges/bingx.md#bingxcreateorders) * [bitfinex2](/exchanges/bitfinex2.md#bitfinex2createorders) * [bitget](/exchanges/bitget.md#bitgetcreateorders) * [bitmart](/exchanges/bitmart.md#bitmartcreateorders) * [blofin](/exchanges/blofin.md#blofincreateorders) * [bybit](/exchanges/bybit.md#bybitcreateorders) * [coinex](/exchanges/coinex.md#coinexcreateorders) * [cryptocom](/exchanges/cryptocom.md#cryptocomcreateorders) * [digifinex](/exchanges/digifinex.md#digifinexcreateorders) * [gate](/exchanges/gate.md#gatecreateorders) * [hashkey](/exchanges/hashkey.md#hashkeycreateorders) * [htx](/exchanges/htx.md#htxcreateorders) * [hyperliquid](/exchanges/hyperliquid.md#hyperliquidcreateorders) * [hyperliquid](/exchanges/hyperliquid.md#hyperliquidcreateorders) * [krakenfutures](/exchanges/krakenfutures.md#krakenfuturescreateorders) * [kucoin](/exchanges/kucoin.md#kucoincreateorders) * [kucoinfutures](/exchanges/kucoinfutures.md#kucoinfuturescreateorders) * [mexc](/exchanges/mexc.md#mexccreateorders) * [okx](/exchanges/okx.md#okxcreateorders) * [oxfun](/exchanges/oxfun.md#oxfuncreateorders) * [woofipro](/exchanges/woofipro.md#woofiprocreateorders) --- ## createOrdersWs create a list of trade orders **Kind**: instance **Returns**: object - an [order structure](https://docs.ccxt.com/#/?id=order-structure) | Param | Type | Description | | --- | --- | --- | | orders | Array | list of orders to create, each object should contain the parameters required by createOrder, namely symbol, type, side, amount, price and params | ##### Supported exchanges * [gate](/exchanges/gate.md#gatecreateordersws) * [hyperliquid](/exchanges/hyperliquid.md#hyperliquidcreateordersws) --- ## createSpotOrder create a trade order on spot market **Kind**: instance **Returns**: object - an [order structure](https://docs.ccxt.com/#/?id=order-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | unified symbol of the market to create an order in | | type | string | Yes | 'market' or 'limit' or 'LIMIT_MAKER' | | side | string | Yes | 'buy' or 'sell' | | amount | float | Yes | how much of you want to trade in units of the base currency | | price | float | No | the price that the order is to be fulfilled, in units of the quote currency, ignored in market orders | | params | object | No | extra parameters specific to the exchange API endpoint | | params.cost | float | No | *market buy only* the quote quantity that can be used as an alternative for the amount | | params.test | bool | No | whether to use the test endpoint or not, default is false | | params.postOnly | bool | No | if true, the order will only be posted to the order book and not executed immediately | | params.timeInForce | string | No | 'GTC', 'IOC', or 'PO' | | params.clientOrderId | string | No | a unique id for the order | ##### Supported exchanges * [hashkey](/exchanges/hashkey.md#hashkeycreatespotorder) --- ## createSwapOrder create a trade order on swap market **Kind**: instance **Returns**: object - an [order structure](https://docs.ccxt.com/#/?id=order-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | unified symbol of the market to create an order in | | type | string | Yes | 'market' or 'limit' or 'STOP' | | side | string | Yes | 'buy' or 'sell' | | amount | float | Yes | how much of you want to trade in units of the base currency | | price | float | No | the price that the order is to be fulfilled, in units of the quote currency, ignored in market orders | | params | object | No | extra parameters specific to the exchange API endpoint | | params.postOnly | bool | No | if true, the order will only be posted to the order book and not executed immediately | | params.reduceOnly | bool | No | true or false whether the order is reduce only | | params.triggerPrice | float | No | The price at which a trigger order is triggered at | | params.timeInForce | string | No | 'GTC', 'FOK', 'IOC', 'LIMIT_MAKER' or 'PO' | | params.clientOrderId | string | No | a unique id for the order | ##### Supported exchanges * [hashkey](/exchanges/hashkey.md#hashkeycreateswaporder) --- ## createTrailingAmountOrder create a trailing order by providing the symbol, type, side, amount, price and trailingAmount **Kind**: instance **Returns**: object - an [order structure](https://docs.ccxt.com/#/?id=order-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | unified symbol of the market to create an order in | | type | string | Yes | 'market' or 'limit' | | side | string | Yes | 'buy' or 'sell' | | amount | float | Yes | how much you want to trade in units of the base currency, or number of contracts | | price | float | No | the price for the order to be filled at, in units of the quote currency, ignored in market orders | | trailingAmount | float | Yes | the quote amount to trail away from the current market price | | trailingTriggerPrice | float | Yes | the price to activate a trailing order, default uses the price argument | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [woo](/exchanges/woo.md#woocreatetrailingamountorder) --- ## createTrailingPercentOrder create a trailing order by providing the symbol, type, side, amount, price and trailingPercent **Kind**: instance **Returns**: object - an [order structure](https://docs.ccxt.com/#/?id=order-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | unified symbol of the market to create an order in | | type | string | Yes | 'market' or 'limit' | | side | string | Yes | 'buy' or 'sell' | | amount | float | Yes | how much you want to trade in units of the base currency, or number of contracts | | price | float | No | the price for the order to be filled at, in units of the quote currency, ignored in market orders | | trailingPercent | float | Yes | the percent to trail away from the current market price | | trailingTriggerPrice | float | Yes | the price to activate a trailing order, default uses the price argument | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [htx](/exchanges/htx.md#htxcreatetrailingpercentorder) * [woo](/exchanges/woo.md#woocreatetrailingpercentorder) --- ## deposit make a deposit **Kind**: instance **Returns**: object - a [transaction structure](https://docs.ccxt.com/#/?id=transaction-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | code | string | Yes | unified currency code | | amount | float | Yes | the amount to deposit | | id | string | Yes | the payment method id to be used for the deposit, can be retrieved from v2PrivateGetPaymentMethods | | params | object | No | extra parameters specific to the exchange API endpoint | | params.accountId | string | No | the id of the account to deposit into | ##### Supported exchanges * [coinbase](/exchanges/coinbase.md#coinbasedeposit) --- ## editContractOrder edit a trade order **Kind**: instance **Returns**: object - an [order structure](https://docs.ccxt.com/#/?id=order-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | id | string | Yes | cancel order id | | symbol | string | Yes | unified symbol of the market to create an order in | | type | string | Yes | 'market' or 'limit' | | side | string | Yes | 'buy' or 'sell' | | amount | float | Yes | how much of currency you want to trade in units of base currency | | price | float | No | the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [binance](/exchanges/binance.md#binanceeditcontractorder) --- ## editOrder edit a trade order **Kind**: instance **Returns**: object - an [order structure](https://docs.ccxt.com/#/?id=order-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | id | string | Yes | cancel order id | | symbol | string | Yes | unified symbol of the market to create an order in | | type | string | Yes | 'market' or 'limit' | | side | string | Yes | 'buy' or 'sell' | | amount | float | Yes | how much of currency you want to trade in units of base currency | | price | float | No | the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [binance](/exchanges/binance.md#binanceeditorder) * [bingx](/exchanges/bingx.md#bingxeditorder) * [bitfinex2](/exchanges/bitfinex2.md#bitfinex2editorder) * [bitget](/exchanges/bitget.md#bitgeteditorder) * [bitvavo](/exchanges/bitvavo.md#bitvavoeditorder) * [bybit](/exchanges/bybit.md#bybiteditorder) * [coinbase](/exchanges/coinbase.md#coinbaseeditorder) * [coinbaseinternational](/exchanges/coinbaseinternational.md#coinbaseinternationaleditorder) * [coinex](/exchanges/coinex.md#coinexeditorder) * [coinlist](/exchanges/coinlist.md#coinlisteditorder) * [delta](/exchanges/delta.md#deltaeditorder) * [deribit](/exchanges/deribit.md#deribiteditorder) * [exmo](/exchanges/exmo.md#exmoeditorder) * [gate](/exchanges/gate.md#gateeditorder) * [hyperliquid](/exchanges/hyperliquid.md#hyperliquideditorder) * [hyperliquid](/exchanges/hyperliquid.md#hyperliquideditorder) * [kraken](/exchanges/kraken.md#krakeneditorder) * [krakenfutures](/exchanges/krakenfutures.md#krakenfutureseditorder) * [kucoin](/exchanges/kucoin.md#kucoineditorder) * [okx](/exchanges/okx.md#okxeditorder) * [phemex](/exchanges/phemex.md#phemexeditorder) * [poloniex](/exchanges/poloniex.md#poloniexeditorder) * [vertex](/exchanges/vertex.md#vertexeditorder) * [whitebit](/exchanges/whitebit.md#whitebiteditorder) * [woo](/exchanges/woo.md#wooeditorder) * [woofipro](/exchanges/woofipro.md#woofiproeditorder) --- ## editOrderWs edit a trade order **Kind**: instance **Returns**: object - an [order structure](https://docs.ccxt.com/#/?id=order-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | id | string | Yes | order id | | symbol | string | Yes | unified symbol of the market to create an order in | | type | string | Yes | 'market' or 'limit' | | side | string | Yes | 'buy' or 'sell' | | amount | float | Yes | how much of the currency you want to trade in units of the base currency | | price | float, undefined | No | the price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [binance](/exchanges/binance.md#binanceeditorderws) * [bitvavo](/exchanges/bitvavo.md#bitvavoeditorderws) * [bybit](/exchanges/bybit.md#bybiteditorderws) * [cex](/exchanges/cex.md#cexeditorderws) * [cex](/exchanges/cex.md#cexeditorderws) * [gate](/exchanges/gate.md#gateeditorderws) * [okx](/exchanges/okx.md#okxeditorderws) * [oxfun](/exchanges/oxfun.md#oxfuneditorderws) --- ## enableDemoTrading enables or disables demo trading mode **Kind**: instance | Param | Type | Required | Description | | --- | --- | --- | --- | | enable | boolean | No | true if demo trading should be enabled, false otherwise | ##### Supported exchanges * [bybit](/exchanges/bybit.md#bybitenabledemotrading) --- ## fetchAccounts fetch all the accounts associated with a profile **Kind**: instance **Returns**: object - a dictionary of [account structures](https://docs.ccxt.com/#/?id=account-structure) indexed by the account type | Param | Type | Required | Description | | --- | --- | --- | --- | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [ascendex](/exchanges/ascendex.md#ascendexfetchaccounts) * [coinbase](/exchanges/coinbase.md#coinbasefetchaccounts) * [coinbaseexchange](/exchanges/coinbaseexchange.md#coinbaseexchangefetchaccounts) * [coinbaseinternational](/exchanges/coinbaseinternational.md#coinbaseinternationalfetchaccounts) * [coinlist](/exchanges/coinlist.md#coinlistfetchaccounts) * [cryptocom](/exchanges/cryptocom.md#cryptocomfetchaccounts) * [currencycom](/exchanges/currencycom.md#currencycomfetchaccounts) * [deribit](/exchanges/deribit.md#deribitfetchaccounts) * [hashkey](/exchanges/hashkey.md#hashkeyfetchaccounts) * [htx](/exchanges/htx.md#htxfetchaccounts) * [huobijp](/exchanges/huobijp.md#huobijpfetchaccounts) * [kucoin](/exchanges/kucoin.md#kucoinfetchaccounts) * [luno](/exchanges/luno.md#lunofetchaccounts) * [mexc](/exchanges/mexc.md#mexcfetchaccounts) * [ndax](/exchanges/ndax.md#ndaxfetchaccounts) * [novadax](/exchanges/novadax.md#novadaxfetchaccounts) * [okx](/exchanges/okx.md#okxfetchaccounts) * [oxfun](/exchanges/oxfun.md#oxfunfetchaccounts) * [woo](/exchanges/woo.md#woofetchaccounts) --- ## fetchBalance query for balance and get the amount of funds available for trading or funds locked in orders **Kind**: instance **Returns**: object - a [balance structure](https://docs.ccxt.com/#/?id=balance-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [ace](/exchanges/ace.md#acefetchbalance) * [ascendex](/exchanges/ascendex.md#ascendexfetchbalance) * [bigone](/exchanges/bigone.md#bigonefetchbalance) * [binance](/exchanges/binance.md#binancefetchbalance) * [bingx](/exchanges/bingx.md#bingxfetchbalance) * [bit2c](/exchanges/bit2c.md#bit2cfetchbalance) * [bitbank](/exchanges/bitbank.md#bitbankfetchbalance) * [bitbns](/exchanges/bitbns.md#bitbnsfetchbalance) * [bitfinex](/exchanges/bitfinex.md#bitfinexfetchbalance) * [bitfinex2](/exchanges/bitfinex2.md#bitfinex2fetchbalance) * [bitflyer](/exchanges/bitflyer.md#bitflyerfetchbalance) * [bitget](/exchanges/bitget.md#bitgetfetchbalance) * [bithumb](/exchanges/bithumb.md#bithumbfetchbalance) * [bitmart](/exchanges/bitmart.md#bitmartfetchbalance) * [bitmex](/exchanges/bitmex.md#bitmexfetchbalance) * [bitopro](/exchanges/bitopro.md#bitoprofetchbalance) * [bitrue](/exchanges/bitrue.md#bitruefetchbalance) * [bitso](/exchanges/bitso.md#bitsofetchbalance) * [bitstamp](/exchanges/bitstamp.md#bitstampfetchbalance) * [betteam](/exchanges/betteam.md#betteamfetchbalance) * [bitvavo](/exchanges/bitvavo.md#bitvavofetchbalance) * [bl3p](/exchanges/bl3p.md#bl3pfetchbalance) * [blockchaincom](/exchanges/blockchaincom.md#blockchaincomfetchbalance) * [blofin](/exchanges/blofin.md#blofinfetchbalance) * [btcalpha](/exchanges/btcalpha.md#btcalphafetchbalance) * [btcbox](/exchanges/btcbox.md#btcboxfetchbalance) * [btcmarkets](/exchanges/btcmarkets.md#btcmarketsfetchbalance) * [btcturk](/exchanges/btcturk.md#btcturkfetchbalance) * [bybit](/exchanges/bybit.md#bybitfetchbalance) * [cex](/exchanges/cex.md#cexfetchbalance) * [coinbase](/exchanges/coinbase.md#coinbasefetchbalance) * [coinbaseexchange](/exchanges/coinbaseexchange.md#coinbaseexchangefetchbalance) * [coinbaseinternational](/exchanges/coinbaseinternational.md#coinbaseinternationalfetchbalance) * [coincheck](/exchanges/coincheck.md#coincheckfetchbalance) * [coinex](/exchanges/coinex.md#coinexfetchbalance) * [coinlist](/exchanges/coinlist.md#coinlistfetchbalance) * [coinmate](/exchanges/coinmate.md#coinmatefetchbalance) * [coinmetro](/exchanges/coinmetro.md#coinmetrofetchbalance) * [coinone](/exchanges/coinone.md#coinonefetchbalance) * [coinsph](/exchanges/coinsph.md#coinsphfetchbalance) * [coinspot](/exchanges/coinspot.md#coinspotfetchbalance) * [cryptocom](/exchanges/cryptocom.md#cryptocomfetchbalance) * [currencycom](/exchanges/currencycom.md#currencycomfetchbalance) * [delta](/exchanges/delta.md#deltafetchbalance) * [deribit](/exchanges/deribit.md#deribitfetchbalance) * [digifinex](/exchanges/digifinex.md#digifinexfetchbalance) * [exmo](/exchanges/exmo.md#exmofetchbalance) * [gemini](/exchanges/gemini.md#geminifetchbalance) * [hashkey](/exchanges/hashkey.md#hashkeyfetchbalance) * [hitbtc](/exchanges/hitbtc.md#hitbtcfetchbalance) * [hollaex](/exchanges/hollaex.md#hollaexfetchbalance) * [htx](/exchanges/htx.md#htxfetchbalance) * [huobijp](/exchanges/huobijp.md#huobijpfetchbalance) * [hyperliquid](/exchanges/hyperliquid.md#hyperliquidfetchbalance) * [idex](/exchanges/idex.md#idexfetchbalance) * [independentreserve](/exchanges/independentreserve.md#independentreservefetchbalance) * [indodax](/exchanges/indodax.md#indodaxfetchbalance) * [kraken](/exchanges/kraken.md#krakenfetchbalance) * [krakenfutures](/exchanges/krakenfutures.md#krakenfuturesfetchbalance) * [kucoin](/exchanges/kucoin.md#kucoinfetchbalance) * [kucoinfutures](/exchanges/kucoinfutures.md#kucoinfuturesfetchbalance) * [kuna](/exchanges/kuna.md#kunafetchbalance) * [latoken](/exchanges/latoken.md#latokenfetchbalance) * [lbank](/exchanges/lbank.md#lbankfetchbalance) * [luno](/exchanges/luno.md#lunofetchbalance) * [lykke](/exchanges/lykke.md#lykkefetchbalance) * [mercado](/exchanges/mercado.md#mercadofetchbalance) * [mexc](/exchanges/mexc.md#mexcfetchbalance) * [ndax](/exchanges/ndax.md#ndaxfetchbalance) * [novadax](/exchanges/novadax.md#novadaxfetchbalance) * [oceanex](/exchanges/oceanex.md#oceanexfetchbalance) * [okcoin](/exchanges/okcoin.md#okcoinfetchbalance) * [okx](/exchanges/okx.md#okxfetchbalance) * [onetrading](/exchanges/onetrading.md#onetradingfetchbalance) * [oxfun](/exchanges/oxfun.md#oxfunfetchbalance) * [p2b](/exchanges/p2b.md#p2bfetchbalance) * [paradex](/exchanges/paradex.md#paradexfetchbalance) * [paymium](/exchanges/paymium.md#paymiumfetchbalance) * [phemex](/exchanges/phemex.md#phemexfetchbalance) * [poloniex](/exchanges/poloniex.md#poloniexfetchbalance) * [poloniexfutures](/exchanges/poloniexfutures.md#poloniexfuturesfetchbalance) * [probit](/exchanges/probit.md#probitfetchbalance) * [timex](/exchanges/timex.md#timexfetchbalance) * [tokocrypto](/exchanges/tokocrypto.md#tokocryptofetchbalance) * [tradeogre](/exchanges/tradeogre.md#tradeogrefetchbalance) * [upbit](/exchanges/upbit.md#upbitfetchbalance) * [vertex](/exchanges/vertex.md#vertexfetchbalance) * [wavesexchange](/exchanges/wavesexchange.md#wavesexchangefetchbalance) * [wazirx](/exchanges/wazirx.md#wazirxfetchbalance) * [whitebit](/exchanges/whitebit.md#whitebitfetchbalance) * [woo](/exchanges/woo.md#woofetchbalance) * [woofipro](/exchanges/woofipro.md#woofiprofetchbalance) * [xt](/exchanges/xt.md#xtfetchbalance) * [yobit](/exchanges/yobit.md#yobitfetchbalance) * [zaif](/exchanges/zaif.md#zaiffetchbalance) * [zonda](/exchanges/zonda.md#zondafetchbalance) --- ## fetchBalanceWs fetch balance and get the amount of funds available for trading or funds locked in orders **Kind**: instance **Returns**: object - a [balance structure](https://docs.ccxt.com/#/?id=balance-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | params | object | No | extra parameters specific to the exchange API endpoint | | params.type | string, undefined | No | 'future', 'delivery', 'savings', 'funding', or 'spot' | | params.marginMode | string, undefined | No | 'cross' or 'isolated', for margin trading, uses this.options.defaultMarginMode if not passed, defaults to undefined/None/null | | params.symbols | Array<string>, undefined | No | unified market symbols, only used in isolated margin mode | | params.method | string, undefined | No | method to use. Can be account.balance, account.status, v2/account.balance or v2/account.status | ##### Supported exchanges * [binance](/exchanges/binance.md#binancefetchbalancews) * [bitvavo](/exchanges/bitvavo.md#bitvavofetchbalancews) * [cex](/exchanges/cex.md#cexfetchbalancews) --- ## fetchBidsAsks fetches the bid and ask price and volume for multiple markets **Kind**: instance **Returns**: object - a dictionary of [ticker structures](https://docs.ccxt.com/#/?id=ticker-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbols | Array<string>, undefined | Yes | unified symbols of the markets to fetch the bids and asks for, all markets are returned if not assigned | | params | object | No | extra parameters specific to the exchange API endpoint | | params.subType | string | No | "linear" or "inverse" | ##### Supported exchanges * [binance](/exchanges/binance.md#binancefetchbidsasks) * [bitrue](/exchanges/bitrue.md#bitruefetchbidsasks) * [coinbase](/exchanges/coinbase.md#coinbasefetchbidsasks) * [coinmetro](/exchanges/coinmetro.md#coinmetrofetchbidsasks) * [kucoinfutures](/exchanges/kucoinfutures.md#kucoinfuturesfetchbidsasks) * [mexc](/exchanges/mexc.md#mexcfetchbidsasks) * [tokocrypto](/exchanges/tokocrypto.md#tokocryptofetchbidsasks) * [xt](/exchanges/xt.md#xtfetchbidsasks) --- ## fetchBorrowInterest fetch the interest owed by the user for borrowing currency for margin trading **Kind**: instance **Returns**: Array<object> - a list of [borrow interest structures](https://docs.ccxt.com/#/?id=borrow-interest-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | code | string | No | unified currency code | | symbol | string | No | unified market symbol when fetch interest in isolated markets | | since | int | No | the earliest time in ms to fetch borrrow interest for | | limit | int | No | the maximum number of structures to retrieve | | params | object | No | extra parameters specific to the exchange API endpoint | | params.portfolioMargin | boolean | No | set to true if you would like to fetch the borrow interest in a portfolio margin account | ##### Supported exchanges * [binance](/exchanges/binance.md#binancefetchborrowinterest) * [bitget](/exchanges/bitget.md#bitgetfetchborrowinterest) * [bitmart](/exchanges/bitmart.md#bitmartfetchborrowinterest) * [bybit](/exchanges/bybit.md#bybitfetchborrowinterest) * [coinex](/exchanges/coinex.md#coinexfetchborrowinterest) * [htx](/exchanges/htx.md#htxfetchborrowinterest) * [kucoin](/exchanges/kucoin.md#kucoinfetchborrowinterest) * [okx](/exchanges/okx.md#okxfetchborrowinterest) * [whitebit](/exchanges/whitebit.md#whitebitfetchborrowinterest) --- ## fetchBorrowRateHistories retrieves a history of a multiple currencies borrow interest rate at specific time slots, returns all currencies if no symbols passed, default is undefined **Kind**: instance **Returns**: object - a dictionary of [borrow rate structures](https://docs.ccxt.com/#/?id=borrow-rate-structure) indexed by the market symbol | Param | Type | Required | Description | | --- | --- | --- | --- | | codes | Array<string>, undefined | Yes | list of unified currency codes, default is undefined | | since | int | No | timestamp in ms of the earliest borrowRate, default is undefined | | limit | int | No | max number of borrow rate prices to return, default is undefined | | params | object | No | extra parameters specific to the exchange API endpoint | | params.marginMode | string | No | 'cross' or 'isolated' default is 'cross' | | params.until | int | No | the latest time in ms to fetch entries for | ##### Supported exchanges * [kucoin](/exchanges/kucoin.md#kucoinfetchborrowratehistories) * [okx](/exchanges/okx.md#okxfetchborrowratehistories) --- ## fetchBorrowRateHistory retrieves a history of a currencies borrow interest rate at specific time slots **Kind**: instance **Returns**: Array<object> - an array of [borrow rate structures](https://docs.ccxt.com/#/?id=borrow-rate-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | code | string | Yes | unified currency code | | since | int | No | timestamp for the earliest borrow rate | | limit | int | No | the maximum number of [borrow rate structures](https://docs.ccxt.com/#/?id=borrow-rate-structure) to retrieve | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [binance](/exchanges/binance.md#binancefetchborrowratehistory) * [kucoin](/exchanges/kucoin.md#kucoinfetchborrowratehistory) * [okx](/exchanges/okx.md#okxfetchborrowratehistory) --- ## fetchCanceledAndClosedOrders fetches information on multiple canceled orders made by the user **Kind**: instance **Returns**: Array<object> - a list of [order structures](https://docs.ccxt.com/#/?id=order-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | unified market symbol of the market the orders were made in | | since | int | No | the earliest time in ms to fetch orders for | | limit | int | No | the maximum number of order structures to retrieve | | params | object | No | extra parameters specific to the exchange API endpoint | | params.paginate | boolean | No | 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) | | params.portfolioMargin | boolean | No | set to true if you would like to fetch orders in a portfolio margin account | | params.stop | boolean | No | set to true if you would like to fetch portfolio margin account stop or conditional orders | ##### Supported exchanges * [binance](/exchanges/binance.md#binancefetchcanceledandclosedorders) * [bingx](/exchanges/bingx.md#bingxfetchcanceledandclosedorders) * [bitget](/exchanges/bitget.md#bitgetfetchcanceledandclosedorders) * [bybit](/exchanges/bybit.md#bybitfetchcanceledandclosedorders) * [coinmetro](/exchanges/coinmetro.md#coinmetrofetchcanceledandclosedorders) * [hashkey](/exchanges/hashkey.md#hashkeyfetchcanceledandclosedorders) * [hyperliquid](/exchanges/hyperliquid.md#hyperliquidfetchcanceledandclosedorders) --- ## fetchCanceledOrders fetches information on multiple canceled orders made by the user **Kind**: instance **Returns**: Array<object> - a list of [order structures](https://docs.ccxt.com/#/?id=order-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | unified market symbol of the market the orders were made in | | since | int | No | the earliest time in ms to fetch orders for | | limit | int | No | the maximum number of order structures to retrieve | | params | object | No | extra parameters specific to the exchange API endpoint | | params.paginate | boolean | No | 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) | | params.portfolioMargin | boolean | No | set to true if you would like to fetch orders in a portfolio margin account | | params.stop | boolean | No | set to true if you would like to fetch portfolio margin account stop or conditional orders | ##### Supported exchanges * [binance](/exchanges/binance.md#binancefetchcanceledorders) * [bingx](/exchanges/bingx.md#bingxfetchcanceledorders) * [bitget](/exchanges/bitget.md#bitgetfetchcanceledorders) * [bitmart](/exchanges/bitmart.md#bitmartfetchcanceledorders) * [bitteam](/exchanges/bitteam.md#bitteamfetchcanceledorders) * [blockchaincom](/exchanges/blockchaincom.md#blockchaincomfetchcanceledorders) * [bybit](/exchanges/bybit.md#bybitfetchcanceledorders) * [coinbase](/exchanges/coinbase.md#coinbasefetchcanceledorders) * [coinlist](/exchanges/coinlist.md#coinlistfetchcanceledorders) * [exmo](/exchanges/exmo.md#exmofetchcanceledorders) * [hyperliquid](/exchanges/hyperliquid.md#hyperliquidfetchcanceledorders) * [krakenfutures](/exchanges/krakenfutures.md#krakenfuturesfetchcanceledorders) * [mexc](/exchanges/mexc.md#mexcfetchcanceledorders) * [okx](/exchanges/okx.md#okxfetchcanceledorders) * [upbit](/exchanges/upbit.md#upbitfetchcanceledorders) * [xt](/exchanges/xt.md#xtfetchcanceledorders) --- ## fetchClosedOrder fetch an open order by it's id **Kind**: instance **Returns**: object - an [order structure](https://docs.ccxt.com/#/?id=order-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | id | string | Yes | order id | | symbol | string | Yes | unified market symbol, default is undefined | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [bitfinex2](/exchanges/bitfinex2.md#bitfinex2fetchclosedorder) * [bybit](/exchanges/bybit.md#bybitfetchclosedorder) --- ## fetchClosedOrders fetches information on multiple closed orders made by the user **Kind**: instance **Returns**: Array<Order> - a list of [order structures](https://docs.ccxt.com/#/?id=order-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | unified market symbol of the market orders were made in | | since | int | No | the earliest time in ms to fetch orders for | | limit | int | No | the maximum number of order structures to retrieve | | params | object | No | extra parameters specific to the exchange API endpoint | | params.until | int | No | the latest time in ms to fetch orders for | ##### Supported exchanges * [alpaca](/exchanges/alpaca.md#alpacafetchclosedorders) * [ascendex](/exchanges/ascendex.md#ascendexfetchclosedorders) * [bigone](/exchanges/bigone.md#bigonefetchclosedorders) * [binance](/exchanges/binance.md#binancefetchclosedorders) * [bingx](/exchanges/bingx.md#bingxfetchclosedorders) * [bitfinex](/exchanges/bitfinex.md#bitfinexfetchclosedorders) * [bitfinex2](/exchanges/bitfinex2.md#bitfinex2fetchclosedorders) * [bitflyer](/exchanges/bitflyer.md#bitflyerfetchclosedorders) * [bitget](/exchanges/bitget.md#bitgetfetchclosedorders) * [bitmart](/exchanges/bitmart.md#bitmartfetchclosedorders) * [bitmex](/exchanges/bitmex.md#bitmexfetchclosedorders) * [bitopro](/exchanges/bitopro.md#bitoprofetchclosedorders) * [bitrue](/exchanges/bitrue.md#bitruefetchclosedorders) * [bitteam](/exchanges/bitteam.md#bitteamfetchclosedorders) * [blockchaincom](/exchanges/blockchaincom.md#blockchaincomfetchclosedorders) * [blofin](/exchanges/blofin.md#blofinfetchclosedorders) * [btcalpha](/exchanges/btcalpha.md#btcalphafetchclosedorders) * [btcmarkets](/exchanges/btcmarkets.md#btcmarketsfetchclosedorders) * [bybit](/exchanges/bybit.md#bybitfetchclosedorders) * [cex](/exchanges/cex.md#cexfetchclosedorders) * [coinbase](/exchanges/coinbase.md#coinbasefetchclosedorders) * [coinbaseexchange](/exchanges/coinbaseexchange.md#coinbaseexchangefetchclosedorders) * [coinex](/exchanges/coinex.md#coinexfetchclosedorders) * [coinlist](/exchanges/coinlist.md#coinlistfetchclosedorders) * [coinsph](/exchanges/coinsph.md#coinsphfetchclosedorders) * [delta](/exchanges/delta.md#deltafetchclosedorders) * [deribit](/exchanges/deribit.md#deribitfetchclosedorders) * [gate](/exchanges/gate.md#gatefetchclosedorders) * [hitbtc](/exchanges/hitbtc.md#hitbtcfetchclosedorders) * [hollaex](/exchanges/hollaex.md#hollaexfetchclosedorders) * [htx](/exchanges/htx.md#htxfetchclosedorders) * [huobijp](/exchanges/huobijp.md#huobijpfetchclosedorders) * [hyperliquid](/exchanges/hyperliquid.md#hyperliquidfetchclosedorders) * [idex](/exchanges/idex.md#idexfetchclosedorders) * [independentreserve](/exchanges/independentreserve.md#independentreservefetchclosedorders) * [indodax](/exchanges/indodax.md#indodaxfetchclosedorders) * [kraken](/exchanges/kraken.md#krakenfetchclosedorders) * [krakenfutures](/exchanges/krakenfutures.md#krakenfuturesfetchclosedorders) * [kucoin](/exchanges/kucoin.md#kucoinfetchclosedorders) * [kucoinfutures](/exchanges/kucoinfutures.md#kucoinfuturesfetchclosedorders) * [kuna](/exchanges/kuna.md#kunafetchclosedorders) * [luno](/exchanges/luno.md#lunofetchclosedorders) * [lykke](/exchanges/lykke.md#lykkefetchclosedorders) * [mexc](/exchanges/mexc.md#mexcfetchclosedorders) * [novadax](/exchanges/novadax.md#novadaxfetchclosedorders) * [oceanex](/exchanges/oceanex.md#oceanexfetchclosedorders) * [okcoin](/exchanges/okcoin.md#okcoinfetchclosedorders) * [okx](/exchanges/okx.md#okxfetchclosedorders) * [onetrading](/exchanges/onetrading.md#onetradingfetchclosedorders) * [p2b](/exchanges/p2b.md#p2bfetchclosedorders) * [phemex](/exchanges/phemex.md#phemexfetchclosedorders) * [poloniexfutures](/exchanges/poloniexfutures.md#poloniexfuturesfetchclosedorders) * [probit](/exchanges/probit.md#probitfetchclosedorders) * [timex](/exchanges/timex.md#timexfetchclosedorders) * [tokocrypto](/exchanges/tokocrypto.md#tokocryptofetchclosedorders) * [upbit](/exchanges/upbit.md#upbitfetchclosedorders) * [wavesexchange](/exchanges/wavesexchange.md#wavesexchangefetchclosedorders) * [whitebit](/exchanges/whitebit.md#whitebitfetchclosedorders) * [woo](/exchanges/woo.md#woofetchclosedorders) * [woofipro](/exchanges/woofipro.md#woofiprofetchclosedorders) * [xt](/exchanges/xt.md#xtfetchclosedorders) * [zaif](/exchanges/zaif.md#zaiffetchclosedorders) --- ## fetchClosedOrdersWs fetch closed orders **Kind**: instance **Returns**: Array<object> - a list of [order structures](https://docs.ccxt.com/#/?id=order-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | unified market symbol | | since | int | No | the earliest time in ms to fetch open orders for | | limit | int | No | the maximum number of open orders structures to retrieve | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [binance](/exchanges/binance.md#binancefetchclosedordersws) * [gate](/exchanges/gate.md#gatefetchclosedordersws) --- ## fetchConvertCurrencies fetches all available currencies that can be converted **Kind**: instance **Returns**: object - an associative dictionary of currencies | Param | Type | Required | Description | | --- | --- | --- | --- | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [binance](/exchanges/binance.md#binancefetchconvertcurrencies) * [bitget](/exchanges/bitget.md#bitgetfetchconvertcurrencies) * [okx](/exchanges/okx.md#okxfetchconvertcurrencies) * [woo](/exchanges/woo.md#woofetchconvertcurrencies) --- ## fetchConvertQuote fetch a quote for converting from one currency to another **Kind**: instance **Returns**: object - a [conversion structure](https://docs.ccxt.com/#/?id=conversion-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | fromCode | string | Yes | the currency that you want to sell and convert from | | toCode | string | Yes | the currency that you want to buy and convert into | | amount | float | Yes | how much you want to trade in units of the from currency | | params | object | No | extra parameters specific to the exchange API endpoint | | params.walletType | string | No | either 'SPOT' or 'FUNDING', the default is 'SPOT' | ##### Supported exchanges * [binance](/exchanges/binance.md#binancefetchconvertquote) * [bitget](/exchanges/bitget.md#bitgetfetchconvertquote) * [coinbase](/exchanges/coinbase.md#coinbasefetchconvertquote) * [okx](/exchanges/okx.md#okxfetchconvertquote) * [woo](/exchanges/woo.md#woofetchconvertquote) --- ## fetchConvertTrade fetch the data for a conversion trade **Kind**: instance **Returns**: object - a [conversion structure](https://docs.ccxt.com/#/?id=conversion-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | id | string | Yes | the id of the trade that you want to fetch | | code | string | No | the unified currency code of the conversion trade | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [binance](/exchanges/binance.md#binancefetchconverttrade) * [coinbase](/exchanges/coinbase.md#coinbasefetchconverttrade) * [okx](/exchanges/okx.md#okxfetchconverttrade) * [woo](/exchanges/woo.md#woofetchconverttrade) --- ## fetchConvertTradeHistory fetch the users history of conversion trades **Kind**: instance **Returns**: Array<object> - a list of [conversion structures](https://docs.ccxt.com/#/?id=conversion-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | code | string | No | the unified currency code | | since | int | No | the earliest time in ms to fetch conversions for | | limit | int | No | the maximum number of conversion structures to retrieve | | params | object | No | extra parameters specific to the exchange API endpoint | | params.until | int | No | timestamp in ms of the latest conversion to fetch | ##### Supported exchanges * [binance](/exchanges/binance.md#binancefetchconverttradehistory) * [bitget](/exchanges/bitget.md#bitgetfetchconverttradehistory) * [okx](/exchanges/okx.md#okxfetchconverttradehistory) * [woo](/exchanges/woo.md#woofetchconverttradehistory) --- ## fetchCrossBorrowRate fetch the rate of interest to borrow a currency for margin trading **Kind**: instance **Returns**: object - a [borrow rate structure](https://docs.ccxt.com/#/?id=borrow-rate-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | code | string | Yes | unified currency code | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [binance](/exchanges/binance.md#binancefetchcrossborrowrate) * [bitget](/exchanges/bitget.md#bitgetfetchcrossborrowrate) * [bybit](/exchanges/bybit.md#bybitfetchcrossborrowrate) * [digifinex](/exchanges/digifinex.md#digifinexfetchcrossborrowrate) * [okx](/exchanges/okx.md#okxfetchcrossborrowrate) --- ## fetchCrossBorrowRates fetch the borrow interest rates of all currencies **Kind**: instance **Returns**: object - a list of [borrow rate structures](https://docs.ccxt.com/#/?id=borrow-rate-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [digifinex](/exchanges/digifinex.md#digifinexfetchcrossborrowrates) * [okx](/exchanges/okx.md#okxfetchcrossborrowrates) --- ## fetchCurrencies fetches all available currencies on an exchange **Kind**: instance **Returns**: object - an associative dictionary of currencies | Param | Type | Required | Description | | --- | --- | --- | --- | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [ascendex](/exchanges/ascendex.md#ascendexfetchcurrencies) * [bigone](/exchanges/bigone.md#bigonefetchcurrencies) * [binance](/exchanges/binance.md#binancefetchcurrencies) * [bingx](/exchanges/bingx.md#bingxfetchcurrencies) * [bitfinex2](/exchanges/bitfinex2.md#bitfinex2fetchcurrencies) * [bitget](/exchanges/bitget.md#bitgetfetchcurrencies) * [bitmart](/exchanges/bitmart.md#bitmartfetchcurrencies) * [bitmex](/exchanges/bitmex.md#bitmexfetchcurrencies) * [bitopro](/exchanges/bitopro.md#bitoprofetchcurrencies) * [bitrue](/exchanges/bitrue.md#bitruefetchcurrencies) * [bitstamp](/exchanges/bitstamp.md#bitstampfetchcurrencies) * [bitteam](/exchanges/bitteam.md#bitteamfetchcurrencies) * [bitvavo](/exchanges/bitvavo.md#bitvavofetchcurrencies) * [bybit](/exchanges/bybit.md#bybitfetchcurrencies) * [cex](/exchanges/cex.md#cexfetchcurrencies) * [coinbase](/exchanges/coinbase.md#coinbasefetchcurrencies) * [coinbaseexchange](/exchanges/coinbaseexchange.md#coinbaseexchangefetchcurrencies) * [coinbaseinternational](/exchanges/coinbaseinternational.md#coinbaseinternationalfetchcurrencies) * [coinex](/exchanges/coinex.md#coinexfetchcurrencies) * [coinlist](/exchanges/coinlist.md#coinlistfetchcurrencies) * [coinmetro](/exchanges/coinmetro.md#coinmetrofetchcurrencies) * [coinone](/exchanges/coinone.md#coinonefetchcurrencies) * [currencycom](/exchanges/currencycom.md#currencycomfetchcurrencies) * [delta](/exchanges/delta.md#deltafetchcurrencies) * [deribit](/exchanges/deribit.md#deribitfetchcurrencies) * [digifinex](/exchanges/digifinex.md#digifinexfetchcurrencies) * [exmo](/exchanges/exmo.md#exmofetchcurrencies) * [gate](/exchanges/gate.md#gatefetchcurrencies) * [gemini](/exchanges/gemini.md#geminifetchcurrencies) * [hashkey](/exchanges/hashkey.md#hashkeyfetchcurrencies) * [hitbtc](/exchanges/hitbtc.md#hitbtcfetchcurrencies) * [hollaex](/exchanges/hollaex.md#hollaexfetchcurrencies) * [htx](/exchanges/htx.md#htxfetchcurrencies) * [huobijp](/exchanges/huobijp.md#huobijpfetchcurrencies) * [hyperliquid](/exchanges/hyperliquid.md#hyperliquidfetchcurrencies) * [idex](/exchanges/idex.md#idexfetchcurrencies) * [kraken](/exchanges/kraken.md#krakenfetchcurrencies) * [kucoin](/exchanges/kucoin.md#kucoinfetchcurrencies) * [kuna](/exchanges/kuna.md#kunafetchcurrencies) * [latoken](/exchanges/latoken.md#latokenfetchcurrencies) * [lykke](/exchanges/lykke.md#lykkefetchcurrencies) * [mexc](/exchanges/mexc.md#mexcfetchcurrencies) * [ndax](/exchanges/ndax.md#ndaxfetchcurrencies) * [okcoin](/exchanges/okcoin.md#okcoinfetchcurrencies) * [okx](/exchanges/okx.md#okxfetchcurrencies) * [onetrading](/exchanges/onetrading.md#onetradingfetchcurrencies) * [oxfun](/exchanges/oxfun.md#oxfunfetchcurrencies) * [phemex](/exchanges/phemex.md#phemexfetchcurrencies) * [poloniex](/exchanges/poloniex.md#poloniexfetchcurrencies) * [probit](/exchanges/probit.md#probitfetchcurrencies) * [timex](/exchanges/timex.md#timexfetchcurrencies) * [vertex](/exchanges/vertex.md#vertexfetchcurrencies) * [wazirx](/exchanges/wazirx.md#wazirxfetchcurrencies) * [whitebit](/exchanges/whitebit.md#whitebitfetchcurrencies) * [woo](/exchanges/woo.md#woofetchcurrencies) * [woofipro](/exchanges/woofipro.md#woofiprofetchcurrencies) * [xt](/exchanges/xt.md#xtfetchcurrencies) --- ## fetchCurrenciesWs fetches all available currencies on an exchange **Kind**: instance **Returns**: object - an associative dictionary of currencies | Param | Type | Required | Description | | --- | --- | --- | --- | | params | object | No | extra parameters specific to the bitvavo api endpoint | ##### Supported exchanges * [bitvavo](/exchanges/bitvavo.md#bitvavofetchcurrenciesws) --- ## fetchDeposit fetch information on a deposit **Kind**: instance **Returns**: object - a [transaction structure](https://docs.ccxt.com/#/?id=transaction-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | id | string | Yes | deposit id | | code | string | Yes | not used by bitmart fetchDeposit () | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [bitmart](/exchanges/bitmart.md#bitmartfetchdeposit) * [bitso](/exchanges/bitso.md#bitsofetchdeposit) * [blockchaincom](/exchanges/blockchaincom.md#blockchaincomfetchdeposit) * [coinbase](/exchanges/coinbase.md#coinbasefetchdeposit) * [exmo](/exchanges/exmo.md#exmofetchdeposit) * [idex](/exchanges/idex.md#idexfetchdeposit) * [kuna](/exchanges/kuna.md#kunafetchdeposit) * [okx](/exchanges/okx.md#okxfetchdeposit) * [upbit](/exchanges/upbit.md#upbitfetchdeposit) * [whitebit](/exchanges/whitebit.md#whitebitfetchdeposit) --- ## fetchDepositAddress fetch the deposit address for a currency associated with this account **Kind**: instance **Returns**: object - an [address structure](https://docs.ccxt.com/#/?id=address-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | code | string | Yes | unified currency code | | params | object | No | extra parameters specific to the exchange API endpoint | | params.network | string | No | unified network code for deposit chain | ##### Supported exchanges * [ascendex](/exchanges/ascendex.md#ascendexfetchdepositaddress) * [bigone](/exchanges/bigone.md#bigonefetchdepositaddress) * [binance](/exchanges/binance.md#binancefetchdepositaddress) * [bingx](/exchanges/bingx.md#bingxfetchdepositaddress) * [bit2c](/exchanges/bit2c.md#bit2cfetchdepositaddress) * [bitbank](/exchanges/bitbank.md#bitbankfetchdepositaddress) * [bitbns](/exchanges/bitbns.md#bitbnsfetchdepositaddress) * [bitfinex](/exchanges/bitfinex.md#bitfinexfetchdepositaddress) * [bitfinex2](/exchanges/bitfinex2.md#bitfinex2fetchdepositaddress) * [bitget](/exchanges/bitget.md#bitgetfetchdepositaddress) * [bitmart](/exchanges/bitmart.md#bitmartfetchdepositaddress) * [bitmex](/exchanges/bitmex.md#bitmexfetchdepositaddress) * [bitso](/exchanges/bitso.md#bitsofetchdepositaddress) * [bitstamp](/exchanges/bitstamp.md#bitstampfetchdepositaddress) * [bitvavo](/exchanges/bitvavo.md#bitvavofetchdepositaddress) * [blockchaincom](/exchanges/blockchaincom.md#blockchaincomfetchdepositaddress) * [bybit](/exchanges/bybit.md#bybitfetchdepositaddress) * [cex](/exchanges/cex.md#cexfetchdepositaddress) * [coinbase](/exchanges/coinbase.md#coinbasefetchdepositaddress) * [coinex](/exchanges/coinex.md#coinexfetchdepositaddress) * [coinsph](/exchanges/coinsph.md#coinsphfetchdepositaddress) * [cryptocom](/exchanges/cryptocom.md#cryptocomfetchdepositaddress) * [currencycom](/exchanges/currencycom.md#currencycomfetchdepositaddress) * [delta](/exchanges/delta.md#deltafetchdepositaddress) * [deribit](/exchanges/deribit.md#deribitfetchdepositaddress) * [digifinex](/exchanges/digifinex.md#digifinexfetchdepositaddress) * [exmo](/exchanges/exmo.md#exmofetchdepositaddress) * [gate](/exchanges/gate.md#gatefetchdepositaddress) * [gemini](/exchanges/gemini.md#geminifetchdepositaddress) * [hashkey](/exchanges/hashkey.md#hashkeyfetchdepositaddress) * [hitbtc](/exchanges/hitbtc.md#hitbtcfetchdepositaddress) * [htx](/exchanges/htx.md#htxfetchdepositaddress) * [idex](/exchanges/idex.md#idexfetchdepositaddress) * [independentreserve](/exchanges/independentreserve.md#independentreservefetchdepositaddress) * [kraken](/exchanges/kraken.md#krakenfetchdepositaddress) * [kucoin](/exchanges/kucoin.md#kucoinfetchdepositaddress) * [kucoinfutures](/exchanges/kucoinfutures.md#kucoinfuturesfetchdepositaddress) * [kuna](/exchanges/kuna.md#kunafetchdepositaddress) * [lbank](/exchanges/lbank.md#lbankfetchdepositaddress) * [lykke](/exchanges/lykke.md#lykkefetchdepositaddress) * [mexc](/exchanges/mexc.md#mexcfetchdepositaddress) * [ndax](/exchanges/ndax.md#ndaxfetchdepositaddress) * [okx](/exchanges/okx.md#okxfetchdepositaddress) * [okx](/exchanges/okx.md#okxfetchdepositaddress) * [onetrading](/exchanges/onetrading.md#onetradingfetchdepositaddress) * [oxfun](/exchanges/oxfun.md#oxfunfetchdepositaddress) * [paymium](/exchanges/paymium.md#paymiumfetchdepositaddress) * [phemex](/exchanges/phemex.md#phemexfetchdepositaddress) * [poloniex](/exchanges/poloniex.md#poloniexfetchdepositaddress) * [probit](/exchanges/probit.md#probitfetchdepositaddress) * [timex](/exchanges/timex.md#timexfetchdepositaddress) * [tokocrypto](/exchanges/tokocrypto.md#tokocryptofetchdepositaddress) * [upbit](/exchanges/upbit.md#upbitfetchdepositaddress) * [wavesexchange](/exchanges/wavesexchange.md#wavesexchangefetchdepositaddress) * [wazirx](/exchanges/wazirx.md#wazirxfetchdepositaddress) * [whitebit](/exchanges/whitebit.md#whitebitfetchdepositaddress) * [woo](/exchanges/woo.md#woofetchdepositaddress) * [xt](/exchanges/xt.md#xtfetchdepositaddress) * [yobit](/exchanges/yobit.md#yobitfetchdepositaddress) * [zonda](/exchanges/zonda.md#zondafetchdepositaddress) --- ## fetchDepositAddresses fetch deposit addresses for multiple currencies and chain types **Kind**: instance **Returns**: object - a list of [address structures](https://docs.ccxt.com/#/?id=address-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | codes | Array<string>, undefined | Yes | list of unified currency codes, default is undefined | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [coinone](/exchanges/coinone.md#coinonefetchdepositaddresses) * [hollaex](/exchanges/hollaex.md#hollaexfetchdepositaddresses) * [indodax](/exchanges/indodax.md#indodaxfetchdepositaddresses) * [paymium](/exchanges/paymium.md#paymiumfetchdepositaddresses) * [probit](/exchanges/probit.md#probitfetchdepositaddresses) * [upbit](/exchanges/upbit.md#upbitfetchdepositaddresses) * [zonda](/exchanges/zonda.md#zondafetchdepositaddresses) --- ## fetchDepositAddressesByNetwork fetch the deposit addresses for a currency associated with this account **Kind**: instance **Returns**: object - a dictionary [address structures](https://docs.ccxt.com/#/?id=address-structure), indexed by the network | Param | Type | Required | Description | | --- | --- | --- | --- | | code | string | Yes | unified currency code | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [bingx](/exchanges/bingx.md#bingxfetchdepositaddressesbynetwork) * [bybit](/exchanges/bybit.md#bybitfetchdepositaddressesbynetwork) * [cryptocom](/exchanges/cryptocom.md#cryptocomfetchdepositaddressesbynetwork) * [gemini](/exchanges/gemini.md#geminifetchdepositaddressesbynetwork) * [htx](/exchanges/htx.md#htxfetchdepositaddressesbynetwork) * [kucoin](/exchanges/kucoin.md#kucoinfetchdepositaddressesbynetwork) * [mexc](/exchanges/mexc.md#mexcfetchdepositaddressesbynetwork) * [okx](/exchanges/okx.md#okxfetchdepositaddressesbynetwork) * [okx](/exchanges/okx.md#okxfetchdepositaddressesbynetwork) --- ## fetchDepositMethods fetch deposit methods for a currency associated with this account **Kind**: instance **Returns**: object - of deposit methods | Param | Type | Required | Description | | --- | --- | --- | --- | | code | string | Yes | unified currency code | | params | object | No | extra parameters specific to the kraken api endpoint | ##### Supported exchanges * [kraken](/exchanges/kraken.md#krakenfetchdepositmethods) --- ## fetchDepositWithdrawFee fetch the fee for deposits and withdrawals **Kind**: instance **Returns**: object - a [fee structure](https://docs.ccxt.com/#/?id=fee-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | code | string | Yes | unified currency code | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [bitmart](/exchanges/bitmart.md#bitmartfetchdepositwithdrawfee) * [coinex](/exchanges/coinex.md#coinexfetchdepositwithdrawfee) * [kucoin](/exchanges/kucoin.md#kucoinfetchdepositwithdrawfee) --- ## fetchDepositWithdrawFees fetch deposit and withdraw fees **Kind**: instance **Returns**: object - a list of [fee structures](https://docs.ccxt.com/#/?id=fee-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | codes | Array<string>, undefined | Yes | list of unified currency codes | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [ascendex](/exchanges/ascendex.md#ascendexfetchdepositwithdrawfees) * [binance](/exchanges/binance.md#binancefetchdepositwithdrawfees) * [bingx](/exchanges/bingx.md#bingxfetchdepositwithdrawfees) * [bitfinex](/exchanges/bitfinex.md#bitfinexfetchdepositwithdrawfees) * [bitget](/exchanges/bitget.md#bitgetfetchdepositwithdrawfees) * [bitmex](/exchanges/bitmex.md#bitmexfetchdepositwithdrawfees) * [bitopro](/exchanges/bitopro.md#bitoprofetchdepositwithdrawfees) * [bitrue](/exchanges/bitrue.md#bitruefetchdepositwithdrawfees) * [bitso](/exchanges/bitso.md#bitsofetchdepositwithdrawfees) * [bitstamp](/exchanges/bitstamp.md#bitstampfetchdepositwithdrawfees) * [bitvavo](/exchanges/bitvavo.md#bitvavofetchdepositwithdrawfees) * [bybit](/exchanges/bybit.md#bybitfetchdepositwithdrawfees) * [cryptocom](/exchanges/cryptocom.md#cryptocomfetchdepositwithdrawfees) * [deribit](/exchanges/deribit.md#deribitfetchdepositwithdrawfees) * [digifinex](/exchanges/digifinex.md#digifinexfetchdepositwithdrawfees) * [exmo](/exchanges/exmo.md#exmofetchdepositwithdrawfees) * [gate](/exchanges/gate.md#gatefetchdepositwithdrawfees) * [hitbtc](/exchanges/hitbtc.md#hitbtcfetchdepositwithdrawfees) * [hollaex](/exchanges/hollaex.md#hollaexfetchdepositwithdrawfees) * [htx](/exchanges/htx.md#htxfetchdepositwithdrawfees) * [kucoin](/exchanges/kucoin.md#kucoinfetchdepositwithdrawfees) * [lbank](/exchanges/lbank.md#lbankfetchdepositwithdrawfees) * [mexc](/exchanges/mexc.md#mexcfetchdepositwithdrawfees) * [okx](/exchanges/okx.md#okxfetchdepositwithdrawfees) * [poloniex](/exchanges/poloniex.md#poloniexfetchdepositwithdrawfees) * [probit](/exchanges/probit.md#probitfetchdepositwithdrawfees) * [wavesexchange](/exchanges/wavesexchange.md#wavesexchangefetchdepositwithdrawfees) * [whitebit](/exchanges/whitebit.md#whitebitfetchdepositwithdrawfees) --- ## fetchDeposits fetch all deposits made to an account **Kind**: instance **Returns**: Array<object> - a list of [transaction structures](https://docs.ccxt.com/#/?id=transaction-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | code | string | Yes | unified currency code | | since | int | No | the earliest time in ms to fetch deposits for | | limit | int | No | the maximum number of deposits structures to retrieve | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [ascendex](/exchanges/ascendex.md#ascendexfetchdeposits) * [bigone](/exchanges/bigone.md#bigonefetchdeposits) * [binance](/exchanges/binance.md#binancefetchdeposits) * [bingx](/exchanges/bingx.md#bingxfetchdeposits) * [bitbns](/exchanges/bitbns.md#bitbnsfetchdeposits) * [bitflyer](/exchanges/bitflyer.md#bitflyerfetchdeposits) * [bitget](/exchanges/bitget.md#bitgetfetchdeposits) * [bitmart](/exchanges/bitmart.md#bitmartfetchdeposits) * [bitopro](/exchanges/bitopro.md#bitoprofetchdeposits) * [bitrue](/exchanges/bitrue.md#bitruefetchdeposits) * [bitso](/exchanges/bitso.md#bitsofetchdeposits) * [bitvavo](/exchanges/bitvavo.md#bitvavofetchdeposits) * [blockchaincom](/exchanges/blockchaincom.md#blockchaincomfetchdeposits) * [blofin](/exchanges/blofin.md#blofinfetchdeposits) * [btcalpha](/exchanges/btcalpha.md#btcalphafetchdeposits) * [btcmarkets](/exchanges/btcmarkets.md#btcmarketsfetchdeposits) * [bybit](/exchanges/bybit.md#bybitfetchdeposits) * [coinbase](/exchanges/coinbase.md#coinbasefetchdeposits) * [coinbaseexchange](/exchanges/coinbaseexchange.md#coinbaseexchangefetchdeposits) * [coinbaseinternational](/exchanges/coinbaseinternational.md#coinbaseinternationalfetchdeposits) * [coincheck](/exchanges/coincheck.md#coincheckfetchdeposits) * [coinex](/exchanges/coinex.md#coinexfetchdeposits) * [coinsph](/exchanges/coinsph.md#coinsphfetchdeposits) * [cryptocom](/exchanges/cryptocom.md#cryptocomfetchdeposits) * [currencycom](/exchanges/currencycom.md#currencycomfetchdeposits) * [deribit](/exchanges/deribit.md#deribitfetchdeposits) * [digifinex](/exchanges/digifinex.md#digifinexfetchdeposits) * [exmo](/exchanges/exmo.md#exmofetchdeposits) * [gate](/exchanges/gate.md#gatefetchdeposits) * [hashkey](/exchanges/hashkey.md#hashkeyfetchdeposits) * [hitbtc](/exchanges/hitbtc.md#hitbtcfetchdeposits) * [hollaex](/exchanges/hollaex.md#hollaexfetchdeposits) * [htx](/exchanges/htx.md#htxfetchdeposits) * [huobijp](/exchanges/huobijp.md#huobijpfetchdeposits) * [hyperliquid](/exchanges/hyperliquid.md#hyperliquidfetchdeposits) * [idex](/exchanges/idex.md#idexfetchdeposits) * [kraken](/exchanges/kraken.md#krakenfetchdeposits) * [kucoin](/exchanges/kucoin.md#kucoinfetchdeposits) * [kucoinfutures](/exchanges/kucoinfutures.md#kucoinfuturesfetchdeposits) * [kuna](/exchanges/kuna.md#kunafetchdeposits) * [lbank](/exchanges/lbank.md#lbankfetchdeposits) * [mexc](/exchanges/mexc.md#mexcfetchdeposits) * [ndax](/exchanges/ndax.md#ndaxfetchdeposits) * [novadax](/exchanges/novadax.md#novadaxfetchdeposits) * [okcoin](/exchanges/okcoin.md#okcoinfetchdeposits) * [okx](/exchanges/okx.md#okxfetchdeposits) * [onetrading](/exchanges/onetrading.md#onetradingfetchdeposits) * [oxfun](/exchanges/oxfun.md#oxfunfetchdeposits) * [phemex](/exchanges/phemex.md#phemexfetchdeposits) * [poloniex](/exchanges/poloniex.md#poloniexfetchdeposits) * [probit](/exchanges/probit.md#probitfetchdeposits) * [timex](/exchanges/timex.md#timexfetchdeposits) * [tokocrypto](/exchanges/tokocrypto.md#tokocryptofetchdeposits) * [upbit](/exchanges/upbit.md#upbitfetchdeposits) * [whitebit](/exchanges/whitebit.md#whitebitfetchdeposits) * [woo](/exchanges/woo.md#woofetchdeposits) * [woofipro](/exchanges/woofipro.md#woofiprofetchdeposits) * [xt](/exchanges/xt.md#xtfetchdeposits) --- ## fetchDepositsWithdrawals fetch history of deposits and withdrawals **Kind**: instance **Returns**: object - a list of [transaction structure](https://docs.ccxt.com/#/?id=transaction-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | code | string | No | unified currency code for the currency of the deposit/withdrawals, default is undefined | | since | int | No | timestamp in ms of the earliest deposit/withdrawal, default is undefined | | limit | int | No | max number of deposit/withdrawals to return, default is undefined | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [ascendex](/exchanges/ascendex.md#ascendexfetchdepositswithdrawals) * [bitfinex](/exchanges/bitfinex.md#bitfinexfetchdepositswithdrawals) * [bitfinex2](/exchanges/bitfinex2.md#bitfinex2fetchdepositswithdrawals) * [bitmex](/exchanges/bitmex.md#bitmexfetchdepositswithdrawals) * [bitstamp](/exchanges/bitstamp.md#bitstampfetchdepositswithdrawals) * [bitteam](/exchanges/bitteam.md#bitteamfetchdepositswithdrawals) * [btcmarkets](/exchanges/btcmarkets.md#btcmarketsfetchdepositswithdrawals) * [coinbaseexchange](/exchanges/coinbaseexchange.md#coinbaseexchangefetchdepositswithdrawals) * [exchange](/exchanges/exchange.md#exchangefetchdepositswithdrawals) * [coinlist](/exchanges/coinlist.md#coinlistfetchdepositswithdrawals) * [coinmate](/exchanges/coinmate.md#coinmatefetchdepositswithdrawals) * [currencycom](/exchanges/currencycom.md#currencycomfetchdepositswithdrawals) * [exmo](/exchanges/exmo.md#exmofetchdepositswithdrawals) * [gemini](/exchanges/gemini.md#geminifetchdepositswithdrawals) * [hitbtc](/exchanges/hitbtc.md#hitbtcfetchdepositswithdrawals) * [indodax](/exchanges/indodax.md#indodaxfetchdepositswithdrawals) * [lykke](/exchanges/lykke.md#lykkefetchdepositswithdrawals) * [novadax](/exchanges/novadax.md#novadaxfetchdepositswithdrawals) * [poloniex](/exchanges/poloniex.md#poloniexfetchdepositswithdrawals) * [probit](/exchanges/probit.md#probitfetchdepositswithdrawals) * [whitebit](/exchanges/whitebit.md#whitebitfetchdepositswithdrawals) * [woo](/exchanges/woo.md#woofetchdepositswithdrawals) * [woofipro](/exchanges/woofipro.md#woofiprofetchdepositswithdrawals) --- ## fetchDepositsWs fetch all deposits made to an account **Kind**: instance **Returns**: Array<object> - a list of [transaction structures](https://docs.ccxt.com/#/?id=transaction-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | code | string | Yes | unified currency code | | since | int | No | the earliest time in ms to fetch deposits for | | limit | int | No | the maximum number of deposits structures to retrieve | | params | object | No | extra parameters specific to the bitvavo api endpoint | ##### Supported exchanges * [bitvavo](/exchanges/bitvavo.md#bitvavofetchdepositsws) --- ## fetchFundingHistory fetch the history of funding payments paid and received on this account **Kind**: instance **Returns**: object - a [funding history structure](https://docs.ccxt.com/#/?id=funding-history-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | No | unified market symbol | | since | int | No | the earliest time in ms to fetch funding history for | | limit | int | No | the maximum number of funding history structures to retrieve | | params | object | No | extra parameters specific to the exchange API endpoint | | params.paginate | boolean | No | 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) | ##### Supported exchanges * [ascendex](/exchanges/ascendex.md#ascendexfetchfundinghistory) * [binance](/exchanges/binance.md#binancefetchfundinghistory) * [bitget](/exchanges/bitget.md#bitgetfetchfundinghistory) * [bybit](/exchanges/bybit.md#bybitfetchfundinghistory) * [coinbaseinternational](/exchanges/coinbaseinternational.md#coinbaseinternationalfetchfundinghistory) * [coinex](/exchanges/coinex.md#coinexfetchfundinghistory) * [digifinex](/exchanges/digifinex.md#digifinexfetchfundinghistory) * [gate](/exchanges/gate.md#gatefetchfundinghistory) * [htx](/exchanges/htx.md#htxfetchfundinghistory) * [kucoinfutures](/exchanges/kucoinfutures.md#kucoinfuturesfetchfundinghistory) * [mexc](/exchanges/mexc.md#mexcfetchfundinghistory) * [okx](/exchanges/okx.md#okxfetchfundinghistory) * [oxfun](/exchanges/oxfun.md#oxfunfetchfundinghistory) * [phemex](/exchanges/phemex.md#phemexfetchfundinghistory) * [poloniexfutures](/exchanges/poloniexfutures.md#poloniexfuturesfetchfundinghistory) * [woo](/exchanges/woo.md#woofetchfundinghistory) * [xt](/exchanges/xt.md#xtfetchfundinghistory) --- ## fetchFundingRate fetch the current funding rate **Kind**: instance **Returns**: object - a [funding rate structure](https://docs.ccxt.com/#/?id=funding-rate-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | unified market symbol | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [binance](/exchanges/binance.md#binancefetchfundingrate) * [bingx](/exchanges/bingx.md#bingxfetchfundingrate) * [bingx](/exchanges/bingx.md#bingxfetchfundingrate) * [bitfinex2](/exchanges/bitfinex2.md#bitfinex2fetchfundingrate) * [bitfinex2](/exchanges/bitfinex2.md#bitfinex2fetchfundingrate) * [bitget](/exchanges/bitget.md#bitgetfetchfundingrate) * [bitmart](/exchanges/bitmart.md#bitmartfetchfundingrate) * [blofin](/exchanges/blofin.md#blofinfetchfundingrate) * [coinex](/exchanges/coinex.md#coinexfetchfundingrate) * [delta](/exchanges/delta.md#deltafetchfundingrate) * [deribit](/exchanges/deribit.md#deribitfetchfundingrate) * [digifinex](/exchanges/digifinex.md#digifinexfetchfundingrate) * [gate](/exchanges/gate.md#gatefetchfundingrate) * [hashkey](/exchanges/hashkey.md#hashkeyfetchfundingrate) * [hitbtc](/exchanges/hitbtc.md#hitbtcfetchfundingrate) * [htx](/exchanges/htx.md#htxfetchfundingrate) * [kucoinfutures](/exchanges/kucoinfutures.md#kucoinfuturesfetchfundingrate) * [mexc](/exchanges/mexc.md#mexcfetchfundingrate) * [okx](/exchanges/okx.md#okxfetchfundingrate) * [phemex](/exchanges/phemex.md#phemexfetchfundingrate) * [poloniexfutures](/exchanges/poloniexfutures.md#poloniexfuturesfetchfundingrate) * [vertex](/exchanges/vertex.md#vertexfetchfundingrate) * [whitebit](/exchanges/whitebit.md#whitebitfetchfundingrate) * [woofipro](/exchanges/woofipro.md#woofiprofetchfundingrate) * [xt](/exchanges/xt.md#xtfetchfundingrate) --- ## fetchFundingRateHistory fetches historical funding rate prices **Kind**: instance **Returns**: Array<object> - a list of [funding rate structures](https://docs.ccxt.com/#/?id=funding-rate-history-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | unified symbol of the market to fetch the funding rate history for | | since | int | No | timestamp in ms of the earliest funding rate to fetch | | limit | int | No | the maximum amount of [funding rate structures](https://docs.ccxt.com/#/?id=funding-rate-history-structure) to fetch | | params | object | No | extra parameters specific to the exchange API endpoint | | params.until | int | No | timestamp in ms of the latest funding rate | | params.paginate | boolean | No | 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) | | params.subType | string | No | "linear" or "inverse" | ##### Supported exchanges * [binance](/exchanges/binance.md#binancefetchfundingratehistory) * [bingx](/exchanges/bingx.md#bingxfetchfundingratehistory) * [bitfinex2](/exchanges/bitfinex2.md#bitfinex2fetchfundingratehistory) * [bitget](/exchanges/bitget.md#bitgetfetchfundingratehistory) * [bitmex](/exchanges/bitmex.md#bitmexfetchfundingratehistory) * [blofin](/exchanges/blofin.md#blofinfetchfundingratehistory) * [bybit](/exchanges/bybit.md#bybitfetchfundingratehistory) * [coinbaseinternational](/exchanges/coinbaseinternational.md#coinbaseinternationalfetchfundingratehistory) * [coinex](/exchanges/coinex.md#coinexfetchfundingratehistory) * [cryptocom](/exchanges/cryptocom.md#cryptocomfetchfundingratehistory) * [deribit](/exchanges/deribit.md#deribitfetchfundingratehistory) * [digifinex](/exchanges/digifinex.md#digifinexfetchfundingratehistory) * [gate](/exchanges/gate.md#gatefetchfundingratehistory) * [hashkey](/exchanges/hashkey.md#hashkeyfetchfundingratehistory) * [hitbtc](/exchanges/hitbtc.md#hitbtcfetchfundingratehistory) * [htx](/exchanges/htx.md#htxfetchfundingratehistory) * [hyperliquid](/exchanges/hyperliquid.md#hyperliquidfetchfundingratehistory) * [krakenfutures](/exchanges/krakenfutures.md#krakenfuturesfetchfundingratehistory) * [kucoinfutures](/exchanges/kucoinfutures.md#kucoinfuturesfetchfundingratehistory) * [mexc](/exchanges/mexc.md#mexcfetchfundingratehistory) * [okx](/exchanges/okx.md#okxfetchfundingratehistory) * [oxfun](/exchanges/oxfun.md#oxfunfetchfundingratehistory) * [phemex](/exchanges/phemex.md#phemexfetchfundingratehistory) * [woo](/exchanges/woo.md#woofetchfundingratehistory) * [woofipro](/exchanges/woofipro.md#woofiprofetchfundingratehistory) * [xt](/exchanges/xt.md#xtfetchfundingratehistory) --- ## fetchFundingRates fetch the funding rate for multiple markets **Kind**: instance **Returns**: object - a dictionary of [funding rates structures](https://docs.ccxt.com/#/?id=funding-rates-structure), indexe by market symbols | Param | Type | Required | Description | | --- | --- | --- | --- | | symbols | Array<string>, undefined | Yes | list of unified market symbols | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [ascendex](/exchanges/ascendex.md#ascendexfetchfundingrates) * [binance](/exchanges/binance.md#binancefetchfundingrates) * [bitmex](/exchanges/bitmex.md#bitmexfetchfundingrates) * [bybit](/exchanges/bybit.md#bybitfetchfundingrates) * [coinex](/exchanges/coinex.md#coinexfetchfundingrates) * [delta](/exchanges/delta.md#deltafetchfundingrates) * [gate](/exchanges/gate.md#gatefetchfundingrates) * [hashkey](/exchanges/hashkey.md#hashkeyfetchfundingrates) * [hitbtc](/exchanges/hitbtc.md#hitbtcfetchfundingrates) * [htx](/exchanges/htx.md#htxfetchfundingrates) * [krakenfutures](/exchanges/krakenfutures.md#krakenfuturesfetchfundingrates) * [oxfun](/exchanges/oxfun.md#oxfunfetchfundingrates) * [vertex](/exchanges/vertex.md#vertexfetchfundingrates) * [whitebit](/exchanges/whitebit.md#whitebitfetchfundingrates) * [woofipro](/exchanges/woofipro.md#woofiprofetchfundingrates) --- ## fetchGreeks fetches an option contracts greeks, financial metrics used to measure the factors that affect the price of an options contract **Kind**: instance **Returns**: object - a [greeks structure](https://docs.ccxt.com/#/?id=greeks-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | unified symbol of the market to fetch greeks for | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [binance](/exchanges/binance.md#binancefetchgreeks) * [bybit](/exchanges/bybit.md#bybitfetchgreeks) * [delta](/exchanges/delta.md#deltafetchgreeks) * [deribit](/exchanges/deribit.md#deribitfetchgreeks) * [gate](/exchanges/gate.md#gatefetchgreeks) * [okx](/exchanges/okx.md#okxfetchgreeks) --- ## fetchIsolatedBorrowRate fetch the rate of interest to borrow a currency for margin trading **Kind**: instance **Returns**: object - an [isolated borrow rate structure](https://docs.ccxt.com/#/?id=isolated-borrow-rate-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | unified market symbol | | params | object | No | extra parameters specific to the exchange API endpoint EXCHANGE SPECIFIC PARAMETERS | | params.vipLevel | object | No | user's current specific margin data will be returned if viplevel is omitted | ##### Supported exchanges * [binance](/exchanges/binance.md#binancefetchisolatedborrowrate) * [bitget](/exchanges/bitget.md#bitgetfetchisolatedborrowrate) * [bitmart](/exchanges/bitmart.md#bitmartfetchisolatedborrowrate) * [coinex](/exchanges/coinex.md#coinexfetchisolatedborrowrate) --- ## fetchIsolatedBorrowRates fetch the borrow interest rates of all currencies **Kind**: instance **Returns**: object - a [borrow rate structure](https://docs.ccxt.com/#/?id=borrow-rate-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | params | object | No | extra parameters specific to the exchange API endpoint | | params.symbol | object | No | unified market symbol EXCHANGE SPECIFIC PARAMETERS | | params.vipLevel | object | No | user's current specific margin data will be returned if viplevel is omitted | ##### Supported exchanges * [binance](/exchanges/binance.md#binancefetchisolatedborrowrates) * [bitmart](/exchanges/bitmart.md#bitmartfetchisolatedborrowrates) * [htx](/exchanges/htx.md#htxfetchisolatedborrowrates) --- ## fetchL3OrderBook fetches level 3 information on open orders with bid (buy) and ask (sell) prices, volumes and other data **Kind**: instance **Returns**: object - an [order book structure](https://docs.ccxt.com/#/?id=order-book-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | unified market symbol | | limit | int | No | max number of orders to return, default is undefined | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [blockchaincom](/exchanges/blockchaincom.md#blockchaincomfetchl3orderbook) * [kuna](/exchanges/kuna.md#kunafetchl3orderbook) * [poloniexfutures](/exchanges/poloniexfutures.md#poloniexfuturesfetchl3orderbook) --- ## fetchLastPrices fetches the last price for multiple markets **Kind**: instance **Returns**: object - a dictionary of lastprices structures | Param | Type | Required | Description | | --- | --- | --- | --- | | symbols | Array<string>, undefined | Yes | unified symbols of the markets to fetch the last prices | | params | object | No | extra parameters specific to the exchange API endpoint | | params.subType | string | No | "linear" or "inverse" | ##### Supported exchanges * [binance](/exchanges/binance.md#binancefetchlastprices) * [hashkey](/exchanges/hashkey.md#hashkeyfetchlastprices) * [htx](/exchanges/htx.md#htxfetchlastprices) --- ## fetchLedger fetch the history of changes, actions done by the user or operations that altered the balance of the user **Kind**: instance **Returns**: object - a [ledger structure](https://docs.ccxt.com/#/?id=ledger-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | code | string | Yes | unified currency code | | since | int | No | timestamp in ms of the earliest ledger entry | | limit | int | No | max number of ledger entrys to return | | params | object | No | extra parameters specific to the exchange API endpoint | | params.until | int | No | timestamp in ms of the latest ledger entry | | params.paginate | boolean | No | 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) | | params.portfolioMargin | boolean | No | set to true if you would like to fetch the ledger for a portfolio margin account | | params.subType | string | No | "linear" or "inverse" | ##### Supported exchanges * [binance](/exchanges/binance.md#binancefetchledger) * [bitfinex2](/exchanges/bitfinex2.md#bitfinex2fetchledger) * [bitget](/exchanges/bitget.md#bitgetfetchledger) * [bitmex](/exchanges/bitmex.md#bitmexfetchledger) * [bitso](/exchanges/bitso.md#bitsofetchledger) * [bitstamp](/exchanges/bitstamp.md#bitstampfetchledger) * [blofin](/exchanges/blofin.md#blofinfetchledger) * [bybit](/exchanges/bybit.md#bybitfetchledger) * [coinbase](/exchanges/coinbase.md#coinbasefetchledger) * [coinbaseexchange](/exchanges/coinbaseexchange.md#coinbaseexchangefetchledger) * [coinlist](/exchanges/coinlist.md#coinlistfetchledger) * [coinmetro](/exchanges/coinmetro.md#coinmetrofetchledger) * [cryptocom](/exchanges/cryptocom.md#cryptocomfetchledger) * [currencycom](/exchanges/currencycom.md#currencycomfetchledger) * [delta](/exchanges/delta.md#deltafetchledger) * [digifinex](/exchanges/digifinex.md#digifinexfetchledger) * [gate](/exchanges/gate.md#gatefetchledger) * [hashkey](/exchanges/hashkey.md#hashkeyfetchledger) * [htx](/exchanges/htx.md#htxfetchledger) * [hyperliquid](/exchanges/hyperliquid.md#hyperliquidfetchledger) * [kraken](/exchanges/kraken.md#krakenfetchledger) * [kucoin](/exchanges/kucoin.md#kucoinfetchledger) * [luno](/exchanges/luno.md#lunofetchledger) * [ndax](/exchanges/ndax.md#ndaxfetchledger) * [okcoin](/exchanges/okcoin.md#okcoinfetchledger) * [okx](/exchanges/okx.md#okxfetchledger) * [woo](/exchanges/woo.md#woofetchledger) * [woofipro](/exchanges/woofipro.md#woofiprofetchledger) * [xt](/exchanges/xt.md#xtfetchledger) * [zonda](/exchanges/zonda.md#zondafetchledger) --- ## fetchLeverage fetch the set leverage for a market **Kind**: instance **Returns**: object - a [leverage structure](https://docs.ccxt.com/#/?id=leverage-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | unified market symbol | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [bingx](/exchanges/bingx.md#bingxfetchleverage) * [bitget](/exchanges/bitget.md#bitgetfetchleverage) * [blofin](/exchanges/blofin.md#blofinfetchleverage) * [bybit](/exchanges/bybit.md#bybitfetchleverage) * [coinex](/exchanges/coinex.md#coinexfetchleverage) * [currencycom](/exchanges/currencycom.md#currencycomfetchleverage) * [delta](/exchanges/delta.md#deltafetchleverage) * [gate](/exchanges/gate.md#gatefetchleverage) * [hashkey](/exchanges/hashkey.md#hashkeyfetchleverage) * [hitbtc](/exchanges/hitbtc.md#hitbtcfetchleverage) * [krakenfutures](/exchanges/krakenfutures.md#krakenfuturesfetchleverage) * [mexc](/exchanges/mexc.md#mexcfetchleverage) * [okx](/exchanges/okx.md#okxfetchleverage) * [woo](/exchanges/woo.md#woofetchleverage) * [woofipro](/exchanges/woofipro.md#woofiprofetchleverage) --- ## fetchLeverageTiers retrieve information on the maximum leverage, and maintenance margin for trades of varying trade sizes **Kind**: instance **Returns**: object - a dictionary of [leverage tiers structures](https://docs.ccxt.com/#/?id=leverage-tiers-structure), indexed by market symbols | Param | Type | Required | Description | | --- | --- | --- | --- | | symbols | Array<string>, undefined | Yes | list of unified market symbols | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [ascendex](/exchanges/ascendex.md#ascendexfetchleveragetiers) * [binance](/exchanges/binance.md#binancefetchleveragetiers) * [bybit](/exchanges/bybit.md#bybitfetchleveragetiers) * [coinex](/exchanges/coinex.md#coinexfetchleveragetiers) * [digifinex](/exchanges/digifinex.md#digifinexfetchleveragetiers) * [gate](/exchanges/gate.md#gatefetchleveragetiers) * [hashkey](/exchanges/hashkey.md#hashkeyfetchleveragetiers) * [htx](/exchanges/htx.md#htxfetchleveragetiers) * [krakenfutures](/exchanges/krakenfutures.md#krakenfuturesfetchleveragetiers) * [mexc](/exchanges/mexc.md#mexcfetchleveragetiers) * [oxfun](/exchanges/oxfun.md#oxfunfetchleveragetiers) * [phemex](/exchanges/phemex.md#phemexfetchleveragetiers) * [xt](/exchanges/xt.md#xtfetchleveragetiers) --- ## fetchLeverages fetch the set leverage for all contract markets **Kind**: instance **Returns**: object - a list of [leverage structures](https://docs.ccxt.com/#/?id=leverage-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbols | Array<string> | No | a list of unified market symbols | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [ascendex](/exchanges/ascendex.md#ascendexfetchleverages) * [binance](/exchanges/binance.md#binancefetchleverages) * [bitmex](/exchanges/bitmex.md#bitmexfetchleverages) * [blofin](/exchanges/blofin.md#blofinfetchleverages) * [gate](/exchanges/gate.md#gatefetchleverages) * [krakenfutures](/exchanges/krakenfutures.md#krakenfuturesfetchleverages) --- ## fetchLiquidations retrieves the public liquidations of a trading pair **Kind**: instance **Returns**: object - an array of [liquidation structures](https://docs.ccxt.com/#/?id=liquidation-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | unified CCXT market symbol | | since | int | No | the earliest time in ms to fetch liquidations for | | limit | int | No | the maximum number of liquidation structures to retrieve | | params | object | No | exchange specific parameters | | params.until | int | No | timestamp in ms of the latest liquidation | | params.paginate | boolean | No | 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) | ##### Supported exchanges * [bitfinex2](/exchanges/bitfinex2.md#bitfinex2fetchliquidations) * [bitmex](/exchanges/bitmex.md#bitmexfetchliquidations) * [deribit](/exchanges/deribit.md#deribitfetchliquidations) * [gate](/exchanges/gate.md#gatefetchliquidations) * [htx](/exchanges/htx.md#htxfetchliquidations) * [paradex](/exchanges/paradex.md#paradexfetchliquidations) --- ## fetchMarginAdjustmentHistory fetches the history of margin added or reduced from contract isolated positions **Kind**: instance **Returns**: Array<object> - a list of [margin structures](https://docs.ccxt.com/#/?id=margin-loan-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | unified market symbol | | type | string | No | not used by coinex fetchMarginAdjustmentHistory | | since | int | No | timestamp in ms of the earliest change to fetch | | limit | int | No | the maximum amount of changes to fetch, default is 10 | | params | object | Yes | extra parameters specific to the exchange api endpoint | | params.until | int | No | timestamp in ms of the latest change to fetch | | params.positionId | int | No | the id of the position that you want to retrieve margin adjustment history for | ##### Supported exchanges * [coinex](/exchanges/coinex.md#coinexfetchmarginadjustmenthistory) * [okx](/exchanges/okx.md#okxfetchmarginadjustmenthistory) --- ## fetchMarginMode fetches the margin mode of the trading pair **Kind**: instance **Returns**: object - a [margin mode structure](https://docs.ccxt.com/#/?id=margin-mode-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | unified symbol of the market to fetch the margin mode for | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [bingx](/exchanges/bingx.md#bingxfetchmarginmode) * [bitget](/exchanges/bitget.md#bitgetfetchmarginmode) * [blofin](/exchanges/blofin.md#blofinfetchmarginmode) * [delta](/exchanges/delta.md#deltafetchmarginmode) --- ## fetchMarginModes fetches the set margin mode of the user **Kind**: instance **Returns**: object - a list of [margin mode structures](https://docs.ccxt.com/#/?id=margin-mode-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbols | Array<string> | No | a list of unified market symbols | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [ascendex](/exchanges/ascendex.md#ascendexfetchmarginmodes) * [binance](/exchanges/binance.md#binancefetchmarginmodes) * [hitbtc](/exchanges/hitbtc.md#hitbtcfetchmarginmodes) --- ## fetchMarketLeverageTiers retrieve information on the maximum leverage, and maintenance margin for trades of varying trade sizes for a single market **Kind**: instance **Returns**: object - a [leverage tiers structure](https://docs.ccxt.com/#/?id=leverage-tiers-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | unified market symbol | | params | object | No | extra parameters specific to the exchange API endpoint | | params.marginMode | string | No | for spot margin 'cross' or 'isolated', default is 'isolated' | | params.code | string | No | required for cross spot margin | | params.productType | string | No | *contract only* 'USDT-FUTURES', 'USDC-FUTURES', 'COIN-FUTURES', 'SUSDT-FUTURES', 'SUSDC-FUTURES' or 'SCOIN-FUTURES' | ##### Supported exchanges * [bitget](/exchanges/bitget.md#bitgetfetchmarketleveragetiers) * [bybit](/exchanges/bybit.md#bybitfetchmarketleveragetiers) * [digifinex](/exchanges/digifinex.md#digifinexfetchmarketleveragetiers) * [gate](/exchanges/gate.md#gatefetchmarketleveragetiers) * [htx](/exchanges/htx.md#htxfetchmarketleveragetiers) * [kucoinfutures](/exchanges/kucoinfutures.md#kucoinfuturesfetchmarketleveragetiers) * [okx](/exchanges/okx.md#okxfetchmarketleveragetiers) * [xt](/exchanges/xt.md#xtfetchmarketleveragetiers) --- ## fetchMarkets retrieves data on all markets for ace **Kind**: instance **Returns**: Array<object> - an array of objects representing market data | Param | Type | Required | Description | | --- | --- | --- | --- | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [ace](/exchanges/ace.md#acefetchmarkets) * [alpaca](/exchanges/alpaca.md#alpacafetchmarkets) * [ascendex](/exchanges/ascendex.md#ascendexfetchmarkets) * [bigone](/exchanges/bigone.md#bigonefetchmarkets) * [binance](/exchanges/binance.md#binancefetchmarkets) * [bingx](/exchanges/bingx.md#bingxfetchmarkets) * [bitbank](/exchanges/bitbank.md#bitbankfetchmarkets) * [bitbns](/exchanges/bitbns.md#bitbnsfetchmarkets) * [bitfinex](/exchanges/bitfinex.md#bitfinexfetchmarkets) * [bitfinex2](/exchanges/bitfinex2.md#bitfinex2fetchmarkets) * [bitflyer](/exchanges/bitflyer.md#bitflyerfetchmarkets) * [bitget](/exchanges/bitget.md#bitgetfetchmarkets) * [bithumb](/exchanges/bithumb.md#bithumbfetchmarkets) * [bitmart](/exchanges/bitmart.md#bitmartfetchmarkets) * [bitmex](/exchanges/bitmex.md#bitmexfetchmarkets) * [bitopro](/exchanges/bitopro.md#bitoprofetchmarkets) * [bitrue](/exchanges/bitrue.md#bitruefetchmarkets) * [bitso](/exchanges/bitso.md#bitsofetchmarkets) * [bitstamp](/exchanges/bitstamp.md#bitstampfetchmarkets) * [bitteam](/exchanges/bitteam.md#bitteamfetchmarkets) * [bitvavo](/exchanges/bitvavo.md#bitvavofetchmarkets) * [blockchaincom](/exchanges/blockchaincom.md#blockchaincomfetchmarkets) * [blofin](/exchanges/blofin.md#blofinfetchmarkets) * [btcalpha](/exchanges/btcalpha.md#btcalphafetchmarkets) * [btcbox](/exchanges/btcbox.md#btcboxfetchmarkets) * [btcmarkets](/exchanges/btcmarkets.md#btcmarketsfetchmarkets) * [btcturk](/exchanges/btcturk.md#btcturkfetchmarkets) * [bybit](/exchanges/bybit.md#bybitfetchmarkets) * [cex](/exchanges/cex.md#cexfetchmarkets) * [coinbase](/exchanges/coinbase.md#coinbasefetchmarkets) * [coinbaseexchange](/exchanges/coinbaseexchange.md#coinbaseexchangefetchmarkets) * [coinbaseinternational](/exchanges/coinbaseinternational.md#coinbaseinternationalfetchmarkets) * [coinex](/exchanges/coinex.md#coinexfetchmarkets) * [coinlist](/exchanges/coinlist.md#coinlistfetchmarkets) * [coinmate](/exchanges/coinmate.md#coinmatefetchmarkets) * [coinmetro](/exchanges/coinmetro.md#coinmetrofetchmarkets) * [coinone](/exchanges/coinone.md#coinonefetchmarkets) * [coinsph](/exchanges/coinsph.md#coinsphfetchmarkets) * [cryptocom](/exchanges/cryptocom.md#cryptocomfetchmarkets) * [currencycom](/exchanges/currencycom.md#currencycomfetchmarkets) * [delta](/exchanges/delta.md#deltafetchmarkets) * [deribit](/exchanges/deribit.md#deribitfetchmarkets) * [digifinex](/exchanges/digifinex.md#digifinexfetchmarkets) * [exmo](/exchanges/exmo.md#exmofetchmarkets) * [gate](/exchanges/gate.md#gatefetchmarkets) * [gemini](/exchanges/gemini.md#geminifetchmarkets) * [hashkey](/exchanges/hashkey.md#hashkeyfetchmarkets) * [hitbtc](/exchanges/hitbtc.md#hitbtcfetchmarkets) * [hollaex](/exchanges/hollaex.md#hollaexfetchmarkets) * [htx](/exchanges/htx.md#htxfetchmarkets) * [huobijp](/exchanges/huobijp.md#huobijpfetchmarkets) * [hyperliquid](/exchanges/hyperliquid.md#hyperliquidfetchmarkets) * [hyperliquid](/exchanges/hyperliquid.md#hyperliquidfetchmarkets) * [hyperliquid](/exchanges/hyperliquid.md#hyperliquidfetchmarkets) * [idex](/exchanges/idex.md#idexfetchmarkets) * [independentreserve](/exchanges/independentreserve.md#independentreservefetchmarkets) * [indodax](/exchanges/indodax.md#indodaxfetchmarkets) * [kraken](/exchanges/kraken.md#krakenfetchmarkets) * [krakenfutures](/exchanges/krakenfutures.md#krakenfuturesfetchmarkets) * [kucoin](/exchanges/kucoin.md#kucoinfetchmarkets) * [kucoinfutures](/exchanges/kucoinfutures.md#kucoinfuturesfetchmarkets) * [kuna](/exchanges/kuna.md#kunafetchmarkets) * [latoken](/exchanges/latoken.md#latokenfetchmarkets) * [lbank](/exchanges/lbank.md#lbankfetchmarkets) * [luno](/exchanges/luno.md#lunofetchmarkets) * [lykke](/exchanges/lykke.md#lykkefetchmarkets) * [mercado](/exchanges/mercado.md#mercadofetchmarkets) * [mexc](/exchanges/mexc.md#mexcfetchmarkets) * [ndax](/exchanges/ndax.md#ndaxfetchmarkets) * [novadax](/exchanges/novadax.md#novadaxfetchmarkets) * [oceanex](/exchanges/oceanex.md#oceanexfetchmarkets) * [okcoin](/exchanges/okcoin.md#okcoinfetchmarkets) * [okx](/exchanges/okx.md#okxfetchmarkets) * [onetrading](/exchanges/onetrading.md#onetradingfetchmarkets) * [oxfun](/exchanges/oxfun.md#oxfunfetchmarkets) * [p2b](/exchanges/p2b.md#p2bfetchmarkets) * [paradex](/exchanges/paradex.md#paradexfetchmarkets) * [phemex](/exchanges/phemex.md#phemexfetchmarkets) * [poloniex](/exchanges/poloniex.md#poloniexfetchmarkets) * [poloniexfutures](/exchanges/poloniexfutures.md#poloniexfuturesfetchmarkets) * [probit](/exchanges/probit.md#probitfetchmarkets) * [timex](/exchanges/timex.md#timexfetchmarkets) * [tokocrypto](/exchanges/tokocrypto.md#tokocryptofetchmarkets) * [tradeogre](/exchanges/tradeogre.md#tradeogrefetchmarkets) * [upbit](/exchanges/upbit.md#upbitfetchmarkets) * [vertex](/exchanges/vertex.md#vertexfetchmarkets) * [wavesexchange](/exchanges/wavesexchange.md#wavesexchangefetchmarkets) * [wazirx](/exchanges/wazirx.md#wazirxfetchmarkets) * [whitebit](/exchanges/whitebit.md#whitebitfetchmarkets) * [woo](/exchanges/woo.md#woofetchmarkets) * [woofipro](/exchanges/woofipro.md#woofiprofetchmarkets) * [xt](/exchanges/xt.md#xtfetchmarkets) * [yobit](/exchanges/yobit.md#yobitfetchmarkets) * [zaif](/exchanges/zaif.md#zaiffetchmarkets) * [zonda](/exchanges/zonda.md#zondafetchmarkets) --- ## fetchMarketsWs retrieves data on all markets for bitvavo **Kind**: instance **Returns**: Array<object> - an array of objects representing market data | Param | Type | Required | Description | | --- | --- | --- | --- | | params | object | No | extra parameters specific to the exchange api endpoint | ##### Supported exchanges * [bitvavo](/exchanges/bitvavo.md#bitvavofetchmarketsws) --- ## fetchMyDustTrades fetch all dust trades made by the user **Kind**: instance **Returns**: Array<object> - a list of [trade structures](https://docs.ccxt.com/#/?id=trade-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | not used by binance fetchMyDustTrades () | | since | int | No | the earliest time in ms to fetch my dust trades for | | limit | int | No | the maximum number of dust trades to retrieve | | params | object | No | extra parameters specific to the exchange API endpoint | | params.type | string | No | 'spot' or 'margin', default spot | ##### Supported exchanges * [binance](/exchanges/binance.md#binancefetchmydusttrades) --- ## fetchMyLiquidations retrieves the users liquidated positions **Kind**: instance **Returns**: object - an array of [liquidation structures](https://docs.ccxt.com/#/?id=liquidation-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | No | unified CCXT market symbol | | since | int | No | the earliest time in ms to fetch liquidations for | | limit | int | No | the maximum number of liquidation structures to retrieve | | params | object | No | exchange specific parameters for the binance api endpoint | | params.until | int | No | timestamp in ms of the latest liquidation | | params.paginate | boolean | No | *spot only* 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) | | params.portfolioMargin | boolean | No | set to true if you would like to fetch liquidations in a portfolio margin account | | params.type | string | No | "spot" | | params.subType | string | No | "linear" or "inverse" | ##### Supported exchanges * [binance](/exchanges/binance.md#binancefetchmyliquidations) * [bingx](/exchanges/bingx.md#bingxfetchmyliquidations) * [bitget](/exchanges/bitget.md#bitgetfetchmyliquidations) * [bitmart](/exchanges/bitmart.md#bitmartfetchmyliquidations) * [bybit](/exchanges/bybit.md#bybitfetchmyliquidations) * [deribit](/exchanges/deribit.md#deribitfetchmyliquidations) * [gate](/exchanges/gate.md#gatefetchmyliquidations) --- ## fetchMySettlementHistory fetches historical settlement records of the user **Kind**: instance **Returns**: Array<object> - a list of [settlement history objects] | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | unified market symbol of the settlement history | | since | int | No | timestamp in ms | | limit | int | No | number of records | | params | object | No | exchange specific params | ##### Supported exchanges * [binance](/exchanges/binance.md#binancefetchmysettlementhistory) * [bybit](/exchanges/bybit.md#bybitfetchmysettlementhistory) * [gate](/exchanges/gate.md#gatefetchmysettlementhistory) --- ## fetchMyTrades fetch all trades made by the user **Kind**: instance **Returns**: Array<Trade> - a list of [trade structures](https://docs.ccxt.com/#/?id=public-trades) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | unified symbol of the market to fetch trades for | | since | int | No | timestamp in ms of the earliest trade to fetch | | limit | int | No | the maximum amount of trades to fetch | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [ace](/exchanges/ace.md#acefetchmytrades) * [bigone](/exchanges/bigone.md#bigonefetchmytrades) * [binance](/exchanges/binance.md#binancefetchmytrades) * [bingx](/exchanges/bingx.md#bingxfetchmytrades) * [bit2c](/exchanges/bit2c.md#bit2cfetchmytrades) * [bitbank](/exchanges/bitbank.md#bitbankfetchmytrades) * [bitbns](/exchanges/bitbns.md#bitbnsfetchmytrades) * [bitfinex](/exchanges/bitfinex.md#bitfinexfetchmytrades) * [bitfinex2](/exchanges/bitfinex2.md#bitfinex2fetchmytrades) * [bitflyer](/exchanges/bitflyer.md#bitflyerfetchmytrades) * [bitget](/exchanges/bitget.md#bitgetfetchmytrades) * [bitmart](/exchanges/bitmart.md#bitmartfetchmytrades) * [bitmex](/exchanges/bitmex.md#bitmexfetchmytrades) * [bitopro](/exchanges/bitopro.md#bitoprofetchmytrades) * [bitrue](/exchanges/bitrue.md#bitruefetchmytrades) * [bitso](/exchanges/bitso.md#bitsofetchmytrades) * [bitstamp](/exchanges/bitstamp.md#bitstampfetchmytrades) * [bitteam](/exchanges/bitteam.md#bitteamfetchmytrades) * [bitvavo](/exchanges/bitvavo.md#bitvavofetchmytrades) * [blockchaincom](/exchanges/blockchaincom.md#blockchaincomfetchmytrades) * [blofin](/exchanges/blofin.md#blofinfetchmytrades) * [btcalpha](/exchanges/btcalpha.md#btcalphafetchmytrades) * [btcmarkets](/exchanges/btcmarkets.md#btcmarketsfetchmytrades) * [btcturk](/exchanges/btcturk.md#btcturkfetchmytrades) * [bybit](/exchanges/bybit.md#bybitfetchmytrades) * [coinbase](/exchanges/coinbase.md#coinbasefetchmytrades) * [coinbaseexchange](/exchanges/coinbaseexchange.md#coinbaseexchangefetchmytrades) * [coinbaseinternational](/exchanges/coinbaseinternational.md#coinbaseinternationalfetchmytrades) * [coincheck](/exchanges/coincheck.md#coincheckfetchmytrades) * [coinex](/exchanges/coinex.md#coinexfetchmytrades) * [coinlist](/exchanges/coinlist.md#coinlistfetchmytrades) * [coinmate](/exchanges/coinmate.md#coinmatefetchmytrades) * [coinmetro](/exchanges/coinmetro.md#coinmetrofetchmytrades) * [coinone](/exchanges/coinone.md#coinonefetchmytrades) * [coinsph](/exchanges/coinsph.md#coinsphfetchmytrades) * [coinspot](/exchanges/coinspot.md#coinspotfetchmytrades) * [cryptocom](/exchanges/cryptocom.md#cryptocomfetchmytrades) * [currencycom](/exchanges/currencycom.md#currencycomfetchmytrades) * [delta](/exchanges/delta.md#deltafetchmytrades) * [deribit](/exchanges/deribit.md#deribitfetchmytrades) * [digifinex](/exchanges/digifinex.md#digifinexfetchmytrades) * [exmo](/exchanges/exmo.md#exmofetchmytrades) * [gate](/exchanges/gate.md#gatefetchmytrades) * [gemini](/exchanges/gemini.md#geminifetchmytrades) * [hashkey](/exchanges/hashkey.md#hashkeyfetchmytrades) * [hitbtc](/exchanges/hitbtc.md#hitbtcfetchmytrades) * [hollaex](/exchanges/hollaex.md#hollaexfetchmytrades) * [htx](/exchanges/htx.md#htxfetchmytrades) * [huobijp](/exchanges/huobijp.md#huobijpfetchmytrades) * [hyperliquid](/exchanges/hyperliquid.md#hyperliquidfetchmytrades) * [idex](/exchanges/idex.md#idexfetchmytrades) * [independentreserve](/exchanges/independentreserve.md#independentreservefetchmytrades) * [kraken](/exchanges/kraken.md#krakenfetchmytrades) * [krakenfutures](/exchanges/krakenfutures.md#krakenfuturesfetchmytrades) * [kucoin](/exchanges/kucoin.md#kucoinfetchmytrades) * [kucoinfutures](/exchanges/kucoinfutures.md#kucoinfuturesfetchmytrades) * [kuna](/exchanges/kuna.md#kunafetchmytrades) * [latoken](/exchanges/latoken.md#latokenfetchmytrades) * [lbank](/exchanges/lbank.md#lbankfetchmytrades) * [luno](/exchanges/luno.md#lunofetchmytrades) * [lykke](/exchanges/lykke.md#lykkefetchmytrades) * [mercado](/exchanges/mercado.md#mercadofetchmytrades) * [mexc](/exchanges/mexc.md#mexcfetchmytrades) * [ndax](/exchanges/ndax.md#ndaxfetchmytrades) * [novadax](/exchanges/novadax.md#novadaxfetchmytrades) * [okcoin](/exchanges/okcoin.md#okcoinfetchmytrades) * [okx](/exchanges/okx.md#okxfetchmytrades) * [onetrading](/exchanges/onetrading.md#onetradingfetchmytrades) * [oxfun](/exchanges/oxfun.md#oxfunfetchmytrades) * [p2b](/exchanges/p2b.md#p2bfetchmytrades) * [paradex](/exchanges/paradex.md#paradexfetchmytrades) * [phemex](/exchanges/phemex.md#phemexfetchmytrades) * [poloniex](/exchanges/poloniex.md#poloniexfetchmytrades) * [poloniexfutures](/exchanges/poloniexfutures.md#poloniexfuturesfetchmytrades) * [probit](/exchanges/probit.md#probitfetchmytrades) * [timex](/exchanges/timex.md#timexfetchmytrades) * [tokocrypto](/exchanges/tokocrypto.md#tokocryptofetchmytrades) * [vertex](/exchanges/vertex.md#vertexfetchmytrades) * [wavesexchange](/exchanges/wavesexchange.md#wavesexchangefetchmytrades) * [whitebit](/exchanges/whitebit.md#whitebitfetchmytrades) * [woo](/exchanges/woo.md#woofetchmytrades) * [woofipro](/exchanges/woofipro.md#woofiprofetchmytrades) * [xt](/exchanges/xt.md#xtfetchmytrades) * [yobit](/exchanges/yobit.md#yobitfetchmytrades) * [zonda](/exchanges/zonda.md#zondafetchmytrades) --- ## fetchMyTradesWs fetch all trades made by the user **Kind**: instance **Returns**: Array<object> - a list of [trade structures](https://docs.ccxt.com/#/?id=trade-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | unified market symbol | | since | int, undefined | No | the earliest time in ms to fetch trades for | | limit | int, undefined | No | the maximum number of trades structures to retrieve | | params | object | No | extra parameters specific to the exchange API endpoint | | params.endTime | int | No | the latest time in ms to fetch trades for | | params.fromId | int | No | first trade Id to fetch | ##### Supported exchanges * [binance](/exchanges/binance.md#binancefetchmytradesws) * [bitvavo](/exchanges/bitvavo.md#bitvavofetchmytradesws) --- ## fetchOHLCV fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market **Kind**: instance **Returns**: Array<Array<int>> - A list of candles ordered as timestamp, open, high, low, close, volume | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | unified symbol of the market to fetch OHLCV data for | | timeframe | string | Yes | the length of time each candle represents | | since | int | No | timestamp in ms of the earliest candle to fetch | | limit | int | No | the maximum amount of candles to fetch | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [ace](/exchanges/ace.md#acefetchohlcv) * [alpaca](/exchanges/alpaca.md#alpacafetchohlcv) * [ascendex](/exchanges/ascendex.md#ascendexfetchohlcv) * [bigone](/exchanges/bigone.md#bigonefetchohlcv) * [binance](/exchanges/binance.md#binancefetchohlcv) * [bingx](/exchanges/bingx.md#bingxfetchohlcv) * [bitbank](/exchanges/bitbank.md#bitbankfetchohlcv) * [bitfinex](/exchanges/bitfinex.md#bitfinexfetchohlcv) * [bitfinex2](/exchanges/bitfinex2.md#bitfinex2fetchohlcv) * [bitget](/exchanges/bitget.md#bitgetfetchohlcv) * [bithumb](/exchanges/bithumb.md#bithumbfetchohlcv) * [bitmart](/exchanges/bitmart.md#bitmartfetchohlcv) * [bitmex](/exchanges/bitmex.md#bitmexfetchohlcv) * [bitopro](/exchanges/bitopro.md#bitoprofetchohlcv) * [bitrue](/exchanges/bitrue.md#bitruefetchohlcv) * [bitso](/exchanges/bitso.md#bitsofetchohlcv) * [bitstamp](/exchanges/bitstamp.md#bitstampfetchohlcv) * [bitteam](/exchanges/bitteam.md#bitteamfetchohlcv) * [bitvavo](/exchanges/bitvavo.md#bitvavofetchohlcv) * [blofin](/exchanges/blofin.md#blofinfetchohlcv) * [btcalpha](/exchanges/btcalpha.md#btcalphafetchohlcv) * [btcmarkets](/exchanges/btcmarkets.md#btcmarketsfetchohlcv) * [btcturk](/exchanges/btcturk.md#btcturkfetchohlcv) * [bybit](/exchanges/bybit.md#bybitfetchohlcv) * [cex](/exchanges/cex.md#cexfetchohlcv) * [coinbase](/exchanges/coinbase.md#coinbasefetchohlcv) * [coinbaseexchange](/exchanges/coinbaseexchange.md#coinbaseexchangefetchohlcv) * [coinbaseinternational](/exchanges/coinbaseinternational.md#coinbaseinternationalfetchohlcv) * [coinex](/exchanges/coinex.md#coinexfetchohlcv) * [coinlist](/exchanges/coinlist.md#coinlistfetchohlcv) * [coinmetro](/exchanges/coinmetro.md#coinmetrofetchohlcv) * [coinsph](/exchanges/coinsph.md#coinsphfetchohlcv) * [cryptocom](/exchanges/cryptocom.md#cryptocomfetchohlcv) * [currencycom](/exchanges/currencycom.md#currencycomfetchohlcv) * [delta](/exchanges/delta.md#deltafetchohlcv) * [deribit](/exchanges/deribit.md#deribitfetchohlcv) * [digifinex](/exchanges/digifinex.md#digifinexfetchohlcv) * [exmo](/exchanges/exmo.md#exmofetchohlcv) * [gateio](/exchanges/gateio.md#gateiofetchohlcv) * [gemini](/exchanges/gemini.md#geminifetchohlcv) * [gemini](/exchanges/gemini.md#geminifetchohlcv) * [hashkey](/exchanges/hashkey.md#hashkeyfetchohlcv) * [hitbtc](/exchanges/hitbtc.md#hitbtcfetchohlcv) * [hollaex](/exchanges/hollaex.md#hollaexfetchohlcv) * [htx](/exchanges/htx.md#htxfetchohlcv) * [huobijp](/exchanges/huobijp.md#huobijpfetchohlcv) * [hyperliquid](/exchanges/hyperliquid.md#hyperliquidfetchohlcv) * [idex](/exchanges/idex.md#idexfetchohlcv) * [indodax](/exchanges/indodax.md#indodaxfetchohlcv) * [kraken](/exchanges/kraken.md#krakenfetchohlcv) * [kraken](/exchanges/kraken.md#krakenfetchohlcv) * [kucoin](/exchanges/kucoin.md#kucoinfetchohlcv) * [kucoinfutures](/exchanges/kucoinfutures.md#kucoinfuturesfetchohlcv) * [lbank](/exchanges/lbank.md#lbankfetchohlcv) * [luno](/exchanges/luno.md#lunofetchohlcv) * [mercado](/exchanges/mercado.md#mercadofetchohlcv) * [mexc](/exchanges/mexc.md#mexcfetchohlcv) * [ndax](/exchanges/ndax.md#ndaxfetchohlcv) * [novadax](/exchanges/novadax.md#novadaxfetchohlcv) * [oceanex](/exchanges/oceanex.md#oceanexfetchohlcv) * [okcoin](/exchanges/okcoin.md#okcoinfetchohlcv) * [okx](/exchanges/okx.md#okxfetchohlcv) * [onetrading](/exchanges/onetrading.md#onetradingfetchohlcv) * [oxfun](/exchanges/oxfun.md#oxfunfetchohlcv) * [poloniexfutures](/exchanges/poloniexfutures.md#poloniexfuturesfetchohlcv) * [paradex](/exchanges/paradex.md#paradexfetchohlcv) * [phemex](/exchanges/phemex.md#phemexfetchohlcv) * [poloniex](/exchanges/poloniex.md#poloniexfetchohlcv) * [poloniexfutures](/exchanges/poloniexfutures.md#poloniexfuturesfetchohlcv) * [probit](/exchanges/probit.md#probitfetchohlcv) * [timex](/exchanges/timex.md#timexfetchohlcv) * [tokocrypto](/exchanges/tokocrypto.md#tokocryptofetchohlcv) * [upbit](/exchanges/upbit.md#upbitfetchohlcv) * [vertex](/exchanges/vertex.md#vertexfetchohlcv) * [wavesexchange](/exchanges/wavesexchange.md#wavesexchangefetchohlcv) * [wazirx](/exchanges/wazirx.md#wazirxfetchohlcv) * [whitebit](/exchanges/whitebit.md#whitebitfetchohlcv) * [woo](/exchanges/woo.md#woofetchohlcv) * [woofipro](/exchanges/woofipro.md#woofiprofetchohlcv) * [xt](/exchanges/xt.md#xtfetchohlcv) * [zonda](/exchanges/zonda.md#zondafetchohlcv) --- ## fetchOHLCVWs query historical candlestick data containing the open, high, low, and close price, and the volume of a market **Kind**: instance **Returns**: Array<Array<int>> - A list of candles ordered as timestamp, open, high, low, close, volume | Param | Type | Description | | --- | --- | --- | | symbol | string | unified symbol of the market to query OHLCV data for | | timeframe | string | the length of time each candle represents | | since | int | timestamp in ms of the earliest candle to fetch | | limit | int | the maximum amount of candles to fetch | | params | object | extra parameters specific to the exchange API endpoint | | params.until | int | timestamp in ms of the earliest candle to fetch EXCHANGE SPECIFIC PARAMETERS | | params.timeZone | string | default=0 (UTC) | ##### Supported exchanges * [binance](/exchanges/binance.md#binancefetchohlcvws) * [bitvavo](/exchanges/bitvavo.md#bitvavofetchohlcvws) * [lbank](/exchanges/lbank.md#lbankfetchohlcvws) --- ## fetchOpenInterest retrieves the open interest of a contract trading pair **Kind**: instance **Returns**: object - an open interest structure[https://docs.ccxt.com/#/?id=open-interest-structure](https://docs.ccxt.com/#/?id=open-interest-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | unified CCXT market symbol | | params | object | No | exchange specific parameters | ##### Supported exchanges * [binance](/exchanges/binance.md#binancefetchopeninterest) * [bingx](/exchanges/bingx.md#bingxfetchopeninterest) * [bitfinex2](/exchanges/bitfinex2.md#bitfinex2fetchopeninterest) * [bitget](/exchanges/bitget.md#bitgetfetchopeninterest) * [bitmart](/exchanges/bitmart.md#bitmartfetchopeninterest) * [bybit](/exchanges/bybit.md#bybitfetchopeninterest) * [delta](/exchanges/delta.md#deltafetchopeninterest) * [gate](/exchanges/gate.md#gatefetchopeninterest) * [hitbtc](/exchanges/hitbtc.md#hitbtcfetchopeninterest) * [htx](/exchanges/htx.md#htxfetchopeninterest) * [okx](/exchanges/okx.md#okxfetchopeninterest) * [paradex](/exchanges/paradex.md#paradexfetchopeninterest) * [vertex](/exchanges/vertex.md#vertexfetchopeninterest) --- ## fetchOpenInterestHistory Retrieves the open interest history of a currency **Kind**: instance **Returns**: object - an array of [open interest structure](https://docs.ccxt.com/#/?id=open-interest-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | Unified CCXT market symbol | | timeframe | string | Yes | "5m","15m","30m","1h","2h","4h","6h","12h", or "1d" | | since | int | No | the time(ms) of the earliest record to retrieve as a unix timestamp | | limit | int | No | default 30, max 500 | | params | object | No | exchange specific parameters | | params.until | int | No | the time(ms) of the latest record to retrieve as a unix timestamp | | params.paginate | boolean | No | 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) | ##### Supported exchanges * [binance](/exchanges/binance.md#binancefetchopeninteresthistory) * [bitfinex2](/exchanges/bitfinex2.md#bitfinex2fetchopeninteresthistory) * [bybit](/exchanges/bybit.md#bybitfetchopeninteresthistory) * [htx](/exchanges/htx.md#htxfetchopeninteresthistory) * [okx](/exchanges/okx.md#okxfetchopeninteresthistory) --- ## fetchOpenOrder fetch an open order by the id **Kind**: instance **Returns**: object - an [order structure](https://docs.ccxt.com/#/?id=order-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | id | string | Yes | order id | | symbol | string | Yes | unified market symbol | | params | object | No | extra parameters specific to the exchange API endpoint | | params.trigger | string | No | set to true if you would like to fetch portfolio margin account stop or conditional orders | ##### Supported exchanges * [binance](/exchanges/binance.md#binancefetchopenorder) * [bitfinex2](/exchanges/bitfinex2.md#bitfinex2fetchopenorder) * [bybit](/exchanges/bybit.md#bybitfetchopenorder) * [hitbtc](/exchanges/hitbtc.md#hitbtcfetchopenorder) * [hollaex](/exchanges/hollaex.md#hollaexfetchopenorder) --- ## fetchOpenOrders fetch all unfilled currently open orders **Kind**: instance **Returns**: Array<Order> - a list of [order structures](https://docs.ccxt.com/#/?id=order-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | unified market symbol of the market orders were made in | | since | int | No | the earliest time in ms to fetch orders for | | limit | int | No | the maximum number of order structures to retrieve | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [ace](/exchanges/ace.md#acefetchopenorders) * [alpaca](/exchanges/alpaca.md#alpacafetchopenorders) * [ascendex](/exchanges/ascendex.md#ascendexfetchopenorders) * [bigone](/exchanges/bigone.md#bigonefetchopenorders) * [binance](/exchanges/binance.md#binancefetchopenorders) * [bingx](/exchanges/bingx.md#bingxfetchopenorders) * [bit2c](/exchanges/bit2c.md#bit2cfetchopenorders) * [bitbank](/exchanges/bitbank.md#bitbankfetchopenorders) * [bitbns](/exchanges/bitbns.md#bitbnsfetchopenorders) * [bitfinex](/exchanges/bitfinex.md#bitfinexfetchopenorders) * [bitfinex2](/exchanges/bitfinex2.md#bitfinex2fetchopenorders) * [bitflyer](/exchanges/bitflyer.md#bitflyerfetchopenorders) * [bitget](/exchanges/bitget.md#bitgetfetchopenorders) * [bithumb](/exchanges/bithumb.md#bithumbfetchopenorders) * [bitmart](/exchanges/bitmart.md#bitmartfetchopenorders) * [bitmex](/exchanges/bitmex.md#bitmexfetchopenorders) * [bitrue](/exchanges/bitrue.md#bitruefetchopenorders) * [bitso](/exchanges/bitso.md#bitsofetchopenorders) * [bitstamp](/exchanges/bitstamp.md#bitstampfetchopenorders) * [bitteam](/exchanges/bitteam.md#bitteamfetchopenorders) * [bitvavo](/exchanges/bitvavo.md#bitvavofetchopenorders) * [blockchaincom](/exchanges/blockchaincom.md#blockchaincomfetchopenorders) * [blofin](/exchanges/blofin.md#blofinfetchopenorders) * [btcalpha](/exchanges/btcalpha.md#btcalphafetchopenorders) * [btcbox](/exchanges/btcbox.md#btcboxfetchopenorders) * [btcmarkets](/exchanges/btcmarkets.md#btcmarketsfetchopenorders) * [btcturk](/exchanges/btcturk.md#btcturkfetchopenorders) * [bybit](/exchanges/bybit.md#bybitfetchopenorders) * [cex](/exchanges/cex.md#cexfetchopenorders) * [coinbase](/exchanges/coinbase.md#coinbasefetchopenorders) * [coinbaseexchange](/exchanges/coinbaseexchange.md#coinbaseexchangefetchopenorders) * [coinbaseinternational](/exchanges/coinbaseinternational.md#coinbaseinternationalfetchopenorders) * [coincheck](/exchanges/coincheck.md#coincheckfetchopenorders) * [coinex](/exchanges/coinex.md#coinexfetchopenorders) * [coinlist](/exchanges/coinlist.md#coinlistfetchopenorders) * [coinmate](/exchanges/coinmate.md#coinmatefetchopenorders) * [coinmetro](/exchanges/coinmetro.md#coinmetrofetchopenorders) * [coinone](/exchanges/coinone.md#coinonefetchopenorders) * [coinsph](/exchanges/coinsph.md#coinsphfetchopenorders) * [cryptocom](/exchanges/cryptocom.md#cryptocomfetchopenorders) * [currencycom](/exchanges/currencycom.md#currencycomfetchopenorders) * [delta](/exchanges/delta.md#deltafetchopenorders) * [deribit](/exchanges/deribit.md#deribitfetchopenorders) * [digifinex](/exchanges/digifinex.md#digifinexfetchopenorders) * [exmo](/exchanges/exmo.md#exmofetchopenorders) * [gate](/exchanges/gate.md#gatefetchopenorders) * [gemini](/exchanges/gemini.md#geminifetchopenorders) * [hashkey](/exchanges/hashkey.md#hashkeyfetchopenorders) * [hitbtc](/exchanges/hitbtc.md#hitbtcfetchopenorders) * [hollaex](/exchanges/hollaex.md#hollaexfetchopenorders) * [htx](/exchanges/htx.md#htxfetchopenorders) * [huobijp](/exchanges/huobijp.md#huobijpfetchopenorders) * [hyperliquid](/exchanges/hyperliquid.md#hyperliquidfetchopenorders) * [idex](/exchanges/idex.md#idexfetchopenorders) * [independentreserve](/exchanges/independentreserve.md#independentreservefetchopenorders) * [indodax](/exchanges/indodax.md#indodaxfetchopenorders) * [kraken](/exchanges/kraken.md#krakenfetchopenorders) * [krakenfutures](/exchanges/krakenfutures.md#krakenfuturesfetchopenorders) * [kucoin](/exchanges/kucoin.md#kucoinfetchopenorders) * [kucoinfutures](/exchanges/kucoinfutures.md#kucoinfuturesfetchopenorders) * [kuna](/exchanges/kuna.md#kunafetchopenorders) * [latoken](/exchanges/latoken.md#latokenfetchopenorders) * [lbank](/exchanges/lbank.md#lbankfetchopenorders) * [luno](/exchanges/luno.md#lunofetchopenorders) * [lykke](/exchanges/lykke.md#lykkefetchopenorders) * [mercado](/exchanges/mercado.md#mercadofetchopenorders) * [mexc](/exchanges/mexc.md#mexcfetchopenorders) * [ndax](/exchanges/ndax.md#ndaxfetchopenorders) * [novadax](/exchanges/novadax.md#novadaxfetchopenorders) * [oceanex](/exchanges/oceanex.md#oceanexfetchopenorders) * [okcoin](/exchanges/okcoin.md#okcoinfetchopenorders) * [okx](/exchanges/okx.md#okxfetchopenorders) * [onetrading](/exchanges/onetrading.md#onetradingfetchopenorders) * [oxfun](/exchanges/oxfun.md#oxfunfetchopenorders) * [p2b](/exchanges/p2b.md#p2bfetchopenorders) * [paradex](/exchanges/paradex.md#paradexfetchopenorders) * [phemex](/exchanges/phemex.md#phemexfetchopenorders) * [poloniex](/exchanges/poloniex.md#poloniexfetchopenorders) * [poloniexfutures](/exchanges/poloniexfutures.md#poloniexfuturesfetchopenorders) * [probit](/exchanges/probit.md#probitfetchopenorders) * [timex](/exchanges/timex.md#timexfetchopenorders) * [tokocrypto](/exchanges/tokocrypto.md#tokocryptofetchopenorders) * [tradeogre](/exchanges/tradeogre.md#tradeogrefetchopenorders) * [upbit](/exchanges/upbit.md#upbitfetchopenorders) * [vertex](/exchanges/vertex.md#vertexfetchopenorders) * [wavesexchange](/exchanges/wavesexchange.md#wavesexchangefetchopenorders) * [wazirx](/exchanges/wazirx.md#wazirxfetchopenorders) * [whitebit](/exchanges/whitebit.md#whitebitfetchopenorders) * [woo](/exchanges/woo.md#woofetchopenorders) * [woofipro](/exchanges/woofipro.md#woofiprofetchopenorders) * [xt](/exchanges/xt.md#xtfetchopenorders) * [yobit](/exchanges/yobit.md#yobitfetchopenorders) * [zaif](/exchanges/zaif.md#zaiffetchopenorders) * [zonda](/exchanges/zonda.md#zondafetchopenorders) --- ## fetchOpenOrdersWs fetch all unfilled currently open orders **Kind**: instance **Returns**: Array<object> - a list of [order structures](https://docs.ccxt.com/#/?id=order-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | unified market symbol | | since | int, undefined | No | the earliest time in ms to fetch open orders for | | limit | int, undefined | No | the maximum number of open orders structures to retrieve | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [binance](/exchanges/binance.md#binancefetchopenordersws) * [bitvavo](/exchanges/bitvavo.md#bitvavofetchopenordersws) * [cex](/exchanges/cex.md#cexfetchopenordersws) * [gate](/exchanges/gate.md#gatefetchopenordersws) * [hitbtc](/exchanges/hitbtc.md#hitbtcfetchopenordersws) --- ## fetchOption fetches option data that is commonly found in an option chain **Kind**: instance **Returns**: object - an [option chain structure](https://docs.ccxt.com/#/?id=option-chain-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | unified market symbol | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [binance](/exchanges/binance.md#binancefetchoption) * [bybit](/exchanges/bybit.md#bybitfetchoption) * [delta](/exchanges/delta.md#deltafetchoption) * [deribit](/exchanges/deribit.md#deribitfetchoption) * [gate](/exchanges/gate.md#gatefetchoption) * [okx](/exchanges/okx.md#okxfetchoption) --- ## fetchOptionChain fetches data for an underlying asset that is commonly found in an option chain **Kind**: instance **Returns**: object - a list of [option chain structures](https://docs.ccxt.com/#/?id=option-chain-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | currency | string | Yes | base currency to fetch an option chain for | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [bybit](/exchanges/bybit.md#bybitfetchoptionchain) * [deribit](/exchanges/deribit.md#deribitfetchoptionchain) * [gate](/exchanges/gate.md#gatefetchoptionchain) * [okx](/exchanges/okx.md#okxfetchoptionchain) --- ## fetchOptionPositions fetch data on open options positions **Kind**: instance **Returns**: Array<object> - a list of [position structures](https://docs.ccxt.com/#/?id=position-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbols | Array<string>, undefined | Yes | list of unified market symbols | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [binance](/exchanges/binance.md#binancefetchoptionpositions) --- ## fetchOrder fetches information on an order made by the user **Kind**: instance **Returns**: object - An [order structure](https://docs.ccxt.com/#/?id=order-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | id | string | Yes | the order id | | symbol | string | Yes | unified symbol of the market the order was made in | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [ace](/exchanges/ace.md#acefetchorder) * [alpaca](/exchanges/alpaca.md#alpacafetchorder) * [ascendex](/exchanges/ascendex.md#ascendexfetchorder) * [bigone](/exchanges/bigone.md#bigonefetchorder) * [binance](/exchanges/binance.md#binancefetchorder) * [bingx](/exchanges/bingx.md#bingxfetchorder) * [bit2c](/exchanges/bit2c.md#bit2cfetchorder) * [bitbank](/exchanges/bitbank.md#bitbankfetchorder) * [bitbns](/exchanges/bitbns.md#bitbnsfetchorder) * [bitfinex](/exchanges/bitfinex.md#bitfinexfetchorder) * [bitfinex2](/exchanges/bitfinex2.md#bitfinex2fetchorder) * [bitflyer](/exchanges/bitflyer.md#bitflyerfetchorder) * [bitget](/exchanges/bitget.md#bitgetfetchorder) * [bithumb](/exchanges/bithumb.md#bithumbfetchorder) * [bitmart](/exchanges/bitmart.md#bitmartfetchorder) * [bitmex](/exchanges/bitmex.md#bitmexfetchorder) * [bitopro](/exchanges/bitopro.md#bitoprofetchorder) * [bitrue](/exchanges/bitrue.md#bitruefetchorder) * [bitso](/exchanges/bitso.md#bitsofetchorder) * [bitstamp](/exchanges/bitstamp.md#bitstampfetchorder) * [bitteam](/exchanges/bitteam.md#bitteamfetchorder) * [bitvavo](/exchanges/bitvavo.md#bitvavofetchorder) * [blockchaincom](/exchanges/blockchaincom.md#blockchaincomfetchorder) * [btcalpha](/exchanges/btcalpha.md#btcalphafetchorder) * [btcbox](/exchanges/btcbox.md#btcboxfetchorder) * [btcmarkets](/exchanges/btcmarkets.md#btcmarketsfetchorder) * [cex](/exchanges/cex.md#cexfetchorder) * [coinbase](/exchanges/coinbase.md#coinbasefetchorder) * [coinbaseexchange](/exchanges/coinbaseexchange.md#coinbaseexchangefetchorder) * [coinbaseinternational](/exchanges/coinbaseinternational.md#coinbaseinternationalfetchorder) * [coinex](/exchanges/coinex.md#coinexfetchorder) * [coinlist](/exchanges/coinlist.md#coinlistfetchorder) * [coinmate](/exchanges/coinmate.md#coinmatefetchorder) * [coinmetro](/exchanges/coinmetro.md#coinmetrofetchorder) * [coinone](/exchanges/coinone.md#coinonefetchorder) * [coinsph](/exchanges/coinsph.md#coinsphfetchorder) * [cryptocom](/exchanges/cryptocom.md#cryptocomfetchorder) * [currencycom](/exchanges/currencycom.md#currencycomfetchorder) * [deribit](/exchanges/deribit.md#deribitfetchorder) * [digifinex](/exchanges/digifinex.md#digifinexfetchorder) * [exmo](/exchanges/exmo.md#exmofetchorder) * [gate](/exchanges/gate.md#gatefetchorder) * [gemini](/exchanges/gemini.md#geminifetchorder) * [hashkey](/exchanges/hashkey.md#hashkeyfetchorder) * [hitbtc](/exchanges/hitbtc.md#hitbtcfetchorder) * [hollaex](/exchanges/hollaex.md#hollaexfetchorder) * [htx](/exchanges/htx.md#htxfetchorder) * [huobijp](/exchanges/huobijp.md#huobijpfetchorder) * [hyperliquid](/exchanges/hyperliquid.md#hyperliquidfetchorder) * [idex](/exchanges/idex.md#idexfetchorder) * [independentreserve](/exchanges/independentreserve.md#independentreservefetchorder) * [indodax](/exchanges/indodax.md#indodaxfetchorder) * [kraken](/exchanges/kraken.md#krakenfetchorder) * [kucoin](/exchanges/kucoin.md#kucoinfetchorder) * [kucoinfutures](/exchanges/kucoinfutures.md#kucoinfuturesfetchorder) * [kuna](/exchanges/kuna.md#kunafetchorder) * [latoken](/exchanges/latoken.md#latokenfetchorder) * [lbank](/exchanges/lbank.md#lbankfetchorder) * [luno](/exchanges/luno.md#lunofetchorder) * [lykke](/exchanges/lykke.md#lykkefetchorder) * [mercado](/exchanges/mercado.md#mercadofetchorder) * [mexc](/exchanges/mexc.md#mexcfetchorder) * [ndax](/exchanges/ndax.md#ndaxfetchorder) * [novadax](/exchanges/novadax.md#novadaxfetchorder) * [oceanex](/exchanges/oceanex.md#oceanexfetchorder) * [okcoin](/exchanges/okcoin.md#okcoinfetchorder) * [okx](/exchanges/okx.md#okxfetchorder) * [onetrading](/exchanges/onetrading.md#onetradingfetchorder) * [oxfun](/exchanges/oxfun.md#oxfunfetchorder) * [paradex](/exchanges/paradex.md#paradexfetchorder) * [phemex](/exchanges/phemex.md#phemexfetchorder) * [poloniex](/exchanges/poloniex.md#poloniexfetchorder) * [poloniexfutures](/exchanges/poloniexfutures.md#poloniexfuturesfetchorder) * [probit](/exchanges/probit.md#probitfetchorder) * [timex](/exchanges/timex.md#timexfetchorder) * [tokocrypto](/exchanges/tokocrypto.md#tokocryptofetchorder) * [ace](/exchanges/ace.md#acefetchorder) * [upbit](/exchanges/upbit.md#upbitfetchorder) * [vertex](/exchanges/vertex.md#vertexfetchorder) * [wavesexchange](/exchanges/wavesexchange.md#wavesexchangefetchorder) * [woo](/exchanges/woo.md#woofetchorder) * [woofipro](/exchanges/woofipro.md#woofiprofetchorder) * [xt](/exchanges/xt.md#xtfetchorder) * [yobit](/exchanges/yobit.md#yobitfetchorder) --- ## fetchOrderBook fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data **Kind**: instance **Returns**: object - A dictionary of [order book structures](https://docs.ccxt.com/#/?id=order-book-structure) indexed by market symbols | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | unified symbol of the market to fetch the order book for | | limit | int | No | the maximum amount of order book entries to return | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [ace](/exchanges/ace.md#acefetchorderbook) * [alpaca](/exchanges/alpaca.md#alpacafetchorderbook) * [ascendex](/exchanges/ascendex.md#ascendexfetchorderbook) * [bigone](/exchanges/bigone.md#bigonefetchorderbook) * [binance](/exchanges/binance.md#binancefetchorderbook) * [bingx](/exchanges/bingx.md#bingxfetchorderbook) * [bit2c](/exchanges/bit2c.md#bit2cfetchorderbook) * [bitbank](/exchanges/bitbank.md#bitbankfetchorderbook) * [bitbns](/exchanges/bitbns.md#bitbnsfetchorderbook) * [bitfinex](/exchanges/bitfinex.md#bitfinexfetchorderbook) * [bitfinex2](/exchanges/bitfinex2.md#bitfinex2fetchorderbook) * [bitflyer](/exchanges/bitflyer.md#bitflyerfetchorderbook) * [bitget](/exchanges/bitget.md#bitgetfetchorderbook) * [bithumb](/exchanges/bithumb.md#bithumbfetchorderbook) * [bitmart](/exchanges/bitmart.md#bitmartfetchorderbook) * [bitmex](/exchanges/bitmex.md#bitmexfetchorderbook) * [bitopro](/exchanges/bitopro.md#bitoprofetchorderbook) * [bitrue](/exchanges/bitrue.md#bitruefetchorderbook) * [bitso](/exchanges/bitso.md#bitsofetchorderbook) * [bitstamp](/exchanges/bitstamp.md#bitstampfetchorderbook) * [bitteam](/exchanges/bitteam.md#bitteamfetchorderbook) * [bitvavo](/exchanges/bitvavo.md#bitvavofetchorderbook) * [bl3p](/exchanges/bl3p.md#bl3pfetchorderbook) * [blockchaincom](/exchanges/blockchaincom.md#blockchaincomfetchorderbook) * [blofin](/exchanges/blofin.md#blofinfetchorderbook) * [btcalpha](/exchanges/btcalpha.md#btcalphafetchorderbook) * [btcbox](/exchanges/btcbox.md#btcboxfetchorderbook) * [btcmarkets](/exchanges/btcmarkets.md#btcmarketsfetchorderbook) * [btcturk](/exchanges/btcturk.md#btcturkfetchorderbook) * [bybit](/exchanges/bybit.md#bybitfetchorderbook) * [cex](/exchanges/cex.md#cexfetchorderbook) * [coinbase](/exchanges/coinbase.md#coinbasefetchorderbook) * [coinbaseexchange](/exchanges/coinbaseexchange.md#coinbaseexchangefetchorderbook) * [coincheck](/exchanges/coincheck.md#coincheckfetchorderbook) * [coinex](/exchanges/coinex.md#coinexfetchorderbook) * [coinlist](/exchanges/coinlist.md#coinlistfetchorderbook) * [coinmate](/exchanges/coinmate.md#coinmatefetchorderbook) * [coinmetro](/exchanges/coinmetro.md#coinmetrofetchorderbook) * [coinone](/exchanges/coinone.md#coinonefetchorderbook) * [coinsph](/exchanges/coinsph.md#coinsphfetchorderbook) * [coinspot](/exchanges/coinspot.md#coinspotfetchorderbook) * [cryptocom](/exchanges/cryptocom.md#cryptocomfetchorderbook) * [currencycom](/exchanges/currencycom.md#currencycomfetchorderbook) * [delta](/exchanges/delta.md#deltafetchorderbook) * [deribit](/exchanges/deribit.md#deribitfetchorderbook) * [digifinex](/exchanges/digifinex.md#digifinexfetchorderbook) * [exmo](/exchanges/exmo.md#exmofetchorderbook) * [gate](/exchanges/gate.md#gatefetchorderbook) * [gemini](/exchanges/gemini.md#geminifetchorderbook) * [hashkey](/exchanges/hashkey.md#hashkeyfetchorderbook) * [hitbtc](/exchanges/hitbtc.md#hitbtcfetchorderbook) * [hollaex](/exchanges/hollaex.md#hollaexfetchorderbook) * [htx](/exchanges/htx.md#htxfetchorderbook) * [huobijp](/exchanges/huobijp.md#huobijpfetchorderbook) * [hyperliquid](/exchanges/hyperliquid.md#hyperliquidfetchorderbook) * [idex](/exchanges/idex.md#idexfetchorderbook) * [independentreserve](/exchanges/independentreserve.md#independentreservefetchorderbook) * [indodax](/exchanges/indodax.md#indodaxfetchorderbook) * [kraken](/exchanges/kraken.md#krakenfetchorderbook) * [krakenfutures](/exchanges/krakenfutures.md#krakenfuturesfetchorderbook) * [kucoin](/exchanges/kucoin.md#kucoinfetchorderbook) * [kucoinfutures](/exchanges/kucoinfutures.md#kucoinfuturesfetchorderbook) * [kuna](/exchanges/kuna.md#kunafetchorderbook) * [latoken](/exchanges/latoken.md#latokenfetchorderbook) * [lbank](/exchanges/lbank.md#lbankfetchorderbook) * [luno](/exchanges/luno.md#lunofetchorderbook) * [lykke](/exchanges/lykke.md#lykkefetchorderbook) * [mercado](/exchanges/mercado.md#mercadofetchorderbook) * [mexc](/exchanges/mexc.md#mexcfetchorderbook) * [ndax](/exchanges/ndax.md#ndaxfetchorderbook) * [novadax](/exchanges/novadax.md#novadaxfetchorderbook) * [oceanex](/exchanges/oceanex.md#oceanexfetchorderbook) * [okcoin](/exchanges/okcoin.md#okcoinfetchorderbook) * [okx](/exchanges/okx.md#okxfetchorderbook) * [onetrading](/exchanges/onetrading.md#onetradingfetchorderbook) * [oxfun](/exchanges/oxfun.md#oxfunfetchorderbook) * [p2bfutures](/exchanges/p2bfutures.md#p2bfuturesfetchorderbook) * [paradex](/exchanges/paradex.md#paradexfetchorderbook) * [paymium](/exchanges/paymium.md#paymiumfetchorderbook) * [phemex](/exchanges/phemex.md#phemexfetchorderbook) * [poloniex](/exchanges/poloniex.md#poloniexfetchorderbook) * [poloniexfuturesfutures](/exchanges/poloniexfuturesfutures.md#poloniexfuturesfuturesfetchorderbook) * [probit](/exchanges/probit.md#probitfetchorderbook) * [timex](/exchanges/timex.md#timexfetchorderbook) * [tokocrypto](/exchanges/tokocrypto.md#tokocryptofetchorderbook) * [tradeogre](/exchanges/tradeogre.md#tradeogrefetchorderbook) * [upbit](/exchanges/upbit.md#upbitfetchorderbook) * [vertex](/exchanges/vertex.md#vertexfetchorderbook) * [wavesexchange](/exchanges/wavesexchange.md#wavesexchangefetchorderbook) * [wazirx](/exchanges/wazirx.md#wazirxfetchorderbook) * [whitebit](/exchanges/whitebit.md#whitebitfetchorderbook) * [woo](/exchanges/woo.md#woofetchorderbook) * [woofipro](/exchanges/woofipro.md#woofiprofetchorderbook) * [xt](/exchanges/xt.md#xtfetchorderbook) * [yobit](/exchanges/yobit.md#yobitfetchorderbook) * [zaif](/exchanges/zaif.md#zaiffetchorderbook) * [zonda](/exchanges/zonda.md#zondafetchorderbook) --- ## fetchOrderBookWs fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data **Kind**: instance **Returns**: object - A dictionary of [order book structures](https://docs.ccxt.com/#/?id=order-book-structure) indexed by market symbols | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | unified symbol of the market to fetch the order book for | | limit | int | No | the maximum amount of order book entries to return | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [binance](/exchanges/binance.md#binancefetchorderbookws) * [lbank](/exchanges/lbank.md#lbankfetchorderbookws) --- ## fetchOrderBooks fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data for multiple markets **Kind**: instance **Returns**: object - a dictionary of [order book structures](https://docs.ccxt.com/#/?id=order-book-structure) indexed by market symbol | Param | Type | Required | Description | | --- | --- | --- | --- | | symbols | Array<string>, undefined | Yes | list of unified market symbols, all symbols fetched if undefined, default is undefined | | limit | int | No | max number of entries per orderbook to return, default is undefined | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [exmo](/exchanges/exmo.md#exmofetchorderbooks) * [hitbtc](/exchanges/hitbtc.md#hitbtcfetchorderbooks) * [hollaex](/exchanges/hollaex.md#hollaexfetchorderbooks) * [oceanex](/exchanges/oceanex.md#oceanexfetchorderbooks) * [upbit](/exchanges/upbit.md#upbitfetchorderbooks) * [yobit](/exchanges/yobit.md#yobitfetchorderbooks) --- ## fetchOrderClassic fetches information on an order made by the user *classic accounts only* **Kind**: instance **Returns**: object - An [order structure](https://docs.ccxt.com/#/?id=order-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | id | string | Yes | the order id | | symbol | string | Yes | unified symbol of the market the order was made in | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [bybit](/exchanges/bybit.md#bybitfetchorderclassic) * [bybit](/exchanges/bybit.md#bybitfetchorderclassic) --- ## fetchOrderTrades fetch all the trades made from a single order **Kind**: instance **Returns**: Array<object> - a list of [trade structures](https://docs.ccxt.com/#/?id=trade-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | id | string | Yes | order id | | symbol | string | Yes | unified market symbol | | since | int | No | the earliest time in ms to fetch trades for | | limit | int | No | the maximum number of trades to retrieve | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [ace](/exchanges/ace.md#acefetchordertrades) * [binance](/exchanges/binance.md#binancefetchordertrades) * [bitfinex2](/exchanges/bitfinex2.md#bitfinex2fetchordertrades) * [bitmart](/exchanges/bitmart.md#bitmartfetchordertrades) * [bitso](/exchanges/bitso.md#bitsofetchordertrades) * [bybit](/exchanges/bybit.md#bybitfetchordertrades) * [coinbaseexchange](/exchanges/coinbaseexchange.md#coinbaseexchangefetchordertrades) * [coinlist](/exchanges/coinlist.md#coinlistfetchordertrades) * [coinsph](/exchanges/coinsph.md#coinsphfetchordertrades) * [deribit](/exchanges/deribit.md#deribitfetchordertrades) * [exmo](/exchanges/exmo.md#exmofetchordertrades) * [gate](/exchanges/gate.md#gatefetchordertrades) * [hitbtc](/exchanges/hitbtc.md#hitbtcfetchordertrades) * [htx](/exchanges/htx.md#htxfetchordertrades) * [huobijp](/exchanges/huobijp.md#huobijpfetchordertrades) * [kraken](/exchanges/kraken.md#krakenfetchordertrades) * [kucoin](/exchanges/kucoin.md#kucoinfetchordertrades) * [mexc](/exchanges/mexc.md#mexcfetchordertrades) * [ndax](/exchanges/ndax.md#ndaxfetchordertrades) * [novadax](/exchanges/novadax.md#novadaxfetchordertrades) * [okcoin](/exchanges/okcoin.md#okcoinfetchordertrades) * [okx](/exchanges/okx.md#okxfetchordertrades) * [onetrading](/exchanges/onetrading.md#onetradingfetchordertrades) * [p2b](/exchanges/p2b.md#p2bfetchordertrades) * [poloniex](/exchanges/poloniex.md#poloniexfetchordertrades) * [whitebit](/exchanges/whitebit.md#whitebitfetchordertrades) * [woo](/exchanges/woo.md#woofetchordertrades) * [woofipro](/exchanges/woofipro.md#woofiprofetchordertrades) --- ## fetchOrderWs fetches information on an order made by the user **Kind**: instance **Returns**: object - An [order structure](https://docs.ccxt.com/#/?id=order-structure) | Param | Type | Description | | --- | --- | --- | | symbol | string | unified symbol of the market the order was made in | | params | object | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [binance](/exchanges/binance.md#binancefetchorderws) * [bitvavo](/exchanges/bitvavo.md#bitvavofetchorderws) * [cex](/exchanges/cex.md#cexfetchorderws) * [gate](/exchanges/gate.md#gatefetchorderws) --- ## fetchOrders fetches information on multiple orders made by the user **Kind**: instance **Returns**: Array<Order> - a list of [order structures](https://docs.ccxt.com/#/?id=order-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | unified market symbol of the market orders were made in | | since | int | No | the earliest time in ms to fetch orders for | | limit | int | No | the maximum number of order structures to retrieve | | params | object | No | extra parameters specific to the exchange API endpoint | | params.until | int | No | the latest time in ms to fetch orders for | ##### Supported exchanges * [alpaca](/exchanges/alpaca.md#alpacafetchorders) * [bigone](/exchanges/bigone.md#bigonefetchorders) * [binance](/exchanges/binance.md#binancefetchorders) * [bingx](/exchanges/bingx.md#bingxfetchorders) * [bitflyer](/exchanges/bitflyer.md#bitflyerfetchorders) * [bitmex](/exchanges/bitmex.md#bitmexfetchorders) * [bitopro](/exchanges/bitopro.md#bitoprofetchorders) * [bitteam](/exchanges/bitteam.md#bitteamfetchorders) * [bitvavo](/exchanges/bitvavo.md#bitvavofetchorders) * [blockchaincom](/exchanges/blockchaincom.md#blockchaincomfetchorders) * [btcalpha](/exchanges/btcalpha.md#btcalphafetchorders) * [btcbox](/exchanges/btcbox.md#btcboxfetchorders) * [btcmarkets](/exchanges/btcmarkets.md#btcmarketsfetchorders) * [btcturk](/exchanges/btcturk.md#btcturkfetchorders) * [bybit](/exchanges/bybit.md#bybitfetchorders) * [bybit](/exchanges/bybit.md#bybitfetchorders) * [cex](/exchanges/cex.md#cexfetchorders) * [coinbase](/exchanges/coinbase.md#coinbasefetchorders) * [coinbaseexchange](/exchanges/coinbaseexchange.md#coinbaseexchangefetchorders) * [coinlist](/exchanges/coinlist.md#coinlistfetchorders) * [coinmate](/exchanges/coinmate.md#coinmatefetchorders) * [cryptocom](/exchanges/cryptocom.md#cryptocomfetchorders) * [digifinex](/exchanges/digifinex.md#digifinexfetchorders) * [gemini](/exchanges/gemini.md#geminifetchorders) * [hollaex](/exchanges/hollaex.md#hollaexfetchorders) * [htx](/exchanges/htx.md#htxfetchorders) * [huobijp](/exchanges/huobijp.md#huobijpfetchorders) * [hyperliquid](/exchanges/hyperliquid.md#hyperliquidfetchorders) * [latoken](/exchanges/latoken.md#latokenfetchorders) * [lbank](/exchanges/lbank.md#lbankfetchorders) * [luno](/exchanges/luno.md#lunofetchorders) * [mercado](/exchanges/mercado.md#mercadofetchorders) * [mexc](/exchanges/mexc.md#mexcfetchorders) * [ndax](/exchanges/ndax.md#ndaxfetchorders) * [novadax](/exchanges/novadax.md#novadaxfetchorders) * [oceanex](/exchanges/oceanex.md#oceanexfetchorders) * [paradex](/exchanges/paradex.md#paradexfetchorders) * [phemex](/exchanges/phemex.md#phemexfetchorders) * [tokocrypto](/exchanges/tokocrypto.md#tokocryptofetchorders) * [vertex](/exchanges/vertex.md#vertexfetchorders) * [wavesexchange](/exchanges/wavesexchange.md#wavesexchangefetchorders) * [wazirx](/exchanges/wazirx.md#wazirxfetchorders) * [woo](/exchanges/woo.md#woofetchorders) * [woofipro](/exchanges/woofipro.md#woofiprofetchorders) * [xt](/exchanges/xt.md#xtfetchorders) --- ## fetchOrdersByIds fetch orders by the list of order id **Kind**: instance **Returns**: Array<object> - a list of [order structure](https://docs.ccxt.com/#/?id=order-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | ids | Array<string>, undefined | Yes | list of order id | | params | object | No | extra parameters specific to the kraken api endpoint | ##### Supported exchanges * [kraken](/exchanges/kraken.md#krakenfetchordersbyids) --- ## fetchOrdersByStatus fetch a list of orders **Kind**: instance **Returns**: Array<Order> - a list of [order structures](https://docs.ccxt.com/#/?id=order-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | unified market symbol of the market orders were made in | | since | int | No | the earliest time in ms to fetch orders for | | limit | int | No | the maximum number of order structures to retrieve | | params.trigger | boolean | No | set to true for fetching trigger orders | | params.marginMode | string | No | 'cross' or 'isolated' for fetching spot margin orders | ##### Supported exchanges * [coinex](/exchanges/coinex.md#coinexfetchordersbystatus) * [kucoin](/exchanges/kucoin.md#kucoinfetchordersbystatus) * [kucoinfutures](/exchanges/kucoinfutures.md#kucoinfuturesfetchordersbystatus) * [kuna](/exchanges/kuna.md#kunafetchordersbystatus) * [poloniexfutures](/exchanges/poloniexfutures.md#poloniexfuturesfetchordersbystatus) --- ## fetchOrdersWs fetches information on multiple orders made by the user **Kind**: instance **Returns**: Array<object> - a list of [order structures](https://docs.ccxt.com/#/?id=order-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | unified market symbol of the market orders were made in | | since | int, undefined | No | the earliest time in ms to fetch orders for | | limit | int, undefined | No | the maximum number of order structures to retrieve | | params | object | No | extra parameters specific to the exchange API endpoint | | params.orderId | int | No | order id to begin at | | params.startTime | int | No | earliest time in ms to retrieve orders for | | params.endTime | int | No | latest time in ms to retrieve orders for | | params.limit | int | No | the maximum number of order structures to retrieve | ##### Supported exchanges * [binance](/exchanges/binance.md#binancefetchordersws) * [bitvavo](/exchanges/bitvavo.md#bitvavofetchordersws) * [gate](/exchanges/gate.md#gatefetchordersws) --- ## fetchPortfolios fetch all the portfolios **Kind**: instance **Returns**: object - a dictionary of [account structures](https://docs.ccxt.com/#/?id=account-structure) indexed by the account type | Param | Type | Required | Description | | --- | --- | --- | --- | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [coinbase](/exchanges/coinbase.md#coinbasefetchportfolios) --- ## fetchPosition fetch data on an open position **Kind**: instance **Returns**: object - a [position structure](https://docs.ccxt.com/#/?id=position-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | unified market symbol of the market the position is held in | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [binance](/exchanges/binance.md#binancefetchposition) * [bingx](/exchanges/bingx.md#bingxfetchposition) * [bitget](/exchanges/bitget.md#bitgetfetchposition) * [bitmart](/exchanges/bitmart.md#bitmartfetchposition) * [blofin](/exchanges/blofin.md#blofinfetchposition) * [blofin](/exchanges/blofin.md#blofinfetchposition) * [bybit](/exchanges/bybit.md#bybitfetchposition) * [coinbase](/exchanges/coinbase.md#coinbasefetchposition) * [coinbaseinternational](/exchanges/coinbaseinternational.md#coinbaseinternationalfetchposition) * [coinex](/exchanges/coinex.md#coinexfetchposition) * [cryptocom](/exchanges/cryptocom.md#cryptocomfetchposition) * [delta](/exchanges/delta.md#deltafetchposition) * [deribit](/exchanges/deribit.md#deribitfetchposition) * [digifinex](/exchanges/digifinex.md#digifinexfetchposition) * [gate](/exchanges/gate.md#gatefetchposition) * [hitbtc](/exchanges/hitbtc.md#hitbtcfetchposition) * [htx](/exchanges/htx.md#htxfetchposition) * [hyperliquid](/exchanges/hyperliquid.md#hyperliquidfetchposition) * [kucoinfutures](/exchanges/kucoinfutures.md#kucoinfuturesfetchposition) * [mexc](/exchanges/mexc.md#mexcfetchposition) * [okx](/exchanges/okx.md#okxfetchposition) * [woofipro](/exchanges/woofipro.md#woofiprofetchposition) * [xt](/exchanges/xt.md#xtfetchposition) --- ## fetchPositionHistory fetches historical positions **Kind**: instance **Returns**: Array<object> - a list of [position structures](https://docs.ccxt.com/#/?id=position-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | unified contract symbol | | since | int | No | the earliest time in ms to fetch positions for | | limit | int | No | the maximum amount of records to fetch, default is 10 | | params | object | No | extra parameters specific to the exchange api endpoint | | params.until | int | No | the latest time in ms to fetch positions for | ##### Supported exchanges * [coinex](/exchanges/coinex.md#coinexfetchpositionhistory) --- ## fetchPositionMode fetchs the position mode, hedged or one way, hedged for binance is set identically for all linear markets or all inverse markets **Kind**: instance **Returns**: object - an object detailing whether the market is in hedged or one-way mode | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | unified symbol of the market to fetch the order book for | | params | object | No | extra parameters specific to the exchange API endpoint | | params.subType | string | No | "linear" or "inverse" | ##### Supported exchanges * [binance](/exchanges/binance.md#binancefetchpositionmode) * [bingx](/exchanges/bingx.md#bingxfetchpositionmode) * [okx](/exchanges/okx.md#okxfetchpositionmode) --- ## fetchPositionWs fetch data on an open position **Kind**: instance **Returns**: object - a [position structure](https://docs.ccxt.com/#/?id=position-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | unified market symbol of the market the position is held in | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [binance](/exchanges/binance.md#binancefetchpositionws) --- ## fetchPositions fetch all open positions **Kind**: instance **Returns**: Array<object> - a list of [position structure](https://docs.ccxt.com/#/?id=position-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbols | Array<string>, undefined | Yes | list of unified market symbols | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [ascendex](/exchanges/ascendex.md#ascendexfetchpositions) * [binance](/exchanges/binance.md#binancefetchpositions) * [bingx](/exchanges/bingx.md#bingxfetchpositions) * [bitfinex](/exchanges/bitfinex.md#bitfinexfetchpositions) * [bitfinex2](/exchanges/bitfinex2.md#bitfinex2fetchpositions) * [bitflyer](/exchanges/bitflyer.md#bitflyerfetchpositions) * [bitget](/exchanges/bitget.md#bitgetfetchpositions) * [bitmart](/exchanges/bitmart.md#bitmartfetchpositions) * [bitmex](/exchanges/bitmex.md#bitmexfetchpositions) * [bybit](/exchanges/bybit.md#bybitfetchpositions) * [coinbase](/exchanges/coinbase.md#coinbasefetchpositions) * [coinbaseinternational](/exchanges/coinbaseinternational.md#coinbaseinternationalfetchpositions) * [coinex](/exchanges/coinex.md#coinexfetchpositions) * [cryptocom](/exchanges/cryptocom.md#cryptocomfetchpositions) * [currencycom](/exchanges/currencycom.md#currencycomfetchpositions) * [delta](/exchanges/delta.md#deltafetchpositions) * [deribit](/exchanges/deribit.md#deribitfetchpositions) * [digifinex](/exchanges/digifinex.md#digifinexfetchpositions) * [gate](/exchanges/gate.md#gatefetchpositions) * [hashkey](/exchanges/hashkey.md#hashkeyfetchpositions) * [hitbtc](/exchanges/hitbtc.md#hitbtcfetchpositions) * [htx](/exchanges/htx.md#htxfetchpositions) * [hyperliquid](/exchanges/hyperliquid.md#hyperliquidfetchpositions) * [kraken](/exchanges/kraken.md#krakenfetchpositions) * [krakenfutures](/exchanges/krakenfutures.md#krakenfuturesfetchpositions) * [kucoinfutures](/exchanges/kucoinfutures.md#kucoinfuturesfetchpositions) * [mexc](/exchanges/mexc.md#mexcfetchpositions) * [okx](/exchanges/okx.md#okxfetchpositions) * [okx](/exchanges/okx.md#okxfetchpositions) * [oxfun](/exchanges/oxfun.md#oxfunfetchpositions) * [paradex](/exchanges/paradex.md#paradexfetchpositions) * [paradex](/exchanges/paradex.md#paradexfetchpositions) * [phemex](/exchanges/phemex.md#phemexfetchpositions) * [poloniexfutures](/exchanges/poloniexfutures.md#poloniexfuturesfetchpositions) * [vertex](/exchanges/vertex.md#vertexfetchpositions) * [woofipro](/exchanges/woofipro.md#woofiprofetchpositions) * [xt](/exchanges/xt.md#xtfetchpositions) --- ## fetchPositionsForSymbol fetch all open positions for specific symbol **Kind**: instance **Returns**: Array<object> - a list of [position structure](https://docs.ccxt.com/#/?id=position-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | unified market symbol | | params | object | No | extra parameters specific to the exchange API endpoint | | params.side | string | No | 'LONG' or 'SHORT' - the direction of the position (if not provided, positions for both sides will be returned) | ##### Supported exchanges * [hashkey](/exchanges/hashkey.md#hashkeyfetchpositionsforsymbol) --- ## fetchPositionsHistory fetches historical positions **Kind**: instance **Returns**: Array<object> - a list of [position structures](https://docs.ccxt.com/#/?id=position-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbols | Array<string> | No | unified contract symbols | | since | int | No | timestamp in ms of the earliest position to fetch, default=3 months ago, max range for params["until"] - since is 3 months | | limit | int | No | the maximum amount of records to fetch, default=20, max=100 | | params | object | Yes | extra parameters specific to the exchange api endpoint | | params.until | int | No | timestamp in ms of the latest position to fetch, max range for params["until"] - since is 3 months EXCHANGE SPECIFIC PARAMETERS | | params.productType | string | No | USDT-FUTURES (default), COIN-FUTURES, USDC-FUTURES, SUSDT-FUTURES, SCOIN-FUTURES, or SUSDC-FUTURES | ##### Supported exchanges * [bitget](/exchanges/bitget.md#bitgetfetchpositionshistory) * [bybit](/exchanges/bybit.md#bybitfetchpositionshistory) * [gate](/exchanges/gate.md#gatefetchpositionshistory) * [kucoinfutures](/exchanges/kucoinfutures.md#kucoinfuturesfetchpositionshistory) * [mexc](/exchanges/mexc.md#mexcfetchpositionshistory) * [okx](/exchanges/okx.md#okxfetchpositionshistory) --- ## fetchPositionsWs fetch all open positions **Kind**: instance **Returns**: Array<object> - a list of [position structure](https://docs.ccxt.com/#/?id=position-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbols | Array<string> | No | list of unified market symbols | | params | object | No | extra parameters specific to the exchange API endpoint | | params.returnRateLimits | boolean | No | set to true to return rate limit informations, defaults to false. | | params.method | string, undefined | No | method to use. Can be account.position or v2/account.position | ##### Supported exchanges * [binance](/exchanges/binance.md#binancefetchpositionsws) --- ## fetchSettlementHistory fetches historical settlement records **Kind**: instance **Returns**: Array<object> - a list of [settlement history objects](https://docs.ccxt.com/#/?id=settlement-history-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | unified market symbol of the settlement history | | since | int | No | timestamp in ms | | limit | int | No | number of records, default 100, max 100 | | params | object | No | exchange specific params | ##### Supported exchanges * [binance](/exchanges/binance.md#binancefetchsettlementhistory) * [bybit](/exchanges/bybit.md#bybitfetchsettlementhistory) * [cryptocom](/exchanges/cryptocom.md#cryptocomfetchsettlementhistory) * [delta](/exchanges/delta.md#deltafetchsettlementhistory) * [gate](/exchanges/gate.md#gatefetchsettlementhistory) * [htx](/exchanges/htx.md#htxfetchsettlementhistory) * [okx](/exchanges/okx.md#okxfetchsettlementhistory) --- ## fetchStatus the latest known information on the availability of the exchange API **Kind**: instance **Returns**: object - a [status structure](https://docs.ccxt.com/#/?id=exchange-status-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [binance](/exchanges/binance.md#binancefetchstatus) * [bitbns](/exchanges/bitbns.md#bitbnsfetchstatus) * [bitfinex2](/exchanges/bitfinex2.md#bitfinex2fetchstatus) * [bitmart](/exchanges/bitmart.md#bitmartfetchstatus) * [bitrue](/exchanges/bitrue.md#bitruefetchstatus) * [coinsph](/exchanges/coinsph.md#coinsphfetchstatus) * [delta](/exchanges/delta.md#deltafetchstatus) * [deribit](/exchanges/deribit.md#deribitfetchstatus) * [digifinex](/exchanges/digifinex.md#digifinexfetchstatus) * [hashkey](/exchanges/hashkey.md#hashkeyfetchstatus) * [idex](/exchanges/idex.md#idexfetchstatus) * [kraken](/exchanges/kraken.md#krakenfetchstatus) * [kucoin](/exchanges/kucoin.md#kucoinfetchstatus) * [kucoinfutures](/exchanges/kucoinfutures.md#kucoinfuturesfetchstatus) * [mexc](/exchanges/mexc.md#mexcfetchstatus) * [okx](/exchanges/okx.md#okxfetchstatus) * [paradex](/exchanges/paradex.md#paradexfetchstatus) * [vertex](/exchanges/vertex.md#vertexfetchstatus) * [wazirx](/exchanges/wazirx.md#wazirxfetchstatus) * [whitebit](/exchanges/whitebit.md#whitebitfetchstatus) * [woo](/exchanges/woo.md#woofetchstatus) * [woofipro](/exchanges/woofipro.md#woofiprofetchstatus) --- ## fetchTicker fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market **Kind**: instance **Returns**: object - a [ticker structure](https://docs.ccxt.com/#/?id=ticker-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | unified symbol of the market to fetch the ticker for | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [ace](/exchanges/ace.md#acefetchticker) * [ascendex](/exchanges/ascendex.md#ascendexfetchticker) * [bigone](/exchanges/bigone.md#bigonefetchticker) * [binance](/exchanges/binance.md#binancefetchticker) * [bingx](/exchanges/bingx.md#bingxfetchticker) * [bit2c](/exchanges/bit2c.md#bit2cfetchticker) * [bitbank](/exchanges/bitbank.md#bitbankfetchticker) * [bitfinex](/exchanges/bitfinex.md#bitfinexfetchticker) * [bitfinex2](/exchanges/bitfinex2.md#bitfinex2fetchticker) * [bitflyer](/exchanges/bitflyer.md#bitflyerfetchticker) * [bitget](/exchanges/bitget.md#bitgetfetchticker) * [bithumb](/exchanges/bithumb.md#bithumbfetchticker) * [bitmart](/exchanges/bitmart.md#bitmartfetchticker) * [bitmex](/exchanges/bitmex.md#bitmexfetchticker) * [bitopro](/exchanges/bitopro.md#bitoprofetchticker) * [bitrue](/exchanges/bitrue.md#bitruefetchticker) * [bitso](/exchanges/bitso.md#bitsofetchticker) * [bitstamp](/exchanges/bitstamp.md#bitstampfetchticker) * [bitteam](/exchanges/bitteam.md#bitteamfetchticker) * [bitvavo](/exchanges/bitvavo.md#bitvavofetchticker) * [bl3p](/exchanges/bl3p.md#bl3pfetchticker) * [blockchaincom](/exchanges/blockchaincom.md#blockchaincomfetchticker) * [blofin](/exchanges/blofin.md#blofinfetchticker) * [btcalpha](/exchanges/btcalpha.md#btcalphafetchticker) * [btcbox](/exchanges/btcbox.md#btcboxfetchticker) * [btcmarkets](/exchanges/btcmarkets.md#btcmarketsfetchticker) * [btcturk](/exchanges/btcturk.md#btcturkfetchticker) * [bybit](/exchanges/bybit.md#bybitfetchticker) * [cex](/exchanges/cex.md#cexfetchticker) * [coinbase](/exchanges/coinbase.md#coinbasefetchticker) * [coinbaseexchange](/exchanges/coinbaseexchange.md#coinbaseexchangefetchticker) * [coinbaseinternational](/exchanges/coinbaseinternational.md#coinbaseinternationalfetchticker) * [coincheck](/exchanges/coincheck.md#coincheckfetchticker) * [coinex](/exchanges/coinex.md#coinexfetchticker) * [coinlist](/exchanges/coinlist.md#coinlistfetchticker) * [coinmate](/exchanges/coinmate.md#coinmatefetchticker) * [coinone](/exchanges/coinone.md#coinonefetchticker) * [coinsph](/exchanges/coinsph.md#coinsphfetchticker) * [coinspot](/exchanges/coinspot.md#coinspotfetchticker) * [cryptocom](/exchanges/cryptocom.md#cryptocomfetchticker) * [currencycom](/exchanges/currencycom.md#currencycomfetchticker) * [delta](/exchanges/delta.md#deltafetchticker) * [deribit](/exchanges/deribit.md#deribitfetchticker) * [digifinex](/exchanges/digifinex.md#digifinexfetchticker) * [exmo](/exchanges/exmo.md#exmofetchticker) * [gate](/exchanges/gate.md#gatefetchticker) * [gemini](/exchanges/gemini.md#geminifetchticker) * [hashkey](/exchanges/hashkey.md#hashkeyfetchticker) * [hitbtc](/exchanges/hitbtc.md#hitbtcfetchticker) * [hollaex](/exchanges/hollaex.md#hollaexfetchticker) * [htx](/exchanges/htx.md#htxfetchticker) * [huobijp](/exchanges/huobijp.md#huobijpfetchticker) * [idex](/exchanges/idex.md#idexfetchticker) * [independentreserve](/exchanges/independentreserve.md#independentreservefetchticker) * [indodax](/exchanges/indodax.md#indodaxfetchticker) * [kraken](/exchanges/kraken.md#krakenfetchticker) * [kucoin](/exchanges/kucoin.md#kucoinfetchticker) * [kucoinfutures](/exchanges/kucoinfutures.md#kucoinfuturesfetchticker) * [kuna](/exchanges/kuna.md#kunafetchticker) * [latoken](/exchanges/latoken.md#latokenfetchticker) * [lbank](/exchanges/lbank.md#lbankfetchticker) * [luno](/exchanges/luno.md#lunofetchticker) * [lykke](/exchanges/lykke.md#lykkefetchticker) * [mercado](/exchanges/mercado.md#mercadofetchticker) * [mexc](/exchanges/mexc.md#mexcfetchticker) * [ndax](/exchanges/ndax.md#ndaxfetchticker) * [novadax](/exchanges/novadax.md#novadaxfetchticker) * [oceanex](/exchanges/oceanex.md#oceanexfetchticker) * [okcoin](/exchanges/okcoin.md#okcoinfetchticker) * [okx](/exchanges/okx.md#okxfetchticker) * [onetrading](/exchanges/onetrading.md#onetradingfetchticker) * [oxfun](/exchanges/oxfun.md#oxfunfetchticker) * [p2b](/exchanges/p2b.md#p2bfetchticker) * [paradex](/exchanges/paradex.md#paradexfetchticker) * [paymium](/exchanges/paymium.md#paymiumfetchticker) * [phemex](/exchanges/phemex.md#phemexfetchticker) * [poloniex](/exchanges/poloniex.md#poloniexfetchticker) * [poloniexfutures](/exchanges/poloniexfutures.md#poloniexfuturesfetchticker) * [probit](/exchanges/probit.md#probitfetchticker) * [timex](/exchanges/timex.md#timexfetchticker) * [tokocrypto](/exchanges/tokocrypto.md#tokocryptofetchticker) * [tradeogre](/exchanges/tradeogre.md#tradeogrefetchticker) * [upbit](/exchanges/upbit.md#upbitfetchticker) * [wavesexchange](/exchanges/wavesexchange.md#wavesexchangefetchticker) * [wazirx](/exchanges/wazirx.md#wazirxfetchticker) * [whitebit](/exchanges/whitebit.md#whitebitfetchticker) * [xt](/exchanges/xt.md#xtfetchticker) * [yobit](/exchanges/yobit.md#yobitfetchticker) * [zaif](/exchanges/zaif.md#zaiffetchticker) * [zonda](/exchanges/zonda.md#zondafetchticker) --- ## fetchTickerWs fetches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market **Kind**: instance **Returns**: object - a [ticker structure](https://docs.ccxt.com/#/?id=ticker-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | unified symbol of the market to fetch the ticker for | | params | object | No | extra parameters specific to the exchange API endpoint | | params.method | string | No | method to use can be ticker.price or ticker.book | | params.returnRateLimits | boolean | No | return the rate limits for the exchange | ##### Supported exchanges * [binance](/exchanges/binance.md#binancefetchtickerws) * [cex](/exchanges/cex.md#cexfetchtickerws) * [lbank](/exchanges/lbank.md#lbankfetchtickerws) --- ## fetchTickers fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for each market **Kind**: instance **Returns**: object - a dictionary of [ticker structures](https://docs.ccxt.com/#/?id=ticker-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbols | Array<string>, undefined | Yes | unified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [ace](/exchanges/ace.md#acefetchtickers) * [ascendex](/exchanges/ascendex.md#ascendexfetchtickers) * [bigone](/exchanges/bigone.md#bigonefetchtickers) * [binance](/exchanges/binance.md#binancefetchtickers) * [bingx](/exchanges/bingx.md#bingxfetchtickers) * [bitbns](/exchanges/bitbns.md#bitbnsfetchtickers) * [bitfinex](/exchanges/bitfinex.md#bitfinexfetchtickers) * [bitfinex2](/exchanges/bitfinex2.md#bitfinex2fetchtickers) * [bitget](/exchanges/bitget.md#bitgetfetchtickers) * [bithumb](/exchanges/bithumb.md#bithumbfetchtickers) * [bitmart](/exchanges/bitmart.md#bitmartfetchtickers) * [bitmex](/exchanges/bitmex.md#bitmexfetchtickers) * [bitopro](/exchanges/bitopro.md#bitoprofetchtickers) * [bitrue](/exchanges/bitrue.md#bitruefetchtickers) * [bitstamp](/exchanges/bitstamp.md#bitstampfetchtickers) * [bitteam](/exchanges/bitteam.md#bitteamfetchtickers) * [bitvavo](/exchanges/bitvavo.md#bitvavofetchtickers) * [blockchaincom](/exchanges/blockchaincom.md#blockchaincomfetchtickers) * [blofin](/exchanges/blofin.md#blofinfetchtickers) * [btcalpha](/exchanges/btcalpha.md#btcalphafetchtickers) * [btcbox](/exchanges/btcbox.md#btcboxfetchtickers) * [btcturk](/exchanges/btcturk.md#btcturkfetchtickers) * [bybit](/exchanges/bybit.md#bybitfetchtickers) * [cex](/exchanges/cex.md#cexfetchtickers) * [coinbase](/exchanges/coinbase.md#coinbasefetchtickers) * [coinbaseexchange](/exchanges/coinbaseexchange.md#coinbaseexchangefetchtickers) * [coinbaseinternational](/exchanges/coinbaseinternational.md#coinbaseinternationalfetchtickers) * [coinex](/exchanges/coinex.md#coinexfetchtickers) * [coinlist](/exchanges/coinlist.md#coinlistfetchtickers) * [coinmate](/exchanges/coinmate.md#coinmatefetchtickers) * [coinmetro](/exchanges/coinmetro.md#coinmetrofetchtickers) * [coinone](/exchanges/coinone.md#coinonefetchtickers) * [coinsph](/exchanges/coinsph.md#coinsphfetchtickers) * [coinspot](/exchanges/coinspot.md#coinspotfetchtickers) * [cryptocom](/exchanges/cryptocom.md#cryptocomfetchtickers) * [currencycom](/exchanges/currencycom.md#currencycomfetchtickers) * [delta](/exchanges/delta.md#deltafetchtickers) * [deribit](/exchanges/deribit.md#deribitfetchtickers) * [digifinex](/exchanges/digifinex.md#digifinexfetchtickers) * [exmo](/exchanges/exmo.md#exmofetchtickers) * [gate](/exchanges/gate.md#gatefetchtickers) * [gemini](/exchanges/gemini.md#geminifetchtickers) * [hashkey](/exchanges/hashkey.md#hashkeyfetchtickers) * [hitbtc](/exchanges/hitbtc.md#hitbtcfetchtickers) * [hollaex](/exchanges/hollaex.md#hollaexfetchtickers) * [htx](/exchanges/htx.md#htxfetchtickers) * [huobijp](/exchanges/huobijp.md#huobijpfetchtickers) * [hyperliquid](/exchanges/hyperliquid.md#hyperliquidfetchtickers) * [idex](/exchanges/idex.md#idexfetchtickers) * [indodax](/exchanges/indodax.md#indodaxfetchtickers) * [kraken](/exchanges/kraken.md#krakenfetchtickers) * [krakenfutures](/exchanges/krakenfutures.md#krakenfuturesfetchtickers) * [kucoin](/exchanges/kucoin.md#kucoinfetchtickers) * [kucoinfutures](/exchanges/kucoinfutures.md#kucoinfuturesfetchtickers) * [kuna](/exchanges/kuna.md#kunafetchtickers) * [latoken](/exchanges/latoken.md#latokenfetchtickers) * [lbank](/exchanges/lbank.md#lbankfetchtickers) * [luno](/exchanges/luno.md#lunofetchtickers) * [lykke](/exchanges/lykke.md#lykkefetchtickers) * [mexc](/exchanges/mexc.md#mexcfetchtickers) * [novadax](/exchanges/novadax.md#novadaxfetchtickers) * [oceanex](/exchanges/oceanex.md#oceanexfetchtickers) * [okcoin](/exchanges/okcoin.md#okcoinfetchtickers) * [okx](/exchanges/okx.md#okxfetchtickers) * [onetrading](/exchanges/onetrading.md#onetradingfetchtickers) * [oxfun](/exchanges/oxfun.md#oxfunfetchtickers) * [p2b](/exchanges/p2b.md#p2bfetchtickers) * [paradex](/exchanges/paradex.md#paradexfetchtickers) * [phemex](/exchanges/phemex.md#phemexfetchtickers) * [poloniex](/exchanges/poloniex.md#poloniexfetchtickers) * [poloniexfutures](/exchanges/poloniexfutures.md#poloniexfuturesfetchtickers) * [probit](/exchanges/probit.md#probitfetchtickers) * [timex](/exchanges/timex.md#timexfetchtickers) * [tokocrypto](/exchanges/tokocrypto.md#tokocryptofetchtickers) * [upbit](/exchanges/upbit.md#upbitfetchtickers) * [vertex](/exchanges/vertex.md#vertexfetchtickers) * [wavesexchange](/exchanges/wavesexchange.md#wavesexchangefetchtickers) * [wazirx](/exchanges/wazirx.md#wazirxfetchtickers) * [whitebit](/exchanges/whitebit.md#whitebitfetchtickers) * [xt](/exchanges/xt.md#xtfetchtickers) * [yobit](/exchanges/yobit.md#yobitfetchtickers) --- ## fetchTime fetches the current integer timestamp in milliseconds from the exchange server **Kind**: instance **Returns**: int - the current integer timestamp in milliseconds from the exchange server | Param | Type | Required | Description | | --- | --- | --- | --- | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [alpaca](/exchanges/alpaca.md#alpacafetchtime) * [ascendex](/exchanges/ascendex.md#ascendexfetchtime) * [bigone](/exchanges/bigone.md#bigonefetchtime) * [binance](/exchanges/binance.md#binancefetchtime) * [bingx](/exchanges/bingx.md#bingxfetchtime) * [bitget](/exchanges/bitget.md#bitgetfetchtime) * [bitmart](/exchanges/bitmart.md#bitmartfetchtime) * [bitrue](/exchanges/bitrue.md#bitruefetchtime) * [bitvavo](/exchanges/bitvavo.md#bitvavofetchtime) * [btcmarkets](/exchanges/btcmarkets.md#btcmarketsfetchtime) * [bybit](/exchanges/bybit.md#bybitfetchtime) * [coinbase](/exchanges/coinbase.md#coinbasefetchtime) * [coinbaseexchange](/exchanges/coinbaseexchange.md#coinbaseexchangefetchtime) * [coinex](/exchanges/coinex.md#coinexfetchtime) * [coinlist](/exchanges/coinlist.md#coinlistfetchtime) * [coinsph](/exchanges/coinsph.md#coinsphfetchtime) * [currencycom](/exchanges/currencycom.md#currencycomfetchtime) * [delta](/exchanges/delta.md#deltafetchtime) * [deribit](/exchanges/deribit.md#deribitfetchtime) * [digifinex](/exchanges/digifinex.md#digifinexfetchtime) * [hashkey](/exchanges/hashkey.md#hashkeyfetchtime) * [htx](/exchanges/htx.md#htxfetchtime) * [huobijp](/exchanges/huobijp.md#huobijpfetchtime) * [idex](/exchanges/idex.md#idexfetchtime) * [indodax](/exchanges/indodax.md#indodaxfetchtime) * [kraken](/exchanges/kraken.md#krakenfetchtime) * [kucoin](/exchanges/kucoin.md#kucoinfetchtime) * [kucoinfutures](/exchanges/kucoinfutures.md#kucoinfuturesfetchtime) * [kuna](/exchanges/kuna.md#kunafetchtime) * [latoken](/exchanges/latoken.md#latokenfetchtime) * [lbank](/exchanges/lbank.md#lbankfetchtime) * [mexc](/exchanges/mexc.md#mexcfetchtime) * [novadax](/exchanges/novadax.md#novadaxfetchtime) * [oceanex](/exchanges/oceanex.md#oceanexfetchtime) * [okcoin](/exchanges/okcoin.md#okcoinfetchtime) * [okx](/exchanges/okx.md#okxfetchtime) * [onetrading](/exchanges/onetrading.md#onetradingfetchtime) * [paradex](/exchanges/paradex.md#paradexfetchtime) * [poloniex](/exchanges/poloniex.md#poloniexfetchtime) * [poloniexfutures](/exchanges/poloniexfutures.md#poloniexfuturesfetchtime) * [probit](/exchanges/probit.md#probitfetchtime) * [timex](/exchanges/timex.md#timexfetchtime) * [tokocrypto](/exchanges/tokocrypto.md#tokocryptofetchtime) * [vertex](/exchanges/vertex.md#vertexfetchtime) * [wazirx](/exchanges/wazirx.md#wazirxfetchtime) * [whitebit](/exchanges/whitebit.md#whitebitfetchtime) * [woo](/exchanges/woo.md#woofetchtime) * [woofipro](/exchanges/woofipro.md#woofiprofetchtime) * [xt](/exchanges/xt.md#xtfetchtime) --- ## fetchTrades get the list of most recent trades for a particular symbol **Kind**: instance **Returns**: Array<Trade> - a list of [trade structures](https://docs.ccxt.com/#/?id=public-trades) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | unified symbol of the market to fetch trades for | | since | int | No | timestamp in ms of the earliest trade to fetch | | limit | int | No | the maximum amount of trades to fetch | | params | object | No | extra parameters specific to the exchange API endpoint | | params.loc | string | No | crypto location, default: us | | params.method | string | No | method, default: marketPublicGetV1beta3CryptoLocTrades | ##### Supported exchanges * [alpaca](/exchanges/alpaca.md#alpacafetchtrades) * [ascendex](/exchanges/ascendex.md#ascendexfetchtrades) * [bigone](/exchanges/bigone.md#bigonefetchtrades) * [binance](/exchanges/binance.md#binancefetchtrades) * [bingx](/exchanges/bingx.md#bingxfetchtrades) * [bit2c](/exchanges/bit2c.md#bit2cfetchtrades) * [bitbank](/exchanges/bitbank.md#bitbankfetchtrades) * [bitbns](/exchanges/bitbns.md#bitbnsfetchtrades) * [bitfinex](/exchanges/bitfinex.md#bitfinexfetchtrades) * [bitfinex2](/exchanges/bitfinex2.md#bitfinex2fetchtrades) * [bitflyer](/exchanges/bitflyer.md#bitflyerfetchtrades) * [bitget](/exchanges/bitget.md#bitgetfetchtrades) * [bithumb](/exchanges/bithumb.md#bithumbfetchtrades) * [bitmart](/exchanges/bitmart.md#bitmartfetchtrades) * [bitmex](/exchanges/bitmex.md#bitmexfetchtrades) * [bitopro](/exchanges/bitopro.md#bitoprofetchtrades) * [bitrue](/exchanges/bitrue.md#bitruefetchtrades) * [bitso](/exchanges/bitso.md#bitsofetchtrades) * [bitstamp](/exchanges/bitstamp.md#bitstampfetchtrades) * [bitteam](/exchanges/bitteam.md#bitteamfetchtrades) * [bitvavo](/exchanges/bitvavo.md#bitvavofetchtrades) * [bl3p](/exchanges/bl3p.md#bl3pfetchtrades) * [blofin](/exchanges/blofin.md#blofinfetchtrades) * [btcalpha](/exchanges/btcalpha.md#btcalphafetchtrades) * [btcbox](/exchanges/btcbox.md#btcboxfetchtrades) * [btcmarkets](/exchanges/btcmarkets.md#btcmarketsfetchtrades) * [btcturk](/exchanges/btcturk.md#btcturkfetchtrades) * [bybit](/exchanges/bybit.md#bybitfetchtrades) * [cex](/exchanges/cex.md#cexfetchtrades) * [coinbase](/exchanges/coinbase.md#coinbasefetchtrades) * [coinbaseexchange](/exchanges/coinbaseexchange.md#coinbaseexchangefetchtrades) * [coincheck](/exchanges/coincheck.md#coincheckfetchtrades) * [coinex](/exchanges/coinex.md#coinexfetchtrades) * [coinlist](/exchanges/coinlist.md#coinlistfetchtrades) * [coinmate](/exchanges/coinmate.md#coinmatefetchtrades) * [coinmetro](/exchanges/coinmetro.md#coinmetrofetchtrades) * [coinone](/exchanges/coinone.md#coinonefetchtrades) * [coinsph](/exchanges/coinsph.md#coinsphfetchtrades) * [coinspot](/exchanges/coinspot.md#coinspotfetchtrades) * [cryptocom](/exchanges/cryptocom.md#cryptocomfetchtrades) * [currencycom](/exchanges/currencycom.md#currencycomfetchtrades) * [delta](/exchanges/delta.md#deltafetchtrades) * [deribit](/exchanges/deribit.md#deribitfetchtrades) * [digifinex](/exchanges/digifinex.md#digifinexfetchtrades) * [exmo](/exchanges/exmo.md#exmofetchtrades) * [gate](/exchanges/gate.md#gatefetchtrades) * [gemini](/exchanges/gemini.md#geminifetchtrades) * [hashkey](/exchanges/hashkey.md#hashkeyfetchtrades) * [hitbtc](/exchanges/hitbtc.md#hitbtcfetchtrades) * [hollaex](/exchanges/hollaex.md#hollaexfetchtrades) * [htx](/exchanges/htx.md#htxfetchtrades) * [huobijp](/exchanges/huobijp.md#huobijpfetchtrades) * [hyperliquid](/exchanges/hyperliquid.md#hyperliquidfetchtrades) * [idex](/exchanges/idex.md#idexfetchtrades) * [independentreserve](/exchanges/independentreserve.md#independentreservefetchtrades) * [indodax](/exchanges/indodax.md#indodaxfetchtrades) * [kraken](/exchanges/kraken.md#krakenfetchtrades) * [krakenfutures](/exchanges/krakenfutures.md#krakenfuturesfetchtrades) * [kucoin](/exchanges/kucoin.md#kucoinfetchtrades) * [kucoinfutures](/exchanges/kucoinfutures.md#kucoinfuturesfetchtrades) * [kuna](/exchanges/kuna.md#kunafetchtrades) * [latoken](/exchanges/latoken.md#latokenfetchtrades) * [lbank](/exchanges/lbank.md#lbankfetchtrades) * [luno](/exchanges/luno.md#lunofetchtrades) * [lykke](/exchanges/lykke.md#lykkefetchtrades) * [mercado](/exchanges/mercado.md#mercadofetchtrades) * [mexc](/exchanges/mexc.md#mexcfetchtrades) * [ndax](/exchanges/ndax.md#ndaxfetchtrades) * [novadax](/exchanges/novadax.md#novadaxfetchtrades) * [oceanex](/exchanges/oceanex.md#oceanexfetchtrades) * [okcoin](/exchanges/okcoin.md#okcoinfetchtrades) * [okx](/exchanges/okx.md#okxfetchtrades) * [onetrading](/exchanges/onetrading.md#onetradingfetchtrades) * [oxfun](/exchanges/oxfun.md#oxfunfetchtrades) * [p2b](/exchanges/p2b.md#p2bfetchtrades) * [paradex](/exchanges/paradex.md#paradexfetchtrades) * [paymium](/exchanges/paymium.md#paymiumfetchtrades) * [phemex](/exchanges/phemex.md#phemexfetchtrades) * [poloniex](/exchanges/poloniex.md#poloniexfetchtrades) * [poloniexfutures](/exchanges/poloniexfutures.md#poloniexfuturesfetchtrades) * [probit](/exchanges/probit.md#probitfetchtrades) * [timex](/exchanges/timex.md#timexfetchtrades) * [tokocrypto](/exchanges/tokocrypto.md#tokocryptofetchtrades) * [tradeogre](/exchanges/tradeogre.md#tradeogrefetchtrades) * [upbit](/exchanges/upbit.md#upbitfetchtrades) * [vertex](/exchanges/vertex.md#vertexfetchtrades) * [wavesexchange](/exchanges/wavesexchange.md#wavesexchangefetchtrades) * [wazirx](/exchanges/wazirx.md#wazirxfetchtrades) * [whitebit](/exchanges/whitebit.md#whitebitfetchtrades) * [woo](/exchanges/woo.md#woofetchtrades) * [woofipro](/exchanges/woofipro.md#woofiprofetchtrades) * [xt](/exchanges/xt.md#xtfetchtrades) * [yobit](/exchanges/yobit.md#yobitfetchtrades) * [zaif](/exchanges/zaif.md#zaiffetchtrades) * [zonda](/exchanges/zonda.md#zondafetchtrades) --- ## fetchTradesWs fetch all trades made by the user **Kind**: instance **Returns**: Array<object> - a list of [trade structures](https://docs.ccxt.com/#/?id=trade-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | unified market symbol | | since | int | No | the earliest time in ms to fetch trades for | | limit | int | No | the maximum number of trades structures to retrieve, default=500, max=1000 | | params | object | No | extra parameters specific to the exchange API endpoint EXCHANGE SPECIFIC PARAMETERS | | params.fromId | int | No | trade ID to begin at | ##### Supported exchanges * [binance](/exchanges/binance.md#binancefetchtradesws) * [lbank](/exchanges/lbank.md#lbankfetchtradesws) --- ## fetchTradingFee fetch the trading fees for a market **Kind**: instance **Returns**: object - a [fee structure](https://docs.ccxt.com/#/?id=fee-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | unified market symbol | | params | object | No | extra parameters specific to the exchange API endpoint | | params.portfolioMargin | boolean | No | set to true if you would like to fetch trading fees in a portfolio margin account | | params.subType | string | No | "linear" or "inverse" | ##### Supported exchanges * [binance](/exchanges/binance.md#binancefetchtradingfee) * [bingx](/exchanges/bingx.md#bingxfetchtradingfee) * [bitflyer](/exchanges/bitflyer.md#bitflyerfetchtradingfee) * [bitget](/exchanges/bitget.md#bitgetfetchtradingfee) * [bitmart](/exchanges/bitmart.md#bitmartfetchtradingfee) * [bitstamp](/exchanges/bitstamp.md#bitstampfetchtradingfee) * [bybit](/exchanges/bybit.md#bybitfetchtradingfee) * [coinex](/exchanges/coinex.md#coinexfetchtradingfee) * [coinmate](/exchanges/coinmate.md#coinmatefetchtradingfee) * [coinsph](/exchanges/coinsph.md#coinsphfetchtradingfee) * [cryptocom](/exchanges/cryptocom.md#cryptocomfetchtradingfee) * [digifinex](/exchanges/digifinex.md#digifinexfetchtradingfee) * [gate](/exchanges/gate.md#gatefetchtradingfee) * [hashkey](/exchanges/hashkey.md#hashkeyfetchtradingfee) * [hitbtc](/exchanges/hitbtc.md#hitbtcfetchtradingfee) * [htx](/exchanges/htx.md#htxfetchtradingfee) * [hyperliquid](/exchanges/hyperliquid.md#hyperliquidfetchtradingfee) * [kraken](/exchanges/kraken.md#krakenfetchtradingfee) * [kucoin](/exchanges/kucoin.md#kucoinfetchtradingfee) * [kucoinfutures](/exchanges/kucoinfutures.md#kucoinfuturesfetchtradingfee) * [latoken](/exchanges/latoken.md#latokenfetchtradingfee) * [lbank](/exchanges/lbank.md#lbankfetchtradingfee) * [luno](/exchanges/luno.md#lunofetchtradingfee) * [okx](/exchanges/okx.md#okxfetchtradingfee) * [timex](/exchanges/timex.md#timexfetchtradingfee) * [upbit](/exchanges/upbit.md#upbitfetchtradingfee) --- ## fetchTradingFees fetch the trading fees for multiple markets **Kind**: instance **Returns**: object - a dictionary of [fee structures](https://docs.ccxt.com/#/?id=fee-structure) indexed by market symbols | Param | Type | Required | Description | | --- | --- | --- | --- | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [ascendex](/exchanges/ascendex.md#ascendexfetchtradingfees) * [binance](/exchanges/binance.md#binancefetchtradingfees) * [bit2c](/exchanges/bit2c.md#bit2cfetchtradingfees) * [bitbank](/exchanges/bitbank.md#bitbankfetchtradingfees) * [bitfinex](/exchanges/bitfinex.md#bitfinexfetchtradingfees) * [bitfinex2](/exchanges/bitfinex2.md#bitfinex2fetchtradingfees) * [bitget](/exchanges/bitget.md#bitgetfetchtradingfees) * [bitopro](/exchanges/bitopro.md#bitoprofetchtradingfees) * [bitso](/exchanges/bitso.md#bitsofetchtradingfees) * [bitstamp](/exchanges/bitstamp.md#bitstampfetchtradingfees) * [bitvavo](/exchanges/bitvavo.md#bitvavofetchtradingfees) * [bl3p](/exchanges/bl3p.md#bl3pfetchtradingfees) * [blockchaincom](/exchanges/blockchaincom.md#blockchaincomfetchtradingfees) * [bybit](/exchanges/bybit.md#bybitfetchtradingfees) * [cex](/exchanges/cex.md#cexfetchtradingfees) * [coinbase](/exchanges/coinbase.md#coinbasefetchtradingfees) * [coinbaseexchange](/exchanges/coinbaseexchange.md#coinbaseexchangefetchtradingfees) * [coincheck](/exchanges/coincheck.md#coincheckfetchtradingfees) * [coinex](/exchanges/coinex.md#coinexfetchtradingfees) * [coinlist](/exchanges/coinlist.md#coinlistfetchtradingfees) * [coinsph](/exchanges/coinsph.md#coinsphfetchtradingfees) * [cryptocom](/exchanges/cryptocom.md#cryptocomfetchtradingfees) * [currencycom](/exchanges/currencycom.md#currencycomfetchtradingfees) * [deribit](/exchanges/deribit.md#deribitfetchtradingfees) * [exmo](/exchanges/exmo.md#exmofetchtradingfees) * [gate](/exchanges/gate.md#gatefetchtradingfees) * [gemini](/exchanges/gemini.md#geminifetchtradingfees) * [hashkey](/exchanges/hashkey.md#hashkeyfetchtradingfees) * [hitbtc](/exchanges/hitbtc.md#hitbtcfetchtradingfees) * [hollaex](/exchanges/hollaex.md#hollaexfetchtradingfees) * [idex](/exchanges/idex.md#idexfetchtradingfees) * [independentreserve](/exchanges/independentreserve.md#independentreservefetchtradingfees) * [lbank](/exchanges/lbank.md#lbankfetchtradingfees) * [mexc](/exchanges/mexc.md#mexcfetchtradingfees) * [oceanex](/exchanges/oceanex.md#oceanexfetchtradingfees) * [onetrading](/exchanges/onetrading.md#onetradingfetchtradingfees) * [poloniex](/exchanges/poloniex.md#poloniexfetchtradingfees) * [vertex](/exchanges/vertex.md#vertexfetchtradingfees) * [whitebit](/exchanges/whitebit.md#whitebitfetchtradingfees) * [woo](/exchanges/woo.md#woofetchtradingfees) * [woofipro](/exchanges/woofipro.md#woofiprofetchtradingfees) * [yobit](/exchanges/yobit.md#yobitfetchtradingfees) --- ## fetchTradingFeesWs fetch the trading fees for multiple markets **Kind**: instance **Returns**: object - a dictionary of [fee structures](https://docs.ccxt.com/#/?id=fee-structure) indexed by market symbols | Param | Type | Required | Description | | --- | --- | --- | --- | | params | object | No | extra parameters specific to the bitvavo api endpoint | ##### Supported exchanges * [bitvavo](/exchanges/bitvavo.md#bitvavofetchtradingfeesws) --- ## fetchTransactionFee please use fetchDepositWithdrawFee instead **Kind**: instance **Returns**: object - a [fee structure](https://docs.ccxt.com/#/?id=fee-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | code | string | Yes | unified currency code | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [bitmart](/exchanges/bitmart.md#bitmartfetchtransactionfee) * [indodax](/exchanges/indodax.md#indodaxfetchtransactionfee) * [kucoin](/exchanges/kucoin.md#kucoinfetchtransactionfee) --- ## fetchTransactionFees please use fetchDepositWithdrawFees instead **Kind**: instance **Returns**: Array<object> - a list of [fee structures](https://docs.ccxt.com/#/?id=fee-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | codes | Array<string>, undefined | Yes | not used by binance fetchTransactionFees () | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [binance](/exchanges/binance.md#binancefetchtransactionfees) * [bitfinex](/exchanges/bitfinex.md#bitfinexfetchtransactionfees) * [bitso](/exchanges/bitso.md#bitsofetchtransactionfees) * [bitstamp](/exchanges/bitstamp.md#bitstampfetchtransactionfees) * [exmo](/exchanges/exmo.md#exmofetchtransactionfees) * [gate](/exchanges/gate.md#gatefetchtransactionfees) * [lbank](/exchanges/lbank.md#lbankfetchtransactionfees) * [mexc](/exchanges/mexc.md#mexcfetchtransactionfees) * [whitebit](/exchanges/whitebit.md#whitebitfetchtransactionfees) --- ## fetchTransactions use fetchDepositsWithdrawals instead **Kind**: instance **Returns**: object - a list of [transaction structure](https://docs.ccxt.com/#/?id=transaction-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | code | string | Yes | unified currency code for the currency of the transactions, default is undefined | | since | int | No | timestamp in ms of the earliest transaction, default is undefined | | limit | int | No | max number of transactions to return, default is undefined | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [latoken](/exchanges/latoken.md#latokenfetchtransactions) --- ## fetchTransfers fetch a history of internal transfers made on an account **Kind**: instance **Returns**: Array<object> - a list of [transfer structures](https://docs.ccxt.com/#/?id=transfer-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | code | string | Yes | unified currency code of the currency transferred | | since | int | No | the earliest time in ms to fetch transfers for | | limit | int | No | the maximum number of transfers structures to retrieve | | params | object | No | extra parameters specific to the exchange API endpoint | | params.until | int | No | the latest time in ms to fetch transfers for | | params.paginate | boolean | No | 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) | | params.internal | boolean | No | default false, when true will fetch pay trade history | ##### Supported exchanges * [binance](/exchanges/binance.md#binancefetchtransfers) * [bingx](/exchanges/bingx.md#bingxfetchtransfers) * [bitget](/exchanges/bitget.md#bitgetfetchtransfers) * [bitmart](/exchanges/bitmart.md#bitmartfetchtransfers) * [bitrue](/exchanges/bitrue.md#bitruefetchtransfers) * [bybit](/exchanges/bybit.md#bybitfetchtransfers) * [coinbaseinternational](/exchanges/coinbaseinternational.md#coinbaseinternationalfetchtransfers) * [coinex](/exchanges/coinex.md#coinexfetchtransfers) * [coinlist](/exchanges/coinlist.md#coinlistfetchtransfers) * [deribit](/exchanges/deribit.md#deribitfetchtransfers) * [digifinex](/exchanges/digifinex.md#digifinexfetchtransfers) * [latoken](/exchanges/latoken.md#latokenfetchtransfers) * [mexc](/exchanges/mexc.md#mexcfetchtransfers) * [okx](/exchanges/okx.md#okxfetchtransfers) * [oxfun](/exchanges/oxfun.md#oxfunfetchtransfers) * [paradex](/exchanges/paradex.md#paradexfetchtransfers) * [phemex](/exchanges/phemex.md#phemexfetchtransfers) * [woo](/exchanges/woo.md#woofetchtransfers) --- ## fetchUnderlyingAssets fetches the market ids of underlying assets for a specific contract market type **Kind**: instance **Returns**: Array<object> - a list of [underlying assets](https://docs.ccxt.com/#/?id=underlying-assets-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | params | object | No | exchange specific params | | params.type | string | No | the contract market type, 'option', 'swap' or 'future', the default is 'option' | ##### Supported exchanges * [gate](/exchanges/gate.md#gatefetchunderlyingassets) * [okx](/exchanges/okx.md#okxfetchunderlyingassets) --- ## fetchVolatilityHistory fetch the historical volatility of an option market based on an underlying asset **Kind**: instance **Returns**: Array<object> - a list of [volatility history objects](https://docs.ccxt.com/#/?id=volatility-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | code | string | Yes | unified currency code | | params | object | No | extra parameters specific to the exchange API endpoint | | params.period | int | No | the period in days to fetch the volatility for: 7,14,21,30,60,90,180,270 | ##### Supported exchanges * [bybit](/exchanges/bybit.md#bybitfetchvolatilityhistory) * [deribit](/exchanges/deribit.md#deribitfetchvolatilityhistory) --- ## fetchWithdrawal fetch data on a currency withdrawal via the withdrawal id **Kind**: instance **Returns**: object - a [transaction structure](https://docs.ccxt.com/#/?id=transaction-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | id | string | Yes | withdrawal id | | code | string | Yes | not used by bitmart.fetchWithdrawal | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [bitmart](/exchanges/bitmart.md#bitmartfetchwithdrawal) * [bitopro](/exchanges/bitopro.md#bitoprofetchwithdrawal) * [blockchaincom](/exchanges/blockchaincom.md#blockchaincomfetchwithdrawal) * [exmo](/exchanges/exmo.md#exmofetchwithdrawal) * [hollaex](/exchanges/hollaex.md#hollaexfetchwithdrawal) * [idex](/exchanges/idex.md#idexfetchwithdrawal) * [kuna](/exchanges/kuna.md#kunafetchwithdrawal) * [okx](/exchanges/okx.md#okxfetchwithdrawal) * [upbit](/exchanges/upbit.md#upbitfetchwithdrawal) --- ## fetchWithdrawals fetch all withdrawals made from an account **Kind**: instance **Returns**: Array<object> - a list of [transaction structures](https://docs.ccxt.com/#/?id=transaction-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | code | string | Yes | unified currency code | | since | int | No | the earliest time in ms to fetch withdrawals for | | limit | int | No | the maximum number of withdrawals structures to retrieve | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [ascendex](/exchanges/ascendex.md#ascendexfetchwithdrawals) * [bigone](/exchanges/bigone.md#bigonefetchwithdrawals) * [binance](/exchanges/binance.md#binancefetchwithdrawals) * [bingx](/exchanges/bingx.md#bingxfetchwithdrawals) * [bitbns](/exchanges/bitbns.md#bitbnsfetchwithdrawals) * [bitflyer](/exchanges/bitflyer.md#bitflyerfetchwithdrawals) * [bitget](/exchanges/bitget.md#bitgetfetchwithdrawals) * [bitmart](/exchanges/bitmart.md#bitmartfetchwithdrawals) * [bitopro](/exchanges/bitopro.md#bitoprofetchwithdrawals) * [bitrue](/exchanges/bitrue.md#bitruefetchwithdrawals) * [bitstamp](/exchanges/bitstamp.md#bitstampfetchwithdrawals) * [bitvavo](/exchanges/bitvavo.md#bitvavofetchwithdrawals) * [blockchaincom](/exchanges/blockchaincom.md#blockchaincomfetchwithdrawals) * [blofin](/exchanges/blofin.md#blofinfetchwithdrawals) * [btcalpha](/exchanges/btcalpha.md#btcalphafetchwithdrawals) * [btcmarkets](/exchanges/btcmarkets.md#btcmarketsfetchwithdrawals) * [bybit](/exchanges/bybit.md#bybitfetchwithdrawals) * [coinbase](/exchanges/coinbase.md#coinbasefetchwithdrawals) * [coinbaseexchange](/exchanges/coinbaseexchange.md#coinbaseexchangefetchwithdrawals) * [coinbaseinternational](/exchanges/coinbaseinternational.md#coinbaseinternationalfetchwithdrawals) * [coincheck](/exchanges/coincheck.md#coincheckfetchwithdrawals) * [coinex](/exchanges/coinex.md#coinexfetchwithdrawals) * [coinsph](/exchanges/coinsph.md#coinsphfetchwithdrawals) * [cryptocom](/exchanges/cryptocom.md#cryptocomfetchwithdrawals) * [currencycom](/exchanges/currencycom.md#currencycomfetchwithdrawals) * [deribit](/exchanges/deribit.md#deribitfetchwithdrawals) * [digifinex](/exchanges/digifinex.md#digifinexfetchwithdrawals) * [exmo](/exchanges/exmo.md#exmofetchwithdrawals) * [gate](/exchanges/gate.md#gatefetchwithdrawals) * [hashkey](/exchanges/hashkey.md#hashkeyfetchwithdrawals) * [hitbtc](/exchanges/hitbtc.md#hitbtcfetchwithdrawals) * [hollaex](/exchanges/hollaex.md#hollaexfetchwithdrawals) * [htx](/exchanges/htx.md#htxfetchwithdrawals) * [huobijp](/exchanges/huobijp.md#huobijpfetchwithdrawals) * [hyperliquid](/exchanges/hyperliquid.md#hyperliquidfetchwithdrawals) * [idex](/exchanges/idex.md#idexfetchwithdrawals) * [kraken](/exchanges/kraken.md#krakenfetchwithdrawals) * [kucoin](/exchanges/kucoin.md#kucoinfetchwithdrawals) * [kucoinfutures](/exchanges/kucoinfutures.md#kucoinfuturesfetchwithdrawals) * [kuna](/exchanges/kuna.md#kunafetchwithdrawals) * [lbank](/exchanges/lbank.md#lbankfetchwithdrawals) * [mexc](/exchanges/mexc.md#mexcfetchwithdrawals) * [ndax](/exchanges/ndax.md#ndaxfetchwithdrawals) * [novadax](/exchanges/novadax.md#novadaxfetchwithdrawals) * [okcoin](/exchanges/okcoin.md#okcoinfetchwithdrawals) * [okx](/exchanges/okx.md#okxfetchwithdrawals) * [onetrading](/exchanges/onetrading.md#onetradingfetchwithdrawals) * [oxfun](/exchanges/oxfun.md#oxfunfetchwithdrawals) * [paradex](/exchanges/paradex.md#paradexfetchwithdrawals) * [phemex](/exchanges/phemex.md#phemexfetchwithdrawals) * [poloniex](/exchanges/poloniex.md#poloniexfetchwithdrawals) * [probit](/exchanges/probit.md#probitfetchwithdrawals) * [timex](/exchanges/timex.md#timexfetchwithdrawals) * [tokocrypto](/exchanges/tokocrypto.md#tokocryptofetchwithdrawals) * [upbit](/exchanges/upbit.md#upbitfetchwithdrawals) * [wazirx](/exchanges/wazirx.md#wazirxfetchwithdrawals) * [woo](/exchanges/woo.md#woofetchwithdrawals) * [woofipro](/exchanges/woofipro.md#woofiprofetchwithdrawals) * [xt](/exchanges/xt.md#xtfetchwithdrawals) --- ## fetchWithdrawalsWs fetch all withdrawals made from an account **Kind**: instance **Returns**: Array<object> - a list of [transaction structures](https://docs.ccxt.com/#/?id=transaction-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | code | string | Yes | unified currency code | | since | int | No | the earliest time in ms to fetch withdrawals for | | limit | int | No | the maximum number of withdrawals structures to retrieve | | params | object | No | extra parameters specific to the bitvavo api endpoint | ##### Supported exchanges * [bitvavo](/exchanges/bitvavo.md#bitvavofetchwithdrawalsws) --- ## isUnifiedEnabled returns [enableUnifiedMargin, enableUnifiedAccount] so the user can check if unified account is enabled **Kind**: instance ##### Supported exchanges * [bybit](/exchanges/bybit.md#bybitisunifiedenabled) --- ## market calculates the presumptive fee that would be charged for an order **Kind**: instance **Returns**: object - contains the rate, the percentage multiplied to the order amount to obtain the fee amount, and cost, the total value of the fee in units of the quote currency, for the order | Param | Type | Description | | --- | --- | --- | | symbol | string | unified market symbol | | type | string | not used by btcmarkets.calculateFee | | side | string | not used by btcmarkets.calculateFee | | amount | float | how much you want to trade, in units of the base currency on most exchanges, or number of contracts | | price | float | the price for the order to be filled at, in units of the quote currency | | takerOrMaker | string | 'taker' or 'maker' | | params | object | | ##### Supported exchanges * [<anonymous>](/exchanges/<anonymous>.md#<anonymous>market) --- ## redeemGiftCode redeem gift code **Kind**: instance **Returns**: object - response from the exchange | Param | Type | Required | Description | | --- | --- | --- | --- | | giftcardCode | string | Yes | | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [binance](/exchanges/binance.md#binanceredeemgiftcode) --- ## reduceMargin remove margin from a position **Kind**: instance **Returns**: object - a [margin structure](https://docs.ccxt.com/#/?id=reduce-margin-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | unified market symbol | | amount | float | Yes | the amount of margin to remove | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [ascendex](/exchanges/ascendex.md#ascendexreducemargin) * [binance](/exchanges/binance.md#binancereducemargin) * [bitget](/exchanges/bitget.md#bitgetreducemargin) * [coinex](/exchanges/coinex.md#coinexreducemargin) * [delta](/exchanges/delta.md#deltareducemargin) * [digifinex](/exchanges/digifinex.md#digifinexreducemargin) * [exmo](/exchanges/exmo.md#exmoreducemargin) * [gate](/exchanges/gate.md#gatereducemargin) * [hitbtc](/exchanges/hitbtc.md#hitbtcreducemargin) * [hyperliquid](/exchanges/hyperliquid.md#hyperliquidreducemargin) * [mexc](/exchanges/mexc.md#mexcreducemargin) * [okx](/exchanges/okx.md#okxreducemargin) * [woo](/exchanges/woo.md#wooreducemargin) * [xt](/exchanges/xt.md#xtreducemargin) --- ## repayCrossMargin repay borrowed margin and interest **Kind**: instance **Returns**: object - a [margin loan structure](https://docs.ccxt.com/#/?id=margin-loan-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | code | string | Yes | unified currency code of the currency to repay | | amount | float | Yes | the amount to repay | | params | object | No | extra parameters specific to the exchange API endpoint | | params.portfolioMargin | boolean | No | set to true if you would like to repay margin in a portfolio margin account | ##### Supported exchanges * [binance](/exchanges/binance.md#binancerepaycrossmargin) * [bitget](/exchanges/bitget.md#bitgetrepaycrossmargin) * [bybit](/exchanges/bybit.md#bybitrepaycrossmargin) * [gate](/exchanges/gate.md#gaterepaycrossmargin) * [htx](/exchanges/htx.md#htxrepaycrossmargin) * [kucoin](/exchanges/kucoin.md#kucoinrepaycrossmargin) * [okx](/exchanges/okx.md#okxrepaycrossmargin) --- ## repayIsolatedMargin repay borrowed margin and interest **Kind**: instance **Returns**: object - a [margin loan structure](https://docs.ccxt.com/#/?id=margin-loan-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | unified market symbol, required for isolated margin | | code | string | Yes | unified currency code of the currency to repay | | amount | float | Yes | the amount to repay | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [binance](/exchanges/binance.md#binancerepayisolatedmargin) * [bitget](/exchanges/bitget.md#bitgetrepayisolatedmargin) * [bitmart](/exchanges/bitmart.md#bitmartrepayisolatedmargin) * [coinex](/exchanges/coinex.md#coinexrepayisolatedmargin) * [htx](/exchanges/htx.md#htxrepayisolatedmargin) * [kucoin](/exchanges/kucoin.md#kucoinrepayisolatedmargin) --- ## repayMargin repay borrowed margin and interest **Kind**: instance **Returns**: object - a [margin loan structure](https://docs.ccxt.com/#/?id=margin-loan-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | unified market symbol | | code | string | Yes | unified currency code of the currency to repay | | amount | float | Yes | the amount to repay | | params | object | No | extra parameters specific to the exchange API endpoint | | params.mode | string | No | 'all' or 'partial' payment mode, extra parameter required for isolated margin | | params.id | string | No | '34267567' loan id, extra parameter required for isolated margin | ##### Supported exchanges * [gate](/exchanges/gate.md#gaterepaymargin) * [woo](/exchanges/woo.md#woorepaymargin) --- ## setLeverage set the level of leverage for a market **Kind**: instance **Returns**: object - response from the exchange | Param | Type | Required | Description | | --- | --- | --- | --- | | leverage | float | Yes | the rate of leverage | | symbol | string | Yes | unified market symbol | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [ascendex](/exchanges/ascendex.md#ascendexsetleverage) * [binance](/exchanges/binance.md#binancesetleverage) * [bingx](/exchanges/bingx.md#bingxsetleverage) * [bitget](/exchanges/bitget.md#bitgetsetleverage) * [bitmart](/exchanges/bitmart.md#bitmartsetleverage) * [bitmex](/exchanges/bitmex.md#bitmexsetleverage) * [bitrue](/exchanges/bitrue.md#bitruesetleverage) * [blofin](/exchanges/blofin.md#blofinsetleverage) * [bybit](/exchanges/bybit.md#bybitsetleverage) * [coinex](/exchanges/coinex.md#coinexsetleverage) * [delta](/exchanges/delta.md#deltasetleverage) * [digifinex](/exchanges/digifinex.md#digifinexsetleverage) * [gate](/exchanges/gate.md#gatesetleverage) * [hashkey](/exchanges/hashkey.md#hashkeysetleverage) * [hitbtc](/exchanges/hitbtc.md#hitbtcsetleverage) * [htx](/exchanges/htx.md#htxsetleverage) * [hyperliquid](/exchanges/hyperliquid.md#hyperliquidsetleverage) * [krakenfutures](/exchanges/krakenfutures.md#krakenfuturessetleverage) * [kucoin](/exchanges/kucoin.md#kucoinsetleverage) * [mexc](/exchanges/mexc.md#mexcsetleverage) * [okx](/exchanges/okx.md#okxsetleverage) * [phemex](/exchanges/phemex.md#phemexsetleverage) * [whitebit](/exchanges/whitebit.md#whitebitsetleverage) * [woo](/exchanges/woo.md#woosetleverage) * [woofipro](/exchanges/woofipro.md#woofiprosetleverage) * [xt](/exchanges/xt.md#xtsetleverage) --- ## setMargin Either adds or reduces margin in an isolated position in order to set the margin to a specific value **Kind**: instance **Returns**: object - A [margin structure](https://docs.ccxt.com/#/?id=add-margin-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | unified market symbol of the market to set margin in | | amount | float | Yes | the amount to set the margin to | | params | object | No | parameters specific to the bingx api endpoint | ##### Supported exchanges * [bingx](/exchanges/bingx.md#bingxsetmargin) * [bitfinex2](/exchanges/bitfinex2.md#bitfinex2setmargin) * [bitrue](/exchanges/bitrue.md#bitruesetmargin) * [coinbaseinternational](/exchanges/coinbaseinternational.md#coinbaseinternationalsetmargin) * [phemex](/exchanges/phemex.md#phemexsetmargin) --- ## setMarginMode set margin mode to 'cross' or 'isolated' **Kind**: instance **Returns**: object - response from the exchange | Param | Type | Required | Description | | --- | --- | --- | --- | | marginMode | string | Yes | 'cross' or 'isolated' | | symbol | string | Yes | unified market symbol | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [ascendex](/exchanges/ascendex.md#ascendexsetmarginmode) * [binance](/exchanges/binance.md#binancesetmarginmode) * [bingx](/exchanges/bingx.md#bingxsetmarginmode) * [bitget](/exchanges/bitget.md#bitgetsetmarginmode) * [bitmex](/exchanges/bitmex.md#bitmexsetmarginmode) * [bybit](/exchanges/bybit.md#bybitsetmarginmode) * [coinex](/exchanges/coinex.md#coinexsetmarginmode) * [digifinex](/exchanges/digifinex.md#digifinexsetmarginmode) * [hyperliquid](/exchanges/hyperliquid.md#hyperliquidsetmarginmode) * [okx](/exchanges/okx.md#okxsetmarginmode) * [phemex](/exchanges/phemex.md#phemexsetmarginmode) * [poloniexfutures](/exchanges/poloniexfutures.md#poloniexfuturessetmarginmode) --- ## setPositionMode set hedged to true or false for a market **Kind**: instance **Returns**: object - response from the exchange | Param | Type | Required | Description | | --- | --- | --- | --- | | hedged | bool | Yes | set to true to use dualSidePosition | | symbol | string | Yes | not used by binance setPositionMode () | | params | object | No | extra parameters specific to the exchange API endpoint | | params.portfolioMargin | boolean | No | set to true if you would like to set the position mode for a portfolio margin account | | params.subType | string | No | "linear" or "inverse" | ##### Supported exchanges * [binance](/exchanges/binance.md#binancesetpositionmode) * [bingx](/exchanges/bingx.md#bingxsetpositionmode) * [bitget](/exchanges/bitget.md#bitgetsetpositionmode) * [bybit](/exchanges/bybit.md#bybitsetpositionmode) * [gate](/exchanges/gate.md#gatesetpositionmode) * [htx](/exchanges/htx.md#htxsetpositionmode) * [okx](/exchanges/okx.md#okxsetpositionmode) * [phemex](/exchanges/phemex.md#phemexsetpositionmode) * [woo](/exchanges/woo.md#woosetpositionmode) --- ## setSandboxMode enables or disables sandbox mode **Kind**: instance | Param | Type | Required | Description | | --- | --- | --- | --- | | enable | boolean | No | true if demo trading should be enabled, false otherwise | ##### Supported exchanges * [bybit](/exchanges/bybit.md#bybitsetsandboxmode) --- ## signIn sign in, must be called prior to using other authenticated methods **Kind**: instance **Returns**: response from exchange | Param | Type | Required | Description | | --- | --- | --- | --- | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [ndax](/exchanges/ndax.md#ndaxsignin) * [probit](/exchanges/probit.md#probitsignin) * [wavesexchange](/exchanges/wavesexchange.md#wavesexchangesignin) --- ## transfer transfer currency internally between wallets on the same account **Kind**: instance **Returns**: object - a [transfer structure](https://docs.ccxt.com/#/?id=transfer-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | code | string | Yes | unified currency codeåå | | amount | float | Yes | amount to transfer | | fromAccount | string | Yes | account to transfer from | | toAccount | string | Yes | account to transfer to | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [ascendex](/exchanges/ascendex.md#ascendextransfer) * [bigone](/exchanges/bigone.md#bigonetransfer) * [binance](/exchanges/binance.md#binancetransfer) * [bingx](/exchanges/bingx.md#bingxtransfer) * [bitfinex](/exchanges/bitfinex.md#bitfinextransfer) * [bitfinex2](/exchanges/bitfinex2.md#bitfinex2transfer) * [bitget](/exchanges/bitget.md#bitgettransfer) * [bitmart](/exchanges/bitmart.md#bitmarttransfer) * [bitrue](/exchanges/bitrue.md#bitruetransfer) * [bitstamp](/exchanges/bitstamp.md#bitstamptransfer) * [blofin](/exchanges/blofin.md#blofintransfer) * [bybit](/exchanges/bybit.md#bybittransfer) * [coinbaseinternational](/exchanges/coinbaseinternational.md#coinbaseinternationaltransfer) * [coinex](/exchanges/coinex.md#coinextransfer) * [coinlist](/exchanges/coinlist.md#coinlisttransfer) * [deribit](/exchanges/deribit.md#deribittransfer) * [digifinex](/exchanges/digifinex.md#digifinextransfer) * [gate](/exchanges/gate.md#gatetransfer) * [hashkey](/exchanges/hashkey.md#hashkeytransfer) * [hitbtc](/exchanges/hitbtc.md#hitbtctransfer) * [htx](/exchanges/htx.md#htxtransfer) * [hyperliquid](/exchanges/hyperliquid.md#hyperliquidtransfer) * [kraken](/exchanges/kraken.md#krakentransfer) * [krakenfutures](/exchanges/krakenfutures.md#krakenfuturestransfer) * [kucoin](/exchanges/kucoin.md#kucointransfer) * [kucoinfutures](/exchanges/kucoinfutures.md#kucoinfuturestransfer) * [latoken](/exchanges/latoken.md#latokentransfer) * [mexc](/exchanges/mexc.md#mexctransfer) * [novadax](/exchanges/novadax.md#novadaxtransfer) * [okcoin](/exchanges/okcoin.md#okcointransfer) * [okx](/exchanges/okx.md#okxtransfer) * [oxfun](/exchanges/oxfun.md#oxfuntransfer) * [paymium](/exchanges/paymium.md#paymiumtransfer) * [phemex](/exchanges/phemex.md#phemextransfer) * [poloniex](/exchanges/poloniex.md#poloniextransfer) * [whitebit](/exchanges/whitebit.md#whitebittransfer) * [woo](/exchanges/woo.md#wootransfer) * [xt](/exchanges/xt.md#xttransfer) * [zonda](/exchanges/zonda.md#zondatransfer) --- ## unWatchMyTrades unWatches information on multiple trades made by the user **Kind**: instance **Returns**: Array<object> - a list of [order structures](https://docs.ccxt.com/#/?id=order-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | unified market symbol of the market orders were made in | | params | object | No | extra parameters specific to the exchange API endpoint | | params.unifiedMargin | boolean | No | use unified margin account | ##### Supported exchanges * [bybit](/exchanges/bybit.md#bybitunwatchmytrades) --- ## unWatchOHLCV unWatches historical candlestick data containing the open, high, low, and close price, and the volume of a market **Kind**: instance **Returns**: Array<Array<int>> - A list of candles ordered as timestamp, open, high, low, close, volume | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | unified symbol of the market to fetch OHLCV data for | | timeframe | string | Yes | the length of time each candle represents | | params | object | No | extra parameters specific to the exchange API endpoint | | params.timezone | object | No | if provided, kline intervals are interpreted in that timezone instead of UTC, example '+08:00' | ##### Supported exchanges * [binance](/exchanges/binance.md#binanceunwatchohlcv) * [bitget](/exchanges/bitget.md#bitgetunwatchohlcv) * [bybit](/exchanges/bybit.md#bybitunwatchohlcv) * [cryptocom](/exchanges/cryptocom.md#cryptocomunwatchohlcv) * [okx](/exchanges/okx.md#okxunwatchohlcv) --- ## unWatchOHLCVForSymbols unWatches historical candlestick data containing the open, high, low, and close price, and the volume of a market **Kind**: instance **Returns**: Array<Array<int>> - A list of candles ordered as timestamp, open, high, low, close, volume | Param | Type | Required | Description | | --- | --- | --- | --- | | symbolsAndTimeframes | Array<Array<string>> | Yes | array of arrays containing unified symbols and timeframes to fetch OHLCV data for, example [['BTC/USDT', '1m'], ['LTC/USDT', '5m']] | | params | object | No | extra parameters specific to the exchange API endpoint | | params.timezone | object | No | if provided, kline intervals are interpreted in that timezone instead of UTC, example '+08:00' | ##### Supported exchanges * [binance](/exchanges/binance.md#binanceunwatchohlcvforsymbols) * [bybit](/exchanges/bybit.md#bybitunwatchohlcvforsymbols) * [okx](/exchanges/okx.md#okxunwatchohlcvforsymbols) --- ## unWatchOrderBook unWatches information on open orders with bid (buy) and ask (sell) prices, volumes and other data **Kind**: instance **Returns**: object - A dictionary of [order book structures](https://docs.ccxt.com/#/?id=order-book-structure) indexed by market symbols | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | unified array of symbols | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [binance](/exchanges/binance.md#binanceunwatchorderbook) * [bitget](/exchanges/bitget.md#bitgetunwatchorderbook) * [bybit](/exchanges/bybit.md#bybitunwatchorderbook) * [cryptocom](/exchanges/cryptocom.md#cryptocomunwatchorderbook) * [gate](/exchanges/gate.md#gateunwatchorderbook) * [kucoin](/exchanges/kucoin.md#kucoinunwatchorderbook) * [okx](/exchanges/okx.md#okxunwatchorderbook) --- ## unWatchOrderBookForSymbols unWatches information on open orders with bid (buy) and ask (sell) prices, volumes and other data **Kind**: instance **Returns**: object - A dictionary of [order book structures](https://docs.ccxt.com/#/?id=order-book-structure) indexed by market symbols | Param | Type | Required | Description | | --- | --- | --- | --- | | symbols | Array<string> | Yes | unified array of symbols | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [binance](/exchanges/binance.md#binanceunwatchorderbookforsymbols) * [bybit](/exchanges/bybit.md#bybitunwatchorderbookforsymbols) * [cryptocom](/exchanges/cryptocom.md#cryptocomunwatchorderbookforsymbols) * [kucoin](/exchanges/kucoin.md#kucoinunwatchorderbookforsymbols) * [okx](/exchanges/okx.md#okxunwatchorderbookforsymbols) --- ## unWatchOrders unWatches information on multiple orders made by the user **Kind**: instance **Returns**: Array<object> - a list of [order structures](https://docs.ccxt.com/#/?id=order-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | unified market symbol of the market orders were made in | | params | object | No | extra parameters specific to the exchange API endpoint | | params.unifiedMargin | boolean | No | use unified margin account | ##### Supported exchanges * [bybit](/exchanges/bybit.md#bybitunwatchorders) --- ## unWatchTicker unWatches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list **Kind**: instance **Returns**: object - a [ticker structure](https://docs.ccxt.com/#/?id=ticker-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | unified symbol of the market to fetch the ticker for | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [binance](/exchanges/binance.md#binanceunwatchticker) * [bitget](/exchanges/bitget.md#bitgetunwatchticker) * [bybit](/exchanges/bybit.md#bybitunwatchticker) * [cryptocom](/exchanges/cryptocom.md#cryptocomunwatchticker) * [okx](/exchanges/okx.md#okxunwatchticker) --- ## unWatchTickers unWatches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list **Kind**: instance **Returns**: object - a [ticker structure](https://docs.ccxt.com/#/?id=ticker-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbols | Array<string> | Yes | unified symbol of the market to fetch the ticker for | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [binance](/exchanges/binance.md#binanceunwatchtickers) * [bybit](/exchanges/bybit.md#bybitunwatchtickers) * [okx](/exchanges/okx.md#okxunwatchtickers) --- ## unWatchTrades unsubscribes from the trades channel **Kind**: instance **Returns**: Array<object> - a list of [trade structures](https://docs.ccxt.com/#/?id=public-trades) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | unified symbol of the market to fetch trades for | | params | object | No | extra parameters specific to the exchange API endpoint | | params.name | string | No | the name of the method to call, 'trade' or 'aggTrade', default is 'trade' | ##### Supported exchanges * [binance](/exchanges/binance.md#binanceunwatchtrades) * [bitget](/exchanges/bitget.md#bitgetunwatchtrades) * [bybit](/exchanges/bybit.md#bybitunwatchtrades) * [cryptocom](/exchanges/cryptocom.md#cryptocomunwatchtrades) * [gate](/exchanges/gate.md#gateunwatchtrades) * [kucoin](/exchanges/kucoin.md#kucoinunwatchtrades) --- ## unWatchTradesForSymbols unsubscribes from the trades channel **Kind**: instance **Returns**: Array<object> - a list of [trade structures](https://docs.ccxt.com/#/?id=public-trades) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbols | Array<string> | Yes | unified symbol of the market to fetch trades for | | params | object | No | extra parameters specific to the exchange API endpoint | | params.name | string | No | the name of the method to call, 'trade' or 'aggTrade', default is 'trade' | ##### Supported exchanges * [binance](/exchanges/binance.md#binanceunwatchtradesforsymbols) * [bybit](/exchanges/bybit.md#bybitunwatchtradesforsymbols) * [cryptocom](/exchanges/cryptocom.md#cryptocomunwatchtradesforsymbols) * [gate](/exchanges/gate.md#gateunwatchtradesforsymbols) * [kucoin](/exchanges/kucoin.md#kucoinunwatchtradesforsymbols) * [okx](/exchanges/okx.md#okxunwatchtradesforsymbols) * [okx](/exchanges/okx.md#okxunwatchtradesforsymbols) --- ## verifyGiftCode verify gift code **Kind**: instance **Returns**: object - response from the exchange | Param | Type | Required | Description | | --- | --- | --- | --- | | id | string | Yes | reference number id | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [binance](/exchanges/binance.md#binanceverifygiftcode) --- ## watchBalance watch balance and get the amount of funds available for trading or funds locked in orders **Kind**: instance **Returns**: object - a [balance structure](https://docs.ccxt.com/#/?id=balance-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [ascendex](/exchanges/ascendex.md#ascendexwatchbalance) * [binance](/exchanges/binance.md#binancewatchbalance) * [bingx](/exchanges/bingx.md#bingxwatchbalance) * [bitfinex2](/exchanges/bitfinex2.md#bitfinex2watchbalance) * [bitget](/exchanges/bitget.md#bitgetwatchbalance) * [bitmart](/exchanges/bitmart.md#bitmartwatchbalance) * [bitmex](/exchanges/bitmex.md#bitmexwatchbalance) * [bitopro](/exchanges/bitopro.md#bitoprowatchbalance) * [bitrue](/exchanges/bitrue.md#bitruewatchbalance) * [blockchaincom](/exchanges/blockchaincom.md#blockchaincomwatchbalance) * [blofin](/exchanges/blofin.md#blofinwatchbalance) * [bybit](/exchanges/bybit.md#bybitwatchbalance) * [cex](/exchanges/cex.md#cexwatchbalance) * [coinex](/exchanges/coinex.md#coinexwatchbalance) * [cryptocom](/exchanges/cryptocom.md#cryptocomwatchbalance) * [currencycom](/exchanges/currencycom.md#currencycomwatchbalance) * [deribit](/exchanges/deribit.md#deribitwatchbalance) * [exmo](/exchanges/exmo.md#exmowatchbalance) * [gate](/exchanges/gate.md#gatewatchbalance) * [bitmart](/exchanges/bitmart.md#bitmartwatchbalance) * [hitbtc](/exchanges/hitbtc.md#hitbtcwatchbalance) * [hollaex](/exchanges/hollaex.md#hollaexwatchbalance) * [huobi](/exchanges/huobi.md#huobiwatchbalance) * [kucoin](/exchanges/kucoin.md#kucoinwatchbalance) * [kucoinfutures](/exchanges/kucoinfutures.md#kucoinfutureswatchbalance) * [mexc](/exchanges/mexc.md#mexcwatchbalance) * [okcoin](/exchanges/okcoin.md#okcoinwatchbalance) * [okx](/exchanges/okx.md#okxwatchbalance) * [oxfun](/exchanges/oxfun.md#oxfunwatchbalance) * [phemex](/exchanges/phemex.md#phemexwatchbalance) * [poloniex](/exchanges/poloniex.md#poloniexwatchbalance) * [poloniexfutures](/exchanges/poloniexfutures.md#poloniexfutureswatchbalance) * [probit](/exchanges/probit.md#probitwatchbalance) * [upbit](/exchanges/upbit.md#upbitwatchbalance) * [wazirx](/exchanges/wazirx.md#wazirxwatchbalance) * [whitebit](/exchanges/whitebit.md#whitebitwatchbalance) * [woo](/exchanges/woo.md#woowatchbalance) * [woofipro](/exchanges/woofipro.md#woofiprowatchbalance) --- ## watchBidsAsks watches best bid & ask for symbols **Kind**: instance **Returns**: object - a [ticker structure](https://docs.ccxt.com/#/?id=ticker-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbols | Array<string> | Yes | unified symbol of the market to fetch the ticker for | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [binance](/exchanges/binance.md#binancewatchbidsasks) * [coinex](/exchanges/coinex.md#coinexwatchbidsasks) * [gate](/exchanges/gate.md#gatewatchbidsasks) * [gemini](/exchanges/gemini.md#geminiwatchbidsasks) * [krakenfutures](/exchanges/krakenfutures.md#krakenfutureswatchbidsasks) * [kucoin](/exchanges/kucoin.md#kucoinwatchbidsasks) * [kucoinfutures](/exchanges/kucoinfutures.md#kucoinfutureswatchbidsasks) * [okx](/exchanges/okx.md#okxwatchbidsasks) --- ## watchFundingRate watch the current funding rate **Kind**: instance **Returns**: object - a [funding rate structure](https://docs.ccxt.com/#/?id=funding-rate-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | unified market symbol | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [coinbaseinternational](/exchanges/coinbaseinternational.md#coinbaseinternationalwatchfundingrate) * [okx](/exchanges/okx.md#okxwatchfundingrate) --- ## watchFundingRates watch the funding rate for multiple markets **Kind**: instance **Returns**: object - a dictionary of [funding rates structures](https://docs.ccxt.com/#/?id=funding-rates-structure), indexe by market symbols | Param | Type | Required | Description | | --- | --- | --- | --- | | symbols | Array<string>, undefined | Yes | list of unified market symbols | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [coinbaseinternational](/exchanges/coinbaseinternational.md#coinbaseinternationalwatchfundingrates) * [coinbaseinternational](/exchanges/coinbaseinternational.md#coinbaseinternationalwatchfundingrates) --- ## watchLiquidations watch the public liquidations of a trading pair **Kind**: instance **Returns**: object - an array of [liquidation structures](https://github.com/ccxt/ccxt/wiki/Manual#liquidation-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | unified CCXT market symbol | | since | int | No | the earliest time in ms to fetch liquidations for | | limit | int | No | the maximum number of liquidation structures to retrieve | | params | object | No | exchange specific parameters for the bitmex api endpoint | ##### Supported exchanges * [binance](/exchanges/binance.md#binancewatchliquidations) * [bitmex](/exchanges/bitmex.md#bitmexwatchliquidations) * [bybit](/exchanges/bybit.md#bybitwatchliquidations) --- ## watchLiquidationsForSymbols watch the public liquidations of a trading pair **Kind**: instance **Returns**: object - an array of [liquidation structures](https://github.com/ccxt/ccxt/wiki/Manual#liquidation-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | unified CCXT market symbol | | since | int | No | the earliest time in ms to fetch liquidations for | | limit | int | No | the maximum number of liquidation structures to retrieve | | params | object | No | exchange specific parameters for the bitmex api endpoint | ##### Supported exchanges * [binance](/exchanges/binance.md#binancewatchliquidationsforsymbols) * [bitmex](/exchanges/bitmex.md#bitmexwatchliquidationsforsymbols) * [okx](/exchanges/okx.md#okxwatchliquidationsforsymbols) --- ## watchMyLiquidations watch the private liquidations of a trading pair **Kind**: instance **Returns**: object - an array of [liquidation structures](https://github.com/ccxt/ccxt/wiki/Manual#liquidation-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | unified CCXT market symbol | | since | int | No | the earliest time in ms to fetch liquidations for | | limit | int | No | the maximum number of liquidation structures to retrieve | | params | object | No | exchange specific parameters for the bitmex api endpoint | ##### Supported exchanges * [binance](/exchanges/binance.md#binancewatchmyliquidations) * [gate](/exchanges/gate.md#gatewatchmyliquidations) --- ## watchMyLiquidationsForSymbols watch the private liquidations of a trading pair **Kind**: instance **Returns**: object - an array of [liquidation structures](https://github.com/ccxt/ccxt/wiki/Manual#liquidation-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | unified CCXT market symbol | | since | int | No | the earliest time in ms to fetch liquidations for | | limit | int | No | the maximum number of liquidation structures to retrieve | | params | object | No | exchange specific parameters for the bitmex api endpoint | ##### Supported exchanges * [binance](/exchanges/binance.md#binancewatchmyliquidationsforsymbols) * [gate](/exchanges/gate.md#gatewatchmyliquidationsforsymbols) * [okx](/exchanges/okx.md#okxwatchmyliquidationsforsymbols) --- ## watchMyTrades watches information on multiple trades made by the user **Kind**: instance **Returns**: Array<object> - a list of [trade structures](https://docs.ccxt.com/#/?id=trade-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | unified market symbol of the market trades were made in | | since | int | No | the earliest time in ms to fetch trades for | | limit | int | No | the maximum number of trade structures to retrieve | | params | object | No | extra parameters specific to the exchange API endpoint | | params.unifiedMargin | boolean | No | use unified margin account | ##### Supported exchanges * [alpaca](/exchanges/alpaca.md#alpacawatchmytrades) * [binance](/exchanges/binance.md#binancewatchmytrades) * [bingx](/exchanges/bingx.md#bingxwatchmytrades) * [bitfinex2](/exchanges/bitfinex2.md#bitfinex2watchmytrades) * [bitget](/exchanges/bitget.md#bitgetwatchmytrades) * [bitmex](/exchanges/bitmex.md#bitmexwatchmytrades) * [bitopro](/exchanges/bitopro.md#bitoprowatchmytrades) * [bitvavo](/exchanges/bitvavo.md#bitvavowatchmytrades) * [bybit](/exchanges/bybit.md#bybitwatchmytrades) * [cex](/exchanges/cex.md#cexwatchmytrades) * [coinbaseexchange](/exchanges/coinbaseexchange.md#coinbaseexchangewatchmytrades) * [coinex](/exchanges/coinex.md#coinexwatchmytrades) * [cryptocom](/exchanges/cryptocom.md#cryptocomwatchmytrades) * [deribit](/exchanges/deribit.md#deribitwatchmytrades) * [gate](/exchanges/gate.md#gatewatchmytrades) * [hashkey](/exchanges/hashkey.md#hashkeywatchmytrades) * [hollaex](/exchanges/hollaex.md#hollaexwatchmytrades) * [huobi](/exchanges/huobi.md#huobiwatchmytrades) * [hyperliquid](/exchanges/hyperliquid.md#hyperliquidwatchmytrades) * [krakenfutures](/exchanges/krakenfutures.md#krakenfutureswatchmytrades) * [kucoin](/exchanges/kucoin.md#kucoinwatchmytrades) * [mexc](/exchanges/mexc.md#mexcwatchmytrades) * [okx](/exchanges/okx.md#okxwatchmytrades) * [phemex](/exchanges/phemex.md#phemexwatchmytrades) * [poloniex](/exchanges/poloniex.md#poloniexwatchmytrades) * [probit](/exchanges/probit.md#probitwatchmytrades) * [upbit](/exchanges/upbit.md#upbitwatchmytrades) * [vertex](/exchanges/vertex.md#vertexwatchmytrades) * [wazirx](/exchanges/wazirx.md#wazirxwatchmytrades) * [whitebit](/exchanges/whitebit.md#whitebitwatchmytrades) * [woo](/exchanges/woo.md#woowatchmytrades) * [woofipro](/exchanges/woofipro.md#woofiprowatchmytrades) * [xt](/exchanges/xt.md#xtwatchmytrades) --- ## watchMyTradesForSymbols watches information on multiple trades made by the user **Kind**: instance **Returns**: Array<object> - a list of [trade structures](https://docs.ccxt.com/#/?id=trade-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbols | Array<string> | Yes | unified symbol of the market to fetch trades for | | since | int | No | the earliest time in ms to fetch trades for | | limit | int | No | the maximum number of trade structures to retrieve | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [coinbaseexchange](/exchanges/coinbaseexchange.md#coinbaseexchangewatchmytradesforsymbols) --- ## watchOHLCV watches historical candlestick data containing the open, high, low, and close price, and the volume of a market **Kind**: instance **Returns**: Array<Array<int>> - A list of candles ordered as timestamp, open, high, low, close, volume | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | unified symbol of the market to fetch OHLCV data for | | timeframe | string | Yes | the length of time each candle represents | | since | int | No | timestamp in ms of the earliest candle to fetch | | limit | int | No | the maximum amount of candles to fetch | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [alpaca](/exchanges/alpaca.md#alpacawatchohlcv) * [ascendex](/exchanges/ascendex.md#ascendexwatchohlcv) * [binance](/exchanges/binance.md#binancewatchohlcv) * [bingx](/exchanges/bingx.md#bingxwatchohlcv) * [bitfinex2](/exchanges/bitfinex2.md#bitfinex2watchohlcv) * [bitget](/exchanges/bitget.md#bitgetwatchohlcv) * [bitmart](/exchanges/bitmart.md#bitmartwatchohlcv) * [bitmex](/exchanges/bitmex.md#bitmexwatchohlcv) * [bitvavo](/exchanges/bitvavo.md#bitvavowatchohlcv) * [blockchaincom](/exchanges/blockchaincom.md#blockchaincomwatchohlcv) * [blofin](/exchanges/blofin.md#blofinwatchohlcv) * [bybit](/exchanges/bybit.md#bybitwatchohlcv) * [cex](/exchanges/cex.md#cexwatchohlcv) * [coinbaseinternational](/exchanges/coinbaseinternational.md#coinbaseinternationalwatchohlcv) * [cryptocom](/exchanges/cryptocom.md#cryptocomwatchohlcv) * [currencycom](/exchanges/currencycom.md#currencycomwatchohlcv) * [deribit](/exchanges/deribit.md#deribitwatchohlcv) * [gate](/exchanges/gate.md#gatewatchohlcv) * [hashkey](/exchanges/hashkey.md#hashkeywatchohlcv) * [hitbtc](/exchanges/hitbtc.md#hitbtcwatchohlcv) * [huobi](/exchanges/huobi.md#huobiwatchohlcv) * [huobijp](/exchanges/huobijp.md#huobijpwatchohlcv) * [hyperliquid](/exchanges/hyperliquid.md#hyperliquidwatchohlcv) * [idex](/exchanges/idex.md#idexwatchohlcv) * [kucoin](/exchanges/kucoin.md#kucoinwatchohlcv) * [kucoinfutures](/exchanges/kucoinfutures.md#kucoinfutureswatchohlcv) * [lbank](/exchanges/lbank.md#lbankwatchohlcv) * [mexc](/exchanges/mexc.md#mexcwatchohlcv) * [ndax](/exchanges/ndax.md#ndaxwatchohlcv) * [okcoin](/exchanges/okcoin.md#okcoinwatchohlcv) * [okx](/exchanges/okx.md#okxwatchohlcv) * [oxfun](/exchanges/oxfun.md#oxfunwatchohlcv) * [p2b](/exchanges/p2b.md#p2bwatchohlcv) * [phemex](/exchanges/phemex.md#phemexwatchohlcv) * [poloniex](/exchanges/poloniex.md#poloniexwatchohlcv) * [wazirx](/exchanges/wazirx.md#wazirxwatchohlcv) * [whitebit](/exchanges/whitebit.md#whitebitwatchohlcv) * [woo](/exchanges/woo.md#woowatchohlcv) * [woofipro](/exchanges/woofipro.md#woofiprowatchohlcv) * [hitbtc](/exchanges/hitbtc.md#hitbtcwatchohlcv) --- ## watchOHLCVForSymbols watches historical candlestick data containing the open, high, low, and close price, and the volume of a market **Kind**: instance **Returns**: Array<Array<int>> - A list of candles ordered as timestamp, open, high, low, close, volume | Param | Type | Required | Description | | --- | --- | --- | --- | | symbolsAndTimeframes | Array<Array<string>> | Yes | array of arrays containing unified symbols and timeframes to fetch OHLCV data for, example [['BTC/USDT', '1m'], ['LTC/USDT', '5m']] | | since | int | No | timestamp in ms of the earliest candle to fetch | | limit | int | No | the maximum amount of candles to fetch | | params | object | No | extra parameters specific to the exchange API endpoint | | params.timezone | object | No | if provided, kline intervals are interpreted in that timezone instead of UTC, example '+08:00' | ##### Supported exchanges * [binance](/exchanges/binance.md#binancewatchohlcvforsymbols) * [bingx](/exchanges/bingx.md#bingxwatchohlcvforsymbols) * [blofin](/exchanges/blofin.md#blofinwatchohlcvforsymbols) * [bybit](/exchanges/bybit.md#bybitwatchohlcvforsymbols) * [deribit](/exchanges/deribit.md#deribitwatchohlcvforsymbols) * [okx](/exchanges/okx.md#okxwatchohlcvforsymbols) * [oxfun](/exchanges/oxfun.md#oxfunwatchohlcvforsymbols) --- ## watchOrderBook watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data **Kind**: instance **Returns**: object - A dictionary of [order book structures](https://docs.ccxt.com/#/?id=order-book-structure) indexed by market symbols | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | unified symbol of the market to fetch the order book for | | limit | int | No | the maximum amount of order book entries to return. | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [alpaca](/exchanges/alpaca.md#alpacawatchorderbook) * [ascendex](/exchanges/ascendex.md#ascendexwatchorderbook) * [binance](/exchanges/binance.md#binancewatchorderbook) * [bingx](/exchanges/bingx.md#bingxwatchorderbook) * [bitfinex](/exchanges/bitfinex.md#bitfinexwatchorderbook) * [bitfinex2](/exchanges/bitfinex2.md#bitfinex2watchorderbook) * [bitget](/exchanges/bitget.md#bitgetwatchorderbook) * [bithumb](/exchanges/bithumb.md#bithumbwatchorderbook) * [bitmart](/exchanges/bitmart.md#bitmartwatchorderbook) * [bitmex](/exchanges/bitmex.md#bitmexwatchorderbook) * [bitopro](/exchanges/bitopro.md#bitoprowatchorderbook) * [bitstamp](/exchanges/bitstamp.md#bitstampwatchorderbook) * [bitvavo](/exchanges/bitvavo.md#bitvavowatchorderbook) * [blockchaincom](/exchanges/blockchaincom.md#blockchaincomwatchorderbook) * [blofin](/exchanges/blofin.md#blofinwatchorderbook) * [bybit](/exchanges/bybit.md#bybitwatchorderbook) * [bybit](/exchanges/bybit.md#bybitwatchorderbook) * [cex](/exchanges/cex.md#cexwatchorderbook) * [coinbase](/exchanges/coinbase.md#coinbasewatchorderbook) * [coinbaseexchange](/exchanges/coinbaseexchange.md#coinbaseexchangewatchorderbook) * [coinbaseinternational](/exchanges/coinbaseinternational.md#coinbaseinternationalwatchorderbook) * [coinbaseinternational](/exchanges/coinbaseinternational.md#coinbaseinternationalwatchorderbook) * [coincheck](/exchanges/coincheck.md#coincheckwatchorderbook) * [coinex](/exchanges/coinex.md#coinexwatchorderbook) * [coinone](/exchanges/coinone.md#coinonewatchorderbook) * [cryptocom](/exchanges/cryptocom.md#cryptocomwatchorderbook) * [cryptocom](/exchanges/cryptocom.md#cryptocomwatchorderbook) * [currencycom](/exchanges/currencycom.md#currencycomwatchorderbook) * [deribit](/exchanges/deribit.md#deribitwatchorderbook) * [exmo](/exchanges/exmo.md#exmowatchorderbook) * [gate](/exchanges/gate.md#gatewatchorderbook) * [gemini](/exchanges/gemini.md#geminiwatchorderbook) * [alpaca](/exchanges/alpaca.md#alpacawatchorderbook) * [hitbtc](/exchanges/hitbtc.md#hitbtcwatchorderbook) * [hollaex](/exchanges/hollaex.md#hollaexwatchorderbook) * [huobi](/exchanges/huobi.md#huobiwatchorderbook) * [huobijp](/exchanges/huobijp.md#huobijpwatchorderbook) * [hyperliquid](/exchanges/hyperliquid.md#hyperliquidwatchorderbook) * [idex](/exchanges/idex.md#idexwatchorderbook) * [independentreserve](/exchanges/independentreserve.md#independentreservewatchorderbook) * [krakenfutures](/exchanges/krakenfutures.md#krakenfutureswatchorderbook) * [kucoin](/exchanges/kucoin.md#kucoinwatchorderbook) * [kucoinfutures](/exchanges/kucoinfutures.md#kucoinfutureswatchorderbook) * [lbank](/exchanges/lbank.md#lbankwatchorderbook) * [luno](/exchanges/luno.md#lunowatchorderbook) * [mexc](/exchanges/mexc.md#mexcwatchorderbook) * [ndax](/exchanges/ndax.md#ndaxwatchorderbook) * [okcoin](/exchanges/okcoin.md#okcoinwatchorderbook) * [okx](/exchanges/okx.md#okxwatchorderbook) * [oxfun](/exchanges/oxfun.md#oxfunwatchorderbook) * [p2b](/exchanges/p2b.md#p2bwatchorderbook) * [paradex](/exchanges/paradex.md#paradexwatchorderbook) * [phemex](/exchanges/phemex.md#phemexwatchorderbook) * [poloniex](/exchanges/poloniex.md#poloniexwatchorderbook) * [poloniexfutures](/exchanges/poloniexfutures.md#poloniexfutureswatchorderbook) * [probit](/exchanges/probit.md#probitwatchorderbook) * [upbit](/exchanges/upbit.md#upbitwatchorderbook) * [vertex](/exchanges/vertex.md#vertexwatchorderbook) * [wazirx](/exchanges/wazirx.md#wazirxwatchorderbook) * [whitebit](/exchanges/whitebit.md#whitebitwatchorderbook) * [woo](/exchanges/woo.md#woowatchorderbook) * [woofipro](/exchanges/woofipro.md#woofiprowatchorderbook) * [xt](/exchanges/xt.md#xtwatchorderbook) --- ## watchOrderBookForSymbols watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data **Kind**: instance **Returns**: object - A dictionary of [order book structures](https://docs.ccxt.com/#/?id=order-book-structure) indexed by market symbols | Param | Type | Required | Description | | --- | --- | --- | --- | | symbols | Array<string> | Yes | unified array of symbols | | limit | int | No | the maximum amount of order book entries to return | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [binance](/exchanges/binance.md#binancewatchorderbookforsymbols) * [bingx](/exchanges/bingx.md#bingxwatchorderbookforsymbols) * [bitget](/exchanges/bitget.md#bitgetwatchorderbookforsymbols) * [bitmart](/exchanges/bitmart.md#bitmartwatchorderbookforsymbols) * [bitmex](/exchanges/bitmex.md#bitmexwatchorderbookforsymbols) * [blofin](/exchanges/blofin.md#blofinwatchorderbookforsymbols) * [coinbase](/exchanges/coinbase.md#coinbasewatchorderbookforsymbols) * [coinbaseexchange](/exchanges/coinbaseexchange.md#coinbaseexchangewatchorderbookforsymbols) * [coinex](/exchanges/coinex.md#coinexwatchorderbookforsymbols) * [deribit](/exchanges/deribit.md#deribitwatchorderbookforsymbols) * [gemini](/exchanges/gemini.md#geminiwatchorderbookforsymbols) * [krakenfutures](/exchanges/krakenfutures.md#krakenfutureswatchorderbookforsymbols) * [kucoin](/exchanges/kucoin.md#kucoinwatchorderbookforsymbols) * [kucoinfutures](/exchanges/kucoinfutures.md#kucoinfutureswatchorderbookforsymbols) * [okx](/exchanges/okx.md#okxwatchorderbookforsymbols) * [oxfun](/exchanges/oxfun.md#oxfunwatchorderbookforsymbols) --- ## watchOrders watches information on multiple orders made by the user **Kind**: instance **Returns**: Array<object> - a list of [order structures](https://docs.ccxt.com/#/?id=order-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | unified market symbol of the market orders were made in | | since | int | No | the earliest time in ms to fetch orders for | | limit | int | No | the maximum number of order structures to retrieve | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [alpaca](/exchanges/alpaca.md#alpacawatchorders) * [ascendex](/exchanges/ascendex.md#ascendexwatchorders) * [binance](/exchanges/binance.md#binancewatchorders) * [bingx](/exchanges/bingx.md#bingxwatchorders) * [bitfinex](/exchanges/bitfinex.md#bitfinexwatchorders) * [bitfinex2](/exchanges/bitfinex2.md#bitfinex2watchorders) * [bitget](/exchanges/bitget.md#bitgetwatchorders) * [bitmart](/exchanges/bitmart.md#bitmartwatchorders) * [bitmex](/exchanges/bitmex.md#bitmexwatchorders) * [bitrue](/exchanges/bitrue.md#bitruewatchorders) * [bitstamp](/exchanges/bitstamp.md#bitstampwatchorders) * [bitvavo](/exchanges/bitvavo.md#bitvavowatchorders) * [alpaca](/exchanges/alpaca.md#alpacawatchorders) * [bybit](/exchanges/bybit.md#bybitwatchorders) * [cex](/exchanges/cex.md#cexwatchorders) * [coinbase](/exchanges/coinbase.md#coinbasewatchorders) * [coinbaseexchange](/exchanges/coinbaseexchange.md#coinbaseexchangewatchorders) * [coinex](/exchanges/coinex.md#coinexwatchorders) * [cryptocom](/exchanges/cryptocom.md#cryptocomwatchorders) * [deribit](/exchanges/deribit.md#deribitwatchorders) * [gate](/exchanges/gate.md#gatewatchorders) * [hashkey](/exchanges/hashkey.md#hashkeywatchorders) * [hitbtc](/exchanges/hitbtc.md#hitbtcwatchorders) * [hollaex](/exchanges/hollaex.md#hollaexwatchorders) * [huobi](/exchanges/huobi.md#huobiwatchorders) * [hyperliquid](/exchanges/hyperliquid.md#hyperliquidwatchorders) * [idex](/exchanges/idex.md#idexwatchorders) * [krakenfutures](/exchanges/krakenfutures.md#krakenfutureswatchorders) * [krakenfutures](/exchanges/krakenfutures.md#krakenfutureswatchorders) * [kucoin](/exchanges/kucoin.md#kucoinwatchorders) * [kucoinfutures](/exchanges/kucoinfutures.md#kucoinfutureswatchorders) * [lbank](/exchanges/lbank.md#lbankwatchorders) * [mexc](/exchanges/mexc.md#mexcwatchorders) * [okcoin](/exchanges/okcoin.md#okcoinwatchorders) * [okx](/exchanges/okx.md#okxwatchorders) * [oxfun](/exchanges/oxfun.md#oxfunwatchorders) * [phemex](/exchanges/phemex.md#phemexwatchorders) * [poloniex](/exchanges/poloniex.md#poloniexwatchorders) * [poloniexfutures](/exchanges/poloniexfutures.md#poloniexfutureswatchorders) * [probit](/exchanges/probit.md#probitwatchorders) * [upbit](/exchanges/upbit.md#upbitwatchorders) * [vertex](/exchanges/vertex.md#vertexwatchorders) * [whitebit](/exchanges/whitebit.md#whitebitwatchorders) * [woo](/exchanges/woo.md#woowatchorders) * [woofipro](/exchanges/woofipro.md#woofiprowatchorders) * [xt](/exchanges/xt.md#xtwatchorders) * [xt](/exchanges/xt.md#xtwatchorders) --- ## watchOrdersForSymbols watches information on multiple orders made by the user across multiple symbols **Kind**: instance **Returns**: Array<object> - a list of [order structures]{@link https://docs.ccxt.com/#/?id=order-structure | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | unified market symbol of the market orders were made in | | since | int | No | the earliest time in ms to fetch orders for | | limit | int | No | the maximum number of order structures to retrieve | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [blofin](/exchanges/blofin.md#blofinwatchordersforsymbols) * [coinbaseexchange](/exchanges/coinbaseexchange.md#coinbaseexchangewatchordersforsymbols) --- ## watchPosition watch open positions for a specific symbol **Kind**: instance **Returns**: object - a [position structure](https://docs.ccxt.com/en/latest/manual.html#position-structure) | Param | Type | Description | | --- | --- | --- | | symbol | string, undefined | unified market symbol | | params | object | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [kucoinfutures](/exchanges/kucoinfutures.md#kucoinfutureswatchposition) --- ## watchPositions watch all open positions **Kind**: instance **Returns**: Array<object> - a list of [position structure](https://docs.ccxt.com/en/latest/manual.html#position-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbols | Array<string>, undefined | Yes | list of unified market symbols | | params | object | Yes | extra parameters specific to the exchange API endpoint | | params.portfolioMargin | boolean | No | set to true if you would like to watch positions in a portfolio margin account | ##### Supported exchanges * [binance](/exchanges/binance.md#binancewatchpositions) * [bitget](/exchanges/bitget.md#bitgetwatchpositions) * [bitmart](/exchanges/bitmart.md#bitmartwatchpositions) * [bitmex](/exchanges/bitmex.md#bitmexwatchpositions) * [blofin](/exchanges/blofin.md#blofinwatchpositions) * [bybit](/exchanges/bybit.md#bybitwatchpositions) * [cryptocom](/exchanges/cryptocom.md#cryptocomwatchpositions) * [gate](/exchanges/gate.md#gatewatchpositions) * [hashkey](/exchanges/hashkey.md#hashkeywatchpositions) * [huobi](/exchanges/huobi.md#huobiwatchpositions) * [krakenfutures](/exchanges/krakenfutures.md#krakenfutureswatchpositions) * [okx](/exchanges/okx.md#okxwatchpositions) * [oxfun](/exchanges/oxfun.md#oxfunwatchpositions) * [vertex](/exchanges/vertex.md#vertexwatchpositions) * [woo](/exchanges/woo.md#woowatchpositions) * [woofipro](/exchanges/woofipro.md#woofiprowatchpositions) --- ## watchTicker watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market **Kind**: instance **Returns**: object - a [ticker structure](https://docs.ccxt.com/#/?id=ticker-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | unified symbol of the market to fetch the ticker for | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [alpaca](/exchanges/alpaca.md#alpacawatchticker) * [binance](/exchanges/binance.md#binancewatchticker) * [bingx](/exchanges/bingx.md#bingxwatchticker) * [bitfinex](/exchanges/bitfinex.md#bitfinexwatchticker) * [bitfinex2](/exchanges/bitfinex2.md#bitfinex2watchticker) * [bitget](/exchanges/bitget.md#bitgetwatchticker) * [bithumb](/exchanges/bithumb.md#bithumbwatchticker) * [bitmart](/exchanges/bitmart.md#bitmartwatchticker) * [bitmex](/exchanges/bitmex.md#bitmexwatchticker) * [bitopro](/exchanges/bitopro.md#bitoprowatchticker) * [bitvavo](/exchanges/bitvavo.md#bitvavowatchticker) * [blockchaincom](/exchanges/blockchaincom.md#blockchaincomwatchticker) * [blofin](/exchanges/blofin.md#blofinwatchticker) * [bybit](/exchanges/bybit.md#bybitwatchticker) * [cex](/exchanges/cex.md#cexwatchticker) * [coinbase](/exchanges/coinbase.md#coinbasewatchticker) * [coinbaseexchange](/exchanges/coinbaseexchange.md#coinbaseexchangewatchticker) * [coinbaseinternational](/exchanges/coinbaseinternational.md#coinbaseinternationalwatchticker) * [coinex](/exchanges/coinex.md#coinexwatchticker) * [coinone](/exchanges/coinone.md#coinonewatchticker) * [cryptocom](/exchanges/cryptocom.md#cryptocomwatchticker) * [currencycom](/exchanges/currencycom.md#currencycomwatchticker) * [deribit](/exchanges/deribit.md#deribitwatchticker) * [exmo](/exchanges/exmo.md#exmowatchticker) * [gate](/exchanges/gate.md#gatewatchticker) * [hahskey](/exchanges/hahskey.md#hahskeywatchticker) * [hitbtc](/exchanges/hitbtc.md#hitbtcwatchticker) * [hitbtc](/exchanges/hitbtc.md#hitbtcwatchticker) * [huobi](/exchanges/huobi.md#huobiwatchticker) * [huobijp](/exchanges/huobijp.md#huobijpwatchticker) * [idex](/exchanges/idex.md#idexwatchticker) * [krakenfutures](/exchanges/krakenfutures.md#krakenfutureswatchticker) * [kucoin](/exchanges/kucoin.md#kucoinwatchticker) * [kucoinfutures](/exchanges/kucoinfutures.md#kucoinfutureswatchticker) * [lbank](/exchanges/lbank.md#lbankwatchticker) * [mexc](/exchanges/mexc.md#mexcwatchticker) * [ndax](/exchanges/ndax.md#ndaxwatchticker) * [okcoin](/exchanges/okcoin.md#okcoinwatchticker) * [okx](/exchanges/okx.md#okxwatchticker) * [oxfun](/exchanges/oxfun.md#oxfunwatchticker) * [p2b](/exchanges/p2b.md#p2bwatchticker) * [paradex](/exchanges/paradex.md#paradexwatchticker) * [phemex](/exchanges/phemex.md#phemexwatchticker) * [poloniex](/exchanges/poloniex.md#poloniexwatchticker) * [poloniex](/exchanges/poloniex.md#poloniexwatchticker) * [poloniexfutures](/exchanges/poloniexfutures.md#poloniexfutureswatchticker) * [probit](/exchanges/probit.md#probitwatchticker) * [upbit](/exchanges/upbit.md#upbitwatchticker) * [vertex](/exchanges/vertex.md#vertexwatchticker) * [wazirx](/exchanges/wazirx.md#wazirxwatchticker) * [whitebit](/exchanges/whitebit.md#whitebitwatchticker) * [woo](/exchanges/woo.md#woowatchticker) * [woofipro](/exchanges/woofipro.md#woofiprowatchticker) * [xt](/exchanges/xt.md#xtwatchticker) * [xt](/exchanges/xt.md#xtwatchticker) --- ## watchTickers watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list **Kind**: instance **Returns**: object - a [ticker structure](https://docs.ccxt.com/#/?id=ticker-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbols | Array<string> | Yes | unified symbol of the market to fetch the ticker for | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [binance](/exchanges/binance.md#binancewatchtickers) * [bingx](/exchanges/bingx.md#bingxwatchtickers) * [bitget](/exchanges/bitget.md#bitgetwatchtickers) * [bithumb](/exchanges/bithumb.md#bithumbwatchtickers) * [bitmart](/exchanges/bitmart.md#bitmartwatchtickers) * [bitmex](/exchanges/bitmex.md#bitmexwatchtickers) * [blofin](/exchanges/blofin.md#blofinwatchtickers) * [bybit](/exchanges/bybit.md#bybitwatchtickers) * [cex](/exchanges/cex.md#cexwatchtickers) * [coinbase](/exchanges/coinbase.md#coinbasewatchtickers) * [coinbaseexchange](/exchanges/coinbaseexchange.md#coinbaseexchangewatchtickers) * [coinbaseinternational](/exchanges/coinbaseinternational.md#coinbaseinternationalwatchtickers) * [coinex](/exchanges/coinex.md#coinexwatchtickers) * [gate](/exchanges/gate.md#gatewatchtickers) * [hyperliquid](/exchanges/hyperliquid.md#hyperliquidwatchtickers) * [krakenfutures](/exchanges/krakenfutures.md#krakenfutureswatchtickers) * [kucoin](/exchanges/kucoin.md#kucoinwatchtickers) * [kucoinfutures](/exchanges/kucoinfutures.md#kucoinfutureswatchtickers) * [okx](/exchanges/okx.md#okxwatchtickers) * [oxfun](/exchanges/oxfun.md#oxfunwatchtickers) * [paradex](/exchanges/paradex.md#paradexwatchtickers) * [wazirx](/exchanges/wazirx.md#wazirxwatchtickers) * [woo](/exchanges/woo.md#woowatchtickers) * [woofipro](/exchanges/woofipro.md#woofiprowatchtickers) --- ## watchTrades watches information on multiple trades made in a market **Kind**: instance **Returns**: Array<object> - a list of [trade structures](https://docs.ccxt.com/#/?id=trade-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbol | string | Yes | unified market symbol of the market trades were made in | | since | int | No | the earliest time in ms to fetch orders for | | limit | int | No | the maximum number of trade structures to retrieve | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [alpaca](/exchanges/alpaca.md#alpacawatchtrades) * [ascendex](/exchanges/ascendex.md#ascendexwatchtrades) * [binance](/exchanges/binance.md#binancewatchtrades) * [bingx](/exchanges/bingx.md#bingxwatchtrades) * [bitfinex](/exchanges/bitfinex.md#bitfinexwatchtrades) * [bitfinex2](/exchanges/bitfinex2.md#bitfinex2watchtrades) * [bitget](/exchanges/bitget.md#bitgetwatchtrades) * [bithumb](/exchanges/bithumb.md#bithumbwatchtrades) * [bitmart](/exchanges/bitmart.md#bitmartwatchtrades) * [bitmex](/exchanges/bitmex.md#bitmexwatchtrades) * [bitopro](/exchanges/bitopro.md#bitoprowatchtrades) * [bitstamp](/exchanges/bitstamp.md#bitstampwatchtrades) * [bitvavo](/exchanges/bitvavo.md#bitvavowatchtrades) * [blockchaincom](/exchanges/blockchaincom.md#blockchaincomwatchtrades) * [blofin](/exchanges/blofin.md#blofinwatchtrades) * [bybit](/exchanges/bybit.md#bybitwatchtrades) * [cex](/exchanges/cex.md#cexwatchtrades) * [coinbase](/exchanges/coinbase.md#coinbasewatchtrades) * [coinbaseexchange](/exchanges/coinbaseexchange.md#coinbaseexchangewatchtrades) * [coinbaseinternational](/exchanges/coinbaseinternational.md#coinbaseinternationalwatchtrades) * [coincheck](/exchanges/coincheck.md#coincheckwatchtrades) * [coinex](/exchanges/coinex.md#coinexwatchtrades) * [coinone](/exchanges/coinone.md#coinonewatchtrades) * [cryptocom](/exchanges/cryptocom.md#cryptocomwatchtrades) * [currencycom](/exchanges/currencycom.md#currencycomwatchtrades) * [deribit](/exchanges/deribit.md#deribitwatchtrades) * [exmo](/exchanges/exmo.md#exmowatchtrades) * [exmo](/exchanges/exmo.md#exmowatchtrades) * [gate](/exchanges/gate.md#gatewatchtrades) * [gemini](/exchanges/gemini.md#geminiwatchtrades) * [hashkey](/exchanges/hashkey.md#hashkeywatchtrades) * [hitbtc](/exchanges/hitbtc.md#hitbtcwatchtrades) * [hollaex](/exchanges/hollaex.md#hollaexwatchtrades) * [huobi](/exchanges/huobi.md#huobiwatchtrades) * [huobijp](/exchanges/huobijp.md#huobijpwatchtrades) * [hyperliquid](/exchanges/hyperliquid.md#hyperliquidwatchtrades) * [idex](/exchanges/idex.md#idexwatchtrades) * [independentreserve](/exchanges/independentreserve.md#independentreservewatchtrades) * [krakenfutures](/exchanges/krakenfutures.md#krakenfutureswatchtrades) * [kucoin](/exchanges/kucoin.md#kucoinwatchtrades) * [kucoin](/exchanges/kucoin.md#kucoinwatchtrades) * [kucoinfutures](/exchanges/kucoinfutures.md#kucoinfutureswatchtrades) * [kucoinfutures](/exchanges/kucoinfutures.md#kucoinfutureswatchtrades) * [lbank](/exchanges/lbank.md#lbankwatchtrades) * [luno](/exchanges/luno.md#lunowatchtrades) * [mexc](/exchanges/mexc.md#mexcwatchtrades) * [ndax](/exchanges/ndax.md#ndaxwatchtrades) * [okcoin](/exchanges/okcoin.md#okcoinwatchtrades) * [okx](/exchanges/okx.md#okxwatchtrades) * [oxfun](/exchanges/oxfun.md#oxfunwatchtrades) * [p2b](/exchanges/p2b.md#p2bwatchtrades) * [paradex](/exchanges/paradex.md#paradexwatchtrades) * [phemex](/exchanges/phemex.md#phemexwatchtrades) * [poloniex](/exchanges/poloniex.md#poloniexwatchtrades) * [poloniexfutures](/exchanges/poloniexfutures.md#poloniexfutureswatchtrades) * [probit](/exchanges/probit.md#probitwatchtrades) * [upbit](/exchanges/upbit.md#upbitwatchtrades) * [vertex](/exchanges/vertex.md#vertexwatchtrades) * [wazirx](/exchanges/wazirx.md#wazirxwatchtrades) * [whitebit](/exchanges/whitebit.md#whitebitwatchtrades) * [woo](/exchanges/woo.md#woowatchtrades) * [woofipro](/exchanges/woofipro.md#woofiprowatchtrades) * [xt](/exchanges/xt.md#xtwatchtrades) --- ## watchTradesForSymbols get the list of most recent trades for a list of symbols **Kind**: instance **Returns**: Array<object> - a list of [trade structures](https://docs.ccxt.com/#/?id=public-trades) | Param | Type | Required | Description | | --- | --- | --- | --- | | symbols | Array<string> | Yes | unified symbol of the market to fetch trades for | | since | int | No | timestamp in ms of the earliest trade to fetch | | limit | int | No | the maximum amount of trades to fetch | | params | object | No | extra parameters specific to the exchange API endpoint | | params.name | string | No | the name of the method to call, 'trade' or 'aggTrade', default is 'trade' | ##### Supported exchanges * [ascendex](/exchanges/ascendex.md#ascendexwatchtradesforsymbols) * [binance](/exchanges/binance.md#binancewatchtradesforsymbols) * [bitget](/exchanges/bitget.md#bitgetwatchtradesforsymbols) * [bitmart](/exchanges/bitmart.md#bitmartwatchtradesforsymbols) * [bitmex](/exchanges/bitmex.md#bitmexwatchtradesforsymbols) * [blofin](/exchanges/blofin.md#blofinwatchtradesforsymbols) * [bybit](/exchanges/bybit.md#bybitwatchtradesforsymbols) * [coinbase](/exchanges/coinbase.md#coinbasewatchtradesforsymbols) * [coinbase](/exchanges/coinbase.md#coinbasewatchtradesforsymbols) * [coinbaseinternational](/exchanges/coinbaseinternational.md#coinbaseinternationalwatchtradesforsymbols) * [coinex](/exchanges/coinex.md#coinexwatchtradesforsymbols) * [cryptocom](/exchanges/cryptocom.md#cryptocomwatchtradesforsymbols) * [deribit](/exchanges/deribit.md#deribitwatchtradesforsymbols) * [gate](/exchanges/gate.md#gatewatchtradesforsymbols) * [gemini](/exchanges/gemini.md#geminiwatchtradesforsymbols) * [krakenfutures](/exchanges/krakenfutures.md#krakenfutureswatchtradesforsymbols) * [okx](/exchanges/okx.md#okxwatchtradesforsymbols) * [oxfun](/exchanges/oxfun.md#oxfunwatchtradesforsymbols) * [p2b](/exchanges/p2b.md#p2bwatchtradesforsymbols) * [poloniex](/exchanges/poloniex.md#poloniexwatchtradesforsymbols) * [upbit](/exchanges/upbit.md#upbitwatchtradesforsymbols) --- ## withdraw make a withdrawal **Kind**: instance **Returns**: object - a [transaction structure](https://docs.ccxt.com/#/?id=transaction-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | code | string | Yes | unified currency code | | amount | float | Yes | the amount to withdraw | | address | string | Yes | the address to withdraw to | | tag | string | Yes | | | params | object | No | extra parameters specific to the exchange API endpoint | ##### Supported exchanges * [bigone](/exchanges/bigone.md#bigonewithdraw) * [binance](/exchanges/binance.md#binancewithdraw) * [bingx](/exchanges/bingx.md#bingxwithdraw) * [bitbank](/exchanges/bitbank.md#bitbankwithdraw) * [bitfinex](/exchanges/bitfinex.md#bitfinexwithdraw) * [bitfinex2](/exchanges/bitfinex2.md#bitfinex2withdraw) * [bitflyer](/exchanges/bitflyer.md#bitflyerwithdraw) * [bitget](/exchanges/bitget.md#bitgetwithdraw) * [bithumb](/exchanges/bithumb.md#bithumbwithdraw) * [bitmart](/exchanges/bitmart.md#bitmartwithdraw) * [bitmex](/exchanges/bitmex.md#bitmexwithdraw) * [bitopro](/exchanges/bitopro.md#bitoprowithdraw) * [bitrue](/exchanges/bitrue.md#bitruewithdraw) * [bitso](/exchanges/bitso.md#bitsowithdraw) * [bitstamp](/exchanges/bitstamp.md#bitstampwithdraw) * [bitvavo](/exchanges/bitvavo.md#bitvavowithdraw) * [blockchaincom](/exchanges/blockchaincom.md#blockchaincomwithdraw) * [btcmarkets](/exchanges/btcmarkets.md#btcmarketswithdraw) * [bybit](/exchanges/bybit.md#bybitwithdraw) * [coinbase](/exchanges/coinbase.md#coinbasewithdraw) * [coinbaseexchange](/exchanges/coinbaseexchange.md#coinbaseexchangewithdraw) * [coinbaseinternational](/exchanges/coinbaseinternational.md#coinbaseinternationalwithdraw) * [coinex](/exchanges/coinex.md#coinexwithdraw) * [coinlist](/exchanges/coinlist.md#coinlistwithdraw) * [coinmate](/exchanges/coinmate.md#coinmatewithdraw) * [coinsph](/exchanges/coinsph.md#coinsphwithdraw) * [cryptocom](/exchanges/cryptocom.md#cryptocomwithdraw) * [deribit](/exchanges/deribit.md#deribitwithdraw) * [digifinex](/exchanges/digifinex.md#digifinexwithdraw) * [exmo](/exchanges/exmo.md#exmowithdraw) * [gate](/exchanges/gate.md#gatewithdraw) * [gemini](/exchanges/gemini.md#geminiwithdraw) * [hashkey](/exchanges/hashkey.md#hashkeywithdraw) * [hitbtc](/exchanges/hitbtc.md#hitbtcwithdraw) * [hollaex](/exchanges/hollaex.md#hollaexwithdraw) * [htx](/exchanges/htx.md#htxwithdraw) * [huobijp](/exchanges/huobijp.md#huobijpwithdraw) * [hyperliquid](/exchanges/hyperliquid.md#hyperliquidwithdraw) * [idex](/exchanges/idex.md#idexwithdraw) * [independentreserve](/exchanges/independentreserve.md#independentreservewithdraw) * [indodax](/exchanges/indodax.md#indodaxwithdraw) * [kraken](/exchanges/kraken.md#krakenwithdraw) * [kucoin](/exchanges/kucoin.md#kucoinwithdraw) * [kuna](/exchanges/kuna.md#kunawithdraw) * [lbank](/exchanges/lbank.md#lbankwithdraw) * [lykke](/exchanges/lykke.md#lykkewithdraw) * [mercado](/exchanges/mercado.md#mercadowithdraw) * [mexc](/exchanges/mexc.md#mexcwithdraw) * [ndax](/exchanges/ndax.md#ndaxwithdraw) * [novadax](/exchanges/novadax.md#novadaxwithdraw) * [okcoin](/exchanges/okcoin.md#okcoinwithdraw) * [okx](/exchanges/okx.md#okxwithdraw) * [onetrading](/exchanges/onetrading.md#onetradingwithdraw) * [oxfun](/exchanges/oxfun.md#oxfunwithdraw) * [phemex](/exchanges/phemex.md#phemexwithdraw) * [poloniex](/exchanges/poloniex.md#poloniexwithdraw) * [probit](/exchanges/probit.md#probitwithdraw) * [bybit](/exchanges/bybit.md#bybitwithdraw) * [upbit](/exchanges/upbit.md#upbitwithdraw) * [vertex](/exchanges/vertex.md#vertexwithdraw) * [wavesexchange](/exchanges/wavesexchange.md#wavesexchangewithdraw) * [whitebit](/exchanges/whitebit.md#whitebitwithdraw) * [woo](/exchanges/woo.md#woowithdraw) * [woofipro](/exchanges/woofipro.md#woofiprowithdraw) * [xt](/exchanges/xt.md#xtwithdraw) * [yobit](/exchanges/yobit.md#yobitwithdraw) * [zaif](/exchanges/zaif.md#zaifwithdraw) * [zonda](/exchanges/zonda.md#zondawithdraw) --- ## withdrawWs make a withdrawal **Kind**: instance **Returns**: object - a [transaction structure](https://docs.ccxt.com/#/?id=transaction-structure) | Param | Type | Required | Description | | --- | --- | --- | --- | | code | string | Yes | unified currency code | | amount | float | Yes | the amount to withdraw | | address | string | Yes | the address to withdraw to | | tag | string | Yes | | | params | object | No | extra parameters specific to the bitvavo api endpoint | ##### Supported exchanges * [bitvavo](/exchanges/bitvavo.md#bitvavowithdrawws)