CCXT

woo

woo cryptocurrency exchange — CCXT unified API: methods, parameters and endpoints.

woo

Kind: global class
Extends: Exchange

fetchStatus

the latest known information on the availability of the exchange API

Kind: instance method of woo
Returns: object - a status structure

See: https://developer.woox.io/api-reference/endpoint/public_data/systemInfo

ParamTypeRequiredDescription
paramsobjectNoextra parameters specific to the exchange API endpoint
woo.fetchStatus (params?)

fetchTime

fetches the current integer timestamp in milliseconds from the exchange server

Kind: instance method of woo
Returns: int - the current integer timestamp in milliseconds from the exchange server

See: https://developer.woox.io/api-reference/endpoint/public_data/systemInfo

ParamTypeRequiredDescription
paramsobjectNoextra parameters specific to the exchange API endpoint
woo.fetchTime (params?)

fetchMarkets

retrieves data on all markets for woo

Kind: instance method of woo
Returns: Array<object> - an array of objects representing market data

See: https://developer.woox.io/api-reference/endpoint/public_data/instruments

ParamTypeRequiredDescription
paramsobjectNoextra parameters specific to the exchange API endpoint
woo.fetchMarkets (params?)

fetchTrades

get the list of most recent trades for a particular symbol

Kind: instance method of woo
Returns: Array<Trade> - a list of trade structures

See: https://developer.woox.io/api-reference/endpoint/public_data/marketTrades

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market to fetch trades for
sinceintNotimestamp in ms of the earliest trade to fetch
limitintNothe maximum amount of trades to fetch
paramsobjectNoextra parameters specific to the exchange API endpoint
woo.fetchTrades (symbol, since?, limit?, params?)

fetchTradingFee

fetch the trading fees for a market

Kind: instance method of woo
Returns: object - a fee structure

See: https://developer.woox.io/api-reference/endpoint/trading/get_tradingFee

ParamTypeRequiredDescription
symbolstringYesunified market symbol
paramsobjectNoextra parameters specific to the exchange API endpoint
params.portfolioMarginbooleanNoset to true if you would like to fetch trading fees in a portfolio margin account
params.subTypestringNo"linear" or "inverse"
woo.fetchTradingFee (symbol, params?)

fetchTradingFees

fetch the trading fees for multiple markets

Kind: instance method of woo
Returns: object - a dictionary of fee structures indexed by market symbols

See: https://developer.woox.io/api-reference/endpoint/account/get_account_info

ParamTypeRequiredDescription
paramsobjectNoextra parameters specific to the exchange API endpoint
woo.fetchTradingFees (params?)

fetchCurrencies

fetches all available currencies on an exchange

Kind: instance method of woo
Returns: object - an associative dictionary of currencies

See: https://docs.woox.io/#available-token-public

ParamTypeRequiredDescription
paramsobjectNoextra parameters specific to the exchange API endpoint
woo.fetchCurrencies (params?)

createMarketBuyOrderWithCost

create a market buy order by providing the symbol and cost

Kind: instance method of woo
Returns: object - an order structure

See: https://docs.woox.io/#send-order

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market to create an order in
costfloatYeshow much you want to trade in units of the quote currency
paramsobjectNoextra parameters specific to the exchange API endpoint
woo.createMarketBuyOrderWithCost (symbol, cost, params?)

createMarketSellOrderWithCost

create a market sell order by providing the symbol and cost

Kind: instance method of woo
Returns: object - an order structure

See: https://docs.woox.io/#send-order

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market to create an order in
costfloatYeshow much you want to trade in units of the quote currency
paramsobjectNoextra parameters specific to the exchange API endpoint
woo.createMarketSellOrderWithCost (symbol, cost, params?)

createTrailingAmountOrder

create a trailing order by providing the symbol, type, side, amount, price and trailingAmount

Kind: instance method of woo
Returns: object - an order structure

See: https://docs.woox.io/#send-algo-order

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market to create an order in
typestringYes'market' or 'limit'
sidestringYes'buy' or 'sell'
amountfloatYeshow much you want to trade in units of the base currency, or number of contracts
pricefloatNothe price for the order to be filled at, in units of the quote currency, ignored in market orders
trailingAmountfloatYesthe quote amount to trail away from the current market price
trailingTriggerPricefloatYesthe price to activate a trailing order, default uses the price argument
paramsobjectNoextra parameters specific to the exchange API endpoint
woo.createTrailingAmountOrder (symbol, type, side, amount, price?, trailingAmount, trailingTriggerPrice, params?)

