CCXT

cryptocom

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

cryptocom

Kind: global class
Extends: Exchange

fetchCurrencies

fetches all available currencies on an exchange

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

See: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-get-currency-networks

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

fetchMarkets

retrieves data on all markets for cryptocom

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

See: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#public-get-instruments

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

fetchTickers

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

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

See

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

See: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#public-get-tickers

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

fetchOrders

fetches information on multiple orders made by the user

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

See: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-get-order-history

ParamTypeRequiredDescription
symbolstringYesunified market symbol of the market the orders were made in
sinceintNothe earliest time in ms to fetch orders for, max date range is one day
limitintNothe maximum number of order structures to retrieve, default 100 max 100
paramsobjectNoextra parameters specific to the exchange API endpoint
params.untilintNotimestamp in ms for the ending date filter, default is the current time
params.paginatebooleanNodefault false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the availble parameters
cryptocom.fetchOrders (symbol, since?, limit?, params?)

fetchTrades

get a list of the most recent trades for a particular symbol

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

See: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#public-get-trades

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market to fetch trades for
sinceintNotimestamp in ms of the earliest trade to fetch, maximum date range is one day
limitintNothe maximum number of trades to fetch
paramsobjectNoextra parameters specific to the exchange API endpoint
params.untilintNotimestamp in ms for the ending date filter, default is the current time
params.paginatebooleanNodefault false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the availble parameters
cryptocom.fetchTrades (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 cryptocom
Returns: Array<Array<int>> - A list of candles ordered as timestamp, open, high, low, close, volume

See: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#public-get-candlestick

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 for the ending date filter, default is the current time
params.paginatebooleanNodefault false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the availble parameters
cryptocom.fetchOHLCV (symbol, timeframe, since?, limit?, params?)

fetchOrderBook

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

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

See: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#public-get-book

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

fetchBalance

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

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

See: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-user-balance

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

fetchOrder

fetches information on an order made by the user

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

See: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-get-order-detail

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

createOrder

create a trade order

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

See: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-create-order

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market to create an order in
typestringYes'market', 'limit', 'stop_loss', 'stop_limit', 'take_profit', 'take_profit_limit'
sidestringYes'buy' or 'sell'
amountfloatYeshow much 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.timeInForcestringNo'GTC', 'IOC', 'FOK' or 'PO'
params.ref_price_typestringNo'MARK_PRICE', 'INDEX_PRICE', 'LAST_PRICE' which trigger price type to use, default is MARK_PRICE
params.triggerPricefloatNoprice to trigger a trigger order
params.stopLossPricefloatNoprice to trigger a stop-loss trigger order
params.takeProfitPricefloatNoprice to trigger a take-profit trigger order
cryptocom.createOrder (symbol, type, side, amount, price?, params?)

createOrders

create a list of trade orders

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

See

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

editOrder

edit a trade order

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

See: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-amend-order

ParamTypeRequiredDescription
idstringYesorder id
symbolstringYesunified market symbol of the order to edit
typestringNonot used by cryptocom editOrder
sidestringNonot used by cryptocom editOrder
amountfloatYes(mandatory) how much of the currency you want to trade in units of the base currency
pricefloatYes(mandatory) the price for the order, in units of the quote currency, ignored in market orders
paramsobjectNoextra parameters specific to the exchange API endpoint
params.clientOrderIdstringNothe original client order id of the order to edit, required if id is not provided
cryptocom.editOrder (id, symbol, type?, side?, amount, price, params?)

cancelAllOrders

cancel all open orders

Kind: instance method of cryptocom
Returns: object - Returns exchange raw message/docs/manual#order-structure

See: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-cancel-all-orders

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

cancelOrder

cancels an open order

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

See: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-cancel-order

ParamTypeRequiredDescription
idstringYesthe order id of the order to cancel
symbolstringNounified symbol of the market the order was made in
paramsobjectNoextra parameters specific to the exchange API endpoint
cryptocom.cancelOrder (id, symbol?, params?)

cancelOrders

cancel multiple orders

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

See: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-cancel-order-list-list

ParamTypeRequiredDescription
idsArray<string>Yesorder ids
symbolstringYesunified market symbol
paramsobjectNoextra parameters specific to the exchange API endpoint
cryptocom.cancelOrders (ids, symbol, params?)

cancelOrdersForSymbols

cancel multiple orders for multiple symbols

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

See: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-cancel-order-list-list

ParamTypeRequiredDescription
ordersArray<CancellationRequest>Yeseach order should contain the parameters required by cancelOrder namely id and symbol, example [{"id": "a", "symbol": "BTC/USDT"}, {"id": "b", "symbol": "ETH/USDT"}]
paramsobjectNoextra parameters specific to the exchange API endpoint
cryptocom.cancelOrdersForSymbols (orders, params?)

fetchOpenOrders

fetch all unfilled currently open orders

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

See: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-get-open-orders

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

fetchMyTrades

fetch all trades made by the user

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

See: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-get-trades

ParamTypeRequiredDescription
symbolstringYesunified market symbol
sinceintNothe earliest time in ms to fetch trades for, maximum date range is one day
limitintNothe maximum number of trade structures to retrieve
paramsobjectNoextra parameters specific to the exchange API endpoint
params.untilintNotimestamp in ms for the ending date filter, default is the current time
params.paginatebooleanNodefault false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the availble parameters
cryptocom.fetchMyTrades (symbol, since?, limit?, params?)

withdraw

make a withdrawal

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

See: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-create-withdrawal

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

fetchDepositAddressesByNetwork

fetch a dictionary of addresses for a currency, indexed by network

Kind: instance method of cryptocom
Returns: object - a dictionary of address structures indexed by the network

See: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-get-deposit-address

ParamTypeRequiredDescription
codestringYesunified currency code of the currency for the deposit address
paramsobjectNoextra parameters specific to the exchange API endpoint
cryptocom.fetchDepositAddressesByNetwork (code, params?)

fetchDepositAddress

fetch the deposit address for a currency associated with this account

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

See: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-get-deposit-address

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

fetchDeposits

fetch all deposits made to an account

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

See: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-get-deposit-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
params.untilintNotimestamp in ms for the ending date filter, default is the current time
cryptocom.fetchDeposits (code, since?, limit?, params?)

fetchWithdrawals

fetch all withdrawals made from an account

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

See: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-get-withdrawal-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
params.untilintNotimestamp in ms for the ending date filter, default is the current time
cryptocom.fetchWithdrawals (code, since?, limit?, params?)

fetchDepositWithdrawFees

fetch deposit and withdraw fees

Kind: instance method of cryptocom
Returns: object - a list of fee structures

See: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-get-currency-networks

ParamTypeRequiredDescription
codesArray<string>, undefinedYeslist of unified currency codes
paramsobjectNoextra parameters specific to the exchange API endpoint
cryptocom.fetchDepositWithdrawFees (codes, 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 cryptocom
Returns: object - a ledger structure

See: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-get-transactions

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 for the ending date filter, default is the current time
cryptocom.fetchLedger (code?, since?, limit?, params?)

fetchAccounts

fetch all the accounts associated with a profile

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

See: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-get-accounts

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

fetchSettlementHistory

fetches historical settlement records

Kind: instance method of cryptocom
Returns: Array<object> - a list of settlement history objects

See: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#public-get-expired-settlement-price

ParamTypeRequiredDescription
symbolstringYesunified market symbol of the settlement history
sinceintNotimestamp in ms
limitintNonumber of records
paramsobjectNoexchange specific params
params.typeintNo'future', 'option'
cryptocom.fetchSettlementHistory (symbol, since?, limit?, params?)

fetchFundingRate

fetches historical funding rates

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

See: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#public-get-valuations

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market to fetch the funding rate history for
paramsobjectNoextra parameters specific to the exchange API endpoint
cryptocom.fetchFundingRate (symbol, params?)

fetchFundingRateHistory

fetches historical funding rates

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

See: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#public-get-valuations

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 for the ending date filter, default is the current time
params.paginatebooleanNodefault false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the availble parameters
cryptocom.fetchFundingRateHistory (symbol, since?, limit?, params?)

fetchPosition

fetch data on a single open contract trade position

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

See: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-get-positions

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

fetchPositions

fetch all open positions

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

See: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-get-positions

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

closePositions

closes open positions for a market

Kind: instance method of cryptocom
Returns: Array<object> - A list of position structures

See: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-close-position

ParamTypeRequiredDescription
symbolstringYesUnified CCXT market symbol
sidestringNonot used by cryptocom.closePositions
paramsobjectNoextra parameters specific to the okx api endpoint EXCHANGE SPECIFIC PARAMETERS
params.typestringNoLIMIT or MARKET
params.pricenumberNofor limit orders only
cryptocom.closePositions (symbol, side?, params?)

fetchTradingFee

fetch the trading fees for a market

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

See: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-get-instrument-fee-rate

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

fetchTradingFees

fetch the trading fees for multiple markets

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

See: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-get-fee-rate

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

watchOrderBook

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

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

See: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#book-instrument_name

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.bookSubscriptionTypestringNoThe subscription type. Allowed values: SNAPSHOT full snapshot. This is the default if not specified. SNAPSHOT_AND_UPDATE delta updates
params.bookUpdateFrequencyintNoBook update interval in ms. Allowed values: 100 for snapshot subscription 10 for delta subscription
cryptocom.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 cryptocom
Returns: object - A dictionary of order book structures indexed by market symbols

See: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#book-instrument_name

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market to fetch the order book for
paramsobjectNoextra parameters specific to the exchange API endpoint
params.bookSubscriptionTypestringNoThe subscription type. Allowed values: SNAPSHOT full snapshot. This is the default if not specified. SNAPSHOT_AND_UPDATE delta updates
params.bookUpdateFrequencyintNoBook update interval in ms. Allowed values: 100 for snapshot subscription 10 for delta subscription
cryptocom.unWatchOrderBook (symbol, params?)

watchOrderBookForSymbols

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

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

See: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#book-instrument_name

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.bookSubscriptionTypestringNoThe subscription type. Allowed values: SNAPSHOT full snapshot. This is the default if not specified. SNAPSHOT_AND_UPDATE delta updates
params.bookUpdateFrequencyintNoBook update interval in ms. Allowed values: 100 for snapshot subscription 10 for delta subscription
cryptocom.watchOrderBookForSymbols (symbols, limit?, params?)

unWatchOrderBookForSymbols

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

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

See: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#book-instrument_name

ParamTypeRequiredDescription
symbolsArray<string>Yesunified array of symbols
paramsobjectNoextra parameters specific to the exchange API endpoint
params.limitintNoorderbook limit, default is 50
params.bookSubscriptionTypestringNoThe subscription type. Allowed values: SNAPSHOT full snapshot. This is the default if not specified. SNAPSHOT_AND_UPDATE delta updates
params.bookUpdateFrequencyintNoBook update interval in ms. Allowed values: 100 for snapshot subscription 10 for delta subscription
cryptocom.unWatchOrderBookForSymbols (symbols, params?)

watchTrades

get the list of most recent trades for a particular symbol

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

See: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#trade-instrument_name

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

unWatchTrades

get the list of most recent trades for a particular symbol

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

See: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#trade-instrument_name

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

watchTradesForSymbols

get the list of most recent trades for a particular symbol

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

See: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#trade-instrument_name

ParamTypeRequiredDescription
symbolsArray<string>Yesunified 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
cryptocom.watchTradesForSymbols (symbols, since?, limit?, params?)

unWatchTradesForSymbols

get the list of most recent trades for a particular symbol

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

See: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#trade-instrument_name

ParamTypeRequiredDescription
symbolsArray<string>Nolist of unified market symbols to unwatch trades for
paramsobjectNoextra parameters specific to the exchange API endpoint
cryptocom.unWatchTradesForSymbols (symbols?, params?)

watchMyTrades

watches information on multiple trades made by the user

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

See: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#user-trade-instrument_name

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
cryptocom.watchMyTrades (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 cryptocom
Returns: object - a ticker structure

See: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#ticker-instrument_name

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

See: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#ticker-instrument_name

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

See: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#ticker-instrument_name

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

unWatchTickers

unWatches a price ticker

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

See: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#ticker-instrument_name

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

watchBidsAsks

watches best bid & ask for symbols

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

See: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#ticker-instrument_name

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

See: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#candlestick-time_frame-instrument_name

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

unWatchOHLCV

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

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

See: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#candlestick-time_frame-instrument_name

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
cryptocom.unWatchOHLCV (symbol, timeframe, params?)

watchOrders

watches information on multiple orders made by the user

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

See: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#user-order-instrument_name

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

watchPositions

watch all open positions

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

See: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#user-position_balance

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
cryptocom.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 cryptocom
Returns: object - a balance structure

See: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#user-balance

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

createOrderWs

create a trade order

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

See: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-create-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 fulfilled, in units of the quote currency, ignored in market orders
paramsobjectNoextra parameters specific to the exchange API endpoint
cryptocom.createOrderWs (symbol, type, side, amount, price?, params?)

editOrderWs

edit a trade order

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

See: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-amend-order

ParamTypeRequiredDescription
idstringYesorder id
symbolstringYesunified market symbol of the order to edit
typestringNonot used by cryptocom editOrder
sidestringNonot used by cryptocom editOrder
amountfloatYes(mandatory) how much of the currency you want to trade in units of the base currency
pricefloatYes(mandatory) the price for the order, in units of the quote currency, ignored in market orders
paramsobjectNoextra parameters specific to the exchange API endpoint
params.clientOrderIdstringNothe original client order id of the order to edit, required if id is not provided
cryptocom.editOrderWs (id, symbol, type?, side?, amount, price, params?)

cancelOrderWs

cancels an open order

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

See: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-cancel-order

ParamTypeRequiredDescription
idstringYesthe order id of the order to cancel
symbolstringNounified symbol of the market the order was made in
paramsobjectNoextra parameters specific to the exchange API endpoint
cryptocom.cancelOrderWs (id, symbol?, params?)

cancelAllOrdersWs

cancel all open orders

Kind: instance method of cryptocom
Returns: object - Returns exchange raw message /docs/manual#order-structure

See: https://exchange-docs.crypto.com/exchange/v1/rest-ws/index.html#private-cancel-all-orders

ParamTypeRequiredDescription
symbolstringYesunified market symbol of the orders to cancel
paramsobjectNoextra parameters specific to the exchange API endpoint
cryptocom.cancelAllOrdersWs (symbol, params?)

On this page