πŸŽ‰ Our Chrome Extension is here! Get live market prices right in your browser.Install Now
RealMarketAPI
🧠
Docs/Intelligence API

Intelligence API

11 endpoints Β· Bias scoring Β· Trend detection Β· Confluence Β· Liquidity Β· Order flow Β· Anomaly Β· Manipulation risk Β· Pro plan and above

πŸ”‘

Pro plan and above

All Intelligence API endpoints require an active Pro plan or higher. Free, Starter, and Plus plans do not have access to these endpoints. Authentication is via the apiKey query parameter. Parameters SymbolCode and TimeFrame use PascalCase.

GET

/api/v1/insight/next

Pro+

Returns a next-candle forecast with EMA 21/50, RSI, ATR, Volume, Support/Resistance, bias scoring (5 signals), and ATR-based price targets (Target Up / Target Down). Equivalent to the Telegram /next command.

Query Parameters
NameTypeDescription
apiKey*stringYour API authentication key.
SymbolCode*stringTrading symbol (e.g. BTCUSD, XAUUSD, EURUSD).
TimeFrame*stringCandle interval: M1 Β· M5 Β· M15 Β· H1 Β· H4 Β· D1.
Response Fields β€” 200 OK
FieldTypeDescription
symbolCodestringSymbol identifier.
timeFramestringRequested timeframe.
calculatedAtISO 8601Calculation timestamp (UTC).
pricedecimalCurrent close price.
ema21decimalEMA 21 value.
ema50decimalEMA 50 value.
rsidecimalRSI value.
atrdecimalAverage True Range value.
volumedecimalCurrent candle volume.
avgVolumedecimalAverage volume over the analysis window.
supportdecimalNearest support level.
resistancedecimalNearest resistance level.
biasstringBullish | Bearish | Neutral β€” overall signal direction.
bullScoreintNumber of bullish signals out of 5.
bearScoreintNumber of bearish signals out of 5.
targetUpdecimalPrice + 1 ATR target level.
targetDowndecimalPrice βˆ’ 1 ATR target level.
signalsarray5 named signals each with name and direction (Bullish/Bearish/Neutral).

Request

GET /api/v1/insight/next
GEThttps://api.realmarketapi.com/api/v1/insight/next?apiKey=YOUR_API_KEY&SymbolCode=BTCUSD&TimeFrame=H1

Response β€” 200 OK

response.json
{
  "symbolCode":   "BTCUSD",
  "timeFrame":    "H1",
  "calculatedAt": "2025-01-15T10:00:00+00:00",
  "price":        94500.00,
  "ema21":        93800.12,
  "ema50":        92100.65,
  "rsi":          57.30,
  "atr":          420.12,
  "volume":       1240.0,
  "avgVolume":    980.0,
  "support":      93200.00,
  "resistance":   95800.00,
  "bias":         "Bullish",
  "bullScore":    4,
  "bearScore":    1,
  "targetUp":     94920.12,
  "targetDown":   94079.88,
  "signals": [
    { "name": "Price vs EMA Trend",  "direction": "Bullish" },
    { "name": "EMA 21 vs EMA 50",    "direction": "Bullish" },
    { "name": "RSI Momentum",        "direction": "Bullish" },
    { "name": "Support/Resistance",  "direction": "Bullish" },
    { "name": "Volume",              "direction": "Neutral" }
  ]
}
GET

/api/v1/insight/trend

Pro+

Classifies the current market trend using EMA 21/50 alignment and ADX strength. Returns one of five labels from StrongUptrend to StrongDowntrend.

Query Parameters
NameTypeDescription
apiKey*stringYour API authentication key.
SymbolCode*stringTrading symbol (e.g. BTCUSD, XAUUSD, EURUSD).
TimeFrame*stringCandle interval: M1 Β· M5 Β· M15 Β· H1 Β· H4 Β· D1.
Response Fields β€” 200 OK
FieldTypeDescription
symbolCodestringSymbol identifier.
timeFramestringRequested timeframe.
calculatedAtISO 8601Calculation timestamp (UTC).
trendstringStrongUptrend | Uptrend | Sideways | Downtrend | StrongDowntrend.
descriptionstringHuman-readable explanation of the trend.
adxdecimalADX value β€” β‰₯25 indicates a trending market, <20 indicates ranging.
ema21decimalEMA 21 value.
ema50decimalEMA 50 value.
pricedecimalCurrent close price.

