CCXT

btcbox

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

btcbox

Kind: global class
Extends: Exchange

fetchMarkets

retrieves data on all markets for ace

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

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

fetchBalance

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

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

See: https://blog.btcbox.jp/en/archives/8762#toc13

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

fetchOrderBook

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

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

See: https://blog.btcbox.jp/en/archives/8762#toc6

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

See: https://blog.btcbox.jp/en/archives/8762#toc5

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

ParamTypeRequiredDescription
symbolsArray<string>Nounified 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
btcbox.fetchTickers (symbols?, params?)

fetchTrades

get the list of most recent trades for a particular symbol

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

See: https://blog.btcbox.jp/en/archives/8762#toc7

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

createOrder

create a trade order

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

See: https://blog.btcbox.jp/en/archives/8762#toc18

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
btcbox.createOrder (symbol, type, side, amount, price?, params?)

cancelOrder

cancels an open order

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

See: https://blog.btcbox.jp/en/archives/8762#toc17

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

fetchOrder

fetches information on an order made by the user

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

See: https://blog.btcbox.jp/en/archives/8762#toc16

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

fetchOrders

fetches information on multiple orders made by the user

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

See: https://blog.btcbox.jp/en/archives/8762#toc15

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

fetchOpenOrders

fetch all unfilled currently open orders

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

See: https://blog.btcbox.jp/en/archives/8762#toc15

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

On this page