# Cryptocraft — 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.

> Track real-time cryptocurrency prices across 20+ exchanges, analyze historical OHLC data and coin fundamentals, and stay informed with upcoming economic events and market news. Monitor thousands of coins and instruments to make data-driven investment decisions.

**Category:** Web3 & Onchain | **Website:** [cryptocraft.com/](https://cryptocraft.com/) | **Docs:** [parse.bot/marketplace/4a295252-9416-437d-aa94-c74428d3f496/cryptocraft-com-api](https://parse.bot/marketplace/4a295252-9416-437d-aa94-c74428d3f496/cryptocraft-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-cryptocraft-com-api-4a295252/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_calendar_events

Returns upcoming economic calendar events that may impact a cryptocurrency instrument. Events include impact levels (low/medium/high), forecasts, and previous values. Results are ordered by scheduled time. The server-side limit defaults to 10 events per request.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `instrument` | string | No | Instrument code without slash (e.g. BTCUSD, ETHUSD). |
| `limit` | integer | No | Maximum number of events to return. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-cryptocraft-com-api-4a295252/get_calendar_events \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"instrument":"<string>","limit":"<integer>"}'
```

### get_coin_metrics

Returns historical OHLC price data, supply, and market cap for a specific cryptocurrency over a configurable time period and candle interval. Supports ~22 coins by code or numeric ID. Each data point includes open/high/low/close prices, circulating supply, and computed market cap.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `coin` | string | No | Coin code (BTC, ETH, SOL, XRP, DOGE, ADA, LINK, LTC, BCH, XMR, XLM, ZEC, DCR, HBAR, AVAX, SUI, ETC, ICP, NEAR, FIL, TAO, UNI, TRUMP) or numeric coin ID. |
| `interval` | string | No | Candle interval: H2 (2 hours), D1 (daily). |
| `limit` | integer | No | Maximum number of data points to return. |
| `period` | string | No | Time period: 6H, 24H, 3D, 7D, 30D, 3M, 12M, 3Y. |
| `quote` | string | No | Quote currency. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-cryptocraft-com-api-4a295252/get_coin_metrics \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"coin":"<string>","interval":"<string>","limit":"<integer>","period":"<string>","quote":"<string>"}'
```

### get_coins

Retrieves all cryptocurrency coins with detailed fundamental data. Returns market cap, founders, communities, wallets, block info, and fun facts for each coin. The full catalog is returned in a single page (~30 coins). Market cap values are denominated in the specified quote currency.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `quote` | string | No | Quote currency for market cap values. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-cryptocraft-com-api-4a295252/get_coins \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"quote":"<string>"}'
```

### get_instrument_list

Returns the complete list of available trading instruments (crypto and forex). Can filter by asset class. Use this to discover valid instrument pairs for other endpoints.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `asset_class` | string | No | Filter by asset class: 'crypto' or 'forex'. Omitting or empty returns all instruments. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-cryptocraft-com-api-4a295252/get_instrument_list \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"asset_class":"<string>"}'
```

### get_instrument_quotes

Returns real-time quotes from 20+ exchanges and performance metrics at multiple timeframes for one or more cryptocurrency instruments. Aggregated quotes combine all exchange feeds; individual exchange quotes show per-venue pricing. Metrics include high/low/spread at intervals from M5 to D2.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `instruments` | string | No | Comma-separated instrument pairs (e.g. BTC/USD,ETH/USD,SOL/USD). Use get_instrument_list to see all available instruments. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-cryptocraft-com-api-4a295252/get_instrument_quotes \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"instruments":"<string>"}'
```

### get_news

Returns recent news items and market-moving headlines related to a cryptocurrency instrument within a configurable lookback window. Each item includes impact level, view count, and relative URL. Results are ordered chronologically.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `hours_back` | integer | No | Number of hours to look back for news. |
| `instrument` | string | No | Instrument pair with slash (e.g. BTC/USD, ETH/USD). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-cryptocraft-com-api-4a295252/get_news \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"hours_back":"<integer>","instrument":"<string>"}'
```
