Every API here is available over the APIs.io API and to AI agents over MCP.
openapi: 3.2.0
info:
title: Trading Data Price & Indicators API
version: 1.0.0-mvp
description: 'Agent-ready trading, market-data and on-chain API. 29 endpoints across crypto/stock prices & OHLCV, indicators (ATR, Fair Value Gaps, ICT liquidity levels), perp funding/OI, order books, Kalshi prediction markets, DeFi TVL, volatility, a verified macro calendar, an AI momentum score, and on-chain reads (balances, token balances, nonces, blocks, ENS, transactions) on 5 EVM chains.
**Access — two ways, both work on every /v1 endpoint:**
1. **API key** — send an `x-api-key` header for free, rate-limited access.
2. **x402 pay-per-call** — no signup: call any endpoint with no key, receive a `402` with a USDC price (currently $0.001/request on base), pay via an x402 client, and get `200` + data. Settled on-chain via the Coinbase CDP facilitator.'
x-guidance: All endpoints are GET /v1/<name> with query parameters (see each operation). Free endpoints (/v1/status, /v1/sentiment, /v1/macro-calendar, /v1/market-overview, /v1/gas, /v1/kalshi-probability) need no payment. Every other /v1 endpoint returns a 402 x402 (v2) challenge in the PAYMENT-REQUIRED header with a flat price of $0.001 USDC per request on Base; pay with an x402 client and retry the same request. Start with GET /v1/status for the full catalog.
contact:
url: https://api.wickedapi.com
termsOfService: https://api.wickedapi.com/
servers:
- url: https://api.wickedapi.com
description: Production
tags:
- name: Price & Indicators
description: Spot prices, OHLCV, ATR, Fair Value Gaps, ICT liquidity levels
paths:
/v1/price:
get:
operationId: get_v1_price
summary: Current spot price for crypto (Coinbase) or US equities/ETFs (Alpaca SIP), via…
description: 'Current spot price for crypto (Coinbase) or US equities/ETFs (Alpaca SIP), via the shared routing layer.
**Example:** `/v1/price?symbol=BTC`'
tags:
- Price & Indicators
parameters:
- name: symbol
in: query
required: true
description: Required. e.g. BTC, ETH, SUI, NVDA, SPY.
schema:
type: string
- name: class
in: query
required: true
description: Optional. stock|crypto — required for symbols outside the curated list.
schema:
type: string
enum:
- stock
- crypto
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/Envelope'
'401':
$ref: '#/components/responses/Unauthorized'
'402':
$ref: '#/components/responses/PaymentRequired'
'429':
$ref: '#/components/responses/RateLimited'
'502':
$ref: '#/components/responses/UpstreamError'
security:
- ApiKeyAuth: []
- {}
x-payment-info:
price:
mode: fixed
currency: USD
amount: '0.001000'
protocols:
- x402: {}
/v1/ohlcv:
get:
operationId: get_v1_ohlcv
summary: OHLCV candles (oldest-first) for crypto or stocks
description: 'OHLCV candles (oldest-first) for crypto or stocks. Routes to Alpaca SIP / Alpaca-crypto / Coinbase.
**Example:** `/v1/ohlcv?symbol=NVDA&timeframe=1h&limit=100`'
tags:
- Price & Indicators
parameters:
- name: symbol
in: query
required: true
description: Required. e.g. BTC, NVDA, SPY.
schema:
type: string
- name: timeframe
in: query
required: false
description: Optional. 1m,5m,15m,30m,1h,2h,4h,6h,12h,1D,1W (default 1h).
schema:
type: string
enum:
- 1m
- 5m
- 15m
- 30m
- 1h
- 2h
- 4h
- 6h
- 12h
- 1D
- 1W
- name: class
in: query
required: false
description: Optional. stock|crypto for non-curated symbols.
schema:
type: string
enum:
- stock
- crypto
- name: limit
in: query
required: false
description: Optional. Candles to return (default 100, max 300).
schema:
type: number
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/Envelope'
'401':
$ref: '#/components/responses/Unauthorized'
'402':
$ref: '#/components/responses/PaymentRequired'
'429':
$ref: '#/components/responses/RateLimited'
'502':
$ref: '#/components/responses/UpstreamError'
security:
- ApiKeyAuth: []
- {}
x-payment-info:
price:
mode: fixed
currency: USD
amount: '0.001000'
protocols:
- x402: {}
/v1/atr:
get:
operationId: get_v1_atr
summary: Average True Range (Wilder's) + volatility-regime classification…
description: 'Average True Range (Wilder''s) + volatility-regime classification (low/normal/high/extreme by historical percentile). Crypto or stocks.
**Example:** `/v1/atr?symbol=BTC&timeframe=1h&period=14`'
tags:
- Price & Indicators
parameters:
- name: symbol
in: query
required: true
description: Required. e.g. BTC, NVDA, SPY (or any with &class=).
schema:
type: string
- name: timeframe
in: query
required: false
description: Optional. 1m,5m,15m,30m,1h,2h,4h,6h,12h,1D,1W (default 1h).
schema:
type: string
enum:
- 1m
- 5m
- 15m
- 30m
- 1h
- 2h
- 4h
- 6h
- 12h
- 1D
- 1W
- name: period
in: query
required: false
description: Optional. ATR period (default 14).
schema:
type: number
- name: class
in: query
required: false
description: Optional. stock|crypto for non-curated symbols.
schema:
type: string
enum:
- stock
- crypto
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/Envelope'
'401':
$ref: '#/components/responses/Unauthorized'
'402':
$ref: '#/components/responses/PaymentRequired'
'429':
$ref: '#/components/responses/RateLimited'
'502':
$ref: '#/components/responses/UpstreamError'
security:
- ApiKeyAuth: []
- {}
x-payment-info:
price:
mode: fixed
currency: USD
amount: '0.001000'
protocols:
- x402: {}
/v1/fvg:
get:
operationId: get_v1_fvg
summary: Fair Value Gap zones (standard ICT/LuxAlgo) with CE (50%), gap size, age, fill…
description: 'Fair Value Gap zones (standard ICT/LuxAlgo) with CE (50%), gap size, age, fill status, distance from price. Standard timeframes match TradingView candles. Crypto or stocks.
**Example:** `/v1/fvg?symbol=BTC&timeframe=1h`'
tags:
- Price & Indicators
parameters:
- name: symbol
in: query
required: true
description: Required. e.g. BTC, NVDA, SPY (or any with &class=).
schema:
type: string
- name: timeframe
in: query
required: false
description: Optional. 1m,5m,15m,30m,1h,2h,4h,6h,12h,1D,1W (default 1h). Matches TradingView candles.
schema:
type: string
enum:
- 1m
- 5m
- 15m
- 30m
- 1h
- 2h
- 4h
- 6h
- 12h
- 1D
- 1W
- name: class
in: query
required: false
description: Optional. stock|crypto for non-curated symbols.
schema:
type: string
enum:
- stock
- crypto
- name: include_filled
in: query
required: false
description: Optional. true to include filled FVGs (default false = active only).
schema:
type: boolean
- name: min_gap_pct
in: query
required: false
description: Optional. Filter out gaps smaller than this % of price (default 0 = all).
schema:
type: number
- name: lookback
in: query
required: false
description: Optional. Timeframe candles to analyze (default 120, max 500).
schema:
type: number
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/Envelope'
'401':
$ref: '#/components/responses/Unauthorized'
'402':
$ref: '#/components/responses/PaymentRequired'
'429':
$ref: '#/components/responses/RateLimited'
'502':
$ref: '#/components/responses/UpstreamError'
security:
- ApiKeyAuth: []
- {}
x-payment-info:
price:
mode: fixed
currency: USD
amount: '0.001000'
protocols:
- x402: {}
/v1/liquidity-levels:
get:
operationId: get_v1_liquidity_levels
summary: 'ICT liquidity levels: buy-side liquidity (above swing highs) & sell-side (below…'
description: 'ICT liquidity levels: buy-side liquidity (above swing highs) & sell-side (below swing lows), sweep/taken status, relative-equal pools, and nearest untaken targets. Crypto or stocks.
**Example:** `/v1/liquidity-levels?symbol=TQQQ&timeframe=1h`'
tags:
- Price & Indicators
parameters:
- name: symbol
in: query
required: true
description: Required. e.g. BTC, NVDA, TQQQ (or any with &class=).
schema:
type: string
- name: timeframe
in: query
required: false
description: Optional. 1m..1W (default 1h).
schema:
type: string
enum:
- 1m
- 5m
- 15m
- 30m
- 1h
- 2h
- 4h
- 6h
- 12h
- 1D
- 1W
- name: swing_length
in: query
required: false
description: Optional. Pivot strength — bars each side of a swing (default 5). Tune to match your chart indicator.
schema:
type: number
- name: equal_threshold_pct
in: query
required: false
description: Optional. Group swings within this % as relative-equal pools (default 0.1).
schema:
type: number
- name: include_swept
in: query
required: false
description: Optional. true to include already-taken levels (default false = resting only).
schema:
type: boolean
- name: lookback
in: query
required: false
description: Optional. Candles to analyze (default 300, max 500).
schema:
type: number
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/Envelope'
'401':
$ref: '#/components/responses/Unauthorized'
'402':
$ref: '#/components/responses/PaymentRequired'
'429':
$ref: '#/components/responses/RateLimited'
'502':
$ref: '#/components/responses/UpstreamError'
security:
- ApiKeyAuth: []
- {}
x-payment-info:
price:
mode: fixed
currency: USD
amount: '0.001000'
protocols:
- x402: {}
components:
responses:
UpstreamError:
description: Upstream data error — never fabricated data, a real source failure
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
RateLimited:
description: Rate limit exceeded (keyed access)
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
Unauthorized:
description: Missing or invalid x-api-key
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
PaymentRequired:
description: No valid x-api-key — pay per call via x402 (USDC on Base). See the `accepts` array for exact price/network/payTo.
content:
application/json:
schema:
$ref: '#/components/schemas/X402Challenge'
schemas:
Envelope:
type: object
required:
- data
- meta
properties:
data:
type: object
description: Endpoint-specific payload.
meta:
type: object
required:
- timestamp
properties:
timestamp:
type: string
format: date-time
additionalProperties: true
X402Challenge:
type: object
description: x402 v2 payment challenge. The base64-encoded challenge is in the PAYMENT-REQUIRED response header (decode to JSON with x402Version 2 and an `accepts` array); sign it and retry with a PAYMENT-SIGNATURE header. The response body is not the challenge.
properties: {}
additionalProperties: true
Error:
type: object
properties:
error:
type: string
source:
type: string
securitySchemes:
ApiKeyAuth:
type: apiKey
in: header
name: x-api-key
description: Free, rate-limited access.