ACCELPIX REST API is a robust interface designed for downloading historical and tick data efficiently. Whether you're looking to retrieve End of Day (EOD) data, intra-EOD data, live intra OHLC (Open, High, Low, Close) data, or quotes, this API provides comprehensive endpoints to meet your needs. Seamlessly integrate market data into your applications with simple and straightforward API calls.
All API requests require authentication using an API token. The API token must be included as a query parameter in each request.
Add the api_token
query parameter to your API requests as shown in the examples below.
api_token={your_api_key
Retrieve End of Day (EOD) data for a specific ticker within a date range.
GET http://{server}/api/fda/rest/{ticker}/{yyyyMMdd:start}/{yyyyMMdd:end}?api_token={your_api_key}
GET
Parameter | Type | Description |
{ticker} | string | The ticker symbol (e.g., "NIFTY 50"). |
{start} | string | Start date in yyyyMMdd format (e.g., "20240101"). |
{end} | string | End date in yyyyMMdd format (e.g., "20240115"). |
api_token | string | Your unique API token for authentication. |
[ { "tkr": "NIFTY 50", "td": "2024-01-01 00:00:00", "op": 21727.8000, "hp": 21834.3000, "lp": 21680.8000, "cp": 21741.9000, "vol": 0, "oi": 0, "eod": true }, { "tkr": "NIFTY 50", "td": "2024-01-02 00:00:00", "op": 21751.3000, "hp": 21755.6000, "lp": 21555.7000, "cp": 21665.8000, "vol": 0, "oi": 0, "eod": true } ]
Retrieve intra-EOD data for a specific ticker within a date range and specified resolution.
GET http://{server}/api/fda/rest/{ticker}/{yyyyMMdd:start}/{yyyyMMdd:end}/{resolution:minutes}?api_token={your_api_key}
GET
Parameter | Type | Description |
{ticker} | string | The ticker symbol (e.g., "NIFTY 50"). |
{start} | string | Start date in yyyyMMdd format (e.g., "20240111"). |
{end} | string | End date in yyyyMMdd format (e.g., "20240112"). |
{resolution} | string | Time resolution in minutes (e.g., "5"). |
api_token | string | Your unique API token for authentication. |
[ { "tkr": "NIFTY 50", "td": "2024-01-11 09:15:00", "op": 21688.8000, "hp": 21725.4000, "lp": 21683.4000, "cp": 21720.4000, "vol": 8554608, "oi": 0, "eod": false }, { "tkr": "NIFTY 50", "td": "2024-01-11 09:20:00", "op": 21721.1000, "hp": 21726.5000, "lp": 21693.1000, "cp": 21693.1000, "vol": 4901900, "oi": 0, "eod": false }, { "tkr": "NIFTY 50", "td": "2024-01-11 09:25:00", "op": 21692.6000, "hp": 21720.1000, "lp": 21690.4000, "cp": 21703.9000, "vol": 5450636, "oi": 0, "eod": false } ]
Retrieve live intra-OHLC (Open, High, Low, Close) data for a specific ticker within a precise time range and resolution.
GET http://{server}/api/fda/rest/{ticker}/{yyyyMMdd HH:mm:ss-start time}/{yyyyMMdd HH:mm:ss-end time}/{resolution:minutes}?api_token={your_api_key}
GET
Parameter | Type | Description |
{ticker} | string | The ticker symbol (e.g., "NIFTY 50"). |
{start} | string | Start time in yyyyMMdd HH:mm:ss format (e.g., "20240112 15:00:00"). |
{end} | string | End time in yyyyMMdd HH:mm:ss format (e.g., "20240112 15:15:00"). |
{resolution} | string | Time resolution in minutes (e.g., "5"). |
api_token | string | Your unique API token for authentication. |
[ { "tkr": "NIFTY 50", "td": "2024-01-12 15:00:00", "op": 21903.8000, "hp": 21922.0000, "lp": 21892.6000, "cp": 21893.3000, "vol": 6963597, "oi": 0, "eod": false }, { "tkr": "NIFTY 50", "td": "2024-01-12 15:05:00", "op": 21888.8000, "hp": 21899.8000, "lp": 21857.0000, "cp": 21858.3000, "vol": 8481726, "oi": 0, "eod": false }, { "tkr": "NIFTY 50", "td": "2024-01-12 15:10:00", "op": 21858.8000, "hp": 21884.9000, "lp": 21852.6000, "cp": 21876.0000, "vol": 7293602, "oi": 0, "eod": false } ]
Retrieve real-time quotes for multiple tickers.
POST http://{server}/api/fda/rest/quote?api_token={your_api_key}
POST
Parameter | Type | Description |
api_token | string | Your unique API token for authentication. |
api_token
string
Your unique API token for authentication.
Provide an array of ticker symbols for which you want to retrieve quotes.
["TCS", "NIFTY-1"]
POST http://apidata.accelpix.in/api/fda/rest/quote?api_token=cvFRDRmyKXp2%2BY9KKgPBfC0%3Dm
Content-Type: application/json ["TCS", "NIFTY-1"]
[ { "tkr": "TCS", "sid": 1, "tkn": 0, "tm": 1332344400, "pr": 3626.7, "qty": 0, "vol": 2413206, "bp": 0.0, "bq": 0, "ap": 3626.7, "aq": 1163, "op": 3696.0, "cp": 3626.7, "hp": 3713.95, "lp": 3615.0, "avg": 3650.29, "oi": 0, "val": 0.0, "band": 10, "upc": 3989.35, "lrc": 3264.05, "poi": 0, "chg": 0.0, "chgpc": 0.0 }, { "tkr": "NIFTY-1", "sid": 2, "tkn": 0, "tm": 1332343800, "pr": 17167.85, "qty": 200, "vol": 9308800, "bp": 17163.1, "bq": 200, "ap": 17167.9, "aq": 850, "op": 17332.2, "cp": 17322.05, "hp": 17392.1, "lp": 17130.65, "avg": 17234.96, "oi": 10866050, "val": 0.0, "band": 0, "upc": 0.0, "lrc": 0.0, "poi": 10866050, "chg": -154.20117, "chgpc": -0.89 } ]
Retrieve master data for all available symbols and instruments.
GET http://{server}/api/fda/rest/master?api_token={your_api_key}
GET
Parameter | Type | Description |
api_token | string | Your unique API token for authentication. |
[ { "xid": 1, "tkr": "NIFTY 50", "atkr": "NIFTY_50", "ctkr": null, "exp": "1970-01-01 00:00:00", "utkr": null, "inst": "INDEX", "a3tkr": null, "sp": "0.00", "tk": 99, "lot": 0 }, { "xid": 1, "tkr": "TCS", "atkr": null, "ctkr": null, "exp": "1970-01-01 00:00:00", "utkr": null, "inst": "EQUITY", "a3tkr": null, "sp": "0.00", "tk": 11536, "lot": 0 }, { "xid": 2, "tkr": "BANKNIFTY-1", "atkr": "BANKNIFTY_1", "ctkr": "BANKNIFTY22JUL", "exp": "2024-01-16 00:00:00", "utkr": "BANKNIFTY", "inst": "FUTIDX", "a3tkr": "BANKNIFTY-I", "sp": "0.00", "tk": 53734, "lot": 15 } ]
Below is a sample Python script demonstrating how to interact with the ACCELPIX REST API using the requests
library.
import requests import urllib.parse # Base URL of the API url_base = "
http://apidata.accelpix.in/api/fda/rest"
# Your API token (URL-encoded) api_token = urllib.parse.quote("your_api_token_here") # EOD Data Request eod_url = f"{url_base}/nifty-1/20240116/20240118?api_token={api_token}" eod_response = requests.get(eod_url) print("EOD Data:", eod_response.json()) # Quotes Data Request quote_url = f"{url_base}/quote?api_token={api_token}" quotes = ["NIFTY-1", "NIFTY BANK"] quote_response = requests.post(quote_url, json=quotes) print("Quotes Data:", quote_response.json())
Below is a sample C# (.NET) console application demonstrating how to interact with the ACCELPIX REST API using HttpClient
.
// .NET using System; using System.Collections.Generic; using System.Net.Http; using System.Text; using System.Threading.Tasks; using Newtonsoft.Json; namespace AccelPixApiSample { class Program { static async Task Main(string[] args) { const string urlBase = "
http://apidata.accelpix.in/api/fda/rest";
var apiToken = Uri.EscapeDataString("your_api_token_here"); using (var client = new HttpClient()) { // EOD Data Request var eodUrl = $"{urlBase}/nifty-1/20240110/20240118?api_token={apiToken}"; var eodResponse = await client.GetStringAsync(eodUrl); Console.WriteLine("EOD Data: " + eodResponse); // Quotes Data Request var quoteUrl = $"{urlBase}/quote?api_token={apiToken}"; var symbols = new List<string> { "NIFTY-1", "NIFTY BANK" }; var jsonContent = JsonConvert.SerializeObject(symbols); var content = new StringContent(jsonContent, Encoding.UTF8, "application/json"); var quoteResponse = await client.PostAsync(quoteUrl, content); var quoteResult = await quoteResponse.Content.ReadAsStringAsync(); Console.WriteLine("Quotes Data: " + quoteResult); } Console.ReadLine(); } } }
Ensure you have the Newtonsoft.Json
package installed for JSON serialization.