GET /v1/indicator Indicators

Exponential Moving Average (EMA)

Retrieve real-time EMA values for any supported symbol and timeframe. The Exponential Moving Average gives more weight to recent prices, making it more responsive to new information than the SMA.

GET https://tickatlas.com/v1/indicator
! Authentication Required

All requests require an API key passed in the X-API-Key header.

header
X-API-Key: YOUR_API_KEY

Don't have an API key? Get started here.

Parameters

Parameter Type Required Default Description
symbol string Required — Trading symbol (e.g., EURUSD, GBPUSD, XAUUSD)
indicator string Required EMA_20 Indicator name. Use: EMA_20
timeframe string Optional H1 Timeframe: M1, M5, M15, M30, H1, H4, D1 (default: H1)

Request Examples

cURL
curl -H "X-API-Key: YOUR_API_KEY" "https://tickatlas.com/v1/indicator?symbol=EURUSD&indicator=EMA_20&timeframe=H1"

Response

200 Success Response
200 OK
{
  "success": true,
  "data": {
    "symbol": "EURUSD",
    "indicator": "EMA_20",
    "timeframe": "H1",
    "value": 1.0853,
    "bid": 1.08432,
    "ask": 1.08443,
    "updated_at": 1711548000,
    "server_time": "2024-03-27T14:00:00+00:00"
  }
}

Error Responses

400 Bad Request
400
{
  "success": false,
  "error": {
    "code": "VALIDATION_ERROR",
    "message": "Parameter \"symbol\" is required"
  }
}
401 Unauthorized
401
{
  "success": false,
  "error": {
    "code": "INVALID_API_KEY",
    "message": "Invalid API key"
  }
}
429 Rate Limited
429
{
  "success": false,
  "error": {
    "code": "RATE_LIMIT_EXCEEDED",
    "message": "Rate limit exceeded",
    "reset_in_seconds": 60
  }
}

See full error documentation for all error codes.

Playground

Shows the documented example response. Live values come from the API, called with your key.

Common Use Cases

Build a EMA-based trading bot

Create a market screener filtering by EMA values

Feed EMA data into machine learning models