BotEdge
← All exchanges

Connect BitMEX

BitMEX is included in the Pro plan. You can start with a demo account.

1. Create the API key

In your BitMEX account, open the API management page and create a new API key.

  • Permissions: Reading and trading on the markets you trade (spot or futures).
  • Never enable withdrawals or transfers. BotEdge only places orders.

If the exchange offers it, restrict the key to the addresses BotEdge trades from: 161.35.155.159. A stolen key is then useless anywhere else.

2. Add it to BotEdge

  1. In the dashboard, click Add connection and choose BitMEX.
  2. Choose Live for your real account or Demo / testnet for a demo key.
  3. Paste the values from the exchange:
    • API key
    • API secret (secret)

    Secrets are encrypted before they are stored and are never shown again.

  4. Save. The connection card shows your pointer, the webhook URL and the alert message.

3. Set up the alert

  • Chart and ticker: Alert from a TradingView chart of the market on BitMEX, so that {{ticker}} matches its symbol.
  • Quantity: The quantity is sent to the exchange as it is: coins on spot markets, and on futures either coins or contracts depending on the exchange. Check the contract size on the exchange and test with a small size first.

Then follow the TradingView guide to create the alert.

Order rejected?

The error email explains what BitMEX answered. The error guide covers the most common causes.