Request

GET /api/v1/insight/trend
GEThttps://api.realmarketapi.com/api/v1/insight/trend?apiKey=YOUR_API_KEY&SymbolCode=EURUSD&TimeFrame=H4

Response β€” 200 OK

response.json
{
  "symbolCode":   "EURUSD",
  "timeFrame":    "H4",
  "calculatedAt": "2025-01-15T08:00:00+00:00",
  "trend":        "StrongUptrend",
  "description":  "EURUSD is in a strong uptrend on H4 (ADX 31.2, price above EMA 21 & 50)",
  "adx":   31.20,
  "ema21": 1.09345,
  "ema50": 1.08912,
  "price": 1.09720
}
GET

/api/v1/insight/setup

Pro+

Detects the current market setup pattern: Breakout (with volume confirmation), Pullback into the trend, or Range-bound. Returns direction and the nearest support/resistance levels.

Query Parameters
NameTypeDescription
apiKey*stringYour API authentication key.
SymbolCode*stringTrading symbol (e.g. BTCUSD, XAUUSD, EURUSD).
TimeFrame*stringCandle interval: M1 Β· M5 Β· M15 Β· H1 Β· H4 Β· D1.
Response Fields β€” 200 OK
FieldTypeDescription
symbolCodestringSymbol identifier.
timeFramestringRequested timeframe.
calculatedAtISO 8601Calculation timestamp (UTC).
setupstringBreakout | Pullback | Range | None.
directionstringBullish | Bearish | Neutral.
descriptionstringHuman-readable setup summary.
pricedecimalCurrent close price.
nearestSupportdecimalNearest support level.
nearestResistancedecimalNearest resistance level.

Request

GET /api/v1/insight/setup
GEThttps://api.realmarketapi.com/api/v1/insight/setup?apiKey=YOUR_API_KEY&SymbolCode=XAUUSD&TimeFrame=M15

Response β€” 200 OK

response.json
{
  "symbolCode":        "XAUUSD",
  "timeFrame":         "M15",
  "calculatedAt":      "2025-01-15T09:45:00+00:00",
  "setup":             "Breakout",
  "direction":         "Bullish",
  "description":       "Bullish breakout above resistance 2685.50 with volume confirmation on M15.",
  "price":             2686.10,
  "nearestSupport":    2672.34,
  "nearestResistance": 2685.50
}
GET

/api/v1/insight/confluence

Pro+

Combines RSI momentum, EMA alignment, and proximity to key support/resistance into a single Buy/Sell/Neutral signal. Returns a 0–100 confidence score and a list of contributing reasons.

Query Parameters
NameTypeDescription
apiKey*stringYour API authentication key.
SymbolCode*stringTrading symbol (e.g. BTCUSD, XAUUSD, EURUSD).
TimeFrame*stringCandle interval: M1 Β· M5 Β· M15 Β· H1 Β· H4 Β· D1.
Response Fields β€” 200 OK
FieldTypeDescription
symbolCodestringSymbol identifier.
timeFramestringRequested timeframe.
calculatedAtISO 8601Calculation timestamp (UTC).
signalstringBuy | Sell | Neutral.
strengthstringWeak | Moderate | Strong.
scoreint0–100 β€” percentage of signals confirming the direction.
reasonsstring[]List of contributing factor descriptions.
rsidecimalRSI value at calculation time.
ema21decimalEMA 21 value.
ema50decimalEMA 50 value.
pricedecimalCurrent close price.
nearestSupportdecimalNearest support level.
nearestResistancedecimalNearest resistance level.

Request

