CCXT

ascendex

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

ascendex

Kind: global class
Extends: Exchange

fetchCurrencies

fetches all available currencies on an exchange

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

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

fetchMarkets

retrieves data on all markets for ascendex

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

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

fetchTime

fetches the current integer timestamp in milliseconds from the ascendex server

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

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

fetchAccounts

fetch all the accounts associated with a profile

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

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

fetchBalance

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

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

See

ParamTypeRequiredDescription
paramsobjectNoextra parameters specific to the exchange API endpoint
params.typestringNowallet type, 'spot', 'margin', or 'swap'
params.marginModestringNo'cross' or undefined, for spot margin trading, value of 'isolated' is invalid
ascendex.fetchBalance (params?)

fetchOrderBook

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

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

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
ascendex.fetchOrderBook (symbol, limit?, 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 ascendex
Returns: object - a ticker structure

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

fetchTickers

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

Kind: instance method of ascendex
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
ascendex.fetchTickers (symbols, params?)

fetchOHLCV

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

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

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

fetchTrades

get the list of most recent trades for a particular symbol

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

See: https://ascendex.github.io/ascendex-pro-api/#market-trades

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market to fetch trades for
sinceintNotimestamp in ms of the earliest trade to fetch
limitintNothe maximum amount of trades to fetch
paramsobjectNoextra parameters specific to the exchange API endpoint
ascendex.fetchTrades (symbol, since?, limit?, params?)

fetchTradingFees

fetch the trading fees for multiple markets

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

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

createOrder

create a trade order on the exchange

Kind: instance method of ascendex
Returns: An order structure

See

ParamTypeRequiredDescription
symbolstringYesunified CCXT market symbol
typestringYes"limit" or "market"
sidestringYes"buy" or "sell"
amountfloatYesthe amount of currency to trade
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.postOnlyboolNotrue or false
params.triggerPricefloatNothe price at which a trigger order is triggered at
params.takeProfitobjectNotakeProfit object in params containing the triggerPrice that the attached take profit order will be triggered (perpetual swap markets only)
params.takeProfit.triggerPricefloatNoswap only take profit trigger price
params.stopLossobjectNostopLoss object in params containing the triggerPrice that the attached stop loss order will be triggered (perpetual swap markets only)
params.stopLoss.triggerPricefloatNoswap only stop loss trigger price
ascendex.createOrder (symbol, type, side, amount, price?, params?)

createOrders

create a list of trade orders

Kind: instance method of ascendex
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
params.timeInForcestringNo"GTC", "IOC", "FOK", or "PO"
params.postOnlyboolNotrue or false
params.triggerPricefloatNothe price at which a trigger order is triggered at
ascendex.createOrders (orders, params?)

fetchOrder

fetches information on an order made by the user

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

See

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

fetchOpenOrders

fetch all unfilled currently open orders

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

See

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

fetchClosedOrders

fetches information on multiple closed orders made by the user

Kind: instance method of ascendex
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.untilintNothe latest time in ms to fetch orders for
ascendex.fetchClosedOrders (symbol, since?, limit?, params?)

cancelOrder

cancels an open order

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

See

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

cancelAllOrders

cancel all open orders

Kind: instance method of ascendex
Returns: Array<object> - a list with a single order structure with the response assigned to the info property

See

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
ascendex.cancelAllOrders (symbol, params?)

fetchDepositAddress

fetch the deposit address for a currency associated with this account

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

See: https://ascendex.github.io/ascendex-pro-api/#query-deposit-addresses

ParamTypeRequiredDescription
codestringYesunified currency code
paramsobjectNoextra parameters specific to the exchange API endpoint
params.networkstringNounified network code for deposit chain
ascendex.fetchDepositAddress (code, params?)

fetchDeposits

fetch all deposits made to an account

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

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
ascendex.fetchDeposits (code, since?, limit?, params?)

fetchWithdrawals

fetch all withdrawals made from an account

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

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
ascendex.fetchWithdrawals (code, since?, limit?, params?)

fetchDepositsWithdrawals

fetch history of deposits and withdrawals

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

ParamTypeRequiredDescription
codestringNounified currency code for the currency of the deposit/withdrawals, default is undefined
sinceintNotimestamp in ms of the earliest deposit/withdrawal, default is undefined
limitintNomax number of deposit/withdrawals to return, default is undefined
paramsobjectNoextra parameters specific to the exchange API endpoint
ascendex.fetchDepositsWithdrawals (code?, since?, limit?, params?)

fetchPositions

fetch all open positions

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

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

fetchFundingRates

fetch the funding rate for multiple markets

Kind: instance method of ascendex
Returns: Array<object> - a list of funding rates structures, indexe by market symbols

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

reduceMargin

remove margin from a position

Kind: instance method of ascendex
Returns: object - a margin structure

ParamTypeRequiredDescription
symbolstringYesunified market symbol
amountfloatYesthe amount of margin to remove
paramsobjectNoextra parameters specific to the exchange API endpoint
ascendex.reduceMargin (symbol, amount, params?)

addMargin

add margin

Kind: instance method of ascendex
Returns: object - a margin structure

ParamTypeRequiredDescription
symbolstringYesunified market symbol
amountfloatYesamount of margin to add
paramsobjectNoextra parameters specific to the exchange API endpoint
ascendex.addMargin (symbol, amount, params?)

setLeverage

set the level of leverage for a market

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

See: https://ascendex.github.io/ascendex-futures-pro-api-v2/#change-contract-leverage

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

setMarginMode

set margin mode to 'cross' or 'isolated'

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

See: https://ascendex.github.io/ascendex-futures-pro-api-v2/#change-margin-type

ParamTypeRequiredDescription
marginModestringYes'cross' or 'isolated'
symbolstringYesunified market symbol
paramsobjectNoextra parameters specific to the exchange API endpoint
ascendex.setMarginMode (marginMode, symbol, params?)

fetchLeverageTiers

retrieve information on the maximum leverage, and maintenance margin for trades of varying trade sizes

Kind: instance method of ascendex
Returns: object - a dictionary of leverage tiers structures, indexed by market symbols

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

fetchDepositWithdrawFees

fetch deposit and withdraw fees

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

See: https://ascendex.github.io/ascendex-pro-api/#list-all-assets

ParamTypeRequiredDescription
codesArray<string>, undefinedYeslist of unified currency codes
paramsobjectNoextra parameters specific to the exchange API endpoint
ascendex.fetchDepositWithdrawFees (codes, params?)

transfer

transfer currency internally between wallets on the same account

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

ParamTypeRequiredDescription
codestringYesunified currency codeåå
amountfloatYesamount to transfer
fromAccountstringYesaccount to transfer from
toAccountstringYesaccount to transfer to
paramsobjectNoextra parameters specific to the exchange API endpoint
ascendex.transfer (code, amount, fromAccount, toAccount, params?)

fetchFundingHistory

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

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

See: https://ascendex.github.io/ascendex-futures-pro-api-v2/#funding-payment-history

ParamTypeRequiredDescription
symbolstringNounified market symbol
sinceintNothe earliest time in ms to fetch funding history for
limitintNothe maximum number of funding history structures to retrieve
paramsobjectNoextra parameters specific to the exchange API endpoint
params.paginatebooleanNodefault false, when true will automatically paginate by calling this endpoint multiple times. See in the docs all the available parameters
ascendex.fetchFundingHistory (symbol?, since?, limit?, params?)

fetchMarginModes

fetches the set margin mode of the user

Kind: instance method of ascendex
Returns: object - a list of margin mode structures

See: https://ascendex.github.io/ascendex-futures-pro-api-v2/#position

ParamTypeRequiredDescription
symbolsArray<string>Noa list of unified market symbols
paramsobjectNoextra parameters specific to the exchange API endpoint
ascendex.fetchMarginModes (symbols?, params?)

fetchLeverages

fetch the set leverage for all contract markets

Kind: instance method of ascendex
Returns: object - a list of leverage structures

See: https://ascendex.github.io/ascendex-futures-pro-api-v2/#position

ParamTypeRequiredDescription
symbolsArray<string>Noa list of unified market symbols
paramsobjectNoextra parameters specific to the exchange API endpoint
ascendex.fetchLeverages (symbols?, params?)

fetchOpenInterests

Retrieves the open interest for a list of symbols

Kind: instance method of ascendex
Returns: Array<object> - a list of open interest structures

See: https://ascendex.github.io/ascendex-futures-pro-api-v2/#futures-pricing-data

ParamTypeRequiredDescription
symbolsArray<string>Noa list of unified CCXT market symbols
paramsobjectNoexchange specific parameters
ascendex.fetchOpenInterests (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 ascendex
Returns: Array<Array<int>> - A list of candles ordered as timestamp, open, high, low, close, volume

See: https://ascendex.github.io/ascendex-pro-api/#channel-bar-data

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

watchTrades

get the list of most recent trades for a particular symbol

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

See: https://ascendex.github.io/ascendex-pro-api/#channel-market-trades

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market to fetch trades for
sinceintNotimestamp in ms of the earliest trade to fetch
limitintNothe maximum amount of trades to fetch
paramsobjectNoextra parameters specific to the exchange API endpoint
ascendex.watchTrades (symbol, since?, limit?, params?)

watchTradesForSymbols

get the list of most recent trades for a list of symbols

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

See: https://ascendex.github.io/ascendex-pro-api/#channel-market-trades

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
params.namestringNothe name of the method to call, 'trade' or 'aggTrade', default is 'trade'
ascendex.watchTradesForSymbols (symbols, since?, limit?, params?)

watchOrderBook

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

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

See: https://ascendex.github.io/ascendex-pro-api/#channel-level-2-order-book-updates

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

watchBalance

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

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

See: https://ascendex.github.io/ascendex-pro-api/#channel-order-and-balance

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

watchOrders

watches information on multiple orders made by the user

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

See: https://ascendex.github.io/ascendex-pro-api/#channel-order-and-balance

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

On this page