CCXT

extended

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

extended

Kind: global class
Extends: Exchange

fetchMarkets

retrieves data on all markets for extended

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

See: https://api.docs.extended.exchange/#get-markets

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

fetchCurrencies

fetches all available currencies on an exchange

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

See: https://api.docs.extended.exchange/#get-assets

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

fetchTicker

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

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

See: https://api.docs.extended.exchange/#get-market-statistics

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

fetchTickers

fetches price tickers for multiple markets, statistical information calculated over the past 24 hours for all markets

Kind: instance method of extended
Returns: object - a dictionary of ticker structures

See: https://api.docs.extended.exchange/#get-markets

ParamTypeRequiredDescription
symbolsArray<string>Nounified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
paramsobjectNoextra parameters specific to the exchange API endpoint
extended.fetchTickers (symbols?, params?)

fetchOrderBook

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

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

See: https://api.docs.extended.exchange/#get-market-order-book

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
extended.fetchOrderBook (symbol, limit?, params?)

fetchTrades

get the list of most recent trades for a particular symbol

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

See: https://api.docs.extended.exchange/#get-market-last-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
extended.fetchTrades (symbol, since?, limit?, params?)

fetchMyTrades

fetch all trades made by the user

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

See: https://api.docs.extended.exchange/#get-trades

ParamTypeRequiredDescription
symbolstringNounified market symbol of the trades
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
params.paginatebooleanNodefault false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the available parameters
extended.fetchMyTrades (symbol?, since?, limit?, params?)

fetchFundingHistory

fetch the funding payments history

Kind: instance method of extended
Returns: Array<FundingHistory> - a list of funding history structures

