Behvandi Studio Build intelligent systems
Back to blog

Studio notes

Who Holds the Keys to Your Trading Account? Exchange and Broker Account Security When a Bot, an App or Another Person Has Access

Even the strongest password won't stop someone you let in yourself. In plain words, this article covers how to create an API key with no withdrawal permission and locked to one address, what MetaTrader's investor password is for, why you should never hand your full login to any "account manager", and how a short monthl

Minimal neon illustration on dark purple: a gold core inside three concentric purple, magenta and gold rings; an eye icon's line reaches only the outer ring, a candlestick icon's stops at the middle one, a faded hexagon's dotted line is cut; no text

A hypothetical example: someone in a messaging group comes across a bot that promises to automate their trading. The bot asks for just one thing: an "API key" for their exchange account. They open the key-creation page, don't know which options are needed, and tick every box so nothing throws an error, including permission to withdraw. Now anyone who gets hold of that key can do whatever those boxes allow, without knowing the password and without a verification code.

Another hypothetical example: a friend who "knows the market" offers to manage your MetaTrader account and asks for the login password. Or a "support agent" who contacted you first wants you to install a remote-control program to "fix a problem with your account".

In "Bank and Crypto Exchange Account Security: A Plain-English Guide to Stopping Hackers and Theft" we covered the basics: fake texts and links, strong unique passwords, two-step verification, SIM swaps and what to do in the first hour after a hack. This article looks at a part that gets less attention: the doors we open to our own accounts, with good intentions. In other words, the access we give to a bot, an app, a browser extension or another person, and then often forget about.

All examples in this article are hypothetical and are only there to make the point clear.

The doors we open ourselves

Even the strongest password and the best two-step verification won't stop someone you have formally let in. With trading accounts, "letting someone in" usually takes one of these forms:

  • An API key you give to a trading bot, a portfolio-tracking app, a profit-and-loss service or a copy-trading tool.
  • Your MetaTrader account password, given to a bot seller, an account manager or a virtual private server (VPS) service so the bot stays on around the clock.
  • Your full account login, handed to a friend, an acquaintance or an "account manager".
  • Connected devices and apps that were linked to the account at some point and are still linked.
  • Browser extensions installed in the same browser you use to sign in to the exchange.
  • A remote-control program installed because someone asked you to.

Before granting any access, ask three simple questions: who is getting it? Exactly what do they need it for? And for how long, and if I change my mind, how do I take it back? The rest of this article is really the answer to those three questions for each of these doors.

API keys in plain words

An API key is a long string of letters and numbers that an exchange or broker creates for you so that a program can work with your account without your login password, for example to read your balance or send orders. It usually comes in two parts: the key itself and a "secret key" that is shown only once.

The most important point has been stated plainly by the exchanges themselves. Kraken's security guide says API keys are equivalent to your username and password. Binance.US calls them a stand-in for your email and password and says you should treat them like passwords. So an API key is not "a technical setting"; it is a spare key to your account.

The good news is that this spare key can be limited. Major exchanges such as these two define permissions separately, roughly at three levels:

  • View only: read balances, orders and trade history.
  • Trade: place and cancel orders.
  • Move money: withdraw and, on some exchanges, add a new withdrawal address.

The exact option names differ from exchange to exchange, but the logic is the same.

Rule one: never withdrawals

A bot that only trades does not need withdrawal permission. Kraken uses exactly this example in its key-creation guide: a key made for trading needs permission to place and cancel orders, but almost certainly does not need permission to withdraw funds. The same exchange recommends never granting the "Add Withdrawal Addresses" permission to a key you share with another service, and warns that this permission is especially dangerous alongside withdrawal permission, because whoever holds the key could add their own address and withdraw straight away.

An app that only shows your portfolio or profit and loss doesn't even need trading permission. Binance.US gives this very example: for a tax-reporting service, grant read access only, not trading or withdrawal.

If a tool says it "won't work without withdrawal permission", stop right there and ask why. For a trading bot, a convincing answer is hard to find.

Rule two: lock the key to an address

