markitondemand / DEPRECATED-DataApis

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

"DataPeriod":"Minute" is error #12

Closed vmvz closed 9 years ago

vmvz commented 9 years ago

Hi, I want get a chart with five minute intervals.

http://dev.markitondemand.com/Api/v2/InteractiveChart/json?parameters={"Normalized":false,"NumberOfDays":10,"DataPeriod":"Minute","DataInterval":5,"Elements":[{"Symbol":"AAPL","Type":"price","Params":["c"]}]}

But, this returns null.

{"Labels":null,"Positions":null,"Dates":null,"Elements":[]}

please check it. thanks.

markhealey commented 9 years ago

@vmvz This API is not entitled to intraday data, so your request for a 10 day, 5 minute chart isn't permitted. Try an interday request.

augustwester commented 9 years ago

Hi Mark,

Can you elaborate on what you mean by that? In the documentation for InteractiveChart, it explicitly states that you can change the "DataPeriod" parameter to "Hour"/"Minute" and further separate these with intervals using the "DataInterval" parameter. If the API doesn't support this (which is how I interpret your answer), how come it says so in the documentation?

Thanks in advance for helping out!

alokshenoy commented 8 years ago

Looks like I misunderstood this whole bit about intra and interday! Thanks for the info @markhealey