GET /api/v1/insight/confluence
GEThttps://api.realmarketapi.com/api/v1/insight/confluence?apiKey=YOUR_API_KEY&SymbolCode=BTCUSD&TimeFrame=H1

Response β€” 200 OK

response.json
{
  "symbolCode":        "BTCUSD",
  "timeFrame":         "H1",
  "calculatedAt":      "2025-01-15T10:00:00+00:00",
  "signal":            "Buy",
  "strength":          "Strong",
  "score":             83,
  "reasons": [
    "RSI bullish momentum (57.3)",
    "Price above EMA 21 & 50 β€” bullish alignment",
    "Price holding near support 93200.00 β€” bullish bounce zone"
  ],
  "rsi":               57.30,
  "ema21":             93800.12,
  "ema50":             92100.65,
  "price":             94500.00,
  "nearestSupport":    93200.00,
  "nearestResistance": 95800.00
}
GET

/api/v1/insight/score

Pro+

Returns a composite 0–100 bullish/bearish strength score derived from five equally-weighted components: RSI, MACD, EMA alignment, ADX direction, and price range position. Includes a per-component breakdown.

Query Parameters
NameTypeDescription
apiKey*stringYour API authentication key.
SymbolCode*stringTrading symbol (e.g. BTCUSD, XAUUSD, EURUSD).
TimeFrame*stringCandle interval: M1 Β· M5 Β· M15 Β· H1 Β· H4 Β· D1.
Response Fields β€” 200 OK
FieldTypeDescription
symbolCodestringSymbol identifier.
timeFramestringRequested timeframe.
calculatedAtISO 8601Calculation timestamp (UTC).
scoreint0 (extreme bearish) to 100 (extreme bullish).
labelstringStrongBullish | Bullish | Neutral | Bearish | StrongBearish.
rsidecimalRSI value.
macdHistogramdecimalCurrent MACD histogram value.
adxdecimalADX value.
pricedecimalCurrent close price.
ema21decimalEMA 21 value.
ema50decimalEMA 50 value.
factorsstring[]Per-component breakdown showing contribution (e.g. 'RSI 58.4 β†’ 12/20 pts').

Request

GET /api/v1/insight/score
GEThttps://api.realmarketapi.com/api/v1/insight/score?apiKey=YOUR_API_KEY&SymbolCode=EURUSD&TimeFrame=H1

Response β€” 200 OK

response.json
{
  "symbolCode":    "EURUSD",
  "timeFrame":     "H1",
  "calculatedAt":  "2025-01-15T10:00:00+00:00",
  "score":         72,
  "label":         "Bullish",
  "rsi":           58.40,
  "macdHistogram": 0.000142,
  "adx":           28.50,
  "price":         1.09720,
  "ema21":         1.09345,
  "ema50":         1.08912,
  "factors": [
    "RSI 58.4 β†’ 12/20 pts",
    "MACD histogram positive β†’ 20/20 pts",
    "Price above EMA 21 & 50 β†’ 20/20 pts",
    "ADX 28.5 +DI dominant β†’ 20/20 pts",
    "Price position in 20-candle range β†’ 0/20 pts"
  ]
}
GET

/api/v1/multi-timeframe

Pro+

Returns the trend direction for every plan-allowed timeframe in a single call. Ideal for building top-down alignment dashboards. Timeframes without sufficient data are silently omitted. No TimeFrame parameter β€” analysis covers all timeframes automatically.

Query Parameters
NameTypeDescription
apiKey*stringYour API authentication key.
SymbolCode*stringTrading symbol (e.g. BTCUSD, XAUUSD, EURUSD).
Response Fields β€” 200 OK
FieldTypeDescription
symbolCodestringSymbol identifier.
calculatedAtISO 8601Calculation timestamp (UTC).
timeframesobjectDictionary keyed by timeframe (M5, M15, H1, H4, D1).
timeframes[key]stringStrongBullish | Bullish | Neutral | Bearish | StrongBearish for each timeframe.

Request

