CCXT

woofipro

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

woofipro

Kind: global class
Extends: Exchange

fetchStatus

the latest known information on the availability of the exchange API

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

See: https://orderly.network/docs/build-on-omnichain/evm-api/restful-api/public/get-system-maintenance-status

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

fetchTime

fetches the current integer timestamp in milliseconds from the exchange server

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

See: https://orderly.network/docs/build-on-omnichain/evm-api/restful-api/public/get-system-maintenance-status

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

fetchMarkets

retrieves data on all markets for woofipro

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

See: https://orderly.network/docs/build-on-omnichain/evm-api/restful-api/public/get-available-symbols

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

fetchCurrencies

fetches all available currencies on an exchange

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

See

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

fetchTrades

get the list of most recent trades for a particular symbol

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

See: https://orderly.network/docs/build-on-omnichain/evm-api/restful-api/public/get-market-trades

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
woofipro.fetchTrades (symbol, since?, limit?, params?)

fetchFundingInterval

fetch the current funding rate interval

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

See: https://orderly.network/docs/build-on-omnichain/evm-api/restful-api/public/get-predicted-funding-rate-for-one-market

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

fetchFundingRate

fetch the current funding rate

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

See: https://orderly.network/docs/build-on-omnichain/evm-api/restful-api/public/get-predicted-funding-rate-for-one-market

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

fetchFundingRates

fetch the current funding rate for multiple markets

Kind: instance method of woofipro
Returns: Array<object> - an array of funding rate structures

See: https://orderly.network/docs/build-on-omnichain/evm-api/restful-api/public/get-predicted-funding-rates-for-all-markets

ParamTypeRequiredDescription
symbolsArray<string>Yesunified market symbols
paramsobjectNoextra parameters specific to the exchange API endpoint
woofipro.fetchFundingRates (symbols, params?)

fetchFundingRateHistory

fetches historical funding rate prices

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

See: https://orderly.network/docs/build-on-omnichain/evm-api/restful-api/public/get-funding-rate-history-for-one-market

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
woofipro.fetchFundingRateHistory (symbol, since?, limit?, params?)

fetchFundingHistory

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

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

See: https://orderly.network/docs/build-on-omnichain/evm-api/restful-api/private/get-funding-fee-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
woofipro.fetchFundingHistory (symbol?, since?, limit?, params?)

fetchTradingFees

fetch the trading fees for multiple markets

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

See: https://orderly.network/docs/build-on-omnichain/evm-api/restful-api/private/get-account-information

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

fetchOrderBook

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

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

See: https://orderly.network/docs/build-on-omnichain/evm-api/restful-api/private/orderbook-snapshot

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
woofipro.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 woofipro
Returns: Array<Array<int>> - A list of candles ordered as timestamp, open, high, low, close, volume

See: https://orderly.network/docs/build-on-omnichain/evm-api/restful-api/private/get-kline

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
woofipro.fetchOHLCV (symbol, timeframe, since?, limit?, params?)

createOrder

create a trade order

Kind: instance method of woofipro
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.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 'TP_SL' or 'POSITIONAL_TP_SL'
params.costfloatNospot market buy only the quote quantity that can be used as an alternative for the amount
params.clientOrderIdstringNoa unique id for the order
woofipro.createOrder (symbol, type, side, amount, price?, params?)

createOrders

contract only create a list of trade orders

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

See: https://orderly.network/docs/build-on-omnichain/evm-api/restful-api/private/batch-create-order

ParamTypeRequiredDescription
ordersArrayYeslist of orders to create, each object should contain the parameters required by createOrder, namely symbol, type, side, amount, price and params
paramsobjectNoextra parameters specific to the exchange API endpoint
woofipro.createOrders (orders, params?)

editOrder

edit a trade order

Kind: instance method of woofipro
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
woofipro.editOrder (id, symbol, type, side, amount, price?, params?)

cancelOrder

cancels an open order

Kind: instance method of woofipro
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 stop/algo order
params.clientOrderIdstringNoa unique id for the order
woofipro.cancelOrder (id, symbol, params?)

cancelOrders

cancel multiple orders

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

See

ParamTypeRequiredDescription
idsArray<string>Yesorder ids
symbolstringNounified market symbol
paramsobjectNoextra parameters specific to the exchange API endpoint
params.client_order_idsArray<string>Nomax length 10 e.g. ["my_id_1","my_id_2"], encode the double quotes. No space after comma
woofipro.cancelOrders (ids, symbol?, params?)

cancelAllOrders

cancel all open orders in a market

Kind: instance method of woofipro
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 stop/algo order
woofipro.cancelAllOrders (symbol, params?)

fetchOrder

fetches information on an order made by the user

Kind: instance method of woofipro
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 stop/algo order
params.clientOrderIdstringNoa unique id for the order
woofipro.fetchOrder (id, symbol, params?)

fetchOrders

fetches information on multiple orders made by the user

Kind: instance method of woofipro
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 stop/algo order
params.is_triggeredbooleanNowhether 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
params.untilintYestimestamp in ms of the latest order to fetch
woofipro.fetchOrders (symbol, since?, limit?, params?)

fetchOpenOrders

fetches information on multiple orders made by the user

Kind: instance method of woofipro
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 stop/algo order
params.is_triggeredbooleanNowhether the order has been triggered (false by default)
params.sidestringNo'buy' or 'sell'
params.untilintYestimestamp in ms of the latest order to fetch
params.paginatebooleanNoset to true if you want to fetch orders with pagination
woofipro.fetchOpenOrders (symbol, since?, limit?, params?)

