GET /v1/open-close/{stocksTicker}/{date}

Stocks Daily Open/Close

Daily open/close (+ pre/after-hours if available) for a stock ticker.

Endpoint Details

HTTP Method GET
Path /v1/open-close/{stocksTicker}/{date}
Version v1
Minimum Plan free

Path Parameters

Parameter Required Description Example
stocksTicker Required The stock ticker symbol (e.g., AAPL, MSFT) AAPL
date Required Date in YYYY-MM-DD format 2024-01-15

Query Parameters

Parameter Type Required Description
api_key string Required Your API key for authentication
limit integer Optional Maximum number of results to return
sort string Optional Sort order (asc or desc)

Example Request

curl "https://mail.tradeiqai.com/api/v1/open-close/AAPL/2024-01-15?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)

Example Response

{
    "ok": true,
    "data": {
        "status": "OK",
        "from": "2024-01-15",
        "symbol": "AAPL",
        "open": null,
        "high": null,
        "low": null,
        "close": null,
        "volume": null,
        "afterHours": null,
        "preMarket": null
    }
}