# Bitstamp — 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 data from bitstamp.net.

**Category:** Web3 & Onchain | **Website:** [www.bitstamp.net/markets/btc/usd/](https://www.bitstamp.net/markets/btc/usd/) | **Docs:** [parse.bot/marketplace/f6da8f3c-c540-4653-ad26-2fb1bb261567/bitstamp-net-api](https://parse.bot/marketplace/f6da8f3c-c540-4653-ad26-2fb1bb261567/bitstamp-net-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-bitstamp-net-api-f6da8f3c/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_candles

Retrieve OHLCV (open, high, low, close, volume) candle data for a trading pair. The time range is computed as now minus (resolution * limit) to now. Each candle represents one time interval.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `limit` | string | No | Number of candles to retrieve as a string integer. |
| `pair` | string | No | Trading pair identifier (e.g. btcusd, ethusd, xrpusd). Case-insensitive; slashes and hyphens are stripped. |
| `resolution` | string | No | Candle interval in minutes as a string integer (e.g. 60 for 1-hour candles, 1440 for daily candles). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-bitstamp-net-api-f6da8f3c/get_candles \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"limit":"<string>","pair":"<string>","resolution":"<string>"}'
```

### get_ticker

Retrieve the current price and percentage changes (hourly, daily, weekly, monthly, yearly, YTD, all-time) for a trading pair. Returns a single snapshot of the latest market state.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `pair` | string | No | Trading pair identifier (e.g. btcusd, ethusd, xrpusd). Case-insensitive; slashes and hyphens are stripped. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-bitstamp-net-api-f6da8f3c/get_ticker \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"pair":"<string>"}'
```