See: https://api.docs.extended.exchange/#get-funding-payments

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 available parameters
extended.fetchFundingHistory (symbol?, since?, 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 extended
Returns: Array<Array<int>> - A list of candles ordered as timestamp, open, high, low, close, volume

See: https://api.docs.extended.exchange/#get-candles-history

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, default 100
paramsobjectNoextra parameters specific to the exchange API endpoint
params.candleTypestringNocandle type: 'trades' (default), 'mark-prices', or 'index-prices'
params.pricestringNoignored if params.candleType is set 'mark' or 'index' for mark price and index price candles
params.untilintNoend timestamp in ms for the requested period
extended.fetchOHLCV (symbol, timeframe, since?, limit?, params?)

fetchFundingRateHistory

fetches historical funding rate prices

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

See: https://api.docs.extended.exchange/#get-funding-rates-history

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market to fetch funding rate history for
sinceintNotimestamp in ms of the earliest funding rate to fetch
limitintNothe maximum amount of entries to fetch
paramsobjectNoextra parameters specific to the exchange API endpoint
params.untilintNotimestamp in ms of the latest funding rate to fetch
params.endTimeintNoexchange-specific end timestamp in ms of the latest funding rate to fetch
params.cursorintNooffset of the result set
params.paginatebooleanNodefault false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the available parameters
extended.fetchFundingRateHistory (symbol, since?, limit?, params?)

fetchOpenInterestHistory

Retrieves the open interest history of a currency

Kind: instance method of extended
Returns: Array<object> - an array of open interest structures

See: https://api.docs.extended.exchange/#get-open-interest-history

ParamTypeRequiredDescription
symbolstringYesunified CCXT market symbol
timeframestringYes'1h' or '1d'
sinceintNothe time(ms) of the earliest record to retrieve as a unix timestamp
limitintNothe maximum amount of open interest structures to retrieve
paramsobjectNoexchange specific parameters
params.untilintNotimestamp in ms of the latest open interest record to fetch
extended.fetchOpenInterestHistory (symbol, timeframe, 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 extended
Returns: object - a balance structure

See: https://api.docs.extended.exchange/#get-spot-balances

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

fetchAccount

fetch the current authenticated sub-account

Kind: instance method of extended
Returns: object - an account structure

See: https://api.docs.extended.exchange/#get-account-details

ParamTypeRequiredDescription
paramsobjectNoextra parameters specific to the exchange API endpoint
extended.fetchAccount (params?)

fetchAccounts

fetch the current authenticated sub-account, extended private endpoints only return records for the authenticated sub-account

Kind: instance method of extended
Returns: Array<object> - a list of account structures

See: https://api.docs.extended.exchange/#get-sub-accounts

ParamTypeRequiredDescription
paramsobjectNoextra parameters specific to the exchange API endpoint
extended.fetchAccounts (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 extended
Returns: Array<object> - a list of ledger structures

See: https://api.docs.extended.exchange/#get-deposits-withdrawals-transfers-history

ParamTypeRequiredDescription
codestringNounified currency code
sinceintNotimestamp in ms of the earliest ledger entry
limitintNomax number of ledger entries to return
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 available parameters
extended.fetchLedger (code?, since?, limit?, params?)

fetchTransactions

fetch history of deposits, withdrawals, and transfers

Kind: instance method of extended
Returns: Array<Transaction> - a list of transaction structures

See: https://api.docs.extended.exchange/#get-deposits-withdrawals-transfers-history

ParamTypeRequiredDescription
codestringNounified currency code
sinceintNothe earliest time in ms to fetch transactions for
limitintNothe maximum number of transaction 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 available parameters
extended.fetchTransactions (code?, since?, limit?, params?)

fetchDeposits

fetch all deposits made to an account

Kind: instance method of extended
Returns: Array<Transaction> - a list of transaction structures

See: https://api.docs.extended.exchange/#get-deposits-withdrawals-transfers-history

ParamTypeRequiredDescription
codestringNounified currency code
sinceintNothe earliest time in ms to fetch deposits for
limitintNothe maximum number of deposit 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 available parameters
extended.fetchDeposits (code?, since?, limit?, params?)

fetchWithdrawals

fetch all withdrawals made from an account

Kind: instance method of extended
Returns: Array<Transaction> - a list of transaction structures

See: https://api.docs.extended.exchange/#get-deposits-withdrawals-transfers-history

ParamTypeRequiredDescription
codestringNounified currency code
sinceintNothe earliest time in ms to fetch withdrawals for
limitintNothe maximum number of withdrawal 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 available parameters
extended.fetchWithdrawals (code?, since?, limit?, params?)

withdraw

make a Starknet withdrawal

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

See: https://api.docs.extended.exchange/#withdrawals

ParamTypeRequiredDescription
codestringYesunified currency code
amountfloatYesthe amount to withdraw
addressstringYesthe Starknet address to withdraw to
tagstringYesunused
paramsobjectNoextra parameters specific to the exchange API endpoint
params.chainIdstringNoonly STRK is supported
params.settlementExpirationintNosettlement expiration timestamp in seconds, defaults to now + 14 days + 60 seconds
extended.withdraw (code, amount, address, tag, params?)

fetchTransfers

fetch a history of internal transfers made on an account

Kind: instance method of extended
Returns: Array<TransferEntry> - a list of transfer structures

See: https://api.docs.extended.exchange/#get-deposits-withdrawals-transfers-history

ParamTypeRequiredDescription
codestringNounified currency code
sinceintNothe earliest time in ms to fetch transfers for
limitintNothe maximum number of transfer 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 available parameters
extended.fetchTransfers (code?, since?, limit?, params?)

transfer

transfer collateral between sub-accounts associated with the same wallet

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

See: https://api.docs.extended.exchange/#create-transfer

ParamTypeRequiredDescription
codestringYesunified currency code
amountfloatYesthe amount to transfer
fromAccountstringYessource account id, defaults to the authenticated account id
toAccountstringYesdestination account id
paramsobjectNoextra parameters specific to the exchange API endpoint
params.toVaultstringYesdestination account L2 vault
params.toL2KeystringYesdestination account L2 public key
params.settlementExpirationintNosettlement expiration timestamp in seconds, defaults to now + 21 days
extended.transfer (code, amount, fromAccount, toAccount, params?)

fetchTradingFee

fetch the trading fees for a market

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

See: https://api.docs.extended.exchange/#get-fees

ParamTypeRequiredDescription
symbolstringYesunified market symbol
paramsobjectNoextra parameters specific to the exchange API endpoint
params.builderIdstringNobuilder client id
extended.fetchTradingFee (symbol, params?)

fetchTradingFees

fetch the trading fees for multiple markets

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

See: https://api.docs.extended.exchange/#get-fees

ParamTypeRequiredDescription
paramsobjectNoextra parameters specific to the exchange API endpoint
params.marketstringNoexchange market id
params.builderIdstringNobuilder client id
extended.fetchTradingFees (params?)

fetchLeverage

fetch the set leverage for a market

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

See: https://api.docs.extended.exchange/#get-leverage

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

setLeverage

set the level of leverage for a market

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

See: https://api.docs.extended.exchange/#update-leverage

ParamTypeRequiredDescription
leverageintYesthe rate of leverage
symbolstringYesunified market symbol
paramsobjectNoextra parameters specific to the exchange API endpoint
extended.setLeverage (leverage, symbol, params?)

fetchPositions

fetch all open positions

Kind: instance method of extended
Returns: Array<Position> - a list of position structures

See: https://api.docs.extended.exchange/#get-positions

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

fetchPosition

fetch data on an open position

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

See: https://api.docs.extended.exchange/#get-positions

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

fetchPositionsHistory

fetch historical positions

Kind: instance method of extended
Returns: Array<Position> - a list of position structures

See: https://api.docs.extended.exchange/#get-positions-history

ParamTypeRequiredDescription
symbolsArray<string>, undefinedYeslist of unified market symbols
sinceintNothe earliest time in ms to fetch positions for
limitintNothe maximum number of position 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 available parameters
extended.fetchPositionsHistory (symbols, since?, limit?, params?)

createOrder

create a trade order

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

See: https://api.docs.extended.exchange/#create-or-edit-order

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market to create an order in
typestringYes'limit' or 'market'
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, required for all order types
paramsobjectNoextra parameters specific to the exchange API endpoint
params.clientOrderIdstringNoclient order id, sent as the exchange order id
params.cancelIdstringNoprevious external order id to replace
params.timeInForcestringNo'GTT' or 'IOC'
params.postOnlybooleanNotrue if the order should only make liquidity
params.reduceOnlybooleanNotrue if the order should only reduce a position
params.feestringNomax fee rate for the order, default is 0.0005
params.expiryEpochMillisintNoorder expiration timestamp in milliseconds, default is now + 1 hour
params.triggerPricefloatNoswap only The price at which a trigger order is triggered at
params.stopLossPricefloatNoswap only The price at which a stop loss order is triggered at
params.takeProfitPricefloatNoswap only The price at which a take profit 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.triggerPricefloatNoswap only take profit trigger price
params.takeProfit.pricefloatNoswap only the execution price for a take profit attached to a trigger order
params.takeProfit.typestringNoswap only the type for a take profit attached to a trigger order, 'LAST', 'MARK' or 'INDEX', default is ''
params.stopLossobjectNostopLoss object in params containing the triggerPrice at which the attached stop loss order will be triggered (perpetual swap markets only)
params.stopLoss.triggerPricefloatNoswap only stop loss trigger price
params.stopLoss.pricefloatNoswap only the execution price for a stop loss attached to a trigger order
params.stopLoss.typestringNoswap only the type for a stop loss attached to a trigger order, 'LAST', 'MARK' or 'INDEX', default is ''
extended.createOrder (symbol, type, side, amount, price?, params?)

editOrder

edit a trade order

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

See: https://api.docs.extended.exchange/#create-or-edit-order

ParamTypeRequiredDescription
idstringYesorder id assigned by Extended
symbolstringYesunified symbol of the market to edit an order in
typestringYes'limit' or 'market'
sidestringYes'buy' or 'sell'
amountfloatNohow 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
paramsobjectNoextra parameters specific to the exchange API endpoint
extended.editOrder (id, symbol, type, side, amount?, price?, params?)

cancelOrder

cancels an open order

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

See

ParamTypeRequiredDescription
idstringYesorder id assigned by Extended
symbolstringNounified symbol of the market the order was made in
paramsobjectNoextra parameters specific to the exchange API endpoint
params.clientOrderIdstringNouser-defined order id, cancels by external id
extended.cancelOrder (id, symbol?, params?)

cancelOrders

cancel multiple orders by order ids or client order ids

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

See: https://api.docs.extended.exchange/#mass-cancel

ParamTypeRequiredDescription
idsArray<string>Yesorder ids
symbolstringNounified market symbol, only used to populate the returned orders
paramsobjectNoextra parameters specific to the exchange API endpoint
params.clientOrderIdsArray<string>Noclient order ids
params.clientOrderIdstringNosingle client order id
extended.cancelOrders (ids, symbol?, params?)

cancelAllOrders

cancels all open orders, optionally filtered by symbol

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

See: https://api.docs.extended.exchange/#mass-cancel

ParamTypeRequiredDescription
symbolstringNounified market symbol of the market to cancel orders in
paramsobjectNoextra parameters specific to the exchange API endpoint
extended.cancelAllOrders (symbol?, params?)

cancelAllOrdersAfter

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

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

See: https://api.docs.extended.exchange/#mass-auto-cancel-dead-man-39-s-switch

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

fetchOrder

fetches information on an order made by the user

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

See

ParamTypeRequiredDescription
idstringYesorder id assigned by Extended
symbolstringNounified symbol of the market the order was made in
paramsobjectNoextra parameters specific to the exchange API endpoint
params.clientOrderIdstringNouser-defined order id, fetches by external id
extended.fetchOrder (id, symbol?, params?)

fetchOpenOrders

fetch all unfilled currently open orders

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

See: https://api.docs.extended.exchange/#get-open-orders

ParamTypeRequiredDescription
symbolstringNounified market symbol of the orders
sinceintNothe earliest time in ms to fetch orders for
limitintNothe maximum number of open order structures to retrieve
paramsobjectNoextra parameters specific to the exchange API endpoint
extended.fetchOpenOrders (symbol?, since?, limit?, params?)

fetchOrders

fetches information on multiple orders made by the user

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

See: https://api.docs.extended.exchange/#get-orders-history

ParamTypeRequiredDescription
symbolstringNounified market symbol of the orders
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.paginatebooleanNodefault false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the available parameters
extended.fetchOrders (symbol?, since?, limit?, params?)

fetchClosedOrders

fetches information on multiple closed orders made by the user

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

See: https://api.docs.extended.exchange/#get-orders-history

ParamTypeRequiredDescription
symbolstringNounified market symbol of the orders
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.paginatebooleanNodefault false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the available parameters
extended.fetchClosedOrders (symbol?, since?, limit?, params?)

fetchCanceledOrders

fetches information on multiple canceled orders made by the user

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

See: https://api.docs.extended.exchange/#get-orders-history

ParamTypeRequiredDescription
symbolstringNounified market symbol of the orders
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.paginatebooleanNodefault false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the available parameters
extended.fetchCanceledOrders (symbol?, since?, limit?, params?)

watchOrderBook

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

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

See: https://api.docs.extended.exchange/#order-book-stream

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.depthstringNoset to '1' to receive best bid and ask snapshots only
extended.watchOrderBook (symbol, limit?, params?)

watchOrders

watches information on multiple orders made by the user

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

See: https://api.docs.extended.exchange/#account-updates-stream

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

watchBalance

watches balance updates

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

See: https://api.docs.extended.exchange/#account-updates-stream

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

watchMyTrades

watches information on multiple trades made by the user

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

See: https://api.docs.extended.exchange/#account-updates-stream

ParamTypeRequiredDescription
symbolstringNounified market symbol of the trades
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
extended.watchMyTrades (symbol?, since?, limit?, params?)

watchPositions

watches information on multiple positions

Kind: instance method of extended
Returns: Array<object> - a list of position structures

See: https://api.docs.extended.exchange/#account-updates-stream

ParamTypeRequiredDescription
symbolsArray<string>Nounified market symbols
sinceintNothe earliest time in ms to fetch positions for
limitintNothe maximum number of position structures to retrieve
paramsobjectNoextra parameters specific to the exchange API endpoint
extended.watchPositions (symbols?, since?, limit?, params?)

watchFundingRate

watch the current funding rate

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

See: https://api.docs.extended.exchange/#funding-rates-stream

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

watchMarkPrice

watches a mark price for a specific market

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

See: https://api.docs.extended.exchange/#mark-price-stream

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

watchTrades

get the list of most recent trades for a particular symbol

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

See: https://api.docs.extended.exchange/#trades-stream

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

watchOHLCV

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

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

See: https://api.docs.extended.exchange/#candles-stream

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
params.candleTypestringNocandle type: 'trades' (default), 'mark-prices', or 'index-prices'
params.pricestringNoignored if params.candleType is set 'mark' or 'index' for mark price and index price candles
extended.watchOHLCV (symbol, timeframe, since?, limit?, params?)

On this page