eToro vs IG API
The same fields from the eToro record and the IG record, side by side. No winner is picked: which one suits you depends on what you are building.
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.
What the two records show
Differences you can see in the records themselves. These are counts of what this site holds, not a verdict on either API.
- eToro is recorded as a broker with an API of its own. IG is recorded as a broker with an API of its own.
- This site documents 51 endpoints for eToro and 49 endpoints for IG. That counts what has been documented here, not what each API offers.
- This site has decoded 16 error codes for eToro and 132 error codes for IG.
- The limits register holds 1 limit record for eToro and 5 limit records for IG. Each limit record carries its own scope.
- The eToro record holds a demo claim, verified at its source. The IG record holds a demo claim, verified at its source. The wording of each is in the Demo row below.
- Claims marked unverified or as sources conflicting: 0 in the eToro record and 1 in the IG record. Each is labelled where it appears.
- A quickstart is built here for both.
eToro and IG, field by field
| Field | eToro | IG |
|---|---|---|
| Kind | Broker with its own API | Broker with its own API |
| API family | REST, WebSocket, OAuth 2.0 SSO (partners) | REST, Streaming |
| How you get access | Settings > Trading > API Key Management > Create New Key; choose Read or Write, optional IP whitelist and expiry.eToro API portal: authenticationchecked | API keys are only issued to existing live account holders: generate one in My IG > Settings > API keys.How to use IG APIchecked |
| Who can use it | Verified eToro account required. Regional availability not published on pages opened.eToro API Portalchecked | Spread bet and CFD accounts only. Share dealing, ISA and SIPP are not supported (error stockbroking-not-supported).trading-ig FAQ (community source)checked |
| Demo | Yes: the environment is bound to the key when it is created, Demo or Real, and each key supports one environment only.eToro Builders FAQchecked | Partial: demo API works, but no key from a standalone demo account unless it is linked to a live account.How to use IG APIchecked |
| Authentication | Headers x-api-key, x-user-key and x-request-id on every request, or an OAuth 2.0 bearer token instead of the key headers. eToro now states the exclusivity itself rather than leaving it to be inferred: a request presenting both is rejected.eToro API portal: authenticationchecked | API key plus username and password returns CST and X-SECURITY-TOKEN, valid 12 hours on a rolling basis with each call resetting the clock on the IG Labs FAQ, while IG's REST trading API guide says 6 hours at first, extended up to a maximum of 72 hours: a disagreement between two IG pages that the blocked reference page could not settle on 23 Sep 2026. The v3 OAuth access token lasts as long as the login response says, with a refresh token that expires later. All tokens are invalidated during weekend maintenance.Sources conflict IG Labs FAQ: 12 hours between calls, reset by each call. IG Labs REST trading API guide: 6 hours at first, extended up to 72 hours while in use.IG Labs REST trading API guidechecked |
| Streaming | WebSocket at wss://ws.etoro.com/ws, described by an AsyncAPI 3.0 document that eToro publishes. Instrument topics need no authentication; the private topic needs an Authenticate message first, which carries the user key and API key inside its data object over the open socket, never as a header. A Subscribe message lists topics such as instrument:<instrumentId> or private, with an optional snapshot flag. The AsyncAPI document, the Topics page and the example code agree on that shape. The server sends a single binary frame from time to time as a heartbeat. No connection or subscription limit is given and no reconnection or replay behaviour is described.eToro WebSocket API, AsyncAPI documentchecked | Streaming runs on Lightstreamer: IG's Streaming API Guide starts by sending you to the Lightstreamer client library, and the server address to connect to comes back from the /session call. By default a connection holds up to 40 simultaneous subscriptions. The guide asks you to contact IG to raise that quota and the FAQ says to manage it by unsubscribing and subscribing as needed; both warn that opening extra connections to get past it may cost you the API key or your API permissions. The streaming API does not take OAuth tokens, only the CST and X-SECURITY-TOKEN pair.IG Labs Streaming API Guidechecked |
| History depth | Candles: max 1,000 per request, one minute to one week. Trading history: lookback under 1 year per request; split longer ranges.eToro API: Get instrument candle historychecked | Up to 20 years of price history depending on resolution; 10,000 historical data points per week. Transactions and activity history are paged.IG: How to use IG APIchecked |
| Limits |
|
|
| Endpoints documented here | 51 | 49 |
| Error codes decoded here | 16 | 132 |
| Official documentation | api-portal.etoro.com | labs.ig.com |
Go deeper on each side
eToro
- eToro API page, the full record
- eToro API quickstart, credentials to a first call
- eToro API limits, in the table above
- eToro API error codes, each with its fix
- eToro API endpoints, each with its source
- Get your eToro trade history into a spreadsheet
IG
- IG API page, the full record
- IG API quickstart, credentials to a first call
- IG API limits, in the table above
- IG API error codes, each with its fix
- IG API endpoints, each with its source
- ChatGPT trading bot with the IG API, the safe way
- Get your IG trade history into a spreadsheet
- IG deal confirms: turning a deal reference into a result
- IG demo API key: how to get one and what it allows
- IG streaming with Python
All comparisons. New to this? Getting started with API trading.