CCXT

foxbit

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

foxbit

Kind: global class
Extends: Exchange

fetchMarkets

Retrieves data on all markets for foxbit.

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

See: https://docs.foxbit.com.br/rest/v3/#tag/Market-Data/operation/MarketsController_index

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

fetchTicker

Get last 24 hours ticker information, in real-time, for given market.

Kind: instance method of foxbit
Returns: object - a ticker structure

See: https://docs.foxbit.com.br/rest/v3/#tag/Market-Data/operation/MarketsController_ticker

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

fetchTickers

Retrieve the ticker data of all markets.

Kind: instance method of foxbit
Returns: object - a dictionary of ticker structures

See: https://docs.foxbit.com.br/rest/v3/#tag/Market-Data/operation/MarketsController_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
foxbit.fetchTickers (symbols, params?)

fetchTradingFees

fetch the trading fees for multiple markets

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

See: https://docs.foxbit.com.br/rest/v3/#tag/Member-Info/operation/MembersController_listTradingFees

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

fetchOrderBook

Exports a copy of the order book of a specific market.

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

See: https://docs.foxbit.com.br/rest/v3/#tag/Market-Data/operation/MarketsController_findOrderbook

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market to fetch the order book for
limitintNothe maximum amount of order book entries to return, the maximum is 100
paramsobjectNoextra parameters specific to the exchange API endpoint
foxbit.fetchOrderBook (symbol, limit?, params?)

fetchTrades

Retrieve the trades of a specific market.

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

See: https://docs.foxbit.com.br/rest/v3/#tag/Market-Data/operation/MarketsController_publicTrades

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

fetchOHLCV

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

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

See: https://docs.foxbit.com.br/rest/v3/#tag/Market-Data/operation/MarketsController_findCandlesticks

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
foxbit.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 foxbit
Returns: object - a balance structure

See: https://docs.foxbit.com.br/rest/v3/#tag/Account/operation/AccountsController_all

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

fetchOpenOrders

Fetch all unfilled currently open orders.

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

See: https://docs.foxbit.com.br/rest/v3/#tag/Trading/operation/OrdersController_listOrders

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

fetchClosedOrders

Fetch all currently closed orders.

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

See: https://docs.foxbit.com.br/rest/v3/#tag/Trading/operation/OrdersController_listOrders

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

createOrder

Create an order with the specified characteristics

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

See: https://docs.foxbit.com.br/rest/v3/#tag/Trading/operation/OrdersController_create

ParamTypeRequiredDescription
symbolstringYesunified symbol of the market to create an order in
typestringYes'market', 'limit', 'stop_market', 'stop_limit', 'instant'
sidestringYes'buy' or 'sell'
amountfloatYeshow much you want to trade in units of the base currency
pricefloatNothe price at which the order is to be fullfilled, in units of the quote currency, ignored in market orders
paramsobjectNoextra parameters specific to the exchange API endpoint
params.timeInForcestringNo"GTC", "FOK", "IOC", "PO"
params.triggerPricefloatNoThe time in force for the order. One of GTC, FOK, IOC, PO. See .features or foxbit's doc to see more details.
params.postOnlyboolNotrue or false whether the order is post-only
params.clientOrderIdstringNoa unique identifier for the order
foxbit.createOrder (symbol, type, side, amount, price?, params?)

createOrders

create a list of trade orders

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

See: https://docs.foxbit.com.br/rest/v3/#tag/Trading/operation/createBatch

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
foxbit.createOrders (orders, params?)

cancelOrder

Cancel open orders.

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

See: https://docs.foxbit.com.br/rest/v3/#tag/Trading/operation/OrdersController_cancel

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

cancelAllOrders

Cancel all open orders or all open orders for a specific market.

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

See: https://docs.foxbit.com.br/rest/v3/#tag/Trading/operation/OrdersController_cancel

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

fetchOrder

Get an order by ID.

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

See: https://docs.foxbit.com.br/rest/v3/#tag/Trading/operation/OrdersController_findByOrderId

