# Market Data Event Type

| Field          | Value                                                                                       | Type                                                            |
| -------------- | ------------------------------------------------------------------------------------------- | --------------------------------------------------------------- |
| **type**       | Either `Quote` or `Candle`                                                                  | [Account code](account-details), **required**                   |
| **format**     | Always `COMPACT`                                                                            | String, _optional_                                              |
| **candleType** | Type of the candle, only for candle queries                                                 | String, _optional_                                              |
| **fromTime**   | Required for _Candle_ type. UTC time to get history from.                                   | Timestamp, _optional_                                           |
| **toTime**     | Required for _Candle_ type. UTC time to get history till.                                   | Timestamp, _optional_                                           |
| **count**      | Maximum count of candles in response. If not defined, used value predefined on server side. | [Number](../getting-started/data-types-and-formats), _optional_ |

## _<mark style="color:blue;">**string**</mark>_**&#x20;candleType**

Possible values:

* `m` (1 min)
* `5m` (5 min)
* `15m` (15 minutes)
* `30m` (30 minutes)
* `h` (1 hour)
* `2h` (2 hours)
* `4h` (4 hours)
* `d` (Day)
* `w` (Week)
* `mo` (Month)

## _<mark style="color:blue;">**number**</mark>_**&#x20;count**

If the number of candles in the \[fromTime, toTime] period is more than the `count` value, exactly the `count` candles will be returned in response. Older candles will be filtered.