Every server and device connected to the internet has an address called an IP, a bit like a house number. Major exchanges such as Kraken and Binance let you create a key that only works from specific addresses. Kraken explains that with this restriction, even if the key is stolen, it can't be used from a network that isn't authorised.

Binance takes this further. According to its official guide, IP restriction is mandatory to enable withdrawal permission, and it strongly recommends against enabling any permission other than reading without an IP restriction. Under the default settings, a common type of key on this exchange that has no IP restriction gets no permission other than reading at all.

In practice: ask the bot or tool provider which fixed addresses they connect to the exchange from, and enter those in the key settings. If the bot runs on your own server, enter that server's address.

Rule three: one key per tool

Create a separate key for each tool and give it a name you'll recognise later, such as "test bot" or "profit report app". Kraken recommends this so that if one key leaks, the damage is limited to that one tool and you can delete just that key. If your exchange lets you set an expiry date on a key, use it; Kraken says this shortens the window in which a stolen key is useful to an attacker.

Rule four: handle the key carefully and delete it early

Enter the key only on the tool's own settings page, not in a message, a support chat, an email or a form someone has sent you. If you need to keep it, Kraken suggests storing it in a reputable password manager or in encrypted form, not in a phone note or a screenshot.

A key that is no longer used is nothing but a risk. Kraken recommends deleting keys you no longer use regularly and creating fresh keys with minimal permissions from time to time. Binance.US suggests that every 90 days you consider deleting all your keys and creating new ones, so you are forced to look again at which services you are connected to.

MetaTrader accounts: master password or investor password

If you use a forex or stock broker with the MetaTrader platform, you have a simple and little-known option. According to the official MetaTrader 5 help, every trading account has at least two passwords:

  • Master password: lets you trade.
  • Investor password: lets you view the account's state and analyse prices, but not trade.

So if someone only wants to see your results, for example a mentor reviewing your trades, a friend who wants to understand what you do, or a service that builds a trading journal, the investor password is enough. Don't hand over the master password for these.

Sometimes giving the master password is unavoidable, for instance when a bot runs on someone else's virtual server or an account manager really is going to trade on your behalf. In that case, know that they can make any trade you can; so give it only to someone you fully trust and whose track record you have checked, and on the day the arrangement ends, change both the master and investor passwords.

One more point: if your broker has a separate "client area" for deposits, withdrawals and changing account details, never give the password for that area to a bot seller, an account manager or any intermediary. Someone who only needs to trade has no business with the door to the safe.

Never give anyone your full login, not even an "account manager"

Someone who has your exchange login and verification code effectively is you: they can change the email, add a new withdrawal address and move the money out. That is why reputable exchanges are explicit. Coinbase's security guidance says its staff will never ask for your password or two-step verification code, never ask you to install software on your device, and never remotely access your device to take action on your account.

If you really want someone else to trade for you, first check whether your exchange or broker has an official way to do it. For example, in Binance's spot copy trading, the user sets the amount they want to allocate to copying, and that amount is moved to a separate copy-trading account; along this route you don't give anyone your account password. This example is only to show the difference between "limited access" and "handing over the whole account"; copy trading carries its own risks and this is not a recommendation to use it.

And if someone's offer to manage your account comes with fixed or guaranteed returns, also go through the warning signs in "'Profitable Bots' and 'Guaranteed Signals': Warning Signs to See Before You Pay".

Side apps, browser extensions and remote control

Portfolio trackers and profit reports. These are useful, but they only need read access. If such an app asks for trading or withdrawal permission, don't install it.

Browser extensions. The Chrome Web Store help says an extension with access to "your data on all the websites you visit" can read and modify data on every page, and it names a bank account as an example. The same help page notes that the warning doesn't mean the extension is dangerous, only that it can be. A simple approach: create a separate browser profile for your exchange and broker with no extensions except the essentials, and remove old, unused extensions. Binance.US also lists regularly reviewing your browser extensions among its API key safety tips.

