> For the complete documentation index, see [llms.txt](https://tradesync.gitbook.io/tradesync/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tradesync.gitbook.io/tradesync/fxtr-v2/functions-of-fxtr-v2/get-a-list-of-candles-for-the-account.md).

# Get a list of candles for the account

{% openapi src="/files/W49TDl99tTiynnHob0sL" path="/candles/demo/{accountid}" method="get" %}
[swagger\_fxtr.yaml](https://71865896-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlEheEO2iA7qJYcTvB21a%2Fuploads%2FyiCcAxry9rEP8nfPR6xo%2Fswagger_fxtr.yaml?alt=media\&token=55f2f4a9-bd27-4472-9590-0acb3dde1c18)
{% endopenapi %}

Example of request:

```
/api/v2/fxtr/candles/demo/1001?server_code=mt5_trial2&from=1693825997&to=1693826030&instrument=EURUSD&time_frame=1
```

### Body parameters

<table><thead><tr><th>Parameter</th><th width="113" data-type="checkbox">Required</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td><code>from</code></td><td>true</td><td><code>int</code></td><td>unix time in second</td></tr><tr><td><code>to</code></td><td>true</td><td><code>int</code></td><td>unix time in second</td></tr><tr><td><code>time_frame</code></td><td>true</td><td><code>int</code></td><td><p><strong>can be</strong></p><p>1: // 1 min  candles </p><p>5: // 5 min candles </p><p>15: // 15 min candles </p><p>30: // 30 min candles </p><p>60: // 1 hour candles 240: // 4 hour candles 1440: // 1 day candles</p></td></tr><tr><td><code>instrument</code></td><td>true</td><td>string</td><td>name of a symbol for which candles is requested</td></tr></tbody></table>

{% hint style="info" %}
Suffix to the `unstrument` is optional and it depends on configuration.
{% endhint %}

Example of response: candle information

```json
[
    {
        "open": 0.87556,
        "close": 0.87556,
        "low": 0.87556,
        "high": 0.87556,
        "time": 1693804380000,
        "volume": 0
    },
    {
        "open": 0.87555,
        "close": 0.87568,
        "low": 0.87555,
        "high": 0.87568,
        "time": 1693804440000,
        "volume": 0
    }
]
```

{% openapi src="/files/W49TDl99tTiynnHob0sL" path="/candles/default/{accountid}" method="get" %}
[swagger\_fxtr.yaml](https://71865896-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlEheEO2iA7qJYcTvB21a%2Fuploads%2FyiCcAxry9rEP8nfPR6xo%2Fswagger_fxtr.yaml?alt=media\&token=55f2f4a9-bd27-4472-9590-0acb3dde1c18)
{% endopenapi %}

{% openapi src="/files/W49TDl99tTiynnHob0sL" path="/candles/master/{accountid}" method="get" %}
[swagger\_fxtr.yaml](https://71865896-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlEheEO2iA7qJYcTvB21a%2Fuploads%2FyiCcAxry9rEP8nfPR6xo%2Fswagger_fxtr.yaml?alt=media\&token=55f2f4a9-bd27-4472-9590-0acb3dde1c18)
{% endopenapi %}

{% openapi src="/files/W49TDl99tTiynnHob0sL" path="/candles/investor/{accountid}" method="get" %}
[swagger\_fxtr.yaml](https://71865896-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlEheEO2iA7qJYcTvB21a%2Fuploads%2FyiCcAxry9rEP8nfPR6xo%2Fswagger_fxtr.yaml?alt=media\&token=55f2f4a9-bd27-4472-9590-0acb3dde1c18)
{% endopenapi %}

{% openapi src="/files/W49TDl99tTiynnHob0sL" path="/candles/commission/{accountid}" method="get" %}
[swagger\_fxtr.yaml](https://71865896-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlEheEO2iA7qJYcTvB21a%2Fuploads%2FyiCcAxry9rEP8nfPR6xo%2Fswagger_fxtr.yaml?alt=media\&token=55f2f4a9-bd27-4472-9590-0acb3dde1c18)
{% endopenapi %}
