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.
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.
[ 64024 ]
Implementation Example
Calls a real endpoint of this API. Replace any placeholder credentials with your own key.
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.
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.
Measured Score Breakdown
Live HTTP request to the API endpoint
Fully tested on Aug 10, 2026
Technical Specifications
Related Tags
Similar APIs
View All →Binance
⭐ Beginner's PickBinance Spot API provides real-time and historical market data for thousands of cryptocurrency trading pairs on the world's largest crypto exchange by volume.
BitcoinAverage
BitcoinAverage aggregates price data from dozens of global cryptocurrency exchanges to produce weighted average prices for Bitcoin and other digital assets.
Bitmex
BitMEX is a derivatives exchange specializing in perpetual swaps and futures contracts for Bitcoin and other cryptocurrencies.
1inch
⭐ Beginner's Pick1inch is a decentralized exchange (DEX) aggregator that finds the best swap routes across protocols like Uniswap, SushiSwap, and Curve.
Coinpaprika
⭐ Beginner's PickCoinpaprika offers a free, open cryptocurrency data API covering 2,500+ coins with prices, market stats, exchange data, and detailed coin metadata including team and investor information.