πŸŽ‰ Our Chrome Extension is here! Get live market prices right in your browser.Install Nowβ†’
RealMarketAPIRealMarketAPI
FeaturesPricingDocs

Playground

Interactive API playground

Widget

Embed widget solutions

SDK

Connect quickly with official SDK clients

Blog

Latest articles and updates

News

Recent news and announcements

Forum

Join our community forum

Learning

Learning resources, tutorials, and implementation guides

RSS Feeds

Curated trading RSS feeds directory

RealMarketAPI

Realtime market data infrastructure for modern fintech applications and trading platforms.

Product

  • Features
  • Pricing
  • Documentation
  • Widgets
  • Dashboard

Company

  • About
  • Contact
  • Blog
  • FAQ
  • Feedback
  • Status
  • Affiliates

Compare

  • All Comparisons
  • vs Alpaca
  • vs Polygon.io
  • vs GoldPrice.io
  • vs Finnhub
  • vs Alpha Vantage
  • vs Finage

Legal

  • Privacy Policy
  • Terms of Service
  • Refund Policy
  • Security
  • Trust Center
  • Risk Warning
  • Cookie Policy

Open Source

  • Learning Resource
  • RSS Feeds

Featured on

Fazier badgeRealMarketAPI - Real-time market data, built for builders | Product HuntFind Us on NextGen ToolsFeatured on Findly.toolsRealMarketAPI - Featured on Startup FameListed on Turbo0Featured on neeed.directoryVerified on Verified ToolsRealMarketAPI | dang.aiLive on FoundrListFeatured on ToolDirsMonitor your Domain Rating with FrogDRReal Market API badge#1 Product on EarlyHuntFeatured on LaunchIgniterListed on codetrendy.comFeatured on RankInPublicFeatured on ScrollLaunchOpenHunts Club MemberReal-time Market API badgeFeatured on Launch LlamaSEOJuiceFeatured on Wired BusinessFeatured on Dofollow.ToolsPowered by Startup Fast
Fazier badgeRealMarketAPI - Real-time market data, built for builders | Product HuntFind Us on NextGen ToolsFeatured on Findly.toolsRealMarketAPI - Featured on Startup FameListed on Turbo0Featured on neeed.directoryVerified on Verified ToolsRealMarketAPI | dang.aiLive on FoundrListFeatured on ToolDirsMonitor your Domain Rating with FrogDRReal Market API badge#1 Product on EarlyHuntFeatured on LaunchIgniterListed on codetrendy.comFeatured on RankInPublicFeatured on ScrollLaunchOpenHunts Club MemberReal-time Market API badgeFeatured on Launch LlamaSEOJuiceFeatured on Wired BusinessFeatured on Dofollow.ToolsPowered by Startup Fast

Β© 2026 RealMarketAPI. All rights reserved.

Built with ❀ for developers

vv0.0.0 Β· 2026-06-16

PrivacyΒ·TermsΒ·SecurityΒ·Risk WarningΒ·Cookies

Risk Disclosure: Trading in financial instruments and/or cryptocurrencies involves high risks including the risk of losing some, or all, of your investment amount, and may not be suitable for all investors. Prices of cryptocurrencies are extremely volatile and may be affected by external factors such as financial, regulatory or political events. This content is provided for informational purposes only and does not constitute financial advice.

Feedback
πŸ“–
Docs/Reference

API Reference

OHLCV fields, HTTP error codes, and structured exception codes.

On this page

  • OHLCV Fields
  • HTTP Error Codes
  • Exception Codes
→ Getting Started→ REST Endpoints→ WebSocket

OHLCV Response Fields

All candle objects from /price, /history, /candle, and WebSocket frames share the same JSON shape.

FieldTypeRESTWSDescription
SymbolCodestringβœ“βœ“Market symbol identifier, e.g. XAUUSD.
OpenPricenumberβœ“βœ“Price at the start of the candle period.
ClosePricenumberβœ“βœ“Price at the end of the candle period.
HighPricenumberβœ“βœ“Highest traded price within the candle.
LowPricenumberβœ“βœ“Lowest traded price within the candle.
Bidnumberβœ“βœ“Best bid price at candle close.
Asknumberβœ“βœ“Best ask price at candle close.
Volumenumberβœ“βœ“Traded volume during the candle period.
OpenTimeISO 8601βœ“βœ“UTC timestamp marking the candle open.

Paginated endpoints (/history, /candle) additionally return:

FieldTypeDescription
DataarrayOrdered list of candle objects.
TotalCountintegerTotal number of candles available.
CurrentPageintegerCurrent page number (1-based). /history only.
TotalPagesintegerTotal pages at current pageSize. /history only.
PageSizeintegerNumber of candles on this page. /history only.

HTTP Error Codes

All errors return a JSON body with a consistent StatusCode, Message, and an Errors[] array with per-field detail.

CodeStatusWhen it happens
400Bad RequestMissing or invalid query parameters.
401UnauthorizedAPI key missing or malformed.
403ForbiddenAPI key does not have access to this symbol or endpoint.
404Not FoundRequested data does not exist.
429Too Many RequestsRate limit exceeded for your plan.
500Internal Server ErrorUnexpected server error β€” please retry.

Error response shape

error.json
{
  "StatusCode": 400,
  "Message": "Validation failed for query parameters.",
  "Errors": [
    {
      "PropertyName":  "timeFrame",
      "ErrorCode":     "ERR_0007_INVALID_TIME_FRAME",
      "ErrorMessage":  "timeFrame must be one of M1, M5, M15, H1, H4, D1"
    },
    {
      "PropertyName":  "symbolCode",
      "ErrorCode":     "ERR_0008_SYMBOL_NOT_SUPPORTED",
      "ErrorMessage":  "symbolCode BTCUSDT is not supported"
    }
  ],
  "TraceId": "00-7a8ab3af4fce34f3872a28ec7ca8f5e1-886d2e1bc76dc9a4-00"
}
πŸ’‘
Recommended error-handling pattern: Check StatusCode, then iterate Errors[] and key on ErrorCode (a stable string identifier) rather than ErrorMessage (human text that may change). Use TraceId when reporting issues to support.

Exception Codes

Each error in the Errors[] array contains a structured ErrorCode string. Use these for programmatic error branching.

HTTPError CodeDescription
404ERR_0001_DATA_NOT_FOUNDNo candle data found for the requested symbol and timeframe. The market may be closed or data is unavailable for the given period.
401ERR_0005_INVALID_API_KEYThe provided API key is missing, malformed, revoked, or does not match any active key.
400ERR_0006_INVALID_TIME_RANGEstartTime or endTime is missing, in wrong format, out of chronological order, or exceeds the maximum allowed range for your plan.
400ERR_0007_INVALID_TIME_FRAMEtimeFrame is not one of the supported values: M1, M5, M15, H1, H4, D1.
403ERR_0008_SYMBOL_NOT_SUPPORTEDThe symbolCode is not supported on your plan or does not exist.
403ERR_0009_NOT_SUPPORT_WEBSOCKETYour plan does not include WebSocket access. Upgrade to Pro or Business.
403ERR_0010_NOT_SUPPORT_HISTORICALYour plan does not include historical data. Upgrade your plan to query historical candles.
403ERR_0012_EMAIL_NOT_VERIFIEDYour email has not been verified. Verify from the dashboard before making API requests.
403ERR_0014_INVALID_PLANYour plan does not allow access to this endpoint or feature. Upgrade your plan.