markitondemand / DEPRECATED-DataApis

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

Any examples on how to use the http://dev.markitondemand.com/Api/Interactive? #1

Closed migrap closed 11 years ago

bryanstrader commented 11 years ago

I was building a simple stock app that allowed you to search and add stocks to a favorite list. It was nowhere near complete but you can check that out, it uses sencha touch 2 mobile js library.

bryanstrader/sencha

bryanstrader commented 11 years ago

Check this out, I had started trying to put together a blog post to explain it.

http://www.tumblr.com/blog/bpaul81

migrap commented 11 years ago

Specifically… I'm having issues with the interactive portion of the API. The only thing I can get it to return are Bollinger Bands. I'd like to get back open/high/low/close values.

Michael

On Jul 19, 2013, at 10:37 PM, bryanstrader notifications@github.com wrote:

Check this out, I had started trying to put together a blog post to explain it.

http://www.tumblr.com/blog/bpaul81

— Reply to this email directly or view it on GitHub.

bryanstrader commented 11 years ago

I have not taken it that far yet, but plan to in the coming days

aMaZing0x41 commented 11 years ago

migrap, Could you please provide the parameters being passed to the API?

migrap commented 11 years ago

I'm able to make the following request to get Bollinger bands back:

http://dev.markitondemand.com/Api/interactive?parameters={"Normalized":false,"StartDate":"2013-07-15T00:00:00-00","EndOffsetDays":100,"NumberOfDays":100,"DataPeriod":"Day","DataInterval":0,"LabelPeriod":"Day","LabelInterval":1,"ExtraPoints":0,"Elements":[{"Symbol":"AAPL","ElementType":"bollinger","Params":[21,1]}],"RealTime":false}

However when I change the request to get price data back (ohlc):

http://dev.markitondemand.com/Api/interactive?parameters={"Normalized":false,"StartDate":"2013-07-15T00:00:00-00","EndOffsetDays":100,"NumberOfDays":100,"DataPeriod":"Day","DataInterval":0,"LabelPeriod":"Day","LabelInterval":1,"ExtraPoints":0,"Elements":[{"Symbol":"AAPL","ElementType":"price","Params":["ohlc"]}],"RealTime":false}

It returns the following:

{"Labels":null,"Positions":null,"Dates":null,"Elements":[{"Currency":"USD","TimeStamp":"2013-07-22 13:09:50-04","Symbol":"AAPL","Type":"bollinger","DataSeries":null}]}

Not that even though I requested "price" data, the response is "bollinger". This holds true for "sma", and "ema" as well.

There's not an example on the dev.markitondemonad.com website on how to use interactive so I'm not even sure if I'm composing the json correctly. I'm not getting an error stating the request is malformed so... maybe it's right.

Thanks

Michael

On Jul 21, 2013, at 8:24 PM, aMaZing0x41 notifications@github.com wrote:

migrap, Could you please provide the parameters being passed to the API?

— Reply to this email directly or view it on GitHub.

markhealey commented 11 years ago

Hi all,

The reason there aren't any examples supporting the Interactive API is because the Timeseries is the one to use for rendering charts. I realize there is a slightly larger composition of data available from the Interactive API but since all of these APIs are intended for building demos and proofs-of-concepts, the Timeseries endpoint should be sufficient.

All of that said, if there are a couple of specific features in the Interactive service that you'd like to see exposed in the Timeseries API, we can certainly evaluate the additions as we are planning on removing the Interactive API from dev.markitondemand.com.

Sounds like you're making something neat—what are you folks working on? We'd love to see what you have!

Thanks -Mark

migrap commented 11 years ago

The Interactive document appears to expose other data periods then just interday (daily) data (e.g. Minute, Hour, Day, Week, Month, Quarter, Year).

What I was hoping what to pull 5 minute intraday price data (open, high, low, close) from Interactive.

Is there a way to pull 5 minute intraday price data using Timeseries?

Michael

markhealey commented 11 years ago

There is no way to get a 5 min intraday OHLC dataset from Timeseries.

I think what we'll do is work to touch up the documentation for the Interactive API, add an example and then retire the Timeseries API (since they're so similar).

migrap commented 11 years ago

Great. Let me know if there's anything else I can do. I'd love to test.

As an FYI, I've built a C# client that consumes your API. You can find it on Github (https://github.com/migrap/Markit)

Michael

markhealey commented 11 years ago

Thanks @migrap. Can you reach out me at mark dot healey at markit dot com? I'd like to ask a couple questions offline.

markhealey commented 11 years ago

We've just released v2 of our API, head over to dev.markitondemand.com for more information. The docs are much better for InteractiveChart.

ajonno commented 11 years ago

Mark do you provide international exchange market data? Including listed derivatives? 

Cheers  Angus

-------- Original message -------- From: Mark Healey notifications@github.com Date: 26/10/2013 10:08 AM (GMT+10:00) To: markitondemand/DataApis DataApis@noreply.github.com Subject: Re: [DataApis] Any examples on how to use the http://dev.markitondemand.com/Api/Interactive? (#1)

We've just released v2 of our API, head over to dev.markitondemand.com for more information. The docs are much better for InteractiveChart.

— Reply to this email directly or view it on GitHub.

markhealey commented 11 years ago

Hi, definitely not through these means. If you engaged with us for a custom solution, we could provide that information. Markit On Demand is not a data provider, we are just offering these limited APIs for proofs of concept. Apologies.