Broker API HubMenu

Is API trading for you?

You trade on a phone app and you have never written code. This is the one screen answer: who should not bother, what the first win really is, what the first step costs, and what this is not.

Independent and unofficialNo account needed for anything on this page

Risk warning: CFDs and spread bets are complex instruments and come with a high risk of losing money rapidly due to leverage. You can lose money on these products, and each provider publishes its own loss figure under FCA rules. You should consider whether you understand how they work and whether you can afford to take the high risk of losing your money. Automated and API trading can amplify losses through bugs, connectivity failures and runaway orders.

Nothing here is advice about what to trade or which broker to use. It is about whether learning to talk to a broker's computer with code is worth your evenings.

Who should not bother

The realistic first win: your trade history in a spreadsheet

Not a bot. The first thing most people get from an API, or from an export button they had not found, is their own trades in a file they can sort and add up. These guides do that for one broker each, step by step, with the page each step was read on. Several need no code at all.

What the first request costs: nothing

This site runs a practice API: fixed files of invented values that answer a real request in the shape a broker's API answers. No account, no key, no cost, and it cannot place a trade. The lesson Your first HTTP request: ask the practice API makes that request in Python, from a terminal, and tells you what to type if you have never opened one.

A first call to a real broker comes later, on a demo account only, and only after you have a key. Whether a demo key is available and whether it needs a live account first differs by broker and is on each broker's page with its source.

How far the first stretch is

The learning track's first stretch runs from Your first Python script: profit and loss on one trade to the first real request: 14 of the 31 lessons, across 3 of the 4 stages. 13 of them run with no internet connection, on sample files of invented values; the rest call the practice API. None of the 14 needs a broker account or a key.

Each of those 14 lessons is one script of a page or less, and 14 of the 14 were run before publication, with what they printed shown on the page. How long a lesson takes a person is not recorded in the lesson register, so this page prints no number of evenings: it would be a guess.

After the first stretch, the one lesson that needs a broker demo account is optional, and everything after it runs offline or against the practice API. The whole path.

What this is not

Common questions

Do I have to learn to code to trade through an API?

Yes. An API is a way for a program to talk to a broker, so somebody has to write the program. The learning track on this site starts from nothing, but it is still learning to code.

Will this make me money?

No. It changes how an order reaches the broker, not whether the order was a good idea. A rule that loses money by hand loses it faster by code.

What does the first request cost?

Nothing. The practice API on this site answers a real request with invented data and needs no account and no key.

If you are still reading