GET /api/v1/multi-timeframe
GEThttps://api.realmarketapi.com/api/v1/multi-timeframe?apiKey=YOUR_API_KEY&SymbolCode=BTCUSD

Response β€” 200 OK

response.json
{
  "symbolCode":   "BTCUSD",
  "calculatedAt": "2025-01-15T10:00:00+00:00",
  "timeframes": {
    "M5":  "Bullish",
    "M15": "StrongBullish",
    "H1":  "Neutral",
    "H4":  "Bearish",
    "D1":  "StrongBearish"
  }
}
GET

/api/v1/liquidity/zones

Pro+

Returns key support and resistance clusters acting as liquidity pools. Zones are sorted by proximity to current price. Each zone includes touch count and relative strength rating.

Query Parameters
NameTypeDescription
apiKey*stringYour API authentication key.
SymbolCode*stringTrading symbol (e.g. BTCUSD, XAUUSD, EURUSD).
TimeFrame*stringCandle interval: M1 Β· M5 Β· M15 Β· H1 Β· H4 Β· D1.
Response Fields β€” 200 OK
FieldTypeDescription
symbolCodestringSymbol identifier.
timeFramestringRequested timeframe.
calculatedAtISO 8601Calculation timestamp (UTC).
currentPricedecimalCurrent close price.
zonesarrayLiquidity zones sorted nearest-first.
zones[].pricedecimalZone price level.
zones[].typestringSupport | Resistance.
zones[].touchCountintNumber of times price has touched this level.
zones[].lastTouchedAtISO 8601Timestamp of the most recent touch.
zones[].strengthstringWeak (1 touch) | Moderate (2–3 touches) | Strong (β‰₯4 touches).

Request

GET /api/v1/liquidity/zones
GEThttps://api.realmarketapi.com/api/v1/liquidity/zones?apiKey=YOUR_API_KEY&SymbolCode=XAUUSD&TimeFrame=H1

Response β€” 200 OK

response.json
{
  "symbolCode":   "XAUUSD",
  "timeFrame":    "H1",
  "calculatedAt": "2025-01-15T10:00:00+00:00",
  "currentPrice": 2684.50,
  "zones": [
    {
      "price":         2685.50,
      "type":          "Resistance",
      "touchCount":    4,
      "strength":      "Strong",
      "lastTouchedAt": "2025-01-14T16:00:00+00:00"
    },
    {
      "price":         2672.34,
      "type":          "Support",
      "touchCount":    2,
      "strength":      "Moderate",
      "lastTouchedAt": "2025-01-13T08:00:00+00:00"
    }
  ]
}
GET

/api/v1/orderflow/imbalance

Pro+

Measures directional order flow imbalance over the last 50 candles β€” bullish vs bearish ratio β€” and identifies candles with body sizes β‰₯1.5Γ— the average (imbalance zones). Returns up to 10 recent imbalance zones.

Query Parameters
NameTypeDescription
apiKey*stringYour API authentication key.
SymbolCode*stringTrading symbol (e.g. BTCUSD, XAUUSD, EURUSD).
TimeFrame*stringCandle interval: M1 Β· M5 Β· M15 Β· H1 Β· H4 Β· D1.
Response Fields β€” 200 OK
FieldTypeDescription
symbolCodestringSymbol identifier.
timeFramestringRequested timeframe.
calculatedAtISO 8601Calculation timestamp (UTC).
currentImbalancestringBullish (>60% bull candles) | Bearish (>60% bear candles) | Neutral.
bullishRatiodecimalPercentage of bullish candles in the last 50.
bearishRatiodecimalPercentage of bearish candles in the last 50.
recentImbalanceZonesarrayUp to 10 most recent large-body candles.
recentImbalanceZones[].openTimeISO 8601Candle open timestamp.
recentImbalanceZones[].opendecimalCandle open price.
recentImbalanceZones[].closedecimalCandle close price.
recentImbalanceZones[].directionstringBullish | Bearish.
recentImbalanceZones[].bodyMultiplierdecimalBody size relative to average β€” always β‰₯1.5.
recentImbalanceZones[].volumedecimalVolume on this candle.