createTrailingPercentOrder

create a trailing order by providing the symbol, type, side, amount, price and trailingPercent

Kind: instance method of woo
Returns: object - an order structure

See: https://docs.woox.io/#send-algo-order

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market to create an order in
typestringYes'market' or 'limit'
sidestringYes'buy' or 'sell'
amountfloatYeshow much you want to trade in units of the base currency, or number of contracts
pricefloatNothe price for the order to be filled at, in units of the quote currency, ignored in market orders
trailingPercentfloatYesthe percent to trail away from the current market price
trailingTriggerPricefloatYesthe price to activate a trailing order, default uses the price argument
paramsobjectNoextra parameters specific to the exchange API endpoint
woo.createTrailingPercentOrder (symbol, type, side, amount, price?, trailingPercent, trailingTriggerPrice, params?)

createOrder

create a trade order

Kind: instance method of woo
Returns: object - an order structure

See

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market to create an order in
typestringYes'market' or 'limit'
sidestringYes'buy' or 'sell'
amountfloatYeshow much of currency you want to trade in units of base currency
pricefloatNothe price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
paramsobjectNoextra parameters specific to the exchange API endpoint
params.marginModestringNofor swap markets only 'cross' or 'isolated', default 'cross'
params.triggerPricefloatNoThe price a trigger order is triggered at
params.takeProfitobjectNotakeProfit object in params containing the triggerPrice at which the attached take profit order will be triggered (perpetual swap markets only)
params.takeProfit.triggerPricefloatNotake profit trigger price
params.stopLossobjectNostopLoss object in params containing the triggerPrice at which the attached stop loss order will be triggered (perpetual swap markets only)
params.stopLoss.triggerPricefloatNostop loss trigger price
params.algoTypefloatNo'STOP' or 'TRAILING_STOP' or 'OCO' or 'CLOSE_POSITION'
params.costfloatNospot market buy only the quote quantity that can be used as an alternative for the amount
params.trailingAmountstringNothe quote amount to trail away from the current market price
params.trailingPercentstringNothe percent to trail away from the current market price
params.trailingTriggerPricestringNothe price to trigger a trailing order, default uses the price argument
params.position_sidestringNo'SHORT' or 'LONG' - if position mode is HEDGE_MODE and the trading involves futures, then is required, otherwise this parameter is not required
woo.createOrder (symbol, type, side, amount, price?, params?)

editOrder

edit a trade order

Kind: instance method of woo
Returns: object - an order structure

See

ParamTypeRequiredDescription
idstringYesorder id
symbolstringYesunified symbol of the market to create an order in
typestringYes'market' or 'limit'
sidestringYes'buy' or 'sell'
amountfloatYeshow much of currency you want to trade in units of base currency
pricefloatNothe price at which the order is to be fulfilled, in units of the quote currency, ignored in market orders
paramsobjectNoextra parameters specific to the exchange API endpoint
params.triggerPricefloatNoThe price a trigger order is triggered at
params.stopLossPricefloatNoprice to trigger stop-loss orders
params.takeProfitPricefloatNoprice to trigger take-profit orders
params.trailingAmountstringNothe quote amount to trail away from the current market price
params.trailingPercentstringNothe percent to trail away from the current market price
params.trailingTriggerPricestringNothe price to trigger a trailing order, default uses the price argument
woo.editOrder (id, symbol, type, side, amount, price?, params?)

cancelOrder

cancels an open order

Kind: instance method of woo
Returns: object - An order structure

See

ParamTypeRequiredDescription
idstringYesorder id
symbolstringYesunified symbol of the market the order was made in
paramsobjectNoextra parameters specific to the exchange API endpoint
params.triggerbooleanNowhether the order is a trigger/algo order
woo.cancelOrder (id, symbol, params?)

cancelAllOrders

cancel all open orders in a market

Kind: instance method of woo
Returns: object - an list of order structures

See

ParamTypeRequiredDescription
symbolstringYesunified market symbol
paramsobjectNoextra parameters specific to the exchange API endpoint
params.triggerbooleanNowhether the order is a trigger/algo order
woo.cancelAllOrders (symbol, params?)

cancelAllOrdersAfter

dead man's switch, cancel all orders after the given timeout

