CEX
Est. 2012 Hong Kong / British Virgin Islands

Bitfinex

Bitfinex is one of the oldest and largest cryptocurrency exchanges — founded in 2012, offering advanced spot and margin trading, a professional order book with deep BTC and ETH liquidity, a P2P crypto lending market (Bitfinex Funding), and tight integration with Tether (USDT), whose co-owners overlap with Bitfinex's parent company iFinex.

Tools · Crypto scanner · Coins · Courses

Bitfinex is one of the most storied exchanges in cryptocurrency history, for better and for worse. Founded in 2012 by Raphael Nicolle and later operated by iFinex Inc., Bitfinex was the world's largest Bitcoin exchange by volume for several years in the mid-2010s, pioneering professional-grade trading infrastructure for the crypto market. Its history includes significant controversies: a 2016 hack where 119,756 BTC (worth approximately $72M at the time, now worth billions) was stolen; the hack resulted in a haircut of approximately 36% applied to all Bitfinex customers' balances, partially compensated through BFX token issuance that was later redeemed. Bitfinex and Tether (USDT) share a parent company, iFinex, and that relationship has been a persistent source of controversy and regulatory scrutiny, including a $41 million settlement with the CFTC in 2021. Despite this history, Bitfinex remains a major exchange with deep liquidity in major pairs and a sophisticated trading environment preferred by professional and institutional traders.

Trading Environment: Spot, Margin, and Derivatives

Bitfinex offers a full trading environment built for professionals: Spot trading across 200+ pairs with deep order books on major pairs (BTC/USD, ETH/USD, XRP/USD). Margin trading up to 10x leverage using borrowed funds from Bitfinex Funding (the P2P lending market). Advanced order types: Limit, Market, Stop, Stop-Limit, Trailing Stop, Fill or Kill, Immediate or Cancel, One Cancels Other (OCO), TWAP (time-weighted average price), and Iceberg orders (large orders displayed in smaller pieces to obscure the full size). Bitfinex Funding: a peer-to-peer crypto lending market where users can offer BTC, ETH, USDT, and other assets as loans to margin traders, earning interest rates (flash return rates, FRR) that fluctuate with demand. Funding rates tend to rise in high-volatility periods.

Setting Up Bitfinex API Keys With the Least Access

Bitfinex's API supports REST and WebSocket v2 interfaces with full trading functionality.

Step 1: Create a Bitfinex account and complete verification. For API access beyond basic read-only, Bitfinex requires email verification at minimum. For margin trading and higher limits, KYC (identity verification) is required. Go to account.bitfinex.com and finish the verification tier that fits how you trade.

Step 2: Generate API keys. Go to Settings → API Keys → Create New Key. Bitfinex's permission system is granular, so configure exactly the following:

  • Account Read: Required for reading balances, positions, and order history.
  • Orders Write: Required for placing, modifying, and cancelling orders.
  • Positions Write: Required for margin position management.
  • Funding Offer Write: Required only if the key will manage funding offers (P2P lending).
  • Withdraw: Do NOT enable. A key that only reads or trades has no reason to move money off the exchange.
For a key that trades: enable Account Read + Orders Write + (optionally) Positions Write only. For a read-only key, Account Read is enough.

Step 3: Enable IP whitelisting. Under Advanced Settings for the API key, add the IP addresses of the machines that will use the key. Bitfinex supports multiple allowed IPs per key. This critical security step makes your API key useless even if it's stolen. Orders will be rejected from any IP outside the allowlist.

Step 4: Store credentials securely. BITFINEX_API_KEY=your_key and BITFINEX_API_SECRET=your_secret as environment variables. Use a secrets manager (AWS Secrets Manager, HashiCorp Vault) in production.

Step 5: Install the Bitfinex Python SDK. pip install bitfinex-api-py (official v2 client) Or use the direct REST API with HMAC-SHA384 authentication:
import hmac, hashlib; signature = hmac.new(secret.encode(), msg.encode(), hashlib.sha384).hexdigest() where msg = f"/api/v2/{endpoint}{nonce}{body}"

Step 6: Connect via WebSocket for live data. Bitfinex WebSocket v2 (wss://api-pub.bitfinex.com/ws/2) provides: order book updates, trade feeds, ticker data, and authenticated channels for your orders and wallet updates. Subscribe to channels with JSON subscription messages. The WebSocket feed pushes market data as it happens. REST polling adds 100 to 500ms per call compared to push notifications.

Step 7: Rate limits and best practices. Bitfinex enforces rate limits: 90 REST requests per minute per API key for private endpoints. If you pull a lot of data, use the WebSocket for it and save REST calls for account checks and orders. Implement exponential backoff on rate-limit (429) responses.

Who Bitfinex Is Best For

Bitfinex suits professional and institutional traders who need deep BTC/ETH liquidity, advanced order types, and access to the P2P funding market for yield or leveraged positions. Not suitable for: beginner traders (interface is complex), US persons (Bitfinex explicitly restricts US residents), or anyone requiring the highest-trust exchange given the regulatory and historical controversy history. Perform your own due diligence on counterparty risk before holding significant funds.

Bitfinex Advanced Trading Features

Bitfinex offers one of the widest sets of order types in the exchange market: limit, market, stop, trailing stop, fill-or-kill, iceberg/reserve orders, and time-in-force options. That range of order types gives traders finer execution control than simpler exchanges offer. Bitfinex's peer-to-peer lending market allows users to lend crypto and USD to margin traders at market-determined interest rates, creating a yield opportunity for lenders that scales with margin trading activity.

LEO (UNUS SED LEO) is Bitfinex's exchange token that provides fee discounts for holders and is subject to systematic buybacks using a portion of Bitfinex's revenue, creating ongoing demand. Bitfinex's history includes the 2016 hack ($72M BTC stolen at the time, now worth billions) and the recovery that followed through a novel tokenized debt system. Recovered assets were returned to affected users years later through UNUS SED LEO token redemptions. This recovery history, despite being a major negative event, demonstrated Bitfinex's ability to get through extreme circumstances and maintain operations. For professional trading comparisons see Kraken, OKX, and Bybit. Use our crypto tools and DennTech blog for exchange analysis.

Bitfinex's order book depth for BTC/USD and ETH/USD consistently ranks among the deepest in the global market, making it a preferred venue for large OTC-sized trades that would cause excessive slippage on thinner platforms. The funding book is the marketplace where Bitfinex margin traders borrow from peer lenders. It shows real-time supply and demand for leverage financing, which gives a unique window into aggregate market sentiment about leverage appetite that most other exchanges can't offer. Bitfinex's historical significance in Bitcoin price discovery, particularly during the 2017 bull run, means its market microstructure continues to be studied by quantitative researchers analyzing crypto market dynamics.