# Merolagani — 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.

> 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.

**Category:** Finance & Markets | **Website:** [merolagani.com/](https://merolagani.com/) | **Docs:** [parse.bot/marketplace/4c4e7e6c-a918-4e7d-9d3e-579a7eb71287/merolagani-com-api](https://parse.bot/marketplace/4c4e7e6c-a918-4e7d-9d3e-579a7eb71287/merolagani-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-merolagani-com-api-4c4e7e6c/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_company_details

Get comprehensive summary data for a specific stock symbol including last traded price, 52-week high/low, EPS, P/E ratio, market cap, and dividend history. The symbol must be an exact NEPSE ticker (discoverable via search_company or get_stock_list).

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `symbol` | string | Yes | Stock symbol as listed on NEPSE (e.g. NABIL, ADBL, EBL). Discoverable via search_company results[*].symbol or get_stock_list stocks[*].symbol. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-merolagani-com-api-4c4e7e6c/get_company_details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"symbol":"<string>"}'
```

### get_floorsheet

Extract floorsheet (trade log) transaction records from NEPSE via merolagani.com. Returns individual buy/sell transactions with broker codes, quantity, rate, and amount. Defaults to the most recent trading session. Results are paginated at 500 per page.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `from_date` | string | No | Date filter in MM/DD/YYYY format. Filters floorsheet to a specific trading date. |
| `page` | integer | No | Page number for pagination. Each page contains up to 500 records. |
| `symbol` | string | No | Stock symbol to filter transactions (e.g. NABIL, ADBL). When omitted, returns all transactions. |
| `to_date` | string | No | End date in MM/DD/YYYY format. Used as date filter when from_date is not provided. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-merolagani-com-api-4c4e7e6c/get_floorsheet \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"from_date":"<string>","page":"<integer>","symbol":"<string>","to_date":"<string>"}'
```

### get_market_summary

Get the current market summary including market status, overall trading statistics (turnover, quantity, transactions), top turnover stocks, sector-wise turnover breakdown, top brokers, and individual stock price movements. All data reflects the most recent trading session.

**Estimated cost:** Metered

_No parameters required._

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

### get_quarterly_reports

Extract quarterly financial reports published within a specific date range. Filters stock events for quarterly/financial statement keywords. Defaults to the current month if no dates are provided. Returns matching announcements with their publication date and title.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `from_date` | string | No | Start date in MM/DD/YYYY format. When omitted, defaults to the first day of the current month. |
| `to_date` | string | No | End date in MM/DD/YYYY format. When omitted, defaults to the last day of the current month. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-merolagani-com-api-4c4e7e6c/get_quarterly_reports \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"from_date":"<string>","to_date":"<string>"}'
```

### get_stock_list

Get a complete list of all stock symbols and company names listed on NEPSE. Returns all listed companies with their symbol, name, and internal ID. No parameters required.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-merolagani-com-api-4c4e7e6c/get_stock_list \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### search_company

Search for a company by name or stock symbol. Returns all companies whose name or symbol contains the query string (case-insensitive). Useful for discovering stock symbols before fetching details.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | Yes | Search term to match against company name or stock symbol (e.g. Bank, NABIL, Hydro) |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-merolagani-com-api-4c4e7e6c/search_company \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"<string>"}'
```