fetchClosedOrders

fetches information on multiple orders made by the user

Kind: instance method of woofipro
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 stop/algo order
params.is_triggeredbooleanNowhether the order has been triggered (false by default)
params.sidestringNo'buy' or 'sell'
params.untilintYestimestamp in ms of the latest order to fetch
params.paginatebooleanNoset to true if you want to fetch orders with pagination
woofipro.fetchClosedOrders (symbol, since?, limit?, params?)

fetchOrderTrades

fetch all the trades made from a single order

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

See: https://orderly.network/docs/build-on-omnichain/evm-api/restful-api/private/get-all-trades-of-specific-order

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
woofipro.fetchOrderTrades (id, symbol, since?, limit?, params?)

fetchMyTrades

fetch all trades made by the user

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

See: https://orderly.network/docs/build-on-omnichain/evm-api/restful-api/private/get-trades

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
params.untilintYestimestamp in ms of the latest trade to fetch
woofipro.fetchMyTrades (symbol, since?, limit?, params?)

fetchBalance

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

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

See: https://orderly.network/docs/build-on-omnichain/evm-api/restful-api/private/get-current-holding

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

fetchLedger

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

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

See: https://orderly.network/docs/build-on-omnichain/evm-api/restful-api/private/get-asset-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
woofipro.fetchLedger (code?, since?, limit?, params?)

fetchDeposits

fetch all deposits made to an account

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

See: https://orderly.network/docs/build-on-omnichain/evm-api/restful-api/private/get-asset-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
woofipro.fetchDeposits (code, since?, limit?, params?)

fetchWithdrawals

fetch all withdrawals made from an account

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

See: https://orderly.network/docs/build-on-omnichain/evm-api/restful-api/private/get-asset-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
woofipro.fetchWithdrawals (code, since?, limit?, params?)

fetchDepositsWithdrawals

fetch history of deposits and withdrawals

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

See: https://orderly.network/docs/build-on-omnichain/evm-api/restful-api/private/get-asset-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
woofipro.fetchDepositsWithdrawals (code?, since?, limit?, params?)

withdraw

make a withdrawal

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

See: https://orderly.network/docs/build-on-omnichain/evm-api/restful-api/private/create-withdraw-request

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

fetchLeverage

fetch the set leverage for a market

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

See: https://orderly.network/docs/build-on-omnichain/evm-api/restful-api/private/get-account-information

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

setLeverage

set the level of leverage for a market

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

See: https://orderly.network/docs/build-on-omnichain/evm-api/restful-api/private/update-leverage-setting

ParamTypeRequiredDescription
leverageintNothe rate of leverage
symbolstringNounified market symbol
paramsobjectNoextra parameters specific to the exchange API endpoint
woofipro.setLeverage (leverage?, symbol?, params?)

fetchPosition

fetch data on an open position

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

See: https://orderly.network/docs/build-on-omnichain/evm-api/restful-api/private/get-one-position-info

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

fetchPositions

fetch all open positions

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

See: https://orderly.network/docs/build-on-omnichain/evm-api/restful-api/private/get-all-positions-info

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

watchOrderBook

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

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

See: https://orderly.network/docs/build-on-omnichain/evm-api/websocket-api/public/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
woofipro.watchOrderBook (symbol, limit?, 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 woofipro
Returns: object - a ticker structure

See: https://orderly.network/docs/build-on-omnichain/evm-api/websocket-api/public/24-hour-ticker

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market to fetch the ticker for
paramsobjectNoextra parameters specific to the exchange API endpoint
woofipro.watchTicker (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 woofipro
Returns: object - a ticker structure

See: https://orderly.network/docs/build-on-omnichain/evm-api/websocket-api/public/24-hour-tickers

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

watchBidsAsks

watches best bid & ask for symbols

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

See: https://orderly.network/docs/build-on-omnichain/evm-api/websocket-api/public/bbos

ParamTypeRequiredDescription
symbolsArray<string>Yesunified symbol of the market to fetch the ticker for
paramsobjectNoextra parameters specific to the exchange API endpoint
woofipro.watchBidsAsks (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 woofipro
Returns: Array<Array<int>> - A list of candles ordered as timestamp, open, high, low, close, volume

See: https://orderly.network/docs/build-on-omnichain/evm-api/websocket-api/public/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
woofipro.watchOHLCV (symbol, timeframe, since?, limit?, params?)

watchTrades

watches information on multiple trades made in a market

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

See: https://orderly.network/docs/build-on-omnichain/evm-api/websocket-api/public/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
woofipro.watchTrades (symbol, since?, limit?, params?)

watchOrders

watches information on multiple orders made by the user

Kind: instance method of woofipro
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
woofipro.watchOrders (symbol, since?, limit?, params?)

watchMyTrades

watches information on multiple trades made by the user

Kind: instance method of woofipro
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
woofipro.watchMyTrades (symbol, since?, limit?, params?)

watchPositions

watch all open positions

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

See: https://orderly.network/docs/build-on-omnichain/evm-api/websocket-api/private/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
woofipro.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 woofipro
Returns: object - a balance structure

See: https://orderly.network/docs/build-on-omnichain/evm-api/websocket-api/private/balance

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

On this page