Skip to content
Wildflower
Join free
Automated trading and AI

Free Trading School · Level 7 · Course 7.11

Rules on automated trading

Lesson 14 of 19 in Automated trading and AIModule 3: AI and trading

Advanced · Automated trading and AI

Rules on automated trading

Wildflower Trading School · Lesson 7.11.3.5

Wildflower

Automated orders reach the same markets as orders people click, and the same rules apply, plus a few more. By the end of this lesson, you'll know the layers of rules that can apply to automated trading, from the law to your broker. And you'll know the questions to answer before any program trades your account.

1 of 8

What you'll learn

  • Map the layers. Rules come from the law, the exchange, your broker and any prop firm.
  • Avoid spoofing. Placing orders you mean to cancel is against US law, by hand or code.
  • Check your order marking. At CME, orders are marked as from a person or a computer.
  • Question your broker. Ask about automation, fees, order limits and who is responsible.
  • Write down what you read. Note the date, and check again when the rules change.

Exercise

  1. For the you practise with, find its rules on or access.
  2. Write down what's allowed, any fees, any order limits, and who's responsible for orders sent by a program, with the date you read them.

Next: Building your own or using a platform.

Quick check

  1. 1. A program places many orders it cancels before they fill, to make the market look busier. What can that be?

  2. 2. Who answers for orders a program sends from your account?

  3. 3. Which of these is a question for your broker?

0 of 3 answered.

Finished this lesson?

Tick it off and keep your place

Make a free account and we'll remember where you are, so “Building your own or using a platform” is waiting next time.

Read the full notes

Rules on automated trading come in layers: the law and regulators (market abuse rules such as the ban on spoofing apply whoever sends the order), the exchange (which can ask for orders to be marked as automated and watches message counts), your broker's account terms, and a prop firm's rules if you trade for one.

  • Layers: the law and regulators (US: and ; UK: ), the , your , and a if you trade for one (Rules on automation and copy trading).
  • Market abuse rules apply whoever sends the order. (placing orders you intend to cancel before they fill) is against the law in the US, by hand or by code. The account holder answers for what their code does.
  • Exchanges: at CME, orders are marked as sent by a person or a computer, and automated systems have their own identity; the platform or broker connection sets the marker. Exchanges also watch orders, changes and cancels against trades.
  • Broker questions: is allowed, and through what (, platform, )? Fees for API access or data? Limits on order rate and size? Who is responsible for orders sent by a program?
  • Rules change: read the current rules at the source, write down what you read and the date, ask in writing when a rule isn't clear, and check again when anything changes.
  • Made-up check for a webhook bot: law (no orders meant to be cancelled), exchange (marked automated via the broker), broker (allowed, fees known, limits written down), prop firm (not used). More: Automated trading on a funded account.

Worked example

Made-up numbers

A rules check for a webhook bot

Made-up example

  1. Law: orders meant to trade, none meant to be cancelled first.
  2. Exchange: orders marked automated through the broker’s connection.
  3. Broker: webhooks allowed, fees known, order limits written down.
  4. Prop firm: not used here.

Each layer answered in writing, with the date the rules were read.

Trading is risky. You can lose money. Rules differ by country, exchange, broker and firm, and they change, so the current rules that apply to you are the ones that count. This isn’t legal advice.