# India Data Gateway — Historical Stock Price Lookup

> India Data Gateway — Historical Stock Price Lookup is a paid API for AI agents from gateway.hillguava.xyz, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-08).

Fetches historical OHLCV candlestick data for an Indian stock symbol (NSE/BSE) by symbol, returning dated close prices and interval metadata.

## Facts

- Endpoint: GET https://gateway.hillguava.xyz/historical/%7Bsymbol%7D
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-08
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/india-data-gateway-historical-stock-price-lookup-763e3aa9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ypI2sfRR0Yy3MMSMiskJh

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-data-gateway-historical-stock-price-lookup-763e3aa9
```

Example prompt: Can you pull historical daily closing prices for RELIANCE.NS from the India Data Gateway — I want to see the candle data for the past month so I can analyze the trend?

## When to prefer this

Use this endpoint when you need historical closing price or candlestick data for Indian equities listed on NSE or BSE, especially when you want pay-per-call access without API key registration, paying in USDC on Base via x402 protocol. Prefer this over general financial APIs when the focus is specifically on Indian market symbols.

## Known failure modes

- Invalid or unrecognized stock symbol returns empty candles array or error
- Payment failure (402) if USDC payment on Base is not provided or insufficient
- Symbol not found on NSE/BSE returns 404 or empty result
- Date range with no trading days returns empty candles
- Network timeout on gateway for large date ranges

## How this service works

The India data layer for AI agents. Pay only for the calls you make — no API keys, no accounts, no minimums, no rate limits. One x402 origin covering Indian weather (forecasts, monsoon), markets (stocks, indices, F&O with Black-Scholes Greeks, historical, mutual funds), RBI macro, identity/format verification (IFSC, pincode, GSTIN), NSE market holidays, panchang (Hindu almanac), and live cricket scores. Settle per call in USDC on Base.

## Output

A JSON object containing the stock symbol, the interval (e.g. '1d'), a count of candles returned, and an array of candle objects each with a date and close price — for example: {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-data-gateway-historical-stock-price-lookup-763e3aa9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from gateway.hillguava.xyz](https://www.zero.xyz/host/gateway.hillguava.xyz/llms.txt)
