Are Trading Bots Legal in the US?

Yes, using a trading bot is legal in the United States for your own account. US law regulates conduct and business activity, not the software you use to place orders. So are trading bots legal in the US? Owning one, coding one, and running one against your own brokerage or crypto account is permitted, provided the trading itself follows federal securities laws, commodity laws, tax rules, and the terms of service of the platform you connect to. Selling signals, managing other people's money, or manipulating prices are separate questions with separate answers.

On this page
  1. The short answer, and where it stops being short
  2. Who regulates what
  3. What is illegal no matter who or what places the order
  4. When you have to register
  5. Broker and exchange terms of service
  6. Crypto: federal rules plus a state-by-state map
  7. Quick decision table
  8. FAQ

The short answer, and where it stops being short

Running an automated strategy on your own account is legal. What changes the answer is who owns the money, what you are trading, and how the orders behave in the market. A Python script placing spot Bitcoin orders through your own Coinbase account looks nothing like a hedge fund routing algorithmic orders for outside investors, and the two sit under different regulators.

The rest of this page walks through the federal agencies that care, the conduct that stays illegal no matter how the orders are generated, when you have to register, and how broker and exchange rules can shut a bot down long before a regulator gets involved. For scam-detection and product vetting, see are AI trading bots legit.

Who regulates what

Four different bodies touch automated trading in the US, and they split the market by instrument and by activity.

What is illegal no matter who or what places the order

Automation is not a defense. The following conduct is prohibited under the federal securities laws and the Commodity Exchange Act, and enforcement actions against algorithmic traders are routine.

Related reading: common trading bot scams to avoid.

When you have to register

You cross into regulated territory the moment you take other people's money, or advise them, in exchange for compensation.

Trading only your own account, with no outside investors and no advisory fee, does not trigger any of the above.

Broker and exchange terms of service

Even where the law says yes, the venue can still say no. Terms of service and API agreements are enforced by account closure long before a regulator sends a letter.

Crypto: federal rules plus a state-by-state map

US crypto exchanges operate under state money-transmitter regimes on top of federal AML rules. Coverage varies: some venues do not serve New York (BitLicense) or restrict specific products in a changing list of other states, and futures or leveraged spot products are often restricted to residents outside the US. Before pointing a bot at an exchange, confirm the exchange serves your state for the specific product (spot, margin, perpetual, options), and read the API agreement. Keep records of every order the bot places, since the IRS treats each sale, swap, or spend of crypto as a taxable disposition and the burden of proof for cost basis sits with the taxpayer, not the exchange. A local export of fills, timestamps, and fees is worth more at tax time than any dashboard screenshot.

Quick decision table

ActivityLegal in the US?Primary regulatorWhat to check first
Bot trading your own stocks/ETFs via a US broker APIYesSEC / FINRA (through the broker)Broker API agreement, PDT rule, market-data terms
Bot trading your own spot crypto on a US exchangeYes, if the exchange serves your stateState money-transmitter regulators, FinCEN, SEC/CFTC on the assetState availability, exchange TOS, tax reporting
Bot trading futures or options on futures for yourselfYesCFTC / NFA (through the FCM)FCM API terms, margin, disruptive-practices rules
Running a bot on other people's securities for a feeOnly if registeredSEC or state securities regulatorInvestment Advisers Act, AUM thresholds, Form ADV
Running a bot on other people's futures accounts for a feeOnly if registeredCFTC / NFACTA/CPO registration, disclosure documents
Spoofing, wash trading, pump-and-dumpNoSEC, CFTC, DOJCivil and criminal exposure
Selling paid trading signals to the publicDependsSEC (adviser rules), FTC (advertising)Whether you are giving personalized advice, disclosures

This is not financial advice. Rules change and enforcement depends on facts; if real money is at stake or you are handling other people's funds, talk to a securities lawyer in your state. For deeper background see what is a trading API.

Not financial advice. This content is educational. Automated and algorithmic trading carries a real risk of financial loss. Never trade money you cannot afford to lose. Review the SEC investor.gov and CFTC resources before trading.

Frequently asked questions

Is it legal to run a trading bot on Robinhood or Webull?

The activity is legal, but Robinhood does not offer a public trading API, so most retail bots there rely on unofficial endpoints that violate the terms of service and can get the account closed. Webull offers an official API in some markets. Always read the current API agreement of the broker before deploying, and treat account-termination risk as the binding constraint.

Do I need a license to trade crypto with a bot for myself?

No federal license is required to trade your own crypto with a bot in the United States. You still owe federal income tax on every disposition, you must use an exchange that serves your state for the specific product you are trading, and you must respect the exchange's API terms. Licensing questions only appear when you custody or advise on other people's crypto.

When does a trading bot make me an investment adviser?

When you provide advice about securities to others in exchange for compensation. Managing outside money through a bot, selling personalized signals, or charging performance fees generally triggers the Investment Advisers Act. Registration is typically with a state securities regulator up to about $100 million in regulatory AUM and with the SEC above roughly $110 million, per Dodd-Frank thresholds.

Can a bot get me in trouble for market manipulation?

Yes. Spoofing, layering, wash trading, and coordinated pump-and-dump schemes are illegal regardless of whether a human or a script sends the orders. The CFTC has brought spoofing cases against automated traders under Commodity Exchange Act section 4c(a)(5), and the SEC has pursued similar conduct in equities. Intent matters, and canceled orders leave a full audit trail on the exchange.

MB

Mustafa Bilgic

Algorithmic trading practitioner · Founder, AITradingBot.us

Mustafa builds and backtests automated trading systems and writes about them without the hype. Every tool on this site is free and runs entirely in your browser.

Sponsored: recommended resources →