Request

GET /api/v1/orderflow/imbalance
GEThttps://api.realmarketapi.com/api/v1/orderflow/imbalance?apiKey=YOUR_API_KEY&SymbolCode=BTCUSD&TimeFrame=M15

Response β€” 200 OK

response.json
{
  "symbolCode":       "BTCUSD",
  "timeFrame":        "M15",
  "calculatedAt":     "2025-01-15T09:45:00+00:00",
  "currentImbalance": "Bullish",
  "bullishRatio":     64.0,
  "bearishRatio":     36.0,
  "recentImbalanceZones": [
    {
      "openTime":       "2025-01-15T09:30:00+00:00",
      "open":           94200.00,
      "close":          94580.00,
      "direction":      "Bullish",
      "bodyMultiplier": 2.30,
      "volume":         3840.0
    }
  ]
}
GET

/api/v1/stop-hunt/zones

Pro+

Identifies price levels just beyond key support/resistance where retail stop orders cluster (buffer = 0.5Γ—ATR). Flags zones recently swept by a wick that closed back inside the range. Returns up to 5 support + 5 resistance stop clusters.

Query Parameters
NameTypeDescription
apiKey*stringYour API authentication key.
SymbolCode*stringTrading symbol (e.g. BTCUSD, XAUUSD, EURUSD).
TimeFrame*stringCandle interval: M1 Β· M5 Β· M15 Β· H1 Β· H4 Β· D1.
Response Fields β€” 200 OK
FieldTypeDescription
symbolCodestringSymbol identifier.
timeFramestringRequested timeframe.
calculatedAtISO 8601Calculation timestamp (UTC).
currentPricedecimalCurrent close price.
zonesarrayStop clusters sorted nearest-first.
zones[].pricedecimalStop cluster price level.
zones[].typestringBelowSupport | AboveResistance.
zones[].descriptionstringHuman-readable zone description.
zones[].recentlyHuntedbooleantrue if a candle in the last 10 wicked through and closed back inside the zone.
zones[].huntedAtISO 8601?Timestamp of the most recent hunt event, or null if not hunted.

Request

GET /api/v1/stop-hunt/zones
GEThttps://api.realmarketapi.com/api/v1/stop-hunt/zones?apiKey=YOUR_API_KEY&SymbolCode=EURUSD&TimeFrame=H1

Response β€” 200 OK

response.json
{
  "symbolCode":   "EURUSD",
  "timeFrame":    "H1",
  "calculatedAt": "2025-01-15T10:00:00+00:00",
  "currentPrice": 1.09720,
  "zones": [
    {
      "price":          1.09485,
      "type":           "BelowSupport",
      "description":    "Stop cluster below support 1.09532",
      "recentlyHunted": true,
      "huntedAt":       "2025-01-15T06:00:00+00:00"
    },
    {
      "price":          1.09967,
      "type":           "AboveResistance",
      "description":    "Stop cluster above resistance 1.09920",
      "recentlyHunted": false,
      "huntedAt":       null
    }
  ]
}
GET

/api/v1/anomaly

Pro+

Scans the last 50 candles for three anomaly types: PriceSpike (candle range >2.5Οƒ above average), UnusualVolume (volume >2.0Οƒ above average), and FakeBreakout (wick through S/R that closes back inside). Returns up to 20 most recent anomalies.

Query Parameters
NameTypeDescription
apiKey*stringYour API authentication key.
SymbolCode*stringTrading symbol (e.g. BTCUSD, XAUUSD, EURUSD).
TimeFrame*stringCandle interval: M1 Β· M5 Β· M15 Β· H1 Β· H4 Β· D1.
Response Fields β€” 200 OK
FieldTypeDescription
symbolCodestringSymbol identifier.
timeFramestringRequested timeframe.
calculatedAtISO 8601Calculation timestamp (UTC).
hasAnomaliesbooleantrue if at least one anomaly was detected in the last 50 candles.
anomaliesarrayArray of anomaly events.
anomalies[].openTimeISO 8601Candle open timestamp.
anomalies[].typestringPriceSpike | UnusualVolume | FakeBreakout.
anomalies[].valuedecimalThe measured value that triggered the anomaly detection.
anomalies[].thresholddecimalThe statistical threshold that was exceeded.
anomalies[].descriptionstringHuman-readable description of the anomaly.