Kind: instance method of woo
Returns: object - the api result

See: https://developer.woox.io/api-reference/endpoint/trading/cancel_all_after

ParamTypeRequiredDescription
timeoutnumberYestime in milliseconds, 0 represents cancel the timer
paramsobjectNoextra parameters specific to the exchange API endpoint
woo.cancelAllOrdersAfter (timeout, params?)

fetchOrder

fetches information on an order made by the user

Kind: instance method of woo
Returns: object - An order structure

See

ParamTypeRequiredDescription
idstringYesthe order id
symbolstringYesunified symbol of the market the order was made in
paramsobjectNoextra parameters specific to the exchange API endpoint
params.triggerbooleanNowhether the order is a trigger/algo order
woo.fetchOrder (id, symbol, params?)

fetchOrders

fetches information on multiple orders made by the user

Kind: instance method of woo
Returns: Array<Order> - a list of order structures

See

ParamTypeRequiredDescription
symbolstringYesunified market symbol of the market orders were made in
sinceintNothe earliest time in ms to fetch orders for
limitintNothe maximum number of order structures to retrieve
paramsobjectNoextra parameters specific to the exchange API endpoint
params.triggerbooleanNowhether the order is a trigger/algo order
params.isTriggeredbooleanNowhether the order has been triggered (false by default)
params.sidestringNo'buy' or 'sell'
params.paginatebooleanNoset to true if you want to fetch orders with pagination
woo.fetchOrders (symbol, since?, limit?, params?)

fetchOpenOrders

fetches information on multiple orders made by the user

Kind: instance method of woo
Returns: Array<Order> - a list of order structures

See

ParamTypeRequiredDescription
symbolstringYesunified market symbol of the market orders were made in
sinceintNothe earliest time in ms to fetch orders for
limitintNothe maximum number of order structures to retrieve
paramsobjectNoextra parameters specific to the exchange API endpoint
params.triggerbooleanNowhether the order is a trigger/algo order
params.isTriggeredbooleanNowhether the order has been triggered (false by default)
params.sidestringNo'buy' or 'sell'
params.trailingbooleanNoset to true if you want to fetch trailing orders
params.paginatebooleanNoset to true if you want to fetch orders with pagination
woo.fetchOpenOrders (symbol, since?, limit?, params?)

fetchClosedOrders

fetches information on multiple orders made by the user

Kind: instance method of woo
Returns: Array<Order> - a list of order structures

See

ParamTypeRequiredDescription
symbolstringYesunified market symbol of the market orders were made in
sinceintNothe earliest time in ms to fetch orders for
limitintNothe maximum number of order structures to retrieve
paramsobjectNoextra parameters specific to the exchange API endpoint
params.triggerbooleanNowhether the order is a trigger/algo order
params.isTriggeredbooleanNowhether the order has been triggered (false by default)
params.sidestringNo'buy' or 'sell'
params.trailingbooleanNoset to true if you want to fetch trailing orders
params.paginatebooleanNoset to true if you want to fetch orders with pagination
woo.fetchClosedOrders (symbol, since?, limit?, params?)

fetchOrderBook

fetches information on open orders with bid (buy) and ask (sell) prices, volumes and other data

Kind: instance method of woo
Returns: object - A dictionary of order book structures indexed by market symbols

See: https://developer.woox.io/api-reference/endpoint/public_data/orderbook

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market to fetch the order book for
limitintNothe maximum amount of order book entries to return
paramsobjectNoextra parameters specific to the exchange API endpoint
woo.fetchOrderBook (symbol, limit?, params?)

fetchOHLCV

fetches historical candlestick data containing the open, high, low, and close price, and the volume of a market

Kind: instance method of woo
Returns: Array<Array<int>> - A list of candles ordered as timestamp, open, high, low, close, volume

See: https://developer.woox.io/api-reference/endpoint/public_data/klineHistory

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market to fetch OHLCV data for
timeframestringYesthe length of time each candle represents
sinceintNotimestamp in ms of the earliest candle to fetch
limitintNomax=1000, max=100 when since is defined and is less than (now - (999 * (timeframe in ms)))
paramsobjectNoextra parameters specific to the exchange API endpoint
params.untilintNothe latest time in ms to fetch entries for
woo.fetchOHLCV (symbol, timeframe, since?, limit?, params?)

fetchOrderTrades

fetch all the trades made from a single order

Kind: instance method of woo
Returns: Array<object> - a list of trade structures

