Skip to content

Connecting API to BitMEX

To connect BitMEX exchange, you will manually create the API key on the exchange, and then link it in the Veles account.

Before you start, make sure that your account is fully verified, funded, and the Futures trading is enabled.

Creating an API key on BitMEX and linking it to Veles

Section titled “Creating an API key on BitMEX and linking it to Veles”
  1. Sign in to BitMEX.com.
    Go to your profile → «API keys».

    Creating API-key

  2. You will see the API keys management page.
    Fill in the parameters for the new key:

    • «Name» — internal label for the key.
    • «CIDR» — list of the IP adresses to protect your connection. You need to add the addresses from this list one by one:
      5.9.195.104/29
      88.198.100.160/29
      5.9.200.56/29
      5.223.18.76/32
      5.223.19.223/32
      5.223.19.75/32
      5.223.18.156/32
    • «Key permissions» — select «Order».
    • «Withdraw» — leave this ckeckbox blank.
    • «Target Account» — select the desired trading account.
    • «Two-factor Token» — enter the code from your 2FA application.

    API Key parameters

  3. Press «Create API Key» - the exchange will generate new key and show its credentials.
    Copy the ID and the Secret for this key and save them in a safe place (password manager). Do not close this Tab.

    API Key credentialns

  4. In your Veles cabinet open «API keys» and press «Add API key».

  5. Select «BitMEX Futures» from the list of exchanges, go to tab «Manual connection» and fill in the fields:

    • API Key Name — give the informative name, for example, BitMEX Futures Main 1,
    • API Key — enter the «ID» of the key,
    • Secret — enter the «Secret» of the key,
    • IP-addresses — this field is for the information only.

    Press «Connect».

    Create the API bindins in Veles

  6. The new API binding will appear in the list «API Keys».

Now your Veles account is connected to BitMEX exchange.
Before running the bots create the lock «BY POSITION» — it will prevent the potential conflicts in the deals.

Help