markitondemand / DEPRECATED-DataApis

Markit On Demand - Market Data APIs
http://dev.markitondemand.com
MIT License
178 stars 68 forks source link

No way to get a quote for a specific day? #56

Closed troyibm closed 7 years ago

troyibm commented 7 years ago

Looks like this isn't possible, but maybe I missed something. Is there an API to get a end-of-day price of a stock given a date? Thanks.

brianbaker commented 7 years ago

The quote api doesn't support that, it may be possible to use the chart API in that manner. Example:

{
    "StartDate": "2017-04-27",
    "EndDate": "2017-04-28",
    "Normalized": false,
    "NumberOfDays": 1,
    "DataPeriod": "Day",
    "Elements": [{
        "Symbol": "AAPL",
        "Type": "price",
        "Params": ["c"]
    }]
}