# Deriv ticks_history

Independent and unofficial. Not affiliated with or endorsed by any broker or platform named here. Educational only: nothing here is advice, and nothing here recommends a broker or a trade.

This is the markdown version of https://openbrokerapi.com/brokers/deriv/messages/ticks-history, written from the same records as that 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.

Returns past prices of one symbol, as single ticks or as candles of a chosen width. With subscribe set to 1 it then keeps sending each new tick or the candle now forming.

- Message: `ticks_history`
- Interface: Deriv WebSocket API
- Group: Market data
- Status: verified. Source: [developers.deriv.com](https://developers.deriv.com/llms/ticks-history.md), checked 2026-10-12.
- The definition file it was checked against: https://developers.deriv.com/schemas/ticks_history_request.schema.json

This is a message of the Deriv WebSocket API, not an HTTP endpoint. It has no method and no path: it is sent as JSON over an open WebSocket connection. It is in no OpenAPI file on this site and the request builder does not list it.

## The message

- Name: `ticks_history`
- Direction: Request, sent by the client
- Carried by: WebSocket. Deriv's page marks this call as needing no login, so it can be sent on the public connection as well. The demo and real addresses are not opened as printed: POST /trading/v1/options/accounts/{accountId}/otp returns the address for one account with a one time password already in it.
- Public market data, no login: `wss://api.derivws.com/trading/v1/options/ws/public`
- Demo account: `wss://api.derivws.com/trading/v1/options/ws/demo`
- Real account: `wss://api.derivws.com/trading/v1/options/ws/real`

## Fields

- `ticks_history` (type string, required): The symbol, by the short name that active_symbols returns.
- `adjust_start_time` (type integer, optional): 1 moves the interval back where the market is closed at the end time or the licence limit falls before it. The only value allowed is 1.
- `count` (type integer, optional): The most ticks or candles to return.
- `end` (type string, required): The newest moment wanted: the word latest, or Unix time in seconds as a string.
- `granularity` (type integer, optional): The width of a candle in seconds, used only with the style candles. One of 60, 120, 180, 300, 600, 900, 1800, 3600, 7200, 14400, 28800 and 86400. The definition gives 60 as the default.
- `start` (type integer, optional): The oldest moment wanted, as Unix time in seconds. The definition says it defaults to one day ago for ticks, and for candles where neither count nor granularity is given.
- `style` (type string, optional): candles or ticks: which of the two shapes to return.
- `subscribe` (type integer, optional): 1 keeps the stream open after the history has been sent. The only value allowed is 1.
- `passthrough` (type object, optional): Anything you want carried through the call. It comes back unchanged inside echo_req.
- `req_id` (type integer, optional): A number of your own that is returned on the answer, so answers can be matched to requests.

## What arrives

The history comes first, with msg_type history for ticks or candles for candles. On a stream, each later message has msg_type tick or ohlc.

- `candles` (type array of objects, optional): Sent for the style candles only. Each entry holds open, high, low, close and epoch.
- `candles[].open` (type number, optional): The opening price of the candle.
- `candles[].high` (type number, optional): The highest price of the candle.
- `candles[].low` (type number, optional): The lowest price of the candle.
- `candles[].close` (type number, optional): The closing price of the candle.
- `candles[].epoch` (type integer, optional): The time of the candle, as Unix time in seconds.
- `history.prices` (type array, optional): The tick prices, in the same order as history.times.
- `history.times` (type array, optional): The time of each price, as Unix time in seconds.
- `pip_size` (type number, optional): How many decimal places the prices are meant to be shown with.
- `subscription.id` (type string, required): The id of the stream on this connection. Sent with forget to stop it. The subscription object is present only where the request asked for a stream.
- `echo_req` (type object, required): A copy of the request that was sent.
- `msg_type` (type string, required): Names the kind of answer. One of history, tick, candles and ohlc, by the style asked for and by whether it is the first answer or a later one.
- `req_id` (type integer, optional): The number the request carried. Present only where the request had one.

## 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.

```json
{
  "ticks_history": "R_50",
  "adjust_start_time": 1,
  "count": 10,
  "end": "latest",
  "start": 1,
  "style": "ticks"
}
```

## Limits that apply at Deriv

- Headline limit: 80/min per logged in user (REST)
  - Scope: user, REST
  - Sources conflict: [developers.deriv.com](https://developers.deriv.com/llms/api-overview.md) states 60 REST requests per minute per token, checked 2026-10-12. Deriv's API overview in the text form it publishes for AI tools gives REST 60 requests a minute per token, where its Limits page gives 80 a minute per logged in user. The same overview also gives 100 WebSocket requests a second per connection, 100 active subscriptions per connection and 5 concurrent WebSocket connections per user, none of which the Limits page mentions. Deriv's own pages disagree; the conflict is labelled, not resolved. Pace against 60.
  - Status: conflicting. Source: [developers.deriv.com](https://developers.deriv.com/docs/limits/), checked 2026-10-12.
  - Note: From the Limits page: REST is also capped at 300 a minute and 1,000 per ten minutes per IP address. WebSocket budgets, each shared by the calls in its row, a minute and an hour: proposal, proposal_open_contract, buy and sell 360 and 14,400; balance and statement 100 and 2,000; portfolio and profit table 30 and 1,500; all other calls 220 and 14,400. ping sits outside these budgets at 10 a second per connection.

## Related Deriv messages: Market data

- [active_symbols](https://openbrokerapi.com/brokers/deriv/messages/active-symbols): Lists the symbols that can be traded now, with the market each belongs to and whether it is open. The symbol codes it returns are what ticks, ticks_history and proposal expect.
- [contracts_for](https://openbrokerapi.com/brokers/deriv/messages/contracts-for): Lists the contracts that can be bought on one symbol now, with the barrier, stake and duration limits of each. On a logged in connection only the contracts that account may trade are returned.
- [ticks](https://openbrokerapi.com/brokers/deriv/messages/ticks): Asks for the latest price of one symbol or several. With subscribe set to 1 a new tick message follows each time the price changes, until the stream is stopped with forget.

## More on Deriv

- [All Deriv messages](https://openbrokerapi.com/brokers/deriv/messages): 19 documented here, grouped by what they do.
- [Historical candles: the call at each API](https://openbrokerapi.com/endpoints/candles): The same job at every broker and platform API recorded here, HTTP or not.
- [Deriv API quickstart](https://openbrokerapi.com/brokers/deriv/quickstart)
- [All Deriv error codes](https://openbrokerapi.com/errors/deriv)
- [Deriv API page](https://openbrokerapi.com/brokers/deriv): The full record: access, authentication, limits and the source for each.

## Licence and how to cite

The records behind this page are all rights reserved. This file is the page itself, at its own address, in another format. It is not part of the CC BY 4.0 downloads listed at https://openbrokerapi.com/data. Quote from it with a link to the page.

Cite as: Deriv ticks_history. Broker API Hub, https://openbrokerapi.com/brokers/deriv/messages/ticks-history, newest check 2026-10-12.

Where you rely on a single figure, cite the source and the checked date printed beside it as well. Where this page and a broker's own documentation differ, the documentation wins.