Remote-control programs. Coinbase warns that giving remote access to a "support agent" effectively gives a scammer full access to your computer, your online financial accounts and your digital life, and recommends uninstalling remote-access tools you don't need.

Wallet recovery phrase. If you have a personal crypto wallet, those few recovery words (the seed phrase) mean full ownership of the wallet. No genuine bot, app or support agent needs them; Coinbase also says its support will never ask for your seed phrase.

Split the money: a separate account for bots and experiments

Even with the best settings, a bot can make mistakes, or a tool you are connected to could one day be compromised. So if your exchange or broker offers sub-accounts or separate accounts, connect a new bot or tool to an account that holds only the amount you are willing to put at risk with that tool. This limits both the bot's mistakes and the damage from a leaked key.

In "AI Agent Trading Bots: The Model Sends the Order, but You Own It" we explained the same "least access, separate money" logic for AI-driven bots.

A short monthly review

Once a month, say when you pay your bills, open these few pages:

  1. The API management page. For each key, ask: which tool is it for? Is it still used? Does it have withdrawal permission? Is it locked to an IP? Delete any key you don't recognise or don't need.
  2. Devices, sessions and connected apps. Coinbase recommends removing any app, session or device you don't recognise; if your exchange or broker has a similar page, do the same there.
  3. The withdrawal address list. An unfamiliar address is a red flag.
  4. MetaTrader accounts. Who has the master password? If you've stopped working with someone, change the passwords.
  5. Browser and computer. Remove unused extensions and remote-control programs you don't need.
  6. Alerts. Make sure alerts for sign-ins from new devices and for withdrawals are switched on.

When an arrangement ends or something looks wrong

The order matters, because you need to shut the door first and search afterwards:

  1. Delete that tool's API key. Deleting the key cuts the tool's access from that moment; you don't have to wait for anyone to reply.
  2. Change your MetaTrader passwords, both master and investor.
  3. Change your exchange password, sign out of other devices, and recheck your withdrawal addresses and two-step verification settings.
  4. If you see anything unusual, lock first and ask later. Coinbase recommends exactly this: if something feels off, lock your account in the app and report it through the official channel. Check whether your own exchange offers something similar, and know where it is before you need it.

If things have gone further and the account really has been hacked, the first-hour steps and the warning about people promising to "recover your money" are in "Bank and Crypto Exchange Account Security: A Plain-English Guide to Stopping Hackers and Theft".

If you are buying or commissioning a trading bot or tool

A tool that connects to your account should have clear answers to these questions:

  • Exactly which permissions does it need? Does it work without withdrawal permission?
  • Which fixed IP addresses does it connect from, so I can lock the key to them?
  • Where and how is my key stored? Is it encrypted? Who on your team can see it?
  • What does the bot do if I delete the key or the connection drops? What happens to open orders?
  • Is every order the bot sends recorded with its time and reason, so I can see later what happened?
  • Can I stop the bot myself, whenever I want, without the seller's permission?

If you're still deciding, "Seven Things to Settle Before You Build or Buy a Trading Bot: From Writing the Rule to Testing and Controlling Risk" puts these questions in a bigger picture.

Final word

Most of the time, emptying a trading account doesn't take a genius hacker; it's enough for a key with the withdrawal box ticked to be in the wrong tool's hands, or for the master password to still be with someone you no longer work with. Treat every access like a spare house key: give it only to whoever needs it, only for the door they need, and take it back on the day the job is done.

At Behvandi Studio we build trading bots, trading dashboards and financial software, and we build these same rules in from the design stage: keys with the least access and no withdrawals, IP locking, encrypted key storage, a record of every order and an instant stop in the account owner's hands. If a tool is connected to your account and you'd like someone to go through its settings with you, or you're thinking about building a secure tool for your own business, get in touch through the "Contact us" page on the Behvandi website.

This article is for education only and is not a recommendation to buy, sell or use any exchange, broker or tool. Security features differ between exchanges and brokers and may change; foreign services are named only as examples, so check each service's official guidance for details.

Sources

Comments

No comments yet. Be the first to write one.

Email or mobile is for the studio only and is not shown on the site.