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

Calculation Endpoints