# Bitfinex Connect Bitfinex to rotki to import trades, deposits, and withdrawals, with balances tracked separately across exchange, margin, and funding wallets. Authenticate with a read-only API key; rotki processes everything locally on your machine. ## Features - Spot trades: full trade history including legacy pairs. - Deposits and withdrawals with fees preserved. - Balance reconciliation across all three Bitfinex wallet types (exchange, margin, funding). ## Limitations - Margin position history (funding fees, P/L, interest events) is not currently fetched - only balances on the margin and funding wallets are reported. ## Setup 1. In Bitfinex, open API → Create New Key. 2. Grant read permissions for Account History and Wallets. Leave Orders and Withdrawals disabled. 3. Optionally restrict the key to your IP. 4. In rotki, open API Keys → Exchanges → Add Bitfinex and paste the key and secret. ## FAQ ### Does rotki separate exchange, margin, and funding wallets? Yes. Bitfinex returns wallet type per balance, and rotki preserves that distinction in your portfolio view. ### Where are my Bitfinex API keys sent? rotki is a local application: your Bitfinex API key is stored on your computer and used to sign each request, which goes directly from your machine to Bitfinex's API. No rotki-operated server ever sees the key or the request. ### Can rotki place trades or withdraw from Bitfinex? No. rotki only requests read scopes and never sends order or withdrawal calls.