Discover/nepalstock.com API
live

nepalstock.com APIwww.nepalstock.com

Access live NEPSE trading data, market summaries, full securities listings, and per-stock price history via the nepalstock.com API. 4 endpoints, no login required.

Endpoint health
verified 2h ago
get_market_summary
list_securities
get_stock_history
get_live_trading
4/4 passing latest checkself-healing
Endpoints
4
Updated
3h ago
Try it

No input parameters required.

api.parse.bot/scraper/b3ba34ee-1ca5-437b-8dc4-d04c26ff409f/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Call it over HTTPgrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/b3ba34ee-1ca5-437b-8dc4-d04c26ff409f/list_securities' \
  -H 'X-API-Key: $PARSE_API_KEY'
Python SDK · recommended

Typed, relational, agent-ready

A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.

  • Fully typed · autocompletes
  • Objects link to objects
  • Typed errors & pagination

Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:

uv add parse-sdk
uv run parse init
uv run parse add --marketplace nepalstock-com-api

uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.


"""Walkthrough: NEPSE SDK — live market data and historical prices for Nepal Stock Exchange."""
from parse_apis.Nepal_Stock_Exchange__NEPSE__API import Nepse, NotFoundError

client = Nepse()

# List all listed securities on NEPSE
for security in client.securities.list(limit=5):
    print(security.symbol, security.security_name)

# Get live trading data for all stocks in the latest session
quote = client.stock_quotes.list(limit=1).first()
if quote:
    print(f"{quote.symbol}: LTP={quote.last_traded_price}, Change={quote.percentage_change}%")

# Drill into a specific security's historical data
security = client.securities.list(limit=1).first()
if security:
    try:
        for record in security.history(start_date="2026-06-15", end_date="2026-06-19", limit=3):
            print(record.business_date, record.close_price, record.total_traded_quantity)
    except NotFoundError as exc:
        print(f"Security not found: {exc}")

print("exercised: securities.list / stock_quotes.list / security.history")
All endpoints · 4 totalmissing one? ·

List all non-delisted securities (scrips) currently listed on NEPSE. Returns security ID, symbol, full company name, and active status for each security. Use the security ID from this endpoint to query historical data via get_stock_history.

Input

No input parameters required.

Response
{
  "type": "object",
  "fields": {
    "total": "integer",
    "securities": "array of security objects with id, symbol, security_name, active_status"
  },
  "sample": {
    "data": {
      "total": 563,
      "securities": [
        {
          "id": 9192,
          "symbol": "USHL",
          "active_status": "A",
          "security_name": "Upper Syange Hydropower Limited"
        },
        {
          "id": 397,
          "symbol": "ADBL",
          "active_status": "A",
          "security_name": "Agricultural Development Bank Limited"
        }
      ]
    },
    "status": "success"
  }
}

About the nepalstock.com API

The nepalstock.com API exposes 4 endpoints covering every aspect of Nepal Stock Exchange market data: a full registry of listed securities, session-level market summary metrics, live daily trading statistics for all scrips, and paginated historical OHLC data per security. The get_live_trading endpoint alone returns last traded price, percentage change, previous close, and total traded quantity for every active security in the most recent session.

Securities and Market Coverage

The list_securities endpoint returns every non-delisted scrip currently listed on NEPSE, including each security's numeric id, symbol, security_name, and active_status. The id field is the key input for get_stock_history, so querying this endpoint first is the standard way to build a local symbol-to-ID map for the full exchange.

The get_market_summary endpoint returns session-level aggregate figures as a key-value map: total turnover, total traded shares, total transactions, total scrips traded, total market capitalization, and total float market capitalization for the most recent trading session.

Live and Historical Trading Data

The get_live_trading endpoint provides per-security statistics for the current or most recent session. Each record includes last_traded_price, percentage_change, previous_close, close_price, and total_traded_quantity — useful for building dashboards or screening for intraday movers across the full NEPSE universe.

For historical analysis, get_stock_history accepts a security_id, start_date and end_date (both in YYYY-MM-DD format), and an optional page_size. The response returns daily records with business_date, total_trades, total_traded_quantity, total_traded_value, high_price, low_price, and close_price, alongside a pagination object showing total_elements, total_pages, page_number, and page_size. Large date ranges can be walked using pagination controls.

