NIFTY----BANKNIFTY----RELIANCE----HDFCBANK----INFY----TCS----TATASTEEL----GOLD----SILVER----COPPER----CRUDEOIL----NATURALGAS----
···
Public API

Market API

The ticker at the top of this site runs on this API. It is open, read-only, needs no key, and is the same thing I do at work in miniature: pull from an upstream, normalise it, cache it, and degrade honestly when it breaks.

 

Endpoints

GET/api/v1/sessioncache 20s

NSE and MCX session state in IST — pre-open, open, closed — with the countdown to the next change. Computed, not fetched, so it has no upstream to fail.

GET/api/v1/quotescache 60s

Delayed quotes for every tracked instrument. Filter with ?symbols=NIFTY,GOLD. Returns 503 rather than inventing a price if the provider is unreachable and nothing is cached.

The symbol registry, with the exchange and currency each instrument is quoted in.

From your terminal

curl -s https://sharmaketann.in/api/v1/session | jq .

curl -s 'https://sharmaketann.in/api/v1/quotes?symbols=NIFTY,GOLD' | jq '.data'

Coverage

Indices · NSE · INR

  • NIFTY · ^NSEI
  • BANKNIFTY · ^NSEBANK

Equities · NSE · INR

  • RELIANCE · RELIANCE.NS
  • HDFCBANK · HDFCBANK.NS
  • INFY · INFY.NS
  • TCS · TCS.NS
  • TATASTEEL · TATASTEEL.NS

Commodities · COMEX/NYMEX · USD

  • GOLD · GC=F
  • SILVER · SI=F
  • COPPER · HG=F
  • CRUDEOIL · CL=F
  • NATURALGAS · NG=F

What this is not