Discover/NEPSE Trading API
live

NEPSE Trading APInepsetrading.com

Access NEPSE-listed stocks, daily OHLCV history with RSI(14), and bullish RSI divergence scans via the nepsetrading.com API.

Endpoint health
verified 1h ago
list_stocks
get_price_history
scan_bullish_rsi_divergence
3/3 passing latest checkself-healing
Endpoints
3
Updated
1h ago

What is the NEPSE Trading API?

The nepsetrading.com API exposes three endpoints covering the full universe of NEPSE-listed equities: real-time daily quotes for every listed stock via list_stocks, per-ticker OHLCV history with a computed Wilder RSI(14) on each bar via get_price_history, and a market-wide bullish RSI divergence scanner via scan_bullish_rsi_divergence. Each endpoint returns structured JSON with named fields including symbol, sector, sub_index, rsi_14, and divergence metadata.

This call costs1 credit / call— charged only on success
Try it
NEPSE sub-index label to restrict the list to, exactly as it appears in `sub_indices` (e.g. COMMERCIAL BANKS). Omitted = all stocks.
api.parse.bot/scraper/70c93abc-a650-499e-86ae-4a3c2214b74e/<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/70c93abc-a650-499e-86ae-4a3c2214b74e/list_stocks' \
  -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 nepsetrading-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 Trading SDK — list stocks, fetch price history, scan for RSI divergence."""
from parse_apis.nepsetrading_com_api import Nepse, StockNotFound

client = Nepse()

# List a handful of stocks and print their latest quotes.
for stock in client.stocks.list(limit=5):
    print(stock.symbol, stock.name, stock.last_price, stock.point_change)

# Drill into one stock's daily price history (most recent 10 bars).
pick = client.stocks.list(sub_index="COMMERCIAL BANKS", limit=1).first()
if pick is not None:
    try:
        history = pick.price_history(days=10)
    except StockNotFound:
        print(f"{pick.symbol} has no price history")
    else:
        print(history.symbol, f"{history.count} bars, site holds {history.total_available}")
        for bar in history.bars[:3]:
            print(bar.date, bar.close, bar.volume, bar.rsi_14)

# Scan the same sub-index for bullish RSI divergence.
result = client.stocks.scan_divergence(sub_index="HYDRO POWER", lookback_days=2, batch_size=10)
print(f"scanned {result.scanned_count}, flagged {result.flagged_count}, has_more={result.has_more}")
for div in result.divergences or []:
    print(div.symbol, div.divergence_date, f"RSI {div.rsi_value}", f"+{div.pct_from_low_today}%")
for err in result.scan_errors:
    print(f"skipped {err.symbol}: {err.reason}")

print("exercised: stocks.list / price_history / scan_divergence")
All endpoints · 3 totalmissing one? ·

Returns the full list of NEPSE-listed stocks with their latest daily quote (last price, previous close, open/high/low, volume, change) plus sector and sub-index, in one round trip. `sub_indices` lists every sub-index label present in the full universe so callers can filter. When a sub-index filter is supplied only stocks in that sub-index are returned (case-insensitive exact match); a label matching nothing returns an empty `stocks` list. Prices are in NPR. `data_date` is the trading date the quote refers to (YYYY-MM-DD).

Input
ParamTypeDescription
sub_indexstringNEPSE sub-index label to restrict the list to, exactly as it appears in `sub_indices` (e.g. COMMERCIAL BANKS). Omitted = all stocks.
Response
{
  "type": "object",
  "fields": {
    "count": "number of records in `stocks`",
    "stocks": "array of stock quote records (symbol, name, sector, sub_index, last_price, previous_close, open, high, low, volume, point_change, percentage_change, data_date)",
    "sub_indices": "array of all sub-index labels in the full universe (unfiltered)"
  },
  "sample": {
    "data": {
      "count": 19,
      "stocks": [
        {
          "low": 552,
          "high": 554.9,
          "name": "Nabil Bank Limited",
          "open": 552,
          "sector": "COMMERCIAL BANKS",
          "symbol": "NABIL",
          "volume": 415005,
          "data_date": "2026-09-11",
          "sub_index": "COMMERCIAL BANKS",
          "last_price": 553,
          "point_change": 0.5,
          "previous_close": 552.5,
          "percentage_change": 0.0905
        }
      ],
      "sub_indices": [
        "COMMERCIAL BANKS",
        "DEVELOPMENT BANKS",
        "FINANCE",
        "HOTELS AND TOURISM",
        "HYDRO POWER",
        "INVESTMENT",
        "LIFE INSURANCE",
        "MANUFACTURING AND PROCESSING",
        "MICROFINANCE",
        "NON LIFE INSURANCE",
        "OTHERS",
        "TRADINGS"
      ]
    },
    "status": "success"
  }
}

About the NEPSE Trading API

Stock Universe and Quotes

The list_stocks endpoint returns the full NEPSE-listed universe in a single call. Each record in the stocks array includes symbol, name, sector, sub_index, last_price, previous_close, open, high, low, volume, point_change, and percentage change. The response also returns a sub_indices array listing every sub-index label present across the full universe — for example COMMERCIAL BANKS or HYDRO POWER — so you can pass one of those labels back via the sub_index parameter to filter the list to a single segment.

Daily Price History with RSI

