> For the complete documentation index, see [llms.txt](https://docs.openalgo.in/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.openalgo.in/trading-platform/amibroker/amiquotes.md).

# AmiQuotes

**This tool helps you to fetch data (1 minute / Daily) directly from the broker and seamlessly update Amibroker using the AmiQuote tool every minute.**

AmiQuote is a polling downloader, not a streaming feed. The `OpenAlgo.ads` file below is an AmiQuote data-source definition: each time AmiQuote runs it issues one HTTP GET per symbol against the OpenAlgo [Ticker API](/api-documentation/v1/data-api/ticker.md) and imports the plain-text result into the AmiBroker database.

```
GET http://127.0.0.1:5000/api/v1/ticker/{symbol}?apikey={api_key}&interval={interval}&from={from}&to={to}&format=txt
```

Two consequences worth knowing before you start:

* The data source declares only two usable intervals: **Daily** (`interval=D`, up to 3650 days per request) and **1-minute** (`interval=1m`, 1 day per request). The other periodicities listed by AmiQuote carry no OpenAlgo interval token and will not download.
* The Ticker API clamps the requested date range server side: intraday intervals are capped at 30 days back from the end date, and D/W/M at 10 years. Longer requests are silently trimmed rather than rejected.

If you want a live tick feed and realtime charts instead of a once-a-minute snapshot import, use the [OpenAlgo AmiBroker Plugin](/trading-platform/amibroker/amibroker-plugin.md), which streams from the OpenAlgo WebSocket proxy.

### Prerequisites

OpenAlgo and OpenAlgo API Key

Amibroker 6.0 or higher

Amiquotes 4.10 or higher (mostly preinstalled with Amibroker) if not download from [Amibroker Download section](https://amibroker.com/download.html)

OpenAlgo supported Brokers providing Historical Data / Intraday Data API

Note : As of now kotak not supporting intraday/historical data API

### Step 1 : Download OpenAlgo - Amiquotes (Plugin)

{% file src="/files/NIyXBlRr4z0n5lfY995V" %}

Download the file and save under **Amibroker -> Amiquotes -> DataSource Folder**

<figure><img src="/files/XGLihp2UHygSQrazU8CR" alt=""><figcaption></figcaption></figure>

### Step 2 : Create the Amibroker Database

Open Amibroker Goto File Menu -> New -> Database

<figure><img src="/files/siF2BqIZU1FPSWvhFy3n" alt=""><figcaption></figcaption></figure>

Create a New Database

Enter the Database Name, Base Time Interval and Click Create

<figure><img src="/files/47qqMrjw0Y6K9IQQ2oO3" alt=""><figcaption></figcaption></figure>

Enter the Database Source as (local database) and Number of Bars as 75000

<figure><img src="/files/xiigSqaVwOqTj6fve6D4" alt=""><figcaption></figcaption></figure>

Now click on Intraday Settings and Enable Allow Mixed EOD/Interval data and press ok

<figure><img src="/files/QOcb7EUYU5J5xaexj0ZP" alt=""><figcaption></figcaption></figure>

### Step 3 : Add OpenAlgo Ticker Symbols

Add Ticker Symbols from the Symbols menu -> New

The AmiBroker ticker name is pasted straight into the Ticker API path, so it must be written as `EXCHANGE:SYMBOL`, for example `NSE:RELIANCE`, `BSE:TCS`, `MCX:CRUDEOIL18JUN26FUT`, `NSE_INDEX:NIFTY`. This is the reverse of the `SYMBOL-EXCHANGE` format used by the OpenAlgo AmiBroker data plugin. A ticker with no `EXCHANGE:` prefix does not fail cleanly: the Ticker API falls back to `NSE:RELIANCE` and you will silently import the wrong instrument.

<figure><img src="/files/aWUDhYyguGvoyJWYLujy" alt=""><figcaption></figcaption></figure>

You can Also add the ticker symbol with comma separated

<figure><img src="/files/qJRLu6NXT5s6SEClgbvN" alt=""><figcaption></figcaption></figure>

If you want to import bulk symbols consider using Watchlist import method (Supports .txt or .csv or .tls format)

<figure><img src="/files/G02gtH4lHI6wm5MU40Do" alt=""><figcaption></figcaption></figure>

### Step 4 : Amiquote Realtime Update

Open Amiquote from Tools Menu -> Auto-update quotes (AmiQuote)

<figure><img src="/files/CEufSW83EmsN0TCP3hfN" alt=""><figcaption></figcaption></figure>

From the dropdown of Amiquote Select OpenAlgo

<figure><img src="/files/4yOaoNeC9chYB7SQXXg7" alt=""><figcaption></figcaption></figure>

Alternatively, you can also import the openalgo template using the import method. Goto **Data Source Menu -> Import**

<figure><img src="/files/uZmofU1S3wXapRWQZoxI" alt=""><figcaption></figcaption></figure>

configure the OpenAlgo API key

Get the OpenAlgo API Key by visiting **openalgo -> Dashboard -> Click on Profile Icon -> APIKey**

Create one if you installed openalgo for the first time. Copy the API key and paste in the User-definable data source -> API Key Section as shown below and press ok

<figure><img src="/files/JA93NMFqQpsXqTUpv4X2" alt=""><figcaption></figcaption></figure>

Now Select the desired interval and set Run every 1min and press the play button

<figure><img src="/files/VsNJmT36jhVvtOA9nYlv" alt=""><figcaption></figcaption></figure>

Now the Data Download from the Broker via OpenAlgo Starts

<figure><img src="/files/FoOwLAkgMTlGIA1Upkig" alt=""><figcaption></figcaption></figure>

Now you can see that openalgo is Auto updating the Amibroker Database every 1 minute

<figure><img src="/files/tzP1joZjb6kzMDdly4Ya" alt=""><figcaption></figcaption></figure>

Make sure that Charts are loaded properly.

<figure><img src="/files/Ywh0JwsGqGnuNeqGYM1I" alt=""><figcaption></figcaption></figure>

Start using your brokers data for your analysis purpose.<br>

For more details and troubleshooting refer the [Ticker API](/api-documentation/v1/data-api/ticker.md)

Make sure to login to openalgo every day to fetch the live intraday/EOD quotes
