# Nepalstock — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Monitor live and historical trading data from Nepal's stock market, including real-time price quotes, market summaries, and detailed price history for all listed securities. Track daily trading statistics and analyze individual stock performance to make informed investment decisions.

**Category:** Finance & Markets | **Website:** [www.nepalstock.com/](https://www.nepalstock.com/) | **Docs:** [parse.bot/marketplace/421db2f5-fb04-4472-9c2e-aced9a433012/nepalstock-com-api](https://parse.bot/marketplace/421db2f5-fb04-4472-9c2e-aced9a433012/nepalstock-com-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-nepalstock-com-api-421db2f5/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_live_trading

Get the latest daily trading statistics for all securities in the current or most recent trading session. Returns last traded price, percentage change from previous close, previous close price, close price, and total traded quantity for each security.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-nepalstock-com-api-421db2f5/get_live_trading \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_market_summary

Get the current market summary for the most recent trading session. Returns total turnover, total traded shares, total transactions, total scrips traded, total market capitalization, and total float market capitalization as a key-value map.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-nepalstock-com-api-421db2f5/get_market_summary \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_stock_history

Get historical trading data for a specific security within a date range. Returns daily aggregated data including total trades, traded quantity, traded value, high/low/close prices. Paginated with configurable page size. The security_id is obtained from the list_securities endpoint.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `end_date` | string | Yes | End date in YYYY-MM-DD format. |
| `page_size` | string | No | Number of records per page. |
| `security_id` | string | Yes | Numeric security ID from the list_securities endpoint (e.g. 397 for ADBL, 2790 for ACLBSL). |
| `start_date` | string | Yes | Start date in YYYY-MM-DD format. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-nepalstock-com-api-421db2f5/get_stock_history \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"end_date":"<string>","page_size":"<string>","security_id":"<string>","start_date":"<string>"}'
```

### list_securities

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.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-nepalstock-com-api-421db2f5/list_securities \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```
