Market Quote
dhanhq._market_feed
Classes
MarketFeed
MarketFeed(dhan_context)
Functions
ohlc_data
ohlc_data(securities)
Retrieve the Open, High, Low and Close price along with LTP for specified instruments.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
securities |
dict
|
A dictionary where keys are exchange segments and values are lists of security IDs. securities = { "NSE_EQ": [11536], "NSE_FNO": [49081, 49082] } |
required |
Returns:
Name | Type | Description |
---|---|---|
dict |
The response containing Open, High, Low and Close along with LTP data. |
quote_data
quote_data(securities)
Retrieve full details including market depth, OHLC data, OI and volume along with LTP for specified instruments.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
securities |
dict
|
A dictionary where keys are exchange segments and values are lists of security IDs. securities = { "NSE_EQ": [11536], "NSE_FNO": [49081, 49082] } |
required |
Returns:
Name | Type | Description |
---|---|---|
dict |
The response containing full packet including market depth, last trade, circuit limit, OHLC, OI and volume data. |
ticker_data
ticker_data(securities)
Retrieve the latest market price for specified instruments.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
securities |
dict
|
A dictionary where keys are exchange segments and values are lists of security IDs. securities = { "NSE_EQ": [11536], "NSE_FNO": [49081, 49082] } |
required |
Returns:
Name | Type | Description |
---|---|---|
dict |
The response containing last traded price (LTP) data. |