CCXT

deepcoin

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

deepcoin

Kind: global class
Extends: Exchange

fetchMarkets

retrieves data on all markets for okcoin

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

See: https://www.deepcoin.com/docs/DeepCoinMarket/getBaseInfo

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

fetchOrderBook

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

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

See: https://www.deepcoin.com/docs/DeepCoinMarket/marketBooks

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

See

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.untilintNotimestamp in ms of the latest candle to fetch
params.pricestringNo"mark" or "index" for mark price and index price candles
params.paginatebooleanNodefault false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the available parameters
deepcoin.fetchOHLCV (symbol, timeframe, since?, limit?, params?)

fetchTickers

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

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

See: https://www.deepcoin.com/docs/DeepCoinMarket/getMarketTickers

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
deepcoin.fetchTickers (symbols?, params?)

fetchTrades

get the list of most recent trades for a particular symbol

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

See: https://www.deepcoin.com/docs/DeepCoinMarket/getTrades

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 (default 100, max 500)
paramsobjectNoextra parameters specific to the exchange API endpoint
deepcoin.fetchTrades (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 deepcoin
Returns: object - a balance structure

See: https://www.deepcoin.com/docs/DeepCoinAccount/getAccountBalance

ParamTypeRequiredDescription
paramsobjectNoextra parameters specific to the exchange API endpoint
params.typestringNo"spot" or "swap", the market type for the balance
deepcoin.fetchBalance (params?)

fetchDeposits

fetch all deposits made to an account

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

See: https://www.deepcoin.com/docs/assets/deposit

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
params.paginatebooleanNodefault false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the available parameters
deepcoin.fetchDeposits (code, since?, limit?, params?)

fetchWithdrawals

fetch all withdrawals made from an account

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

See: https://www.deepcoin.com/docs/assets/withdraw

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)
params.paginatebooleanNodefault false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the available parameters
deepcoin.fetchWithdrawals (code, since?, limit?, params?)

fetchDepositAddresses

fetch deposit addresses for multiple currencies and chain types

Kind: instance method of deepcoin
Returns: object - a list of address structures

See: https://www.deepcoin.com/docs/assets/chainlist

ParamTypeRequiredDescription
codesArray<string>, undefinedYeslist of unified currency codes, default is undefined
paramsobjectNoextra parameters specific to the exchange API endpoint
deepcoin.fetchDepositAddresses (codes, params?)

fetchDepositAddress

fetch the deposit address for a currency associated with this account

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

See: https://www.deepcoin.com/docs/assets/chainlist