Request

GET /api/v1/anomaly
GEThttps://api.realmarketapi.com/api/v1/anomaly?apiKey=YOUR_API_KEY&SymbolCode=BTCUSD&TimeFrame=M15

Response β€” 200 OK

response.json
{
  "symbolCode":   "BTCUSD",
  "timeFrame":    "M15",
  "calculatedAt": "2025-01-15T09:45:00+00:00",
  "hasAnomalies": true,
  "anomalies": [
    {
      "openTime":    "2025-01-15T08:15:00+00:00",
      "type":        "PriceSpike",
      "value":       980.50,
      "threshold":   720.30,
      "description": "Candle range 980.50 exceeded 2.5Οƒ threshold 720.30"
    },
    {
      "openTime":    "2025-01-15T06:00:00+00:00",
      "type":        "FakeBreakout",
      "value":       93180.00,
      "threshold":   93200.00,
      "description": "Wick below support 93200 but closed back above"
    }
  ]
}
GET

/api/v1/manipulation-risk

Pro+

Assesses market manipulation probability over the last 20 candles using three factors: wick-to-body ratio, volume divergence (large price move on low volume), and fake breakout frequency. Returns a 0–100 risk score with contributing factors.

Query Parameters
NameTypeDescription
apiKey*stringYour API authentication key.
SymbolCode*stringTrading symbol (e.g. BTCUSD, XAUUSD, EURUSD).
TimeFrame*stringCandle interval: M1 Β· M5 Β· M15 Β· H1 Β· H4 Β· D1.
Response Fields β€” 200 OK
FieldTypeDescription
symbolCodestringSymbol identifier.
timeFramestringRequested timeframe.
calculatedAtISO 8601Calculation timestamp (UTC).
riskLevelstringLow | Medium | High.
riskScoreint0 (no risk) to 100 (extreme manipulation risk).
factorsstring[]List of contributing risk factor descriptions.
avgWickToBodyRatiodecimalAverage total-wick Γ· body ratio over the last 20 candles.
currentVolumedecimalCurrent candle volume.
avgVolumedecimalAverage volume over the analysis window.

Request

GET /api/v1/manipulation-risk
GEThttps://api.realmarketapi.com/api/v1/manipulation-risk?apiKey=YOUR_API_KEY&SymbolCode=XAUUSD&TimeFrame=M15

Response β€” 200 OK

response.json
{
  "symbolCode":        "XAUUSD",
  "timeFrame":         "M15",
  "calculatedAt":      "2025-01-15T09:45:00+00:00",
  "riskLevel":         "High",
  "riskScore":         75,
  "factors": [
    "Very high wick-to-body ratio (3.40x) β€” strong indecision or stop hunting",
    "Large price move with low volume β€” volume divergence detected",
    "3 fake breakout(s) in last 5 candles β€” potential stop-hunt activity"
  ],
  "avgWickToBodyRatio": 3.40,
  "currentVolume":      420.0,
  "avgVolume":          1240.0
}

Error Codes

Common Error Codes
CodeHTTPDescription
ERR_0001_DATA_NOT_FOUND400No market data available for the requested symbol / timeframe
ERR_0005_INVALID_API_KEY400API key is missing, inactive, or not found
ERR_0007_INVALID_TIME_FRAME400Requested timeframe is not available on your plan
ERR_0008_SYMBOL_NOT_SUPPORTED400Requested symbol is not available on your plan
ERR_0012_EMAIL_NOT_VERIFIED400Account email has not been verified
ERR_0014_INVALID_PLAN400Pro plan or above is required to access this endpoint
ERR_0017_REQUEST_QUOTA_EXCEEDED429Monthly request quota has been reached
Feedback