get_price_history accepts a required symbol (any ticker from list_stocks, or NEPSE for the index) and an optional days parameter (1–500) that trims the response to the most recent N bars. RSI(14) is computed over the full available history before trimming, so values near the start of a short slice are still well-seeded. Each bar in the bars array carries date, open, high, low, close, volume, and rsi_14 (null on early bars before 14 closes are available). The response also exposes total_available and first_date so you know the full depth the source holds for that ticker.

Bullish RSI Divergence Scanner

scan_bullish_rsi_divergence tiles the entire NEPSE universe (or a filtered sub-index, or a comma-separated symbols list of up to 40 tickers) and applies a Wilder RSI(14) divergence rule: within the last lookback_days trading bars (1–3) it looks for a bar whose low is the lowest recent close while its rsi_value is higher than a prior swing low's RSI, signaling potential bullish divergence. Results in divergences include divergence_date, price_low, rsi_value, prior_low_date, prior_price_low, and prior_rsi_value. Pagination is handled via offset, batch_size, has_more, and next_offset, letting you tile large universes across multiple calls. Tickers skipped due to missing history appear in the errors array with a reason.

Reliability & maintenanceVerified

The NEPSE Trading API is a managed, monitored endpoint for nepsetrading.com — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when nepsetrading.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 nepsetrading.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
1h ago
Latest check
3/3 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
  • Screen the full NEPSE market for bullish RSI divergence setups before the trading session opens
  • Build a sector-level dashboard by filtering list_stocks with sub_index to compare last_price and volume across COMMERCIAL BANKS or HYDRO POWER
  • Plot 200-bar candlestick charts for individual NEPSE tickers using OHLCV bars from get_price_history
  • Overlay RSI(14) on price charts using the pre-computed rsi_14 field without running your own indicator calculations
  • Backtest divergence-based entry signals using prior_low_date, prior_price_low, and prior_rsi_value fields from the scanner
  • Monitor a watchlist of specific tickers by passing a comma-separated symbols list to scan_bullish_rsi_divergence
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo2005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000100 req/min
Team$300/mo20,000300 req/min
Company$1,000/mo100,000500 req/min

Each endpoint has a fixed posted price per successful call — most fall between 1 and 10 credits — shown on this API's page before you run it. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does nepsetrading.com offer an official developer API?+
nepsetrading.com does not publish an official developer API or documented public endpoints. This Parse API provides structured programmatic access to the data the site exposes.
What does get_price_history return for the RSI field, and how far back does it go?+
Each bar in the bars array includes an rsi_14 field computed using Wilder's smoothing method over the full available history for that ticker before any days trimming is applied. rsi_14 is null on early bars until 14 closes have accumulated. The response's total_available and first_date fields tell you how many bars the source holds and when the history begins.
Can I retrieve intraday (tick or minute-level) price data?+
Not currently. The API covers daily OHLCV bars only; the finest granularity available is one bar per trading day. You can fork this API on Parse and revise it to add an intraday endpoint if the source exposes that data.
How does pagination work in scan_bullish_rsi_divergence when scanning the full market?+
The scanner uses offset and batch_size (1–40 tickers per call) to tile the universe. Each response returns has_more, next_offset, scanned_count, and universe_total. Pass the previous response's next_offset as offset in the next call to continue. When has_more is false, the universe is exhausted. You can also skip pagination entirely by passing a symbols list of up to 40 specific tickers.
Does the API expose fundamental data such as EPS, P/E ratio, or financial statements for NEPSE companies?+
Not currently. The API covers daily price quotes, OHLCV history, and RSI-based technical signals. Fundamental metrics and financial statement data are not part of the current endpoints. You can fork this API on Parse and revise it to add a fundamentals endpoint if that data is available on the source site.
Page content last updated . Spec covers 3 endpoints from nepsetrading.com.
Related APIs in FinanceSee all →
nepalstock.com.np API
Access real-time stock prices, market indices, and trading data from Nepal's stock exchange (NEPSE). Retrieve live price updates, market summaries, top performers, and detailed information on listed securities.
nepalytix.com API
Monitor real-time Nepal Stock Exchange data by searching stocks, viewing detailed price information, checking market summaries, browsing stock listings, and tracking floorsheet transaction records all in one place. Stay informed about NEPSE market movements and make data-driven investment decisions with comprehensive market intelligence at your fingertips.
nepsealpha.com API
Track Nepal's stock market in real-time with live prices, historical OHLCV data, and detailed sector summaries, while leveraging technical and fundamental analysis signals to make informed trading decisions. Monitor floorsheet transactions, assess investment risks, and search specific symbols all from a single comprehensive market data platform.
sharesansar.com API
Access real-time Nepali stock prices, browse company information, and read the latest market news all in one place. Stay informed about the Nepal stock market with current pricing data and detailed news articles.
merolagani.com API
Access Nepal Stock Exchange (NEPSE) data via merolagani.com. Retrieve live stock listings, search for companies by name or symbol, view detailed financial metrics, monitor market summaries, and fetch quarterly financial reports.
niftyindices.com API
niftyindices.com API
nasdaq.com API
Track real-time and historical stock prices, ETF and mutual fund quotes, cryptocurrency data, and comprehensive company financials including earnings, dividends, and SEC filings all from one source. Research market trends with institutional holdings, short interest data, retail trading activity, and market movers to make informed investment decisions.
hdfcsec.com API
Track real-time equity market movements by finding the most active NSE stocks, top gainers and losers, 52-week highs and lows, and detailed stock quotes. Search for specific stocks and get comprehensive market overviews to make informed investment decisions.