See: https://docs.woox.io/#get-trades

ParamTypeRequiredDescription
idstringYesorder id
symbolstringYesunified market symbol
sinceintNothe earliest time in ms to fetch trades for
limitintNothe maximum number of trades to retrieve
paramsobjectNoextra parameters specific to the exchange API endpoint
woo.fetchOrderTrades (id, symbol, since?, limit?, params?)

fetchMyTrades

fetch all trades made by the user

Kind: instance method of woo
Returns: Array<Trade> - a list of trade structures

See: https://developer.woox.io/api-reference/endpoint/trading/get_transactions

ParamTypeRequiredDescription
symbolstringYesunified market symbol
sinceintNothe earliest time in ms to fetch trades for
limitintNothe maximum number of trades structures to retrieve
paramsobjectNoextra parameters specific to the exchange API endpoint
params.paginatebooleanNoset to true if you want to fetch trades with pagination
woo.fetchMyTrades (symbol, since?, limit?, params?)

fetchAccounts

fetch all the accounts associated with a profile

Kind: instance method of woo
Returns: object - a dictionary of account structures indexed by the account type

See

ParamTypeRequiredDescription
paramsobjectNoextra parameters specific to the exchange API endpoint
woo.fetchAccounts (params?)

fetchBalance

query for balance and get the amount of funds available for trading or funds locked in orders

Kind: instance method of woo
Returns: object - a balance structure

See: https://docs.woox.io/#get-current-holding-get-balance-new

ParamTypeRequiredDescription
paramsobjectNoextra parameters specific to the exchange API endpoint
woo.fetchBalance (params?)

fetchDepositAddress

fetch the deposit address for a currency associated with this account

Kind: instance method of woo
Returns: object - an address structure

See: https://developer.woox.io/api-reference/endpoint/assets/get_wallet_deposit

ParamTypeRequiredDescription
codestringYesunified currency code
paramsobjectNoextra parameters specific to the exchange API endpoint
woo.fetchDepositAddress (code, params?)

fetchLedger

fetch the history of changes, actions done by the user or operations that altered balance of the user

Kind: instance method of woo
Returns: object - a ledger structure

See: https://developer.woox.io/api-reference/endpoint/assets/get_wallet_history

ParamTypeRequiredDescription
codestringNounified currency code, default is undefined
sinceintNotimestamp in ms of the earliest ledger entry, default is undefined
limitintNomax number of ledger entries to return, default is undefined
paramsobjectNoextra parameters specific to the exchange API endpoint
woo.fetchLedger (code?, since?, limit?, params?)

fetchDeposits

fetch all deposits made to an account

Kind: instance method of woo
Returns: Array<object> - a list of transaction structures

See: https://developer.woox.io/api-reference/endpoint/assets/get_wallet_history

ParamTypeRequiredDescription
codestringYesunified currency code
sinceintNothe earliest time in ms to fetch deposits for
limitintNothe maximum number of deposits structures to retrieve
paramsobjectNoextra parameters specific to the exchange API endpoint
woo.fetchDeposits (code, since?, limit?, params?)

fetchWithdrawals

fetch all withdrawals made from an account

Kind: instance method of woo
Returns: Array<object> - a list of transaction structures

See: https://developer.woox.io/api-reference/endpoint/assets/get_wallet_history

ParamTypeRequiredDescription
codestringYesunified currency code
sinceintNothe earliest time in ms to fetch withdrawals for
limitintNothe maximum number of withdrawals structures to retrieve
paramsobjectNoextra parameters specific to the exchange API endpoint
woo.fetchWithdrawals (code, since?, limit?, params?)

fetchDepositsWithdrawals

fetch history of deposits and withdrawals

Kind: instance method of woo
Returns: object - a list of transaction structure

See: https://developer.woox.io/api-reference/endpoint/assets/get_wallet_history

ParamTypeRequiredDescription
codestringNounified currency code for the currency of the deposit/withdrawals, default is undefined
sinceintNotimestamp in ms of the earliest deposit/withdrawal, default is undefined
limitintNomax number of deposit/withdrawals to return, default is undefined
paramsobjectNoextra parameters specific to the exchange API endpoint
woo.fetchDepositsWithdrawals (code?, since?, limit?, params?)

transfer

transfer currency internally between wallets on the same account

Kind: instance method of woo
Returns: object - a transfer structure

