# NSE India Stock Market Data (`aurumworks/nse-india-market-data`) Actor

Fetch live stock quotes, NIFTY indices, top gainers/losers, most active stocks, bulk deals, FII/DII activity, and option chains from NSE India. No API key needed. Handles NSE cookie authentication automatically.

- **URL**: https://apify.com/aurumworks/nse-india-market-data.md
- **Developed by:** [Aryan Saxena](https://apify.com/aurumworks) (community)
- **Categories:** Other, Automation, Integrations
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $9.50 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## NSE India Stock Market Data — Live Quotes, Indices & Option Chains

**Fetch live stock market data from NSE India.** Get stock quotes, NIFTY indices, top gainers/losers, most active stocks, bulk deals, FII/DII activity, and option chains — all from the same source as nseindia.com. No API key or login needed.

### Why use this actor?

- **No API key needed** — just select a mode and run
- **10 data modes** — quotes, indices, gainers, losers, most active, bulk deals, FII/DII, option chains
- **Schedule it** — run every 15 minutes during market hours to build historical datasets
- **Export to CSV/Excel** — perfect for analysis, Google Sheets, or trading dashboards
- **Integrations** — connect to Slack, Zapier, webhooks, or Google Sheets via Apify

### How to use

1. Click **Try for free** on this page
2. Select a **Data Mode** (e.g. market_overview, stock_quote, option_chain)
3. For stock quotes, enter comma-separated symbols (e.g. RELIANCE,TCS,INFY)
4. Click **Start** and wait for results
5. Download your data as JSON, CSV, or Excel

### Input

| Field | Type | Description | Default |
|-------|------|-------------|---------|
| Data Mode | string | What data to fetch | market_overview |
| Stock Symbols | string | Comma-separated NSE symbols (for stock_quote mode) | RELIANCE,TCS,INFY |
| Index Name | string | Index name (for index_data mode) | NIFTY 50 |
| Option Symbol | string | Symbol for option chain | NIFTY |

### Data Modes

| Mode | Description |
|------|-------------|
| **market_overview** | Market status + NIFTY 50 summary |
| **stock_quote** | Detailed quote for specific stocks — price, volume, 52-week range, OHLC |
| **top_gainers** | Today's top 30 gaining stocks with price changes |
| **top_losers** | Today's top 30 losing stocks with price changes |
| **most_active** | Top 30 most traded stocks by volume and turnover |
| **bulk_deals** | Today's bulk and block deals — client names, quantities, prices |
| **fii_dii** | FII/DII daily buy/sell activity — buy value, sell value, net value |
| **index_data** | Detailed index data + all constituent stocks |
| **option_chain** | Full option chain — all strikes with OI, IV, volume, prices |
| **all** | Fetch everything above in one run |

### Output Examples

#### Stock Quote
```json
{
  "dataType": "stock_quote",
  "symbol": "RELIANCE",
  "companyName": "Reliance Industries Limited",
  "industry": "REFINERIES",
  "lastPrice": 1285.50,
  "open": 1280.00,
  "high": 1292.35,
  "low": 1275.10,
  "previousClose": 1278.90,
  "change": 6.60,
  "pChange": 0.52,
  "totalTradedVolume": 12345678,
  "weekHigh52": 1608.80,
  "weekLow52": 1114.85
}
````

#### Option Chain Strike

```json
{
  "dataType": "option_chain_strike",
  "symbol": "NIFTY",
  "expiryDate": "01-May-2026",
  "strikePrice": 24500,
  "CE_openInterest": 1234567,
  "CE_lastPrice": 125.50,
  "CE_impliedVolatility": 12.35,
  "PE_openInterest": 987654,
  "PE_lastPrice": 98.75,
  "PE_impliedVolatility": 13.20
}
```

#### FII/DII Activity

```json
{
  "dataType": "fii_dii",
  "category": "FII/FPI",
  "date": "30-Apr-2026",
  "buyValue": "12345.67",
  "sellValue": "9876.54",
  "netValue": "2469.13"
}
```

### Data Fields

#### Stock Quote Fields

| Field | Description |
|-------|-------------|
| symbol | NSE stock symbol |
| companyName | Full company name |
| lastPrice | Current/last traded price |
| open / high / low | Intraday OHLC |
| previousClose | Previous day's close |
| change / pChange | Absolute and percentage change |
| totalTradedVolume | Total shares traded today |
| weekHigh52 / weekLow52 | 52-week high and low |

#### Option Chain Fields

| Field | Description |
|-------|-------------|
| strikePrice | Option strike price |
| CE\_openInterest / PE\_openInterest | Call/Put open interest |
| CE\_lastPrice / PE\_lastPrice | Call/Put last traded price |
| CE\_impliedVolatility / PE\_impliedVolatility | Call/Put IV |
| CE\_totalTradedVolume / PE\_totalTradedVolume | Call/Put volume |

### How much does it cost?

This actor uses minimal compute. A typical run costs **$0.01–$0.05** in platform usage. The "all" mode takes slightly longer but still under $0.10.

### Tips

- **Market hours**: NSE is open 9:15 AM – 3:30 PM IST, Monday to Friday. Live data is available during these hours. Outside market hours, you'll get the last closing data.
- **Schedule runs**: Set up a schedule to run every 15 minutes during market hours for intraday tracking.
- **Option chain**: Use NIFTY or BANKNIFTY for index options, or any F\&O stock symbol for equity options.
- **FII/DII data**: Track institutional flows daily to gauge market sentiment.
- **Bulk deals**: Monitor bulk deals for large institutional activity.

### Supported Indices

NIFTY 50, NIFTY NEXT 50, NIFTY BANK, NIFTY IT, NIFTY FINANCIAL SERVICES, NIFTY AUTO, NIFTY PHARMA, NIFTY FMCG, NIFTY METAL, NIFTY REALTY, NIFTY ENERGY, NIFTY INFRA, NIFTY MIDCAP 50, NIFTY SMALLCAP 50, and more.

### FAQ

**Does this work outside market hours?**
Yes. Outside market hours you'll get the last available closing data. Market status will show "Closed".

**Can I get historical data?**
This actor fetches current/live data. For historical data, consider NSE's bhavcopy downloads.

**I found a bug or have a feature request.**
Please open an issue in the Issues tab.

# Actor input Schema

## `mode` (type: `string`):

What data to fetch from NSE

## `symbols` (type: `string`):

Comma-separated NSE symbols for stock\_quote mode (e.g. RELIANCE,TCS,INFY,HDFCBANK)

## `index` (type: `string`):

Index for index\_data or option\_chain mode

## `optionSymbol` (type: `string`):

Symbol for option\_chain mode (e.g. NIFTY, BANKNIFTY, RELIANCE)

## Actor input object example

```json
{
  "mode": "market_overview",
  "symbols": "RELIANCE,TCS,INFY",
  "index": "NIFTY 50",
  "optionSymbol": "NIFTY"
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("aurumworks/nse-india-market-data").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("aurumworks/nse-india-market-data").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call aurumworks/nse-india-market-data --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=aurumworks/nse-india-market-data",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "NSE India Stock Market Data",
        "description": "Fetch live stock quotes, NIFTY indices, top gainers/losers, most active stocks, bulk deals, FII/DII activity, and option chains from NSE India. No API key needed. Handles NSE cookie authentication automatically.",
        "version": "0.1",
        "x-build-id": "MJQrmwnEFfKBReEKf"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/aurumworks~nse-india-market-data/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-aurumworks-nse-india-market-data",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/aurumworks~nse-india-market-data/runs": {
            "post": {
                "operationId": "runs-sync-aurumworks-nse-india-market-data",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/aurumworks~nse-india-market-data/run-sync": {
            "post": {
                "operationId": "run-sync-aurumworks-nse-india-market-data",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "mode": {
                        "title": "Data Mode",
                        "enum": [
                            "market_overview",
                            "stock_quote",
                            "top_gainers",
                            "top_losers",
                            "most_active",
                            "bulk_deals",
                            "fii_dii",
                            "index_data",
                            "option_chain",
                            "all"
                        ],
                        "type": "string",
                        "description": "What data to fetch from NSE",
                        "default": "market_overview"
                    },
                    "symbols": {
                        "title": "Stock Symbols",
                        "type": "string",
                        "description": "Comma-separated NSE symbols for stock_quote mode (e.g. RELIANCE,TCS,INFY,HDFCBANK)",
                        "default": "RELIANCE,TCS,INFY"
                    },
                    "index": {
                        "title": "Index Name",
                        "type": "string",
                        "description": "Index for index_data or option_chain mode",
                        "default": "NIFTY 50"
                    },
                    "optionSymbol": {
                        "title": "Option Chain Symbol",
                        "type": "string",
                        "description": "Symbol for option_chain mode (e.g. NIFTY, BANKNIFTY, RELIANCE)",
                        "default": "NIFTY"
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
