# A1trading — 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 retail trading positions and sentiment across forex, metals, indices, commodities, and crypto to see what percentage of traders are betting long or short on each asset. Use contrarian signals to identify potential trading opportunities when retail sentiment becomes extremely skewed in one direction.

**Category:** Finance & Markets | **Website:** [www.a1trading.com/retail-sentiment/](https://www.a1trading.com/retail-sentiment/) | **Docs:** [parse.bot/marketplace/70709cd7-48a8-493c-813a-4dd221511b30/a1trading-com-api](https://parse.bot/marketplace/70709cd7-48a8-493c-813a-4dd221511b30/a1trading-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-a1trading-com-api-70709cd7/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_retail_sentiment

Retrieves live retail sentiment data showing what percentage of retail traders are long vs short on each instrument, along with the contrarian signal (Bearish when majority is long, Bullish when majority is short, Neutral when balanced). Results are sorted by long percentage descending. When no category is specified, returns all instruments across all categories. Each instrument includes its pair name, long/short split as percentages summing to 100, and a contrarian signal derived from the imbalance.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `category` | string | No | Filter by instrument category. Accepts exactly one of: Major Currency Pairs, Minor Currency Pairs, Metals, Indices, Commodities, Crypto, Currencies. Omitted returns all categories. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-a1trading-com-api-70709cd7/get_retail_sentiment \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"category":"<string>"}'
```
