Bitfinex API

Cryptocurrency / API Key Intermediate HTTPS
71 B
Measured Score 0 50 100 Speed 26/30 Consistency 17/20 Security 20/20 Browser access 0/15 Transparency 8/15 TESTED 2026-08-10

Overview

Bitfinex is a professional cryptocurrency exchange offering one of the most comprehensive trading APIs for both spot and margin markets. The public endpoints expose real-time order books, recent trades, and candle data for hundreds of trading pairs. Authenticated endpoints allow order placement, wallet management, and position tracking for algorithmic traders.

Beginner Tip

Start with the unauthenticated v2 ticker endpoint which needs no API key — replace tBTCUSD with any valid trading pair symbol. The v2 API uses a different URL prefix (api-pub.bitfinex.com/v2/) from the older v1 endpoints and returns arrays instead of JSON objects, so read the response format docs carefully.

Measurement Record

What actually happened when we called this API from our own infrastructure. Every value below was recorded by the request, not copied from the provider's documentation.

Request
GET https://api-pub.bitfinex.com/v2/ticker/tBTCUSD
Result
HTTP 200 · application/json · 98 bytes · compressed
Response time
42 ms (median of 3) · fastest 39 ms
Transport
TLSv1.3 · TLS_AES_256_GCM_SHA384 · certificate issued by Google Trust Services
Browser CORS
No Access-Control-Allow-Origin header — call it from a server, not the browser
Served by
cloudflare
Recorded
2026-08-10

Available Data

The kind of data this API exposes, based on its documentation. We could not call the endpoint to confirm the exact field names.

coin price in USD/EUR
market capitalization
24h price change
trading volume
circulating supply
stock price and symbol

Captured Response

Captured from a real request to https://api-pub.bitfinex.com/v2/ticker/tBTCUSD on 2026-08-10. Long arrays and nested objects are truncated to keep the shape readable.

JSON Response · Captured
[
  64024
]

Implementation Example

Calls a real endpoint of this API. Replace any placeholder credentials with your own key.

Request
const url = "https://docs.bitfinex.com/docs";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
  headers: {
  "X-API-Key": "YOUR_API_KEY"
  }
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data);

What Can You Build?

Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.

How This API Fails

We deliberately sent this API a broken request and recorded exactly what came back on 2026-08-10. Knowing the shape of an error before you hit it makes error handling much easier to write.

HTTP 404 Requesting a path that does not exist text/html

Returned an HTML error page rather than JSON — worth knowing if your client assumes every response can be parsed as JSON.

Common Errors & Troubleshooting

Generated guidance based on this API's documentation, not observed by us. Treat it as a starting point and check against the provider's own error reference.

10020 Request parameters error The v2 API returns numeric error codes instead of HTTP status codes for some errors.
Always check if the response is an array starting with "error" before parsing data fields.
Incorrect symbol format Bitfinex prefixes trading pair symbols with t (e.g., tBTCUSD) and funding symbols with f (e.g., fUSD).
Prepend t to currency pairs when querying the v2 tickers or candles endpoints.
429 Rate limit exceeded Public endpoints allow 90 requests per minute; exceeding this results in a temporary ban.
Add delays between requests, use WebSocket for streaming data, or cache responses whenever possible.

Measured Score Breakdown

Live HTTP request to the API endpoint

Speed 26/30
Consistency 17/20
Security 20/20
Browser access 0/15
Transparency 8/15
Endpoint Response Time 42ms

Fully tested on Aug 10, 2026

Technical Specifications

Auth API Key
HTTPS REQUIRED
CORS UNKNOWN
Category Cryptocurrency
Difficulty Intermediate
Endpoint last called: 2026-08-10

Similar APIs

View All →