GET /v1/indicators/rsi/{ticker}

Relative Strength Index (RSI)

Retrieve the Relative Strength Index (RSI) for a specified ticker over a defined time range. The RSI measures the speed and magnitude of price changes, oscillating between 0 and 100 to help identify overbought or oversold conditions.

Endpoint Details

HTTP Method GET
Path /v1/indicators/rsi/{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/rsi/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., 334a4a44b65b3ac2420dc382f6172dbd)
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., 1064894400000)
data.results.values[].valuedoubleFloating point number (e.g., 36.975455265241)
data.next_urlstringURL for pagination to fetch the next page of results (e.g., https://api.tradeiqai.com/v1/indicators/rsi/AAPL?c...)

Example Response

{
    "ok": true,
    "data": {
        "status": "OK",
        "request_id": "334a4a44b65b3ac2420dc382f6172dbd",
        "results": {
            "underlying": {
                "url": "https://api.tradeiqai.com/v2/aggs/ticker/AAPL/range/1/day/1063281600000/1770868865529?limit=75&sort=asc"
            },
            "values": [
                {
                    "timestamp": 1064894400000,
                    "value": 36.9754552652414787417001207359135150909423828125
                },
                {
                    "timestamp": 1064980800000,
                    "value": 37.66640563821457732274211593903601169586181640625
                },
                {
                    "timestamp": 1065067200000,
                    "value": 36.34603604691196920839502126909792423248291015625
                },
                {
                    "timestamp": 1065153600000,
                    "value": 46.45320457866804275681715807877480983734130859375
                },
                {
                    "timestamp": 1065412800000,
                    "value": 50.97966542235506182123572216369211673736572265625
                },
                {
                    "timestamp": 1065499200000,
                    "value": 56.99686499904448311326632392592728137969970703125
                },
                {
                    "timestamp": 1065585600000,
                    "value": 55.710310124893794636591337621212005615234375
                },
                {
                    "timestamp": 1065672000000,
                    "value": 58.16502783275203825041899108327925205230712890625
                },
                {
                    "timestamp": 1065758400000,
                    "value": 59.5781685283946984554859227500855922698974609375
                },
                {
                    "timestamp": 1066017600000,
                    "value": 63.4384446437472746538333012722432613372802734375
                }
            ]
        },
        "next_url": "https://api.tradeiqai.com/v1/indicators/rsi/AAPL?cursor=YWRqdXN0ZWQ9dHJ1ZSZhcD0lN0IlMjJ2JTIyJTNBMCUyQyUyMm8lMjIlM0EwJTJDJTIyYyUyMiUzQTAuMzY0OCUyQyUyMmglMjIlM0EwJTJDJTIybCUyMiUzQTAlMkMlMjJ0JTIyJTNBMTA2NDQ2MjQwMDAwMCU3RCZhcz0mZXhwYW5kX3VuZGVybHlpbmc9ZmFsc2UmbGltaXQ9MTAmb3JkZXI9YXNjJnNlcmllc190eXBlPWNsb3NlJnRpbWVzcGFuPWRheSZ0aW1lc3RhbXAuZ3Q9MTA2NjAxNzYwMDAwMCZ3aW5kb3c9MTQ"
    }
}