Short answer: Are trading bots legal? In the six jurisdictions read for this guide on 5 November 2026, no text was found that bans a private person from running software on their own account, although India routes it through brokers under specific rules and Turkey's texts are silent rather than permissive. Legal trouble comes from what the bot does (spoofing, wash trades), whom it trades for (other people's money, paid signals), the platform's terms and whether that platform may serve you. This is general information, not legal advice.
Most regulator pages on algorithmic trading address firms, which leaves private traders with an unclear answer. This guide reads the primary texts for six jurisdictions and separates firm duties from what reaches a private trader. A rule aimed at firms does not free anyone from other laws, and silence is not permission.
For a real decision, ask a lawyer licensed where you live and, for any service offered to others, where your customers live. Automated trading can lose money whether or not it is lawful.
Is automated trading legal? Four questions decide it
Software that sends orders is rarely the legal issue: the answer turns on conduct, on whose money or decisions are involved, on contract and on the platform's own permission.
| Question | Why it matters | Example |
|---|---|---|
| What does the bot do? | Manipulation is prohibited however the orders are sent | EU and UK Market Abuse Regulation, Article 12(2)(c), names algorithmic and high-frequency strategies |
| Whose money or decisions? | Trading, advising or selling recommendations for others can need a license | MiCA Article 59 requires authorization for crypto-asset services, including advice and portfolio management |
| What do the platform's terms say? | A contract can forbid what the law allows | OKX's API Agreement (updated 28 July 2026), Section 9.3, bars SaaS, signal and managed-trading use without written approval, while trading for your own account is not commercial resale |
| May the platform serve you? | A lawful bot does not cure an unauthorized platform | MiCA Article 61 limits third-country firms to a client's exclusive initiative |
Are trading bots legal by country? A dated summary
All six have rules written for firms, and among the texts read only India and Canada speak directly to a retail client's automated orders.
| Jurisdiction | Firm duties | Private trader on their own account |
|---|---|---|
| United States | Brokers and dealers with market access: SEC Rule 15c3-5. FINRA member firms: Rule 3110 and Notices 15-09 (26 March 2015) and 16-21 (6 June 2016) | No federal text found that bans it; anti-manipulation provisions reach any person |
| United Kingdom | FCA Handbook chapter MAR 7A binds investment firms and some other firms that trade algorithmically (FCA review of wholesale markets, February 2018) | Not addressed by MAR 7A; UK MAR Article 15 binds any person |
| European Union | MiFID II Article 17 and RTS 6 bind investment firms | Article 2(1)(d) exempts own-account dealing unless listed conditions apply; MAR Article 15 and MiCA Article 91 bind any person |
| India | SEBI circular of 4 February 2025, applying to all brokers from 1 April 2026: the broker is principal and each algo needs exchange approval | Allowed through a broker's API with a static IP; register with the exchange above 10 orders per second per exchange (NSE, 5 May 2025) |
| Canada | NI 23-103 (consolidation current to 1 March 2014): risk controls, testing and a way to disable automated order systems | Section 5(2) requires a client to take all reasonable steps so its automated system does not interfere with fair and orderly markets |
| Turkey | Borsa Istanbul procedure, revision approved 28 March 2025: the member notifies the exchange, gives an undertaking and stays liable | No text found that bans or names bots, and none that expressly permits them: an open question |
Are trading bots legal in the US?
No federal text read on 5 November 2026 bans automating orders on your own account; the US rules on algorithms address firms, while manipulation and advice rules reach further.
- Firms. SEC Rule 15c3-5 requires risk controls from brokers and dealers with market access, including those that let a customer reach an exchange, so those checks sit at your broker. FINRA's algorithmic trading page addresses member firms and says nothing about private traders.
- Advising others for pay. Paid advice on futures, including through electronic media, can make someone a commodity trading advisor (7 U.S.C. 1a(12)), and paid advice on securities an investment adviser (15 U.S.C. 80b-2(a)(11)). Exemptions exist, so ask counsel.
Are trading bots legal in the UK and EU?
Nothing read on 5 November 2026 bans a private person's bot in either; the algorithmic trading rules bind investment firms, while market abuse rules bind everyone.
UK. MAR 7A and the FCA's 2018 review address firms. UK MAR Article 15 bars any person from market manipulation (legislation.gov.uk, up to date with changes in force on or before 5 November 2026 when read that day). For crypto, the FCA's consumer page says crypto is largely unregulated in the UK (updated 29 January 2026), and its new regime is expected to come into force on 25 October 2027 (page updated 2 November 2026).
EU. MiFID II Article 2(1)(d) exempts people dealing on their own account, outside commodity derivatives and emission allowances, unless they are market makers, members or participants of a regulated market or MTF, execute client orders, or apply a high-frequency algorithmic trading technique. Article 4(1)(40) defines that technique by latency-minimizing infrastructure, no human intervention and high message rates, which does not describe a typical home bot, though that is a reading rather than a ruling. National law can add conditions. RTS 6 does not bind private individuals, as trading bot risk management notes.
Is algo trading legal in India?
Yes, within a framework: from 1 April 2026 SEBI's retail algo rules apply to all stock brokers, so automated orders run through a broker's API and are tagged for the exchange.
- Your own code. SEBI's circular of 4 February 2025 lets tech-savvy retail investors use algos they wrote, registered through the broker only if they cross an order-per-second threshold. NSE's standards of 5 May 2025 set it at 10 orders per second per exchange and require a static IP for this route.
- A wording conflict. Those NSE standards say a client below the threshold need not register, then say such orders require registration with the exchange and get a generic algo ID, so ask your broker how it applies this.
- Family only. A registered self-built algo may be used for yourself, your spouse, dependent children and dependent parents, not for other investors (SEBI, 4 February 2025).
- Selling to others. Algo providers are not regulated by SEBI but must be empaneled with exchanges and act as the broker's agent, and a provider of black-box algos must register as a Research Analyst (same circular).
- Return claims. Since a SEBI circular of 2 September 2022, brokers may not refer to an algorithm's past or expected returns or associate with platforms that do.
- Order types. Exchanges may restrict order types and contracts for client algos, and brokers' APIs must block them (NSE, 5 May 2025).
Exchanges issued operational details on 22 July 2025 and changed them in September 2025 (SEBI, 30 September 2025); those details are not summarized here, so confirm current terms with your broker.
Are trading bots legal in Canada?
The texts read allow them with conditions: National Instrument 23-103 regulates automated order systems and speaks directly to clients.
It defines an automated order system as one used to generate or send orders automatically on a pre-determined basis. Section 5(2) places a duty on the client itself, and section 5(3) requires the marketplace participant to understand any such system used by it or a client, test it before use and at least annually, and be able to stop its orders from reaching a marketplace immediately.
Rules that CIRO, the self-regulatory organization, sets for dealers and marketplaces were not reviewed for this guide.
Are trading bots legal in Turkey?
No text read on 5 November 2026 bans a private person's bot or names bots at all, and none expressly permits one, so the question is open; the texts regulate activities instead.
| Situation | Text | Reading |
|---|---|---|
| Your own rules on your own crypto account | Communiqués III-35/B.1 and III-35/B.2 (Resmî Gazete, 13 March 2025) | The words bot, robot, API and signal do not appear; the platform's API terms apply separately |
| Managing customers' crypto portfolios for a benefit | III-35/B.2 Article 15(3); Law 6362 Articles 99/A and 109/A | Prohibited in the communiqué's platform chapter; whether that binds a non-platform firm is unsettled. Unauthorized crypto-asset service provision carries 3 to 5 years' imprisonment and a judicial fine of 5,000 to 10,000 days |
| Follow or copy tools on capital market instruments | III-37.1 Articles 45(3) and 37(3); SPK guide updated 26 October 2026 | Advice when an investment firm offers it, portfolio management when it trades automatically in the customer's portfolio; brokers may not integrate such software even at a customer's request |
| Shares on Borsa Istanbul | Equity Market Algorithmic Trading procedure, revision approved 28 March 2025 | Customer orders pass through the member's systems, and the member carries non-transferable liability |
No published SPK decision on a private person's bot was found. Article 99/A of Capital Markets Law No. 6362 treats activity by foreign crypto-asset platforms directed at Turkish residents as unauthorized. SPK's list page, read 5 November 2026, says appearing on its list of operating platforms does not mean authorization. More is in is crypto legal in Turkey.
Where private use ends: market abuse and other people's money
Faking activity is prohibited for everyone in the texts read, and running a bot for someone else is a different legal question from running your own.
| Where | Text | What it reaches |
|---|---|---|
| US futures | 7 U.S.C. 6c(a)(5) | Any person, on or subject to the rules of a registered entity, including spoofing: bids or offers placed with intent to cancel before execution |
| US securities | 15 U.S.C. 78i(a)(1) | Any person creating a false appearance of active trading, including trades with no change in beneficial ownership |
| EU and UK | Market Abuse Regulation, Articles 12(2)(c) and 15 | Orders by any means, including algorithms, that disrupt a venue or give false signals |
| EU crypto | MiCA Article 91 | Any person; market manipulation in crypto-assets |
| Turkey | Law 6362 Article 107 | Orders or cancellations meant to mislead on capital market instruments: 3 to 5 years' imprisonment and a fine |
As a warning: on 9 October 2024 the SEC charged three firms presented as market makers and nine individuals, alleging wash trading and bots that at times produced billions of dollars of artificial volume a day; three promoters agreed to settlements subject to court approval, and in that release the rest were allegations.
Hypothetical example, not advice. The same software can sit in three positions. You run your own rules on your own account: the four questions above apply. You rent it to friends for a share of gains: advice, management or registration rules may apply, and platform terms may bar it. You use it to trade with yourself to lift volume: that is the conduct the table above prohibits, whoever wrote the code.
Where the line falls depends on the facts, so read how to evaluate a crypto bot development company and take advice before charging anyone. Fincode is a software company: it builds software from rules the customer wrote and does not provide investment advice, portfolio management or crypto-asset services. Naming OKX in this guide does not mean Fincode integrates it or has built on it.
Frequently asked questions
Is algorithmic or bot trading legal?
No text read on 5 November 2026 bans private use in the six jurisdictions, with rules on firms, on manipulation and, in India, on retail algos, though Turkey's texts are silent rather than permissive. This is not legal advice.
Is algo trading legal in India?
Yes, through brokers. SEBI's framework applies to all stock brokers from 1 April 2026, and NSE's standards of 5 May 2025 set 10 orders per second per exchange as the threshold for registering a client's own algo.
Do I need a license to run a bot on my own account?
In the texts read, license duties attach to firms and to services for others rather than to private own-account use, but exemptions have conditions, such as the EU's high-frequency carve-out. Ask a local lawyer if you trade at scale.
Can I run my bot for friends or family?
That is a different question from running your own. In India a registered self-built algo may serve only you, your spouse, dependent children and dependent parents (SEBI, 4 February 2025); elsewhere trading for others can need authorization, and OKX's API Agreement bars orders for third parties without written approval.
Sources
- FINRA: Algorithmic Trading key topic page, listing Regulatory Notices 15-09 and 16-21 (opens in a new tab)
- 7 U.S.C. 6c: Prohibited transactions, including spoofing (Cornell LII) (opens in a new tab)
- SEC press release 2024-166 (9 October 2024): charges on manipulation of crypto assets offered and sold as securities (opens in a new tab)
- FCA: Algorithmic Trading Compliance in Wholesale Markets (first published 12 February 2018) (opens in a new tab)
- UK Market Abuse Regulation, Article 15 (legislation.gov.uk) (opens in a new tab)
- FCA: New regime for cryptoasset regulation (updated 2 November 2026) (opens in a new tab)
- ESMA interactive rulebook: MiFID II Article 2, Exemptions (opens in a new tab)
- Regulation (EU) 2023/1114 (MiCA): Articles 3, 59, 61 and 91 (opens in a new tab)
- SEBI circular of 4 February 2025: Safer participation of retail investors in Algorithmic trading (opens in a new tab)
- SEBI circular of 30 September 2025: Extension of timeline, framework applicable to all brokers from 1 April 2026 (opens in a new tab)
- NSE circular of 5 May 2025: implementation standards for retail algorithmic trading (opens in a new tab)
- OSC: National Instrument 23-103, unofficial consolidation current to 1 March 2014 (opens in a new tab)
- Capital Markets Law No. 6362, consolidated text, Articles 99/A, 107 and 109/A (Turkish) (opens in a new tab)
- Communiqué III-35/B.2, MKK copy, Article 15 (Turkish) (opens in a new tab)
- Borsa Istanbul: Equity Market Algorithmic Trading and BISTECH PTRM Procedure (English reference translation, revision approved 28 March 2025) (opens in a new tab)
This guide is general information about software and markets, not investment, legal or tax advice. Automated trading can lose money, past or backtested performance does not guarantee future results, and the rules that apply depend on your jurisdiction and your exchange's terms. Sources, checks and corrections: see the editorial policy.