Automated Trading Overview

API Keys : Bitfinex Spot

A quick guide to explain the steps needed to create and set up API keys for Bitfinex Spot trading.

Creating a set of API keys

You should create a set of API keys just for Alertatron, as this makes it simple to remove access at a later date without affecting any other services you use that also require API keys.

  1. Log into your Bitfinex account and choose API from the drop down account menu (top right of the page).
  2. Click on Create new API key.
  3. Give the keys only the permissions shown...
    You'll need read and write permission on Orders, so the bot can query existing orders and create new orders.
    You'll also need read permission on Wallets.
    All other permissions should be removed, as they are not required.
  4. Depending on your account security settings, you may be required to enter a 2FA code to confirm creating the new API keys, and/or confirm the creation via an email. (Note - if you are not asked to complete either of these steps, we recommend reviewing your Bitfinex account security settings).
  5. Make a note of the API key and API key secret.

Adding the keys to Alertatron

  1. Go to your Trading Bot group and click on the trading bot integrations icon to open it's settings (see image below).
  2. Choose Bitfinex Spot from the exchange list.
  3. Give the keys a name. This name is how you will refer to this set of API keys when you send orders to Alertatron. It should be letters only.
  4. Enter the API key into the Key field.
  5. Enter the API key secret into the Secret field.
  6. Save the changes.
Switch to your Trading Bot group and click on the integration icon to add keys.
Switch to your Trading Bot group and click on the integration icon to add keys.

Once you have saved your API keys, Alertatron will set up and deploy an instance of the trading bot. It can take a few minutes to deploy and configure your new trading server, but once it is ready it's status will change to Ready for Commands.

Once ready, you can switch to the Logs tab to see a history of commands executed and a detailed log of how those commands handled and processed the commands.

Sending a test

Now your server is ready, it is a good idea to send a test command to it, to make sure everything is working as it should.

Set up an alert that includes the following text in it (it can have other text in the message though). Note that you'll need to change YourAPIKeyName to the name you used in step 2 of 'Adding the keys to Alertatron'.

YourAPIKeyName(BTCUSD) { limitOrder(side=buy, amount=0.003, offset=100); }

When this alert is triggered, your bot will place a limit order on the BTCUSD instrument to buy 0.003 BTC. The order will be $100 below the current price. You can simply cancel this order after it is created on Bitfinex.

Why not take a look at our getting started guide.

Some images from Unsplash


Your TradingView alerts, with charts, PM'd to you.

Get all your alerts from TradingView, sent to Telegram, Discord, Slack, Email or webhooks, with a chart snapshot attached.

Capture Charts

See a high quality chart with every alert, captured at the moment the alert was triggered. See exactly what the market was doing and make informed decisions.

Automate Trading

Trigger orders on popular cryptocurrency exchanges and trade 24/7. Access powerful algorithmic orders to maximise your profits.


Connect your alerts to Telegram (channels, groups and private chats), Discord, Slack, email or send push notifications to other services with webhooks.

Easy To Setup

Nothing to install and no browser extensions. Captures alerts 24/7, even with your computer switched off. Be up and running in seconds.