# Merolagani — Wrapped API

> **You are on:** `https://api.beta.paywithlocus.com/api` | [llms.txt](https://beta.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 for Locus Pro. Each call burns credits from your workspace balance.

## Access

**Base URL:** `https://api.beta.paywithlocus.com/api/wrapped/credits/merolagani/`
**Auth:** `Authorization: Bearer <LOCUS_CREDITS_SECRET_KEY>` (an `lcr_` secret key or a scoped `lcac_` agent credential)
**Required header:** `Idempotency-Key: <fresh UUID per call>`. A retry with the same key replays the stored result without a new charge.
**Response:** the provider response after any endpoint-specific normalization. `X-Locus-Credits-Charged` carries the charge and `X-Locus-Credits-Balance` the remaining balance. Insufficient credits return `402` before the provider is called.
**Pricing:** estimated costs below are USD. Locus debits the credit equivalent at your workspace rate.

Full call contract: https://docs.paywithlocus.com/api-reference/introduction

> Using a Pay With Locus wallet key (`claw_` prefix)? Wallet routes are documented separately: https://docs.paywithlocus.com/wrapped-apis/for-agents

## 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.beta.paywithlocus.com/api/wrapped/credits/merolagani/get-company-details \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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.beta.paywithlocus.com/api/wrapped/credits/merolagani/get-floorsheet \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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.beta.paywithlocus.com/api/wrapped/credits/merolagani/get-market-summary \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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.beta.paywithlocus.com/api/wrapped/credits/merolagani/get-quarterly-reports \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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.beta.paywithlocus.com/api/wrapped/credits/merolagani/get-stock-list \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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.beta.paywithlocus.com/api/wrapped/credits/merolagani/search-company \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"query":"<string>"}'
```

## Next steps

- [All wrapped API providers](https://beta.paywithlocus.com/wapi/index.md): pick another provider.
- [Find and call tools](https://beta.paywithlocus.com/agent/tools.md): price ceilings, async results, and errors.
- [Credits and billing](https://beta.paywithlocus.com/agent/billing.md): what a call costs and how to add credits.
- [Agent docs index](https://beta.paywithlocus.com/agent/index.md): every Locus agent page.