Skip to main content

Creating a Bitfinex API Key for Your Crypto Trading Bot

This guide walks you through setting up a Bitfinex API key for automated trading and securing it for bot access.

Step-by-Step Guide

  1. Log into Bitfinex: Access your Bitfinex account and confirm two-factor authentication (2FA) is enabled.

  2. Navigate to API Section: Open the 'API' section from your profile menu or account settings.

  3. Initiate API Key Creation: Select 'Create New Key'.

  4. Label Your Key: Create a descriptive name (label) for your API key that indicates its purpose (e.g., "Gunbot_Spot").

Info

Bitfinex offers granular API permissions. Carefully review and select only the permissions your trading bot absolutely needs. The principle of least privilege is key to security.

  1. Set API Key Permissions: Configure essential permissions for most trading bots:

    • Account Info: 'Get account fee & info' (Read).
    • Orders: 'Create & cancel orders' (Write), 'Get open orders & order history' (Read).
    • Wallets: 'Get wallet balances & addresses' (Read).
    • Funding: Only if your bot manages margin funding, enable relevant 'Read' and 'Write' permissions for Funding (e.g., 'Offer, cancel and close funding'). Crucially, do NOT grant 'Withdraw' permissions (Account History: 'Create a new withdrawal').
  2. Secure Your API Key:

    • IP Whitelisting: Enable IP restrictions by adding your bot's static IP address(es).
    • Session Duration/Limits: Review and set trading limits or session duration controls if offered.
  3. Finalize Your API Key: Review permissions and IP restrictions, then complete any required 2FA verification. Copy and store your API Key and API Secret in a secure location.

Bitfinex API key creation page showing permission settings and security options

Access your API settings directly through Bitfinex API Management.

A properly configured API key supports smooth automated trading. Audit API key settings regularly, and never share your API credentials.

Ready to Automate Your Bitfinex Trading?

Explore our Bitfinex Trading Bot features for automated strategies.