DocumentationBuilt for developers
Everything you need to stream real-time market data into your products β from a 30-second quickstart to WebSocket reconnect strategies. Business and Enterprise plans include the full OHLCV archive with up to 10 years of historical data for back-testing and research.
Base URLs
https://api.realmarketapi.comwss://api.realmarketapi.comhttps://ai.realmarketapi.com/mcpQuick start
Fetch the latest Gold price in 30 seconds. Replace YOUR_API_KEY with the key from your dashboard.
curl -X GET "https://api.realmarketapi.com/price?symbolCode=XAUUSD" -H "x-api-key: YOUR_API_KEY"Explore the docs
Jump to the section that fits your use case.
Getting Started
Authenticate with your API key, understand rate limits, explore supported symbols and timeframes.
- API key setup
- Authentication
- Symbols & Timeframes
- Best practices
REST Endpoints
Core market data endpoints plus indicator endpoints for SMA, EMA, RSI, MACD and support/resistance.
- GET /price
- GET /history
- GET /candle
- GET /symbol
- GET /api/v1/indicator/*
WebSocket
Real-time streaming for live ticks, sub-second updates, and multi-symbol subscriptions without polling.
- Sub-second ticks
- Multi-symbol
- Auto-reconnect
- 5 language examples
API Reference
Every OHLCV field, HTTP status code, and structured exception code β all in one place.
- OHLCV fields
- HTTP error codes
- Exception codes
Technical Indicators
Use server indicator APIs for SMA, EMA, RSI, MACD and support/resistance, with formulas and integration examples.
- GET /api/v1/indicator/sma
- GET /api/v1/indicator/ema
- GET /api/v1/indicator/rsi
- GET /api/v1/indicator/macd
- Support/Resistance
MCP Server
Connect AI agents like Claude Desktop and Cursor to live market data via the Model Context Protocol.
- 11 MCP tools
- Streamable HTTP
- TypeScript & Python SDKs
- Claude Desktop config
Try it live in the Playground
Run real requests against the API β no backend required. Switch between REST and WebSocket, inspect responses, and copy code snippets.