·
lnmarketssetupapi-keysgetting-started

How to Create LN Markets API Keys for Beet Robot

Step-by-step guide to creating LN Markets API keys with the right permissions so Beet Robot can trade on your behalf — without ever touching your funds.

Before Beet Robot can place or manage trades, it needs access to your LN Markets account through API keys. This guide walks you through creating a key with exactly the permissions the bot needs — nothing more, nothing less.

Security first: Beet Robot only needs futures:isolated:read and futures:isolated:write plus a few read-only account permissions. It never requires withdrawal access, so your funds stay safe even if a key is ever compromised.

Step 1 — Open the API Keys section

Log in to LN Markets, click the account menu in the top-right corner, and select API keys.

LN Markets menu — API keys option

Step 2 — Create a new key

On the API keys page, click + New key.

LN Markets API keys page

Step 3 — Name the key and set a passphrase

Give the key a memorable name (e.g. Beet Robot) and choose a strong passphrase.

Create new API key form

Important: The passphrase is only known to you — LN Markets does not store it. If you lose it, you will need to delete the key and create a new one. Write it down somewhere safe before continuing.

Step 4 — Set the correct permissions

Select the following permissions. These are the minimum required for Beet Robot to operate:

Permission Why it's needed
account:read Check balance and account information
account:deposits:read View deposit history (read-only)
account:withdrawals:read View withdrawal history (read-only)
account:notifications:read Read account alerts
futures:isolated:read View open and closed positions
futures:isolated:write Place and cancel limit orders

Do not enable account:write, account:deposits:write, account:withdrawals:write, futures:cross:*, or synthetic-usd:write. Beet Robot does not need them, and keeping them off limits the blast radius if anything goes wrong.

Required permissions highlighted

Step 5 — Copy and store the credentials

After clicking Create, LN Markets shows you the key, secret, and passphrase once. Copy all three somewhere secure before closing the page.

API key details with secrets hidden

You won't be able to see the secret again. If you close this page without copying it, you'll need to delete the key and start over.

Step 6 — Paste the credentials into Beet Robot

Head to the Settings page in Beet Robot, find the LN Markets connection section, and paste your API Key, Secret, and Passphrase into the corresponding fields. Select Mainnet (or Testnet4 if you're testing).

That's it — Beet Robot will verify the connection and start trading on your next scheduled tick.

Troubleshooting

"Invalid API key" error — double-check that you copied the key and secret without extra spaces. The secret is base64-encoded and sensitive to whitespace.

"Insufficient permissions" error — return to the LN Markets API keys page, edit the key, and ensure futures:isolated:write is checked.

Lost your passphrase — delete the existing key on LN Markets and create a new one following this guide.

Beet Robot
Automate your Bitcoin futures trading
Join the Beta List and be first to access Beet Robot when it launches.