Tips
Are trading bots legal?
A bot on your own account is legal where trading is legal for you and the venue accepts API orders. The EU limits high-frequency trading. The law also steps in when a bot trades for others, when advice or the bot is sold, and when orders are abusive. The rules, with sources.
On your own account, a trading bot is legal where trading is legal for you and the venue accepts orders from a program. The venues below publish APIs for exactly that. The EU is one exception, covered below: there, high-frequency trading on your own account needs authorisation.
The law also steps in when the bot trades someone else’s money, or when someone is paid for trading advice. It steps in when the bot is sold to other users, and when the orders are abusive.
This is our reading of the public rules, with a link to each, on 16 November 2026. It is not legal advice. If you plan to trade for anyone but yourself, ask a lawyer in your country first.
What the venues say
The first question is whether the venue takes orders from software. These say yes in their own documents:
- Kalshi documents an API for trade execution over REST, WebSocket and FIX.
- Polymarket publishes official SDKs for placing orders, and limits who may trade by country.
- Interactive Brokers says its API can “Automate algorithmic trading strategies” and “Programmatically place orders”.
- MetaTrader 5 describes its language, MQL5, as built for “trading robots”.
- Betfair documents a login for “Autonomous applications and background services” in its Exchange API guide. It adds that API use “in any commercial context must be approved by Betfair” (application keys).
A venue that allows bots still sets rate limits and terms. Breaking them can get the account closed.
When the law gets involved
Advising other people for pay
US law defines a commodity trading advisor as someone who, “for compensation or profit, engages in the business of advising others”. That includes advice given “through publications, writings, or electronic media” (7 U.S.C. 1a(12)). Software that tells others what to trade in futures can fall inside that definition.
There are exemptions. The CFTC exempts advice that does not involve directing client accounts, and is not tailored to particular clients. In Taucher v. Born (1999), a federal court held that the registration rule could not be applied to publishers of impersonal trading systems and software. The court noted that they “do not profit from their customers’ gains or losses”. The NFA’s own guidance says that whether a system developer must register “depends on the particular facts of each case” (Interpretive Notice 9055).
Securities follow the same shape. The Investment Advisers Act covers anyone who, for pay, is in the business of advising others on securities (15 U.S.C. 80b-2). In Lowe v. SEC (1985), the Supreme Court ruled on newsletters sold to the public on a regular schedule. They fell within the Act’s exclusion for bona fide publications. They did not offer “individualized advice attuned to any specific portfolio”.
Trading other people’s money
Running a bot on your own account is one thing. Running it on someone else’s is another, and it is where licences start. Israel’s Investment Advice Law of 1995 requires a licence for portfolio management. It defines that as transactions made “at the performer’s discretion, on account of another person” (ISA). The same law licenses investment advice and investment marketing separately.
In the EU, MiFID II sets duties for investment firms that trade by algorithm. They need resilient systems, trading limits and testing (Directive 2014/65/EU, Article 17). Article 2(1)(d) exempts people who deal only on their own account, on conditions. One of them is that they don’t use a high-frequency technique.
Selling the bot to other users
A bot that other people sign up to, and that routes their orders to a venue, raises its own questions. In the US one of them is whether its maker acts as an introducing broker. CFTC staff took a no-action position in September 2026 for “passive software providers”. The letter says the provider would never “hold, control, or take into custody User assets”. It also says the position is “not binding on the Commission”.
Orders that are abusive
Some trading is illegal whoever, or whatever, places the orders. On US futures markets the law bans “spoofing”. It defines that as “bidding or offering with the intent to cancel the bid or offer before execution” (7 U.S.C. 6c(a)(5)). A bot that places and cancels orders fast has to be designed so it never does that on purpose. Its logs should show why each order was placed and why it was pulled.
The short version
- Your account, your rules, a venue that accepts API orders: legal where trading is legal for you. In the EU, high-frequency trading on your own account needs authorisation.
- Read the venue’s terms and stay inside its rate limits.
- Trading for others, selling signals or running a service on other people’s accounts can bring in licensing or registration. Ask a lawyer before you start.
- Design the bot so its orders are honest, and keep the logs that prove it.
How we build bots, and what we will not build, is on our algorithmic trading page.