CCXT

bitflyer

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

bitflyer

Kind: global class
Extends: Exchange

fetchMarkets

retrieves data on all markets for bitflyer

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

See: https://lightning.bitflyer.com/docs?lang=en#market-list

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

fetchBalance

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

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

See: https://lightning.bitflyer.com/docs?lang=en#get-account-asset-balance

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

fetchOrderBook

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

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

See: https://lightning.bitflyer.com/docs?lang=en#order-book

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

See: https://lightning.bitflyer.com/docs?lang=en#ticker

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

fetchTrades

get the list of most recent trades for a particular symbol

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

See: https://lightning.bitflyer.com/docs?lang=en#list-executions

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

fetchTradingFee

fetch the trading fees for a market

Kind: instance method of bitflyer
Returns: object - a fee structure

See: https://lightning.bitflyer.com/docs?lang=en#get-trading-commission

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

createOrder

create a trade order

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

See: https://lightning.bitflyer.com/docs?lang=en#send-a-new-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
bitflyer.createOrder (symbol, type, side, amount, price?, params?)

cancelOrder

cancels an open order

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

See: https://lightning.bitflyer.com/docs?lang=en#cancel-order

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

fetchOrders

fetches information on multiple orders made by the user

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

See: https://lightning.bitflyer.com/docs?lang=en#list-orders

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

fetchOpenOrders

fetch all unfilled currently open orders

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

See: https://lightning.bitflyer.com/docs?lang=en#list-orders

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

fetchClosedOrders

fetches information on multiple closed orders made by the user

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

See: https://lightning.bitflyer.com/docs?lang=en#list-orders

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

fetchOrder

fetches information on an order made by the user

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

See: https://lightning.bitflyer.com/docs?lang=en#list-orders

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

fetchMyTrades

fetch all trades made by the user

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

See: https://lightning.bitflyer.com/docs?lang=en#list-executions

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

fetchPositions

fetch all open positions

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

See: https://lightning.bitflyer.com/docs?lang=en#get-open-interest-summary

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

withdraw

make a withdrawal

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

See: https://lightning.bitflyer.com/docs?lang=en#withdrawing-funds

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

fetchDeposits

fetch all deposits made to an account

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

See: https://lightning.bitflyer.com/docs?lang=en#get-crypto-assets-deposit-history

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

fetchWithdrawals

fetch all withdrawals made from an account

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

See: https://lightning.bitflyer.com/docs?lang=en#get-crypto-assets-transaction-history

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

fetchFundingRate

fetch the current funding rate

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

See: https://lightning.bitflyer.com/docs#funding-rate

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

On this page