Public Endpoints
Public endpoints should use the domain:
https://api-pub.bitfinex.com/
The following code template can be used for GET requests to our public endpoints.
const axios = require('axios') // Axios library for Node
const baseUrl = "https://api-pub.bitfinex.com/v2/"; // Domain
const pathParams = "tickers" // Change based on relevant path params listed in the documentation
const queryParams = "symbols=fUSD,tBTCUSD" // Change based on relevant query params listed in the documentation
axios.get(`${baseUrl}/${pathParams}?${queryParams}`)
.then(response => {
console.log(response.data); // Logs response data
}, error => {
console.log(error); // Catches and logs any error
})
tick = client.<method_name>
// request
// TODO
Public Endpoints
- GET Platform Status
- GET Tickers
- GET Ticker
- GET Tickers History
- GET Trades
- GET Book
- GET Stats
- GET Candles
- GET Configs
- GET Derivatives Status
- GET Derivatives Status History
- GET Liquidations
- GET Leaderboards
- GET Pulse History
- GET Pulse Profile Details
- GET Funding Stats
Calculation Endpoints
- POST Market Average Price
- POST Foreign Exchange Rate
Updated 7 months ago