CCXT

delta

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

delta

Kind: global class
Extends: Exchange

fetchTime

fetches the current integer timestamp in milliseconds from the exchange server

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

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

fetchStatus

the latest known information on the availability of the exchange API

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

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

fetchCurrencies

fetches all available currencies on an exchange

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

See: https://docs.delta.exchange/#get-list-of-all-assets

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

fetchMarkets

retrieves data on all markets for delta

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

See: https://docs.delta.exchange/#get-list-of-products

ParamTypeRequiredDescription
paramsobjectNoextra parameters specific to the exchange API endpoint
delta.fetchMarkets (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 delta
Returns: object - a ticker structure

See: https://docs.delta.exchange/#get-ticker-for-a-product-by-symbol

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

See: https://docs.delta.exchange/#get-tickers-for-products

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

fetchOrderBook

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

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

See: https://docs.delta.exchange/#get-l2-orderbook

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

fetchTrades

get the list of most recent trades for a particular symbol

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

See: https://docs.delta.exchange/#get-public-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
delta.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 delta
Returns: Array<Array<int>> - A list of candles ordered as timestamp, open, high, low, close, volume

See: https://docs.delta.exchange/#delta-exchange-api-v2-historical-ohlc-candles-sparklines

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.untilstringNotimestamp in ms of the latest candle to fetch
delta.fetchOHLCV (symbol, timeframe, since?, limit?, params?)

fetchBalance

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

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

See: https://docs.delta.exchange/#get-wallet-balances

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

fetchPosition

fetch data on a single open contract trade position

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

See: https://docs.delta.exchange/#get-position

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

fetchPositions

fetch all open positions

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

See: https://docs.delta.exchange/#get-margined-positions

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

createOrder

create a trade order

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

See: https://docs.delta.exchange/#place-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
params.reduceOnlyboolNocontract only indicates if this order is to reduce the size of a position
delta.createOrder (symbol, type, side, amount, price?, params?)

editOrder

edit a trade order

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

See: https://docs.delta.exchange/#edit-order

ParamTypeRequiredDescription
idstringYesorder id
symbolstringYesunified symbol of the market to create an order in
typestringYes'market' or 'limit'
sidestringYes'buy' or 'sell'
amountfloatYeshow much of the currency you want to trade in units of the base currency
pricefloatNothe price at which the order is to be fulfilled, in units of the quote currency
paramsobjectNoextra parameters specific to the exchange API endpoint
delta.editOrder (id, symbol, type, side, amount, price?, params?)

cancelOrder

cancels an open order

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

See: https://docs.delta.exchange/#cancel-order

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

cancelAllOrders

cancel all open orders in a market

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

See: https://docs.delta.exchange/#cancel-all-open-orders

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

fetchOrder

fetches information on an order made by the user

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

See

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

fetchOpenOrders

fetch all unfilled currently open orders

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

See: https://docs.delta.exchange/#get-active-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
delta.fetchOpenOrders (symbol, since?, limit?, params?)

fetchClosedOrders

fetches information on multiple closed orders made by the user

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

See: https://docs.delta.exchange/#get-order-history-cancelled-and-closed

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

fetchMyTrades

fetch all trades made by the user

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

See: https://docs.delta.exchange/#get-user-fills-by-filters

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
delta.fetchMyTrades (symbol, since?, limit?, 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 delta
Returns: object - a ledger structure

See: https://docs.delta.exchange/#get-wallet-transactions

ParamTypeRequiredDescription
codestringNounified currency code, default is undefined
sinceintNotimestamp in ms of the earliest ledger entry, default is undefined
limitintNomax number of ledger entries to return, default is undefined
paramsobjectNoextra parameters specific to the exchange API endpoint
delta.fetchLedger (code?, since?, limit?, params?)

fetchDepositAddress

fetch the deposit address for a currency associated with this account

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

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

fetchFundingRate

fetch the current funding rate

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

See: https://docs.delta.exchange/#get-ticker-for-a-product-by-symbol

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

fetchFundingRates

fetch the funding rate for multiple markets

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

See: https://docs.delta.exchange/#get-tickers-for-products

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

addMargin

add margin

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

See: https://docs.delta.exchange/#add-remove-position-margin

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

reduceMargin

remove margin from a position

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

See: https://docs.delta.exchange/#add-remove-position-margin

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

fetchOpenInterest

retrieves the open interest of a derivative market

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

See: https://docs.delta.exchange/#get-ticker-for-a-product-by-symbol

ParamTypeRequiredDescription
symbolstringYesunified market symbol
paramsobjectNoexchange specific parameters
delta.fetchOpenInterest (symbol, params?)

fetchLeverage

fetch the set leverage for a market

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

See: https://docs.delta.exchange/#get-order-leverage

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

setLeverage

set the level of leverage for a market

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

See: https://docs.delta.exchange/#change-order-leverage

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

fetchSettlementHistory

fetches historical settlement records

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

See: https://docs.delta.exchange/#get-product-settlement-prices

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

fetchGreeks

fetches an option contracts greeks, financial metrics used to measure the factors that affect the price of an options contract

Kind: instance method of delta
Returns: object - a greeks structure

See: https://docs.delta.exchange/#get-ticker-for-a-product-by-symbol

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market to fetch greeks for
paramsobjectNoextra parameters specific to the exchange API endpoint
delta.fetchGreeks (symbol, params?)

closeAllPositions

closes all open positions for a market type

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

See: https://docs.delta.exchange/#close-all-positions

ParamTypeRequiredDescription
paramsobjectNoextra parameters specific to the exchange API endpoint
params.user_idintNothe users id
delta.closeAllPositions (params?)

fetchMarginMode

fetches the margin mode of a trading pair

Kind: instance method of delta
Returns: object - a margin mode structure

See: https://docs.delta.exchange/#get-user

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market to fetch the margin mode for
paramsobjectNoextra parameters specific to the exchange API endpoint
delta.fetchMarginMode (symbol, params?)

fetchOption

fetches option data that is commonly found in an option chain

Kind: instance method of delta
Returns: object - an option chain structure

See: https://docs.delta.exchange/#get-ticker-for-a-product-by-symbol

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

fetchPositionsADLRank

fetches the auto deleveraging rank and risk percentage for a list of symbols

Kind: instance method of delta
Returns: Array<object> - an array of auto de leverage structures

See: https://docs.delta.exchange/#get-margined-positions

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

On this page