CCXT
zebpay

zebpay

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

zebpay

Kind: global class
Extends: Exchange

fetchStatus

the latest known information on the availability of the exchange API

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

See

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

fetchTime

fetches the current integer timestamp in milliseconds from the poloniexfutures server

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

See

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

fetchMarkets

retrieves data on all markets for zebpay

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

See

ParamTypeRequiredDescription
paramsobjectNoextra parameters specific to the exchange api endpoint
zebpay.fetchMarkets (params?)

fetchCurrencies

fetches all available currencies on an exchange

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

See: [Spot] https://github.com/zebpay/zebpay-api-references/blob/main/spot/api-reference/public-endpoints.md#get-coin-settings

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

fetchTradingFee

fetch the trading fees for a market

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

See

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market to fetch the order book for
paramsobjectNoextra parameters specific to the exchange API endpoint
params.sideobjectNoside to fetch trading fee
zebpay.fetchTradingFee (symbol, params?)

fetchTradingFees

fetch the trading fees for multiple markets

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

See: [Swap] https://github.com/zebpay/zebpay-api-references/blob/main/futures/api-reference/public-endpoints/exchange.md#get-trade-fees-all-symbols

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

fetchOrderBook

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

Kind: instance method of zebpay
Returns: object - A dictionary of order book structures

See

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

See

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

See: [Spot] https://github.com/zebpay/zebpay-api-references/blob/main/spot/api-reference/public-endpoints.md#get-all-tickers

ParamTypeRequiredDescription
symbolsArray<string>, undefinedYesunified symbols of the markets to fetch the ticker for, all market tickers are returned if not assigned
paramsobjectNoextra parameters specific to the exchange API endpoint
zebpay.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 zebpay
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.endtimeintNothe latest time in ms to fetch orders for
zebpay.fetchOHLCV (symbol, timeframe, since?, limit?, params?)

fetchTrades

get the list of most recent trades for a particular symbol

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

See

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

fetchMyTrades

get the list of most recent trades for a particular symbol

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

See: https://github.com/zebpay/zebpay-api-references/blob/main/futures/api-reference/private-endpoints/trade.md#-get-trade-history

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
zebpay.fetchMyTrades (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 zebpay
Returns: object - a balance structure

See

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

createOrder

Create an order on the exchange

Kind: instance method of zebpay
Returns: object - 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.formTypestringNoThe price at which a trigger order is triggered at
params.marginAssetstringNoThe asset the order creates, default is INR.
params.takeProfitbooleanNoTakeprofit flag for the order.
params.stopLossbooleanNoStop loss flag for the order.
params.positionIdstringNoPositionId of the order.
zebpay.createOrder (symbol, type, side, amount, price?, params?)

cancelOrder

cancels an open order

Kind: instance method of zebpay
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
params.timestampobjectNoextra parameters specific to the exchange API endpoint
zebpay.cancelOrder (id, symbol, params?)

cancelOrders

cancels all open orders

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

See: [Spot] https://github.com/zebpay/zebpay-api-references/blob/main/spot/api-reference/private-endpoints.md#cancel-all-orders

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market the order was made in
paramsobjectNoextra parameters specific to the exchange API endpoint
params.timestampobjectNoextra parameters specific to the exchange API endpoint
zebpay.cancelOrders (symbol, params?)

fetchOpenOrders

fetches information on multiple open orders made by the user

Kind: instance method of zebpay
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
zebpay.fetchOpenOrders (symbol, since?, limit?, params?)

fetchOrder

fetches information on an order made by the user

Kind: instance method of zebpay
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
params.clientOrderIdstringNocancel order by client order id
params.timestampstringNocancel order by client order id
zebpay.fetchOrder (id, symbol, params?)

closePosition

closes open positions for a market

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

See: [Swap] https://github.com/zebpay/zebpay-api-references/blob/main/futures/api-reference/private-endpoints/trade.md#-close-position

ParamTypeRequiredDescription
symbolstringYesUnified CCXT market symbol
sidestringYesnot used by kucoinfutures closePositions
paramsobjectNoextra parameters specific to the okx api endpoint
params.positionIdstringNoclient order id of the order
zebpay.closePosition (symbol, side, params?)

fetchLeverages

fetch the set leverage for all contract and margin markets

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

See: [Swap] https://github.com/zebpay/zebpay-api-references/blob/main/futures/api-reference/private-endpoints/trade.md#-get-all-user-leverages

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

fetchLeverage

fetch the set leverage for a market

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

See: [Swap] https://github.com/zebpay/zebpay-api-references/blob/main/futures/api-reference/private-endpoints/trade.md#get-user-leverage-single-symbol

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

setLeverage

set the level of leverage for a market

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

See: [Swap] https://github.com/zebpay/zebpay-api-references/blob/main/futures/api-reference/private-endpoints/trade.md#-update-user-leverage

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

fetchPositions

Fetches current contract trading positions

Kind: instance method of zebpay
Returns: Parsed exchange response for positions

See: [Swap] https://github.com/zebpay/zebpay-api-references/blob/main/futures/api-reference/private-endpoints/trade.md#--get-positions

ParamTypeRequiredDescription
symbolsArray<string>YesList of unified symbols
paramsobjectNoNot used by krakenfutures
zebpay.fetchPositions (symbols, params?)

addMargin

add margin

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

See: [Swap] https://github.com/zebpay/zebpay-api-references/blob/main/futures/api-reference/private-endpoints/trade.md#-add-margin-to-position

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

reduceMargin

add margin

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

See: [Swap] https://github.com/zebpay/zebpay-api-references/blob/main/futures/api-reference/private-endpoints/trade.md#-reduce-margin-from-position

ParamTypeRequiredDescription
symbolstringYesunified market symbol.
amountfloatYesamount of margin to add.
paramsobjectNoextra parameters specific to the exchange API endpoint.
params.positionIdstringNoPositionId of the order to add margin.
params.timestampstringNoTiemstamp.
zebpay.reduceMargin (symbol, amount, params?)

On this page