CCXT

backpack

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

backpack

Kind: global class
Extends: Exchange

fetchCurrencies

fetches all available currencies on an exchange

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

See: https://docs.backpack.exchange/#tag/Assets

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

fetchMarkets

retrieves data on all markets for bitbank

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

See: https://docs.backpack.exchange/#tag/Markets/operation/get_markets

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

fetchTickers

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

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

See: https://docs.backpack.exchange/#tag/Markets/operation/get_tickers

ParamTypeRequiredDescription
symbolsArray<string>, undefinedYesunified 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
backpack.fetchTickers (symbols, 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 backpack
Returns: object - a ticker structure

See: https://docs.backpack.exchange/#tag/Markets/operation/get_ticker

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

fetchOrderBook

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

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

See: https://docs.backpack.exchange/#tag/Markets/operation/get_depth

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market to fetch the order book for
limitintNothe maximum amount of order book entries to return (default 100, max 200)
paramsobjectNoextra parameters specific to the bitteam api endpoint
backpack.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 backpack
Returns: Array<Array<int>> - A list of candles ordered as timestamp, open, high, low, close, volume

See: https://docs.backpack.exchange/#tag/Markets/operation/get_klines

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market to fetch OHLCV data for
timeframestringYesthe length of time each candle represents
sinceintNotimestamp in seconds of the earliest candle to fetch
limitintNothe maximum amount of candles to fetch (default 100)
paramsobjectNoextra parameters specific to the bitteam api endpoint
backpack.fetchOHLCV (symbol, timeframe, since?, limit?, params?)

fetchFundingRate

fetch the current funding rate

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

See: https://docs.backpack.exchange/#tag/Markets/operation/get_mark_prices

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

fetchOpenInterest

Retrieves the open interest of a derivative trading pair

Kind: instance method of backpack
Returns: object - an open interest structure/docs/manual#interest-history-structure

See: https://docs.backpack.exchange/#tag/Markets/operation/get_open_interest

ParamTypeRequiredDescription
symbolstringYesUnified CCXT market symbol
paramsobjectNoexchange specific parameters
backpack.fetchOpenInterest (symbol, params?)

fetchFundingRateHistory

fetches historical funding rate prices

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

See: https://docs.backpack.exchange/#tag/Markets/operation/get_funding_interval_rates

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
paramsobjectNoextra parameters specific to the exchange API endpoint
backpack.fetchFundingRateHistory (symbol, since?, limit?, params?)

fetchTrades

get the list of most recent trades for a particular symbol

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

See

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
params.offsetintNothe number of trades to skip, default is 0
backpack.fetchTrades (symbol, since?, limit?, params?)

fetchMyTrades

fetch all trades made by the user

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

See: https://docs.backpack.exchange/#tag/History/operation/get_fills

ParamTypeRequiredDescription
symbolstringYesunified market symbol
sinceintNothe earliest time in ms to fetch trades for
limitintNothe maximum number of trades structures to retrieve (default 100, max 1000)
paramsobjectNoextra parameters specific to the exchange API endpoint
params.untilintNothe latest time in ms to fetch trades for
params.fillTypestringNo'User' (default) 'BookLiquidation' or 'Adl' or 'Backstop' or 'Liquidation' or 'AllLiquidation' or 'CollateralConversion' or 'CollateralConversionAndSpotLiquidation'
backpack.fetchMyTrades (symbol, since?, limit?, params?)

fetchStatus

the latest known information on the availability of the exchange API

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

See: https://docs.backpack.exchange/#tag/System/operation/get_status

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

fetchTime

fetches the current integer timestamp in milliseconds from the exchange server

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

See: https://developer-pro.bitmart.com/en/spot/#get-system-time

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

fetchBalance

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

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

See: https://docs.backpack.exchange/#tag/Capital/operation/get_balances

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

fetchDeposits

fetch all deposits made to an account

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

See: https://docs.backpack.exchange/#tag/Capital/operation/get_deposits

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
params.untilintNothe latest time in ms to fetch entries for
backpack.fetchDeposits (code, since?, limit?, params?)

fetchWithdrawals

fetch all withdrawals made from an account

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

See: https://docs.backpack.exchange/#tag/Capital/operation/get_withdrawals

ParamTypeRequiredDescription
codestringYesunified currency code of the currency transferred
sinceintNothe earliest time in ms to fetch transfers for (default 24 hours ago)
limitintNothe maximum number of transfer structures to retrieve (default 50, max 200)
paramsobjectNoextra parameters specific to the exchange API endpoint
params.untilintNothe latest time in ms to fetch transfers for (default time now)
backpack.fetchWithdrawals (code, since?, limit?, params?)

withdraw

make a withdrawal

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

See: https://docs.backpack.exchange/#tag/Capital/operation/request_withdrawal

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

fetchDepositAddress

fetch the deposit address for a currency associated with this account

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

See: https://docs.backpack.exchange/#tag/Capital/operation/get_deposit_address

ParamTypeRequiredDescription
codestringYesunified currency code
paramsobjectNoextra parameters specific to the exchange API endpoint
params.networkCodestringNothe network to fetch the deposit address (mandatory)
backpack.fetchDepositAddress (code, params?)

createOrder

create a trade order

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

See: https://docs.backpack.exchange/#tag/Order/operation/execute_order

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 fullfilled, in units of the quote currency, ignored in market orders
paramsobjectNoextra parameters specific to the exchange API endpoint
params.costfloatNomarket orders only the cost of the order in units of the quote currency (could be used instead of amount)
params.clientOrderIdintNoa unique id for the order
params.postOnlybooleanNotrue to place a post only order
params.timeInForcestringNo'GTC', 'IOC', 'FOK' or 'PO'
params.reduceOnlyboolNocontract only Indicates if this order is to reduce the size of a position
params.selfTradePreventionstringNoone of EXPIRE_MAKER, EXPIRE_TAKER or EXPIRE_BOTH
params.autoLendboolNospot margin only if true then the order can lend
params.autoLendRedeemboolNospot margin only if true then the order can redeem a lend if required
params.autoBorrowboolNospot margin only if true then the order can borrow
params.autoBorrowRepayboolNospot margin only if true then the order can repay a borrow
params.triggerPricefloatNothe price that a trigger order is triggered at
params.takeProfitobjectNoswap markets only - takeProfit object in params containing the triggerPrice at which the attached take profit order will be triggered
params.takeProfit.triggerPricefloatNotake profit trigger price
params.takeProfit.pricefloatNotake profit order price (if not provided the order will be a market order)
params.stopLossobjectNoswap markets only - stopLoss object in params containing the triggerPrice at which the attached stop loss order will be triggered
params.stopLoss.triggerPricefloatNostop loss trigger price
params.stopLoss.pricefloatNostop loss order price (if not provided the order will be a market order)
backpack.createOrder (symbol, type, side, amount, price?, params?)

createOrders

create a list of trade orders

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

See: https://docs.backpack.exchange/#tag/Order/operation/execute_order_batch

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
backpack.createOrders (orders, params?)

fetchOpenOrders

fetch all unfilled currently open orders

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

See: https://docs.backpack.exchange/#tag/Order/operation/get_open_orders

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

fetchOpenOrder

fetch an open order by it's id

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

See: https://docs.backpack.exchange/#tag/Order/operation/get_order

ParamTypeRequiredDescription
idstringYesorder id
symbolstringYesnot used by hollaex fetchOpenOrder ()
paramsobjectNoextra parameters specific to the exchange API endpoint
backpack.fetchOpenOrder (id, symbol, params?)

cancelOrder

cancels an open order

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

See: https://docs.backpack.exchange/#tag/Order/operation/cancel_order

ParamTypeRequiredDescription
idstringYesorder id
symbolstringYesunified symbol of the market the order was made in
paramsobjectNoextra parameters specific to the exchange API endpoint
backpack.cancelOrder (id, symbol, params?)

cancelAllOrders

cancel all open orders

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

See: https://docs.backpack.exchange/#tag/Order/operation/cancel_open_orders

ParamTypeRequiredDescription
symbolstringYesunified market symbol, only orders in the market of this symbol are cancelled when symbol is not undefined
paramsobjectNoextra parameters specific to the exchange API endpoint
backpack.cancelAllOrders (symbol, params?)

fetchOrders

fetches information on multiple orders made by the user

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

See: https://docs.backpack.exchange/#tag/History/operation/get_order_history

ParamTypeRequiredDescription
symbolstringYesunified market symbol of the market orders were made in
sinceintNothe earliest time in ms to fetch orders for
limitintNothe maximum number of orde structures to retrieve (default 100, max 1000)
paramsobjectNoextra parameters specific to the bitteam api endpoint
backpack.fetchOrders (symbol, since?, limit?, params?)

fetchPositions

fetch all open positions

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

See: https://docs.backpack.exchange/#tag/Futures/operation/get_positions

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

fetchFundingHistory

fetches the history of funding payments

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

See: https://docs.backpack.exchange/#tag/History/operation/get_funding_payments

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market to fetch trades for
sinceintNotimestamp in ms of the earliest trade to fetch (default 24 hours ago)
limitintNothe maximum amount of trades to fetch (default 200, max 500)
paramsobjectNoextra parameters specific to the exchange API endpoint
params.untilintNotimestamp in ms of the latest trade to fetch (default now)
backpack.fetchFundingHistory (symbol, since?, 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 backpack
Returns: object - a ticker structure

See: https://docs.backpack.exchange/#tag/Streams/Public/Ticker

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

See: https://docs.backpack.exchange/#tag/Streams/Public/Ticker

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

See: https://docs.backpack.exchange/#tag/Streams/Public/Ticker

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

unWatchTickers

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 backpack
Returns: object - a ticker structure

See: https://docs.backpack.exchange/#tag/Streams/Public/Ticker

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

watchBidsAsks

watches best bid & ask for symbols

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

See: https://docs.backpack.exchange/#tag/Streams/Public/Book-ticker

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

unWatchBidsAsks

unWatches best bid & ask for symbols

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

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

watchOHLCV

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

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

See: https://docs.backpack.exchange/#tag/Streams/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
backpack.watchOHLCV (symbol, timeframe, since?, limit?, params?)

unWatchOHLCV

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

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

See: https://docs.backpack.exchange/#tag/Streams/Public/K-Line

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market to fetch OHLCV data for
timeframestringYesthe length of time each candle represents
paramsobjectNoextra parameters specific to the exchange API endpoint
backpack.unWatchOHLCV (symbol, timeframe, params?)

watchOHLCVForSymbols

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

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

See: https://docs.backpack.exchange/#tag/Streams/Public/K-Line

ParamTypeRequiredDescription
symbolsAndTimeframesArray<Array<string>>Yesarray of arrays containing unified symbols and timeframes to fetch OHLCV data for, example [['BTC/USDT', '1m'], ['LTC/USDT', '5m']]
sinceintNotimestamp in ms of the earliest candle to fetch
limitintNothe maximum amount of candles to fetch
paramsobjectNoextra parameters specific to the exchange API endpoint
backpack.watchOHLCVForSymbols (symbolsAndTimeframes, since?, limit?, params?)

unWatchOHLCVForSymbols

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

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

See: https://docs.backpack.exchange/#tag/Streams/Public/K-Line

ParamTypeRequiredDescription
symbolsAndTimeframesArray<Array<string>>Yesarray of arrays containing unified symbols and timeframes to fetch OHLCV data for, example [['BTC/USDT', '1m'], ['LTC/USDT', '5m']]
paramsobjectNoextra parameters specific to the exchange API endpoint
backpack.unWatchOHLCVForSymbols (symbolsAndTimeframes, params?)

watchTrades

watches information on multiple trades made in a market

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

See: https://docs.backpack.exchange/#tag/Streams/Public/Trade

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market to fetch the ticker for
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
backpack.watchTrades (symbol, since?, limit?, params?)

unWatchTrades

unWatches from the stream channel

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

See: https://docs.backpack.exchange/#tag/Streams/Public/Trade

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

watchTradesForSymbols

watches information on multiple trades made in a market

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

See: https://docs.backpack.exchange/#tag/Streams/Public/Trade

ParamTypeRequiredDescription
symbolsArray<string>Yesunified symbol of the market to fetch trades for
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
backpack.watchTradesForSymbols (symbols, since?, limit?, params?)

unWatchTradesForSymbols

unWatches from the stream channel

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

See: https://docs.backpack.exchange/#tag/Streams/Public/Trade

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

watchOrderBook

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

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

See: https://docs.backpack.exchange/#tag/Streams/Public/Depth

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

watchOrderBookForSymbols

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

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

See: https://docs.backpack.exchange/#tag/Streams/Public/Depth

ParamTypeRequiredDescription
symbolsArray<string>Yesunified array of symbols
limitintNothe maximum amount of order book entries to return
paramsobjectNoextra parameters specific to the exchange API endpoint
params.methodstringNoeither '/market/level2' or '/spotMarket/level2Depth5' or '/spotMarket/level2Depth50' default is '/market/level2'
backpack.watchOrderBookForSymbols (symbols, limit?, params?)

unWatchOrderBook

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

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

ParamTypeRequiredDescription
symbolstringYesunified array of symbols
paramsobjectNoextra parameters specific to the exchange API endpoint
backpack.unWatchOrderBook (symbol, params?)

unWatchOrderBookForSymbols

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

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

ParamTypeRequiredDescription
symbolsArray<string>Yesunified array of symbols
paramsobjectNoextra parameters specific to the exchange API endpoint
params.methodstringNoeither '/market/level2' or '/spotMarket/level2Depth5' or '/spotMarket/level2Depth50' default is '/market/level2'
backpack.unWatchOrderBookForSymbols (symbols, params?)

watchOrders

watches information on multiple orders made by the user

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

See: https://docs.backpack.exchange/#tag/Streams/Private/Order-update

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

unWatchOrders

unWatches information on multiple orders made by the user

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

See: https://docs.backpack.exchange/#tag/Streams/Private/Order-update

ParamTypeRequiredDescription
symbolstringNounified market symbol of the market orders were made in
paramsobjectNoextra parameters specific to the exchange API endpoint
backpack.unWatchOrders (symbol?, params?)

watchPositions

watch all open positions

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

See: https://docs.backpack.exchange/#tag/Streams/Private/Position-update

ParamTypeRequiredDescription
symbolsArray<string>Nolist of unified market symbols to watch positions for
sinceintNothe earliest time in ms to fetch positions for
limitintNothe maximum number of positions to retrieve
paramsobjectYesextra parameters specific to the exchange API endpoint
backpack.watchPositions (symbols?, since?, limit?, params)

unWatchPositions

unWatches from the stream channel

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

See: https://docs.backpack.exchange/#tag/Streams/Private/Position-update

ParamTypeRequiredDescription
symbolsArray<string>Nolist of unified market symbols to watch positions for
paramsobjectYesextra parameters specific to the exchange API endpoint
backpack.unWatchPositions (symbols?, params)

On this page