ParamTypeRequiredDescription
codestringYesunified currency code
paramsobjectNoextra parameters specific to the exchange API endpoint
params.networkstringNounified network code for deposit chain
deepcoin.fetchDepositAddress (code, 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 deepcoin
Returns: Array<object> - a list of ledger structures

See: https://www.deepcoin.com/docs/DeepCoinAccount/getAccountBills

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.untilintNotimestamp in ms of the latest ledger entry
params.typestringNo'spot' or 'swap', the market type for the ledger (default 'spot')
deepcoin.fetchLedger (code?, since?, limit?, params?)

transfer

transfer currency internally between wallets on the same account

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

See: https://www.deepcoin.com/docs/assets/transfer

ParamTypeRequiredDescription
codestringYesunified currency code
amountfloatYesamount to transfer
fromAccountstringYesaccount to transfer from ('spot', 'inverse', 'linear', 'fund', 'rebate' or 'demo')
toAccountstringYesaccount to transfer to ('spot', 'inverse', 'linear', 'fund', 'rebate' or 'demo')
paramsobjectNoextra parameters specific to the exchange API endpoint
params.userIdstringNouser id
deepcoin.transfer (code, amount, fromAccount, toAccount, params?)

createOrder

create a trade order

Kind: instance method of deepcoin
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.clientOrderIdstringNoa unique id for the order
params.timeInForcestringNonon trigger orders only 'GTC' (Good Till Cancel), 'IOC' (Immediate Or Cancel) or 'PO' (Post Only)
params.postOnlyboolNonon trigger orders only true to place a post only order
params.reduceOnlyboolNonon trigger orders only a mark to reduce the position size for margin, swap and future orders
params.triggerPricefloatNothe price a trigger order is triggered at
params.stopLoss.triggerPricefloatNothe price that a stop loss order is triggered at
params.takeProfit.triggerPricefloatNothe price that a take profit order is triggered at
params.positionSidestringNoif position mode is one-way: set to 'net', if position mode is hedge-mode: set to 'long' or 'short'
params.hedgedboolNoswap only true for hedged mode, false for one way mode
params.marginModestringNoswap only'cross' or 'isolated', the default is 'cash' for spot and 'cross' for swap
deepcoin.createOrder (symbol, type, side, amount, price?, params?)

createMarketOrderWithCost

create a market order by providing the symbol, side and cost

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

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market to create an order in
sidestringYes'buy' or 'sell'
costfloatYeshow much you want to trade in units of the quote currency
paramsobjectNoextra parameters specific to the exchange API endpoint
deepcoin.createMarketOrderWithCost (symbol, side, cost, params?)

createMarketBuyOrderWithCost

create a market buy order by providing the symbol and cost

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

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
deepcoin.createMarketBuyOrderWithCost (symbol, cost, params?)

createMarketSellOrderWithCost

create a market sell order by providing the symbol and cost

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

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
deepcoin.createMarketSellOrderWithCost (symbol, cost, params?)

fetchClosedOrder

fetches information on a closed order made by the user

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

See: https://www.deepcoin.com/docs/DeepCoinTrade/finishOrderByID

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

fetchOpenOrder

fetch an open order by it's id

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

See: https://www.deepcoin.com/docs/DeepCoinTrade/orderByID

ParamTypeRequiredDescription
idstringYesorder id
symbolstringYesunified market symbol, default is undefined
paramsobjectNoextra parameters specific to the exchange API endpoint
deepcoin.fetchOpenOrder (id, symbol, params?)

fetchCanceledAndClosedOrders

fetches information on multiple canceled and closed orders made by the user

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

See

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
params.triggerboolNowhether to fetch trigger/algo orders (default false)
params.typestringNonon trigger orders only 'spot' or 'swap', the market type for the orders
params.statestringNonon trigger orders only 'canceled' or 'filled', the order state to filter by
params.OrderTypestringNotrigger orders only 'limit' or 'market'
params.paginatebooleanNodefault false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the available parameters
deepcoin.fetchCanceledAndClosedOrders (symbol?, since?, limit?, params?)

fetchCanceledOrders

fetches information on multiple canceled orders made by the user

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

See: https://www.deepcoin.com/docs/DeepCoinTrade/ordersHistory

ParamTypeRequiredDescription
symbolstringYesunified market symbol of the market the 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.typestringNo'spot' or 'swap', the market type for the orders
deepcoin.fetchCanceledOrders (symbol, since?, limit?, params?)

fetchClosedOrders

fetches information on multiple closed orders made by the user

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

See: https://www.deepcoin.com/docs/DeepCoinTrade/ordersHistory

ParamTypeRequiredDescription
symbolstringYesunified market symbol of the market the 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.typestringNo'spot' or 'swap', the market type for the orders
deepcoin.fetchClosedOrders (symbol, since?, limit?, params?)

fetchOpenOrders

fetch all unfilled currently open orders

Kind: instance method of deepcoin
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.triggerboolNowhether to fetch trigger/algo orders (default false)
params.indexintNonon trigger orders only pagination index, default is 1
params.orderTypestringNotrigger orders only 'limit' or 'market'
deepcoin.fetchOpenOrders (symbol, since?, limit?, params?)

cancelOrder

cancels an open order

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

See: https://www.deepcoin.com/docs/DeepCoinTrade/cancelOrder

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

cancelAllOrders

cancel all open orders in a market

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

See: https://www.deepcoin.com/docs/DeepCoinTrade/cancelAllOrder

ParamTypeRequiredDescription
symbolstringYesunified market symbol of the market to cancel orders in
paramsobjectNoextra parameters specific to the exchange API endpoint
params.marginModestringNoswap only 'cross' or 'isolated', the default is 'cash' for spot and 'cross' for swap
params.mergedboolNoswap only true for merged positions, false for split positions (default true)
deepcoin.cancelAllOrders (symbol, params?)

editOrder

edit a trade order

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

See

ParamTypeRequiredDescription
idstringYescancel order id
symbolstringNounified symbol of the market to create an order in (not used in deepcoin editOrder)
typestringNo'market' or 'limit' (not used in deepcoin editOrder)
sidestringNo'buy' or 'sell' (not used in deepcoin editOrder)
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, ignored in market orders
paramsobjectNoextra parameters specific to the exchange API endpoint
params.stopLossPricefloatNothe price that a stop loss order is triggered at
params.takeProfitPricefloatNothe price that a take profit order is triggered at
deepcoin.editOrder (id, symbol?, type?, side?, amount?, price?, params?)

cancelOrders

cancel multiple orders

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

ParamTypeRequiredDescription
idsArray<string>Yesorder ids
symbolstringNounified market symbol, default is undefined
paramsobjectNoextra parameters specific to the exchange API endpoint
deepcoin.cancelOrders (ids, symbol?, params?)

fetchPositionsForSymbol

fetch all open positions for specific symbol

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

See: https://www.deepcoin.com/docs/DeepCoinAccount/accountPositions

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

fetchPositions

fetch all open positions

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

See: https://www.deepcoin.com/docs/DeepCoinAccount/accountPositions

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

setLeverage

set the level of leverage for a market

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

See: https://www.deepcoin.com/docs/DeepCoinAccount/accountSetLeverage

ParamTypeRequiredDescription
leveragefloatYesthe rate of leverage
symbolstringYesunified market symbol
paramsobjectNoextra parameters specific to the exchange API endpoint
params.marginModestringNo'cross' or 'isolated' (default is cross)
params.mrgPositionstringNo'merge' or 'split', default is merge
deepcoin.setLeverage (leverage, symbol, params?)

fetchFundingRates

fetch the funding rate for multiple markets

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

See: https://www.deepcoin.com/docs/DeepCoinTrade/currentFundRate

ParamTypeRequiredDescription
symbolsArray<string>, undefinedYeslist of unified market symbols
paramsobjectNoextra parameters specific to the exchange API endpoint
params.subTypestringNo"linear" or "inverse"
deepcoin.fetchFundingRates (symbols, params?)

fetchFundingRate

fetch the current funding rate

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

See: https://www.deepcoin.com/docs/DeepCoinTrade/currentFundRate

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

fetchFundingRateHistory

fetches historical funding rate prices

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

See: https://www.deepcoin.com/docs/DeepCoinTrade/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.pageintNopagination page number
deepcoin.fetchFundingRateHistory (symbol, since?, limit?, params?)

fetchMyTrades

fetch all trades made by the user

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

See: https://www.deepcoin.com/docs/DeepCoinTrade/tradeFills

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.untilintNotimestamp in ms of the latest trade to fetch
params.typestringNo'spot' or 'swap', the market type for the trades (default is 'spot')
params.paginatebooleanNodefault false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the available parameters
deepcoin.fetchMyTrades (symbol, since?, limit?, params?)

fetchOrderTrades

fetch all the trades made from a single order

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

See: https://www.deepcoin.com/docs/DeepCoinTrade/tradeFills

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
params.typestringNo'spot' or 'swap', the market type for the trades
deepcoin.fetchOrderTrades (id, symbol, since?, limit?, params?)

closePosition

closes open positions for a market

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

See

ParamTypeRequiredDescription
symbolstringYesUnified CCXT market symbol
sidestringNonot used by deepcoin
paramsobjectNoextra parameters specific to the exchange API endpoint
params.positionIdstring, undefinedNothe id of the position you would like to close
params.positionIdsArray<string>, undefinedNolist of position ids to close (for batch closing)
deepcoin.closePosition (symbol, side?, 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 deepcoin
Returns: object - a ticker structure

See: https://www.deepcoin.com/docs/publicWS/latestMarketData

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

See: https://www.deepcoin.com/docs/publicWS/latestMarketData

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

watchTrades

watches information on multiple trades made in a market

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

See: https://www.deepcoin.com/docs/publicWS/lastTransactions

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

unWatchTrades

unWatches the list of most recent trades for a particular symbol

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

See: https://www.deepcoin.com/docs/publicWS/lastTransactions

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

watchOHLCV

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

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

See: https://www.deepcoin.com/docs/publicWS/KLines

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market to fetch OHLCV data for
timeframestringNothe 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
deepcoin.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 deepcoin
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
timeframestringNothe length of time each candle represents
paramsobjectNoextra parameters specific to the exchange API endpoint
deepcoin.unWatchOHLCV (symbol, timeframe?, params?)

watchOrderBook

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

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

See: https://www.deepcoin.com/docs/publicWS/25LevelIncrementalMarketData

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
deepcoin.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 deepcoin
Returns: object - A dictionary of order book structures indexed by market symbols

See: https://www.deepcoin.com/docs/publicWS/25LevelIncrementalMarketData

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

watchMyTrades

watches information on multiple trades made by the user

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

See: https://www.deepcoin.com/docs/privateWS/Trade

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

watchOrders

watches information on multiple orders made by the user

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

See: https://www.deepcoin.com/docs/privateWS/order

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

watchPositions

watch all open positions

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

See: https://www.deepcoin.com/docs/privateWS/Position

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
deepcoin.watchPositions (symbols?, since?, limit?, params)

On this page