# Nobitex — 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 live cryptocurrency market data from Nobitex, Iran's largest crypto exchange. Retrieve real-time prices, 24-hour volume, and price changes for all trading pairs, including IRT-quoted and USDT-quoted markets.

**Category:** Web3 & Onchain | **Website:** [nobitex.ir/](https://nobitex.ir/) | **Docs:** [parse.bot/marketplace/e770feb1-c32f-4e20-9048-61e6992414c4/nobitex-ir-api](https://parse.bot/marketplace/e770feb1-c32f-4e20-9048-61e6992414c4/nobitex-ir-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-nobitex-ir-api-e770feb1/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_all_stats

Get all market statistics from Nobitex including latest prices, volume, and 24h change for all trading pairs. Returns an object with a 'pairs' field mapping pair identifiers (e.g. 'btc-rls', 'eth-usdt') to their market data objects containing fields: isClosed, bestSell, bestBuy, volumeSrc, volumeDst, latest, mark, dayLow, dayHigh, dayOpen, dayClose, dayChange.

**Estimated cost:** Metered

_No parameters required._

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

### get_usdt_irt

Get the current price of USDT in Iranian Toman (IRT). The upstream API returns values in Rial, which are converted to Toman (1 Toman = 10 Rial). Returns a single price record with both Toman and Rial values.

**Estimated cost:** Metered

_No parameters required._

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

### get_xrp_usdt

Get the current price of XRP in USDT. Returns the latest XRP/USDT trading pair price from Nobitex.

**Estimated cost:** Metered

_No parameters required._

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