Reliability & maintenanceVerified

The nepalstock.com API is a managed, monitored endpoint for www.nepalstock.com — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when www.nepalstock.com changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.

This isn't an official www.nepalstock.com API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.

Last verified
2h ago
Latest check
4/4 endpoints passing
Maintenance
Monitored & self-healing
Will this API break when the source site changes?+
It's built not to. Every endpoint is health-checked on a schedule with automated test probes. When the source site changes and a check fails, the API is automatically queued for repair and re-verified — that's the self-healing layer. Each API page shows when its endpoints were last verified. And because marketplace APIs are shared, any fix reaches everyone using it.
Is this an official API from the source site?+
No — Parse APIs are independent, managed REST wrappers over publicly available data. That is the point: where a site has no official API (or only a limited one), Parse gives you a maintained, monitored endpoint for that data and keeps it working as the site changes — so you get a stable contract over a source that never promised one.
Can I fix or extend this API myself if I need a new endpoint or field?+
Yes — and you don't have to wait on us. This API was generated by the Parse agent, which stays attached. Describe the change in plain English ("add an endpoint that returns reviews", "fix the price field") in the revise box on the API page or via the revise_api MCP tool, and the agent rebuilds it against the live site in minutes. Contributing the change back to the public API is free.
What happens if I call an endpoint that has an issue?+
Errors are machine-readable: a bad call returns a clean status with the list of available endpoints and a repair hint, so an agent (or you) can recover or trigger a fix instead of failing silently. Confirmed failures feed the automatic repair queue.
Common use cases
  • Build a NEPSE screener that flags securities where percentage_change exceeds a threshold using get_live_trading.
  • Track daily market-wide turnover and capitalization trends over time using get_market_summary.
  • Construct OHLC candlestick charts for any listed security using get_stock_history with custom date ranges.
  • Maintain a locally synced symbol registry for NEPSE by polling list_securities for new or delisted scrips.
  • Calculate rolling volatility for individual stocks using high_price and low_price fields from get_stock_history.
  • Monitor total traded quantity alongside price change to identify unusual volume events via get_live_trading.
  • Backtest simple trading strategies against NEPSE price history using paginated data from get_stock_history.
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000250 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does nepalstock.com have an official developer API?+
No public developer API is documented or offered on nepalstock.com. The site is intended for retail investors browsing market data through the web interface, not programmatic consumption.
What does `get_stock_history` return and how do I retrieve data for a specific security?+
It returns daily aggregated records for a single security over a specified date range. Required inputs are security_id (the numeric ID from list_securities), start_date, and end_date in YYYY-MM-DD format. Each record includes business_date, total_trades, total_traded_quantity, total_traded_value, high_price, low_price, and close_price. Use the optional page_size parameter and the pagination object in the response to walk through large result sets.
Does `get_live_trading` distinguish between intraday snapshots and end-of-day figures?+
The endpoint reflects the current or most recent trading session as a single snapshot. It does not return intraday tick-by-tick data or a time series within a single day — each security has one record per session with fields like last_traded_price, percentage_change, and total_traded_quantity. Tick-level or intraday granularity is not currently available. You can fork this API on Parse and revise it to add an intraday endpoint if that data surface becomes available on the source.
Does the API cover broker-level data, order book depth, or company fundamentals?+
Not currently. The API covers securities listings, session market summaries, live session trading statistics, and historical daily OHLC data. Broker activity breakdowns, bid/ask order book data, and company financial fundamentals (earnings, balance sheet) are not included. You can fork this API on Parse and revise it to add endpoints for any of those data surfaces.
How far back does the historical data go in `get_stock_history`?+
The available history depends on what nepalstock.com retains for each security. The API itself places no artificial cap on the date range — you set start_date and end_date freely. In practice, data availability varies by security age and exchange record-keeping, so very old scrips or recently listed ones may have shorter histories.
Page content last updated . Spec covers 4 endpoints from www.nepalstock.com.
Nepal Stock Exchange (NEPSE) API | nepalstock.com · Parse