See: https://docs.woox.io/#get-transfer-history

ParamTypeRequiredDescription
codestringYesunified currency code
amountfloatYesamount to transfer
fromAccountstringYesaccount to transfer from
toAccountstringYesaccount to transfer to
paramsobjectNoextra parameters specific to the exchange API endpoint
woo.transfer (code, amount, fromAccount, toAccount, params?)

fetchTransfers

fetch a history of internal transfers made on an account

Kind: instance method of woo
Returns: Array<object> - a list of transfer structures

See: https://developer.woox.io/api-reference/endpoint/assets/get_transfer_history

ParamTypeRequiredDescription
codestringYesunified currency code of the currency transferred
sinceintNothe earliest time in ms to fetch transfers for
limitintNothe maximum number of transfers structures to retrieve
paramsobjectNoextra parameters specific to the exchange API endpoint
params.untilintNothe latest time in ms to fetch entries for
woo.fetchTransfers (code, since?, limit?, params?)

withdraw

make a withdrawal

Kind: instance method of woo
Returns: object - a transaction structure

See: https://docs.woox.io/#token-withdraw-v3

ParamTypeRequiredDescription
codestringYesunified currency code
amountfloatYesthe amount to withdraw
addressstringYesthe address to withdraw to
tagstringYes
paramsobjectNoextra parameters specific to the exchange API endpoint
woo.withdraw (code, amount, address, tag, params?)

repayMargin

repay borrowed margin and interest

Kind: instance method of woo
Returns: object - a margin loan structure

See: https://docs.woox.io/#repay-interest

ParamTypeRequiredDescription
codestringYesunified currency code of the currency to repay
amountfloatYesthe amount to repay
symbolstringYesnot used by woo.repayMargin ()
paramsobjectNoextra parameters specific to the exchange API endpoint
woo.repayMargin (code, amount, symbol, params?)

fetchFundingHistory

fetch the history of funding payments paid and received on this account

Kind: instance method of woo
Returns: object - a funding history structure

See: https://developer.woox.io/api-reference/endpoint/futures/get_fundingFee_history

ParamTypeRequiredDescription
symbolstringNounified market symbol
sinceintNothe earliest time in ms to fetch funding history for
limitintNothe maximum number of funding history structures to retrieve
paramsobjectNoextra parameters specific to the exchange API endpoint
params.paginatebooleanNodefault false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the availble parameters
woo.fetchFundingHistory (symbol?, since?, limit?, params?)

fetchFundingInterval

fetch the current funding rate interval

Kind: instance method of woo
Returns: object - a funding rate structure

See: https://developer.woox.io/api-reference/endpoint/public_data/fundingRate

ParamTypeRequiredDescription
symbolstringYesunified market symbol
paramsobjectNoextra parameters specific to the exchange API endpoint
woo.fetchFundingInterval (symbol, params?)

fetchFundingRate

fetch the current funding rate

Kind: instance method of woo
Returns: object - a funding rate structure

See: https://developer.woox.io/api-reference/endpoint/public_data/fundingRate

ParamTypeRequiredDescription
symbolstringYesunified market symbol
paramsobjectNoextra parameters specific to the exchange API endpoint
woo.fetchFundingRate (symbol, params?)

fetchFundingRates

fetch the funding rate for multiple markets

Kind: instance method of woo
Returns: Array<object> - a list of funding rate structures, indexed by market symbols

See: https://developer.woox.io/api-reference/endpoint/public_data/fundingRate

ParamTypeRequiredDescription
symbolsArray<string>, undefinedYeslist of unified market symbols
paramsobjectNoextra parameters specific to the exchange API endpoint
woo.fetchFundingRates (symbols, params?)

fetchFundingRateHistory

fetches historical funding rate prices

Kind: instance method of woo
Returns: Array<object> - a list of funding rate structures

See: https://developer.woox.io/api-reference/endpoint/public_data/fundingRateHistory

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market to fetch the funding rate history for
sinceintNotimestamp in ms of the earliest funding rate to fetch
limitintNothe maximum amount of funding rate structures to fetch
paramsobjectNoextra parameters specific to the exchange API endpoint
params.untilintNotimestamp in ms of the latest funding rate
params.paginatebooleanNodefault false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the availble parameters
woo.fetchFundingRateHistory (symbol, since?, limit?, params?)

setPositionMode

set hedged to true or false for a market

