# Ccilindia — 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 real-time money market, G-Sec, and forex trading data from India's premier clearing corporation, plus stay updated with the latest market notifications and discussion papers. Monitor settlement snapshots and navigate CCIL's content through sitemap and RSS feed integrations.

**Category:** Finance & Markets | **Website:** [ccilindia.com/](https://ccilindia.com/) | **Docs:** [parse.bot/marketplace/b5e527f2-100d-4d03-9a03-ffb62c415e0d/ccilindia-com-api](https://parse.bot/marketplace/b5e527f2-100d-4d03-9a03-ffb62c415e0d/ccilindia-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-ccilindia-com-api-b5e527f2/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_forex_market_data

Fetches today's Forex market statistics from the CCIL dashboard. Returns spot rates (result1) for USD/INR instruments including C-SPOT, R-SPOT, and SPOT, and swap/forward rates (result2) for instruments like C/T, T/S, and C/S. Includes the timestamp of the most recent forex trade.

**Estimated cost:** Metered

_No parameters required._

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

### get_gsec_market_data

Fetches today's Government Securities (G-Sec) market data from the CCIL dashboard. Returns the top traded securities with price, yield, trade count, turnover amount, and the timestamp of the most recent trade across all securities.

**Estimated cost:** Metered

_No parameters required._

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

### get_money_market_data

Fetches today's Money Market rates and volumes from the CCIL market dashboard. Returns data for CALL, TREP, BASKET REPO, and SPECIAL REPO segments including weighted average rates, open/high/low/last trade rates, and current and previous day volumes.

**Estimated cost:** Metered

_No parameters required._

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

### get_rss_discussion_papers

Fetches and parses the CCIL Discussion Paper Atom feed. Returns consultation papers and discussion documents. Items include title and publication date; links may be empty for older entries.

**Estimated cost:** Metered

_No parameters required._

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

### get_rss_notification

Fetches and parses the latest CCIL Notification RSS feed. Returns regulatory notifications and document publications. Each item includes a title, direct download link, and publication date. Descriptions are not populated by this feed.

**Estimated cost:** Metered

_No parameters required._

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

### get_rss_whats_new

Fetches and parses the CCIL What's New Atom feed. Returns announcements, holiday notifications, and updates. Items include title and publication date; links may be empty.

**Estimated cost:** Metered

_No parameters required._

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

### get_settlement_snapshot

Fetches the daily Settlement Snapshot from the CCIL homepage. Returns settlement values for Securities (INR cr), Forex (USD mn), and Derivatives (INR cr) segments along with netting efficiency percentages for Funds, Securities, and Forex.

**Estimated cost:** Metered

_No parameters required._

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