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. Endpoint documentation pages also offer dynamic code examples in multiple languages and using multiple libraries.
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
})
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 Funding Stats
Calculation Endpoints
- POST Market Average Price
- POST Foreign Exchange Rate
Updated 24 days ago