GET /v1/indicators/ema/{ticker}

Exponential Moving Average (EMA)

Retrieve the Exponential Moving Average (EMA) for a specified ticker over a defined time range. The EMA places greater weight on recent prices, enabling quicker trend detection and more responsive signals.

Endpoint Details

HTTP Method GET
Path /v1/indicators/ema/{ticker}
Version v1
Minimum Plan free

Path Parameters

Parameter Required Description Example
ticker Required The stock ticker symbol (e.g., AAPL, MSFT) AAPL

Query Parameters

Parameter Type Required Description
api_key string Required Your API key for authentication
timestamp string Optional Query by timestamp (YYYY-MM-DD or millisecond timestamp)
timespan string Optional Size of the aggregate time window (minute, hour, day, week, month, quarter, year)
adjusted boolean Optional Whether aggregates are adjusted for splits (default: true)
window integer Optional Window size for the indicator calculation
series_type string Optional Price type to use (close, open, high, low)
limit integer Optional Maximum number of results (default: 10, max: 5000)
order string Optional Sort order (asc or desc, default: asc)

Example Request

curl "https://mail.tradeiqai.com/api/v1/indicators/ema/AAPL?api_key=YOUR_API_KEY"

Note: Replace YOUR_API_KEY with your actual API key.

Response Attributes

Attribute Type Description
okbooleanIndicates if the request was successful (e.g., 1)
dataobjectResponse data object
data.statusstringResponse status (typically "OK") (e.g., OK)
data.request_idstringUnique identifier for the request (e.g., 5ab2d82253240b63de67fec0d6fa8023)
data.resultsobjectArray or object containing the endpoint-specific data
data.results.underlyingobject
data.results.underlying.propertiesunknown
data.results.valuesarrayArray of objects
Array items contain:
data.results.values[].timestampintegerInteger (e.g., 1069218000000)
data.results.values[].valuedoubleFloating point number (e.g., 0.40003541819058)
data.next_urlstringURL for pagination to fetch the next page of results (e.g., https://api.tradeiqai.com/v1/indicators/ema/AAPL?c...)

Example Response

{
    "ok": true,
    "data": {
        "status": "OK",
        "request_id": "5ab2d82253240b63de67fec0d6fa8023",
        "results": {
            "underlying": {
                "url": "https://api.tradeiqai.com/v2/aggs/ticker/AAPL/range/1/day/1063281600000/1770834398668?limit=235&sort=asc"
            },
            "values": [
                {
                    "timestamp": 1069218000000,
                    "value": 0.400035418190577363173332514634239487349987030029296875
                },
                {
                    "timestamp": 1069304400000,
                    "value": 0.398618342967417493838411246542818844318389892578125
                },
                {
                    "timestamp": 1069390800000,
                    "value": 0.397190172654969753107678798187407664954662322998046875
                },
                {
                    "timestamp": 1069650000000,
                    "value": 0.396441538433206286384802297106944024562835693359375
                },
                {
                    "timestamp": 1069736400000,
                    "value": 0.395377164377002099371338772471062839031219482421875
                },
                {
                    "timestamp": 1069822800000,
                    "value": 0.39436237361711967697175396097009070217609405517578125
                },
                {
                    "timestamp": 1069995600000,
                    "value": 0.39354031974978165298040266861789859831333160400390625
                },
                {
                    "timestamp": 1070254800000,
                    "value": 0.3933112876027313742355318026966415345668792724609375
                },
                {
                    "timestamp": 1070341200000,
                    "value": 0.392957903775173311711199630735791288316249847412109375
                },
                {
                    "timestamp": 1070427600000,
                    "value": 0.392288966372225378353988389790174551308155059814453125
                }
            ]
        },
        "next_url": "https://api.tradeiqai.com/v1/indicators/ema/AAPL?cursor=YWRqdXN0ZWQ9dHJ1ZSZhcD0lN0IlMjJ2JTIyJTNBMCUyQyUyMm8lMjIlM0EwJTJDJTIyYyUyMiUzQTAuMzY0OCUyQyUyMmglMjIlM0EwJTJDJTIybCUyMiUzQTAlMkMlMjJ0JTIyJTNBMTA2NDQ2MjQwMDAwMCU3RCZhcz0mZXhwYW5kX3VuZGVybHlpbmc9ZmFsc2UmbGltaXQ9MTAmb3JkZXI9YXNjJnNlcmllc190eXBlPWNsb3NlJnRpbWVzcGFuPWRheSZ0aW1lc3RhbXAuZ3Q9MTA3MDQyNzYwMDAwMCZ3aW5kb3c9NTA"
    }
}