CCXT

zaif

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

zaif

Kind: global class
Extends: Exchange

fetchMarkets

retrieves data on all markets for zaif

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

See: https://zaif-api-document.readthedocs.io/ja/latest/PublicAPI.html#id12

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

fetchBalance

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

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

See: https://zaif-api-document.readthedocs.io/ja/latest/TradingAPI.html#id10

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

fetchOrderBook

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

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

See: https://zaif-api-document.readthedocs.io/ja/latest/PublicAPI.html#id34

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

See: https://zaif-api-document.readthedocs.io/ja/latest/PublicAPI.html#id22

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

fetchTrades

get the list of most recent trades for a particular symbol

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

See: https://zaif-api-document.readthedocs.io/ja/latest/PublicAPI.html#id28

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

createOrder

create a trade order

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

See: https://zaif-api-document.readthedocs.io/ja/latest/MarginTradingAPI.html#id23

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market to create an order in
typestringYesmust be '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
zaif.createOrder (symbol, type, side, amount, price?, params?)

cancelOrder

cancels an open order

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

See: https://zaif-api-document.readthedocs.io/ja/latest/TradingAPI.html#id37

ParamTypeRequiredDescription
idstringYesorder id
symbolstringYesnot used by zaif cancelOrder ()
paramsobjectNoextra parameters specific to the exchange API endpoint
zaif.cancelOrder (id, symbol, params?)

fetchOpenOrders

fetch all unfilled currently open orders

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

See: https://zaif-api-document.readthedocs.io/ja/latest/MarginTradingAPI.html#id28

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

fetchClosedOrders

fetches information on multiple closed orders made by the user

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

See: https://zaif-api-document.readthedocs.io/ja/latest/TradingAPI.html#id24

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

withdraw

make a withdrawal

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

See: https://zaif-api-document.readthedocs.io/ja/latest/TradingAPI.html#id41

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

On this page