ParamTypeRequiredDescription
idYes
symbolstringYesit is not used in the foxbit API
paramsobjectNoextra parameters specific to the exchange API endpoint
foxbit.fetchOrder (id, symbol, params?)

fetchOrders

fetches information on multiple orders made by the user

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

See: https://docs.foxbit.com.br/rest/v3/#tag/Trading/operation/OrdersController_listOrders

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.statestringNoEnum: ACTIVE, CANCELED, FILLED, PARTIALLY_CANCELED, PARTIALLY_FILLED
params.sidestringNoEnum: BUY, SELL
foxbit.fetchOrders (symbol, since?, limit?, params?)

fetchMyTrades

Trade history queries will only have data available for the last 3 months, in descending order (most recents trades first).

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

See: https://docs.foxbit.com.br/rest/v3/#tag/Trading/operation/TradesController_all

ParamTypeRequiredDescription
symbolstringYesunified market symbol
sinceintNothe earliest time in ms to fetch trades for
limitintNothe maximum number of trade structures to retrieve
paramsobjectNoextra parameters specific to the exchange API endpoint
foxbit.fetchMyTrades (symbol, since?, limit?, params?)

fetchDepositAddress

Fetch the deposit address for a currency associated with this account.

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

See: https://docs.foxbit.com.br/rest/v3/#tag/Deposit/operation/DepositsController_depositAddress

ParamTypeRequiredDescription
codestringYesunified currency code
paramsobjectNoextra parameters specific to the exchange API endpoint
params.networkCodestringNothe blockchain network to create a deposit address on
foxbit.fetchDepositAddress (code, params?)

fetchDeposits

Fetch all deposits made to an account.

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

See: https://docs.foxbit.com.br/rest/v3/#tag/Deposit/operation/DepositsController_listOrders

ParamTypeRequiredDescription
codestringNounified currency code
sinceintNothe earliest time in ms to fetch deposits for
limitintNothe maximum number of deposit structures to retrieve
paramsobjectNoextra parameters specific to the exchange API endpoint
foxbit.fetchDeposits (code?, since?, limit?, params?)

fetchWithdrawals

Fetch all withdrawals made from an account.

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

See: https://docs.foxbit.com.br/rest/v3/#tag/Withdrawal/operation/WithdrawalsController_listWithdrawals

ParamTypeRequiredDescription
codestringNounified currency code
sinceintNothe earliest time in ms to fetch withdrawals for
limitintNothe maximum number of withdrawal structures to retrieve
paramsobjectNoextra parameters specific to the exchange API endpoint
foxbit.fetchWithdrawals (code?, since?, limit?, params?)

fetchTransactions

Fetch all transactions (deposits and withdrawals) made from an account.

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

See

ParamTypeRequiredDescription
codestringNounified currency code
sinceintNothe earliest time in ms to fetch withdrawals for
limitintNothe maximum number of withdrawal structures to retrieve
paramsobjectNoextra parameters specific to the exchange API endpoint
foxbit.fetchTransactions (code?, since?, limit?, params?)

fetchStatus

The latest known information on the availability of the exchange API.

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

See: https://status.foxbit.com/

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

editOrder

Simultaneously cancel an existing order and create a new one.

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

See: https://docs.foxbit.com.br/rest/v3/#tag/Trading/operation/OrdersController_cancelReplace

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 fullfilled, in units of the quote currency, ignored in market orders, used as stop_price on stop market orders
paramsobjectNoextra parameters specific to the exchange API endpoint
foxbit.editOrder (id, symbol, type, side, amount, price?, params?)

withdraw

Make a withdrawal.

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

See: https://docs.foxbit.com.br/rest/v3/#tag/Withdrawal/operation/WithdrawalsController_createWithdrawal

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

fetchLedger

fetch the history of changes, actions done by the user or operations that altered balance of the user

Kind: instance method of foxbit
Returns: object - a ledger structure

See: https://docs.foxbit.com.br/rest/v3/#tag/Account/operation/AccountsController_getTransactions

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

On this page