Kind: instance method of woo
Returns: object - response from the exchange

See: https://developer.woox.io/api-reference/endpoint/futures/position_mode

ParamTypeRequiredDescription
hedgedboolYesset to true to use HEDGE_MODE, false for ONE_WAY
symbolstringYesnot used by woo setPositionMode
paramsobjectNoextra parameters specific to the exchange API endpoint
woo.setPositionMode (hedged, symbol, params?)

fetchLeverage

fetch the set leverage for a market

Kind: instance method of woo
Returns: object - a leverage structure

See

ParamTypeRequiredDescription
symbolstringYesunified market symbol
paramsobjectNoextra parameters specific to the exchange API endpoint
params.marginModestringNofor swap markets only 'cross' or 'isolated'
params.positionModestringNofor swap markets only 'ONE_WAY' or 'HEDGE_MODE'
woo.fetchLeverage (symbol, params?)

setLeverage

set the level of leverage for a market

Kind: instance method of woo
Returns: object - response from the exchange

See

ParamTypeRequiredDescription
leveragefloatYesthe rate of leverage (1, 2, 3, 4 or 5 for spot markets, 1, 2, 3, 4, 5, 10, 15, 20 for swap markets)
symbolstringNounified market symbol (is mandatory for swap markets)
paramsobjectNoextra parameters specific to the exchange API endpoint
params.marginModestringNofor swap markets only 'cross' or 'isolated'
params.positionModestringNofor swap markets only 'ONE_WAY' or 'HEDGE_MODE'
woo.setLeverage (leverage, symbol?, params?)

addMargin

add margin

Kind: instance method of woo
Returns: object - a margin structure

See: https://docs.woox.io/#update-isolated-margin-setting

ParamTypeRequiredDescription
symbolstringYesunified market symbol
amountfloatYesamount of margin to add
paramsobjectNoextra parameters specific to the exchange API endpoint
params.position_sidestringNo'LONG' or 'SHORT' in hedge mode, 'BOTH' in one way mode
woo.addMargin (symbol, amount, params?)

reduceMargin

remove margin from a position

Kind: instance method of woo
Returns: object - a margin structure

See: https://docs.woox.io/#update-isolated-margin-setting

ParamTypeRequiredDescription
symbolstringYesunified market symbol
amountfloatYesamount of margin to remove
paramsobjectNoextra parameters specific to the exchange API endpoint
params.position_sidestringNo'LONG' or 'SHORT' in hedge mode, 'BOTH' in one way mode
woo.reduceMargin (symbol, amount, params?)

fetchPosition

fetch data on an open position

Kind: instance method of woo
Returns: object - a position structure

See: https://developer.woox.io/api-reference/endpoint/futures/get_positions

ParamTypeRequiredDescription
symbolstringYesunified market symbol of the market the position is held in
paramsobjectNoextra parameters specific to the exchange API endpoint
woo.fetchPosition (symbol, params?)

fetchPositions

fetch all open positions

Kind: instance method of woo
Returns: Array<object> - a list of position structure

See: https://developer.woox.io/api-reference/endpoint/futures/get_positions

ParamTypeRequiredDescription
symbolsArray<string>Nolist of unified market symbols
paramsobjectNoextra parameters specific to the exchange API endpoint
woo.fetchPositions (symbols?, params?)

fetchConvertQuote

fetch a quote for converting from one currency to another

Kind: instance method of woo
Returns: object - a conversion structure

See: https://docs.woox.io/#get-quote-rfq

ParamTypeRequiredDescription
fromCodestringYesthe currency that you want to sell and convert from
toCodestringYesthe currency that you want to buy and convert into
amountfloatNohow much you want to trade in units of the from currency
paramsobjectNoextra parameters specific to the exchange API endpoint
woo.fetchConvertQuote (fromCode, toCode, amount?, params?)

createConvertTrade

convert from one currency to another

Kind: instance method of woo
Returns: object - a conversion structure

See: https://docs.woox.io/#send-quote-rft

ParamTypeRequiredDescription
idstringYesthe id of the trade that you want to make
fromCodestringYesthe currency that you want to sell and convert from
toCodestringYesthe currency that you want to buy and convert into
amountfloatNohow much you want to trade in units of the from currency
paramsobjectNoextra parameters specific to the exchange API endpoint
woo.createConvertTrade (id, fromCode, toCode, amount?, params?)

fetchConvertTrade

fetch the data for a conversion trade

Kind: instance method of woo
Returns: object - a conversion structure

See: https://docs.woox.io/#get-quote-trade

ParamTypeRequiredDescription
idstringYesthe id of the trade that you want to fetch
codestringNothe unified currency code of the conversion trade
paramsobjectNoextra parameters specific to the exchange API endpoint
woo.fetchConvertTrade (id, code?, params?)

fetchConvertTradeHistory

fetch the users history of conversion trades

Kind: instance method of woo
Returns: Array<object> - a list of conversion structures

See: https://docs.woox.io/#get-quote-trades

ParamTypeRequiredDescription
codestringNothe unified currency code
sinceintNothe earliest time in ms to fetch conversions for
limitintNothe maximum number of conversion structures to retrieve
paramsobjectNoextra parameters specific to the exchange API endpoint
params.untilintNotimestamp in ms of the latest conversion to fetch
woo.fetchConvertTradeHistory (code?, since?, limit?, params?)

fetchConvertCurrencies

fetches all available currencies that can be converted

Kind: instance method of woo
Returns: object - an associative dictionary of currencies

See: https://docs.woox.io/#get-quote-asset-info

ParamTypeRequiredDescription
paramsobjectNoextra parameters specific to the exchange API endpoint
woo.fetchConvertCurrencies (params?)

fetchPositionsADLRank

fetches the auto deleveraging rank and risk percentage for a list of symbols

Kind: instance method of woo
Returns: Array<object> - an array of auto de leverage structures

See: https://docs.woox.io/#get-all-position-info-new

ParamTypeRequiredDescription
symbolsArray<string>Noa list of unified market symbols
paramsobjectNoextra parameters specific to the exchange API endpoint
woo.fetchPositionsADLRank (symbols?, params?)

watchOrderBook

watches information on open orders with bid (buy) and ask (sell) prices, volumes and other data

Kind: instance method of woo
Returns: object - A dictionary of order book structures indexed by market symbols

See

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market to fetch the order book for
limitintNothe maximum amount of order book entries to return.
paramsobjectNoextra parameters specific to the exchange API endpoint
params.methodstringNoeither (default) 'orderbook' or 'orderbookupdate', default is 'orderbook'
woo.watchOrderBook (symbol, limit?, params?)

unWatchOrderBook

unWatches information on open orders with bid (buy) and ask (sell) prices, volumes and other data

Kind: instance method of woo
Returns: object - A dictionary of order book structures indexed by market symbols

See

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market
paramsobjectNoextra parameters specific to the exchange API endpoint
woo.unWatchOrderBook (symbol, params?)

watchTicker

watches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market

Kind: instance method of woo
Returns: object - a ticker structure

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market to fetch the ticker for
paramsobjectNoextra parameters specific to the exchange API endpoint
woo.watchTicker (symbol, params?)

unWatchTicker

unWatches a price ticker, a statistical calculation with the information calculated over the past 24 hours for a specific market

Kind: instance method of woo
Returns: object - a ticker structure

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market to fetch the ticker for
paramsobjectNoextra parameters specific to the exchange API endpoint
woo.unWatchTicker (symbol, params?)

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 method of woo
Returns: object - a ticker structure

See: https://docs.woox.io/#24h-tickers

ParamTypeRequiredDescription
symbolsArray<string>Yesunified symbol of the market to fetch the ticker for
paramsobjectNoextra parameters specific to the exchange API endpoint
woo.watchTickers (symbols, params?)

unWatchTickers

stops watching a price ticker, a statistical calculation with the information calculated over the past 24 hours for all markets of a specific list

Kind: instance method of woo
Returns: object - a ticker structure

See: https://docs.woox.io/#24h-tickers

ParamTypeRequiredDescription
symbolsArray<string>Yesunified symbol of the market to stop fetching the ticker for
paramsobjectNoextra parameters specific to the exchange API endpoint
woo.unWatchTickers (symbols, params?)

watchBidsAsks

watches best bid & ask for symbols

Kind: instance method of woo
Returns: object - a ticker structure

See: https://docs.woox.io/#bbos

ParamTypeRequiredDescription
symbolsArray<string>Nounified symbol of the market to fetch the ticker for
paramsobjectNoextra parameters specific to the exchange API endpoint
woo.watchBidsAsks (symbols?, params?)

unWatchBidsAsks

unWatches best bid & ask for symbols

Kind: instance method of woo
Returns: object - a ticker structure

See: https://docs.woox.io/#bbos

ParamTypeRequiredDescription
symbolsArray<string>Nounified symbol of the market to fetch the ticker for (not used by woo)
paramsobjectNoextra parameters specific to the exchange API endpoint
woo.unWatchBidsAsks (symbols?, params?)

watchOHLCV

watches historical candlestick data containing the open, high, low, and close price, and the volume of a market

Kind: instance method of woo
Returns: Array<Array<int>> - A list of candles ordered as timestamp, open, high, low, close, volume

See: https://docs.woox.io/#k-line

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market to fetch OHLCV data for
timeframestringYesthe length of time each candle represents
sinceintNotimestamp in ms of the earliest candle to fetch
limitintNothe maximum amount of candles to fetch
paramsobjectNoextra parameters specific to the exchange API endpoint
woo.watchOHLCV (symbol, timeframe, since?, limit?, params?)

unWatchOHLCV

unWatches historical candlestick data containing the open, high, low, and close price, and the volume of a market

Kind: instance method of woo
Returns: Array<Array<int>> - A list of candles ordered as timestamp, open, high, low, close, volume

See: https://docs.woox.io/#k-line

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market
timeframestringYesthe length of time each candle represents
paramsobjectNoextra parameters specific to the exchange API endpoint
params.timezoneobjectNoif provided, kline intervals are interpreted in that timezone instead of UTC, example '+08:00'
woo.unWatchOHLCV (symbol, timeframe, params?)

watchTrades

watches information on multiple trades made in a market

Kind: instance method of woo
Returns: Array<object> - a list of trade structures

See: https://docs.woox.io/#trade

ParamTypeRequiredDescription
symbolstringYesunified market symbol of the market trades were made in
sinceintNothe earliest time in ms to fetch trades for
limitintNothe maximum number of trade structures to retrieve
paramsobjectNoextra parameters specific to the exchange API endpoint
woo.watchTrades (symbol, since?, limit?, params?)

unWatchTrades

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 method of woo
Returns: object - a ticker structure

See: https://docs.woox.io/#trade

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market to fetch the ticker for
paramsobjectNoextra parameters specific to the exchange API endpoint
woo.unWatchTrades (symbol, params?)

watchOrders

watches information on multiple orders made by the user

Kind: instance method of woo
Returns: Array<object> - a list of order structures

See

ParamTypeRequiredDescription
symbolstringYesunified market symbol of the market orders were made in
sinceintNothe earliest time in ms to fetch orders for
limitintNothe maximum number of order structures to retrieve
paramsobjectNoextra parameters specific to the exchange API endpoint
params.triggerboolNotrue if trigger order
woo.watchOrders (symbol, since?, limit?, params?)

watchMyTrades

watches information on multiple trades made by the user

Kind: instance method of woo
Returns: Array<object> - a list of trade structures

See

ParamTypeRequiredDescription
symbolstringYesunified market symbol of the market orders were made in
sinceintNothe earliest time in ms to fetch orders for
limitintNothe maximum number of order structures to retrieve
paramsobjectNoextra parameters specific to the exchange API endpoint
params.triggerboolNotrue if trigger order
woo.watchMyTrades (symbol, since?, limit?, params?)

watchPositions

watch all open positions

Kind: instance method of woo
Returns: Array<object> - a list of position structure

See: https://docs.woox.io/#position-push

ParamTypeRequiredDescription
symbolsArray<string>Nolist of unified market symbols
sinceintNotimestamp in ms of the earliest position to fetch
limitintNothe maximum number of positions to fetch
paramsobjectNoextra parameters specific to the exchange API endpoint
woo.watchPositions (symbols?, since?, limit?, params?)

watchBalance

watch balance and get the amount of funds available for trading or funds locked in orders

Kind: instance method of woo
Returns: object - a balance structure

See: https://docs.woox.io/#balance

ParamTypeRequiredDescription
paramsobjectNoextra parameters specific to the exchange API endpoint
woo.watchBalance (params?)

watchFundingRate

watch the current funding rate

Kind: instance method of woo
Returns: object - a funding rate structure

See: https://docs.woox.io/#estfundingrate

ParamTypeRequiredDescription
symbolstringYesunified market symbol
paramsobjectNoextra parameters specific to the exchange API endpoint
woo.watchFundingRate (symbol, params?)

On this page