UK and Europe · Broker API
Build an IG trading bot with your AI coding agent.
Super Algo Kit helps you build an IG trading bot inside your own AI coding agent. It interviews you, writes a spec, builds the bot on IG's APIs and tests it on an IG demo account. It plans for IG's small per-account allowances and its session tokens. Live trading waits until you type the authorize command.

broker facts
IG REST and streaming API
- What it is
- IG's JSON REST API for orders and accounts, plus a streaming feed for prices and updates.
- Account types
- Mostly spread-bet and CFD accounts in the UK and EU (the kit's inference); products vary by account and country.
- Login model
- An API key from My Account plus your own username and password. Session tokens last 6 to 72 hours, or refresh in version 3.
- Paper option
- A demo environment with its own accounts and keys. Its limits are lower and can change without notice (reported).
- Headline limits
- About 100 trading requests a minute per account and 10,000 historical data points a week (reported).
- Streaming
- 40 market subscriptions per connection by default; extra connections to get more breach IG's terms (reported).
- Retail rules
- Retail CFD leverage is capped from 30:1 to 2:1, with a 50% margin close-out and negative balance protection.
From the kit's IG card, checked 2026-09-30. Confirm current terms on IG's own site.
Paper first
A IG bot, built paper first.
Super Algo Kit runs inside the coding agent you already use. It interviews you, writes the spec with pass marks set first, then builds, backtests and paper-tests. Real money starts only when you type the authorize command.
The plan, step by step
Tick them off as you go.
How does IG API access and login work?
You get an API key in My Account on IG's dealing platform, and IG reportedly allows one key per account. API access reportedly cannot be set up from a standalone demo account unless it is linked to a live one. IG publishes no official client library.
Login is a documented API call with your own username and password. Older session versions give tokens that last 6 hours and extend to 72 hours while in use. Version 3 gives short access tokens, 60 seconds in IG's example, renewed with a refresh token.
Your password stays in the runtime secret store, never in chat or the repository. Whether IG's terms limit unattended automated use beyond this is not confirmed. No static IP rule was found in the sources read.
Paper trading an IG trading bot on the demo
IG runs a demo environment with its own accounts and keys. Its sample app is meant for a demo account. Demo limits are lower than live and can change without notice. Demo fills are not live fills (reported).
Super Algo Kit uses the demo for order-flow and error-path tests, not for performance figures. All agent work runs on a demo login.
IG API limits, costs and retail rules
IG's allowances are small and per account (reported). A bot that polls prices and positions in a loop soon runs out of non-trading calls. So prices should come from the streaming feed. A long history download can use the weekly data-point budget in one run.
API fees, spreads, overnight financing and commissions are not confirmed in the card. The UK and Europe pack models costs and taxes; spread bets and CFDs avoid UK stamp duty (reported).
Retail CFD and spread-bet leverage is capped by product, from 30:1 down to 2:1. Providers must close positions at 50% of required margin and protect against negative balances. ESMA's 2018 analyses found 74 to 89% of retail CFD accounts studied typically lose money (reported). That is not a forecast for you; read your own provider's risk warning.
What Super Algo Kit does with IG
The adapter paces trading calls at about 1 a second and treats the historical allowance as a weekly budget. These are the kit's own settings. With version 3 tokens, it refreshes before the access token lapses and stores each new refresh token.
After a timeout, it confirms the deal or matches open positions and activity before anything else. It never sends a second create, because the kit assumes a repeat can open a second position. A dropped streaming subscription can look like a quiet market, so feed freshness is checked on its own.
An independent risk gate sits outside the strategy, with retail leverage presets by product. A kill switch is drilled on the demo before any live step.
Before you rely on it
Gotchas to plan for.
- Version 3 refresh tokens expire soon after the access token, so store each new one.
- The deal reference IG returns is not the deal id; confirm the deal before treating it as placed (reported).
- Polling positions and prices drains the small per-account allowance; use streaming for prices (reported).
- Opening extra streaming connections to pass 40 subscriptions breaches IG's terms (reported).
- Demo limits and behaviour change without notice, so a demo pass is weak evidence for live (reported).
- CFD and spread-bet accounts have leverage caps and margin close-out rules that cash brokers do not.
FAQ
IG: questions.
Can I paper trade an IG bot on a demo account?
Yes. IG runs a demo environment with its own accounts and keys, and lower limits that can change without notice. API access is reported to need a demo linked to a live account. Super Algo Kit uses the demo for order-flow and error-path tests, not for performance claims.
Is Super Algo Kit affiliated with IG?
No. Super Algo Kit is independent software and is not affiliated with or endorsed by IG. The name is used only to say the kit works with IG's documented API. You hold your own IG account and API key.
Can an IG trading bot log in automatically?
IG's documented API login is a scripted call with your own username and password. Super Algo Kit allows it for your own account, never for someone else's. The password stays in your runtime secret store, and IG's terms on unattended use are not confirmed.
What are the IG API rate limits?
Reported limits are about 100 trading requests a minute and 30 non-trading requests a minute per account. Historical prices are reported at 10,000 data points a week, with one API key per account. Super Algo Kit paces trading calls at about 1 a second.
Does Super Algo Kit run my IG account for me?
No. Super Algo Kit is development software inside your coding agent, and agents use a demo login only. It never places trades itself and gives no investment advice. Real money starts only when you type the authorize command yourself.
Keep reading
More guides.
Sources the kit's card cites
Build it with Super Algo Kit.
15 specialist roles and 35 skills inside your coding agent. Paper first, live only when you say.
IG REST and streaming API and its logo are trademarks of their owner, used here only to say that Super Algo Kit can work with it. Super Algo Kit is not affiliated with or endorsed by IG. Super Algo Kit is development software. It is not investment advice, a signal service or a promise of performance. Trading involves substantial risk, including the loss of all capital you trade with.