API Reference / MarketFeed
Class: MarketFeed
Defined in: src/resources/MarketFeed.ts:75
On-demand market data snapshots (/v2/marketfeed/*).
These are snapshot reads, not a stream — for continuous updates use MarketFeedWS.
Constructors
Constructor
new MarketFeed(
httpClient):MarketFeed
Defined in: src/resources/MarketFeed.ts:76
Parameters
httpClient
Returns
MarketFeed
Methods
ltp()
ltp(
instruments):Promise<MarketFeedResponse<LtpQuote>>
Defined in: src/resources/MarketFeed.ts:79
Last traded price for up to 1000 instruments.
Parameters
instruments
Returns
Promise<MarketFeedResponse<LtpQuote>>
ohlc()
ohlc(
instruments):Promise<MarketFeedResponse<OhlcQuote>>
Defined in: src/resources/MarketFeed.ts:95
Open/high/low/close for up to 1000 instruments.
Parameters
instruments
Returns
Promise<MarketFeedResponse<OhlcQuote>>
quote()
quote(
instruments):Promise<MarketFeedResponse<FullQuote>>
Defined in: src/resources/MarketFeed.ts:111
Full quote with market depth and open interest.
Parameters
instruments
Returns
Promise<MarketFeedResponse<FullQuote>>
ltpFor()
ltpFor(
exchangeSegment,securityId):Promise<number|undefined>
Defined in: src/resources/MarketFeed.ts:130
Last traded price for a single instrument, or undefined when the feed has no entry for it.
Parameters
exchangeSegment
string
securityId
string | number
Returns
Promise<number | undefined>