Slik kobler du en børs til BackFuture AI: API-nøkler, sikkerhet og tilkoblingskontroll
BackFuture AI works through an børs forbindelse via API. This means that the bruker’s midler remain on the børs account, while systemet receives only the permissions that the bruker explicitly grants in the API-nøkkel.
Supported børser
At the current stage, the plattform is focused on working with MEXC and KuCoin. In the future, the list of forbindelser can be expanded: Binance, OKX, Bitget, Gate.io, HTX, BingX, Coinbase, Bybit and other børser.
General forbindelse process
- The bruker logs into their børs account.
- Creates a new API-nøkkel.
- Disables uttaksrettighet.
- Enables only the required permissions: balance reading, order reading and handel.
- Sets an IP restriction if the børs supports it.
- Copies the API Key and Secret Key.
- Adds the forbindelse in the BackFuture AI dashboard.
- Runs a forbindelse test.
- After a successful check, enables the required strategi or bot.
Required API permissions
| Permission | Needed? | Hvorfor |
|---|---|---|
| Read | ✅ Yes | So systemet can see balances, orders, positions and status. |
| Trade | ✅ Yes | So the bot can open, add to and close handler. |
| Withdraw | ❌ No | This permission must not be given to a handel bot. |
| Futures | ◐ If needed | Only for strategier that work with futures. |
| IP whitelist | ✅ Recommended | Restricts key usage to approved server IP addresses. |
Hvordan to name a forbindelse correctly
In the dashboard, it is better to use clear forbindelse names. This is especially viktig if the bruker has several børser, sub-accounts or strategier.
- MEXC Spot Main — main spot account on MEXC.
- KuCoin Futures Conservative — futures account for a conservative strategi.
- Recovery PRO Connection — separate forbindelse for Recovery/PRO logic.
- BTC ETH New Groups — separate forbindelse for new BTC/ETH grupper.
Step-by-step eksempel
Step 1. Create an API-nøkkel on the børs
In the børs account, open API Management or API Keys. Usually the børs asks for a key name and confirms the action through email, phone or 2FA.
Step 2. Set permissions
For a handel forbindelse, read and handel permissions are usually needed. Withdrawal must be disabled. If the børs offers separate permissions for spot and futures, enable only the marked you really plan to use.
Step 3. Add the key to BackFuture AI
In the dashboard, the bruker selects an børs, enters API Key and Secret Key, sets a forbindelse name and saves it. Secrets should not be displayed in full after saving.
Step 4. Test the forbindelse
Systemet checks the key, permissions, balance access and the ability to receive status. If everything is correct, the forbindelse receives an “Online” or “Connected” status.
Step 5. Enable a strategi
After the test, the bruker can select pairs, risiko level, margin limit, påfylling behavior, Recovery Mode and other innstillinger.
Typical forbindelse errors
| Error | Cause | Hva to do |
|---|---|---|
| Invalid key | API-nøkkel or secret was copied incorrectly. | Create a new key or copy the values again. |
| No handel permission | Trade permission is disabled. | Enable handel permission, but keep withdrawal disabled. |
| IP not allowed | IP restriction does not include the server IP. | Add the correct server IP to the børs whitelist. |
| Exchange unavailable | The børs API is temporarily unavailable. | Wait and run the test again. |
Security principles
- Never enable uttaksrettighet for bot API-nøkler.
- Use separate API-nøkler for different strategier.
- Use IP restrictions når possible.
- Do not show API secrets in full after saving.
- Delete old keys if they are no longer used.
- Use 2FA on the børs account.
Konklusjon
The safest model is når midler remain on the bruker’s børs, and BackFuture AI works only through limited API permissions. This allows the plattform to automate handel logic without direct access to withdrawals.