# India Financial Data API – Historical Stock Prices

> India Financial Data API – Historical Stock Prices is a paid API for AI agents from stockapi.hillguava.xyz, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-15).

Returns historical OHLCV candle data for a given NSE/BSE stock symbol over a specified interval

## Facts

- Endpoint: GET https://stockapi.hillguava.xyz/historical/%7Bsymbol%7D
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/india-financial-data-api-historical-stock-prices-04c88491
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1l7831332WUaClKHj_ECo

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability india-financial-data-api-historical-stock-prices-04c88491
```

Example prompt: Can you pull the daily historical closing prices for RELIANCE.NS from the India Financial Data API for the last 30 days?

## When to prefer this

Use this endpoint when you need historical price candle data for Indian equities (NSE/BSE listed stocks) and want pay-per-call access with no account registration, paying in USDC on Base via the x402 protocol. Ideal for backtesting, charting, or performance analysis of Indian market securities.

## Known failure modes

- Invalid or unrecognized stock symbol returns empty or error response
- Symbol not listed on NSE/BSE causes lookup failure
- Missing required symbol path parameter returns 400 or malformed response
- Payment not completed via x402/USDC results in 402 Payment Required response
- Requesting data for a non-trading day may return empty candles array

## How this service works

Pay-per-call India stock, F&O (with Black-Scholes Greeks), mutual fund, and RBI macro data. Powered by x402 — pay in USDC on Base, no account needed.

## Output

Returns a JSON object with the stock symbol, interval (e.g. '1d'), total candle count, and an array of candles each containing a date and closing price — e.g. {count: 1, symbol: 'RELIANCE.NS', candles: [{date: '2026-06-23', close: 1310.4}], interval: '1d'}

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 1,
  "symbol": "RELIANCE.NS",
  "candles": [
   {
    "date": "2026-06-23",
    "close": 1310.4
   }
  ],
  "interval": "1d"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/india-financial-data-api-historical-stock-prices-04c88491/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from stockapi.hillguava.xyz](https://www.zero.xyz/host/stockapi.hillguava.xyz/llms.txt)
