eToro Subscribe
Starts delivery of one topic or several: instrument:{instrumentId} for live rates, candle:{instrumentId} for candles, or private for the logged in user's order updates. An acknowledgement follows, then the pushes.
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.
This is a message of the eToro WebSocket API, not an HTTP endpoint. It has no method and no path: it is sent as JSON over an open WebSocket connection.
The AsyncAPI document adds that a single binary frame is sent from time to time as a heartbeat.
The message
- Name
- Subscribe
- Direction
- Request, sent by the client
- Carried by
- WebSocket.
- WebSocket address
- wss://ws.etoro.com/ws
Fields
| Name | Type | Description |
|---|---|---|
| idrequired | string (uuid) | An id you generate for the request. The acknowledgement carries the same value, which is how an answer is matched to its request. |
| operationrequired | string | Always Subscribe. |
| datarequired | object | Holds the topics and the snapshot switch. |
| data.topicsrequired | array of strings | The topics to subscribe to, such as instrument:100000 or private. |
| data.snapshot | boolean | For market data topics only: true sends the current rate at once on subscribing. The definition says it has no effect on the private topic. |
What arrives
An acknowledgement on the same connection. It repeats the id and the operation, and success says whether the Subscribe request was accepted.
| Name | Type | Description |
|---|---|---|
| idrequired | string (uuid) | The id of the request being acknowledged. |
| successrequired | boolean | true where the request was accepted, false where it was not. |
| operationrequired | string | The operation being acknowledged: Authenticate, Subscribe or Unsubscribe. |
| errorMessage | string | A message, present where success is false. |
| errorCode | string | An error code, present where success is false. |
Sample
Written by this site from the fields recorded on this page. It has not been run against a terminal, a server or an account, and the values in it are placeholders. No credential is typed into it: where a field holds one, the placeholder says where it comes from. Nothing is entered on this site.
{
"id": "ed72693c-1545-4fa1-8a10-aca7cf5419a6",
"operation": "Subscribe",
"data": {
"topics": [
"instrument:100000"
],
"snapshot": true
}
}Limits that apply at eToro
| Limit | Value | Scope | Source |
|---|---|---|---|
| Headline limit | 60/min reads per key | user | api-portal.etoro.comchecked |