Git Product home page Git Product logo

Comments (9)

Ali-Khatami avatar Ali-Khatami commented on August 17, 2024

Hi there @mjdguyler , sorry to hear you are encountering issues with the provided code. Would you be able to provide some more information? Here are a couple of different options that would make it much easier for us to help get you up and running:

  1. The full api url that is being hit along with the parameters (you should be able to find this in chrome debug tools under the network tab)
  2. A hosted url to your project so that we can debug ourselves
  3. An exported .har file from chrome for the API request (see attached screenshot)
    image

Hopefully we can help you get you back up and running!

from deprecated-dataapis.

mjdguyler avatar mjdguyler commented on August 17, 2024

Parameters:
parameters:
"{"Normalized":false,"NumberOfDays":3650,"DataPeriod":"Day","Elements":[{"Symbol":"APPL","Type":"price","Params":["ohlc"]},{"Symbol":"APPL","Type":"volume"}]}"
URL:
url: "http://dev.markitondemand.com/Api/v2/InteractiveChart/jsonp",

Attached is the HAR.

The website cannot be attached as it is running on localhost. I downloaded
the code as you had it on GitHub and added inside my .js file a call to
give parameters and make the new Markit.InteractiveChartApi like in the
demo.

On Wed, May 20, 2015 at 11:00 AM, Ali Khatami [email protected]
wrote:

Hi there @mjdguyler https://github.com/mjdguyler , sorry to hear you
are encountering issues with the provided code. Would you be able to
provide some more information? Here are a couple of different options that
would make it much easier for us to help get you up and running:

  1. The full api url that is being hit along with the parameters (you
    should be able to find this in chrome debug tools under the network tab)
  2. A hosted url to your project so that we can debug ourselves
  3. An exported .har file from chrome for the API request (see attached
    screenshot) [image: image]
    https://cloud.githubusercontent.com/assets/1418016/7732750/3e696292-fee7-11e4-925b-4892bd1512d6.png

Hopefully we can help you get you back up and running!


Reply to this email directly or view it on GitHub
#18 (comment)
.

from deprecated-dataapis.

Ali-Khatami avatar Ali-Khatami commented on August 17, 2024

@mjdguyler It doesn't look like the entire har was attached can you instead try copying the full url using google chrome. I'm using http://markitondemand.github.io/DataApis/InteractiveChartSample/ as an example:

The full url should look like this...

Escaped
http://dev.markitondemand.com/Api/v2/InteractiveChart/jsonp?callback=jQuery110209236548591870815_1432147464499&parameters=%7B%22Normalized%22%3Afalse%2C%22NumberOfDays%22%3A3650%2C%22DataPeriod%22%3A%22Day%22%2C%22Elements%22%3A%5B%7B%22Symbol%22%3A%22AAPL%22%2C%22Type%22%3A%22price%22%2C%22Params%22%3A%5B%22ohlc%22%5D%7D%2C%7B%22Symbol%22%3A%22AAPL%22%2C%22Type%22%3A%22volume%22%7D%5D%7D&_=1432147464500

Unescaped
"http://dev.markitondemand.com/Api/v2/InteractiveChart/jsonp?callback=jQuery110209236548591870815_1432147464499&parameters={"Normalized":false,"NumberOfDays":3650,"DataPeriod":"Day","Elements":[{"Symbol":"AAPL","Type":"price","Params":["ohlc"]},{"Symbol":"AAPL","Type":"volume"}]}&_=1432147464500

image

from deprecated-dataapis.

mjdguyler avatar mjdguyler commented on August 17, 2024

Here is what you asked for:
http://dev.markitondemand.com/Api/v2/InteractiveChart/jsonp?callback=jQuery1102006651935772970319_1432145887816&parameters=%7B%22Normalized%22%3Afalse%2C%22NumberOfDays%22%3A3650%2C%22DataPeriod%22%3A%22Day%22%2C%22Elements%22%3A%5B%7B%22Symbol%22%3A%22APPL%22%2C%22Type%22%3A%22price%22%2C%22Params%22%3A%5B%22ohlc%22%5D%7D%2C%7B%22Symbol%22%3A%22APPL%22%2C%22Type%22%3A%22volume%22%7D%5D%7D&_=1432145887817

On Wed, May 20, 2015 at 11:47 AM, Ali Khatami [email protected]
wrote:

@mjdguyler https://github.com/mjdguyler It doesn't look like the entire
har was attached can you instead try copying the full url using google
chrome. I'm using
http://markitondemand.github.io/DataApis/InteractiveChartSample/ as an
example:

The full url should look like this...

Escaped

http://dev.markitondemand.com/Api/v2/InteractiveChart/jsonp?callback=jQuery110209236548591870815_1432147464499&parameters=%7B%22Normalized%22%3Afalse%2C%22NumberOfDays%22%3A3650%2C%22DataPeriod%22%3A%22Day%22%2C%22Elements%22%3A%5B%7B%22Symbol%22%3A%22AAPL%22%2C%22Type%22%3A%22price%22%2C%22Params%22%3A%5B%22ohlc%22%5D%7D%2C%7B%22Symbol%22%3A%22AAPL%22%2C%22Type%22%3A%22volume%22%7D%5D%7D&_=1432147464500

Unescaped
"
http://dev.markitondemand.com/Api/v2/InteractiveChart/jsonp?callback=jQuery110209236548591870815_1432147464499&parameters={"Normalized":false,"NumberOfDays":3650,"DataPeriod":"Day","Elements":[{"Symbol":"AAPL","Type":"price","Params":["ohlc"]},{"Symbol":"AAPL","Type":"volume"}]}&_=1432147464500

[image: image]
https://cloud.githubusercontent.com/assets/1418016/7733704/1e2d5252-feee-11e4-8d08-db8af118f805.png


Reply to this email directly or view it on GitHub
#18 (comment)
.

from deprecated-dataapis.

Ali-Khatami avatar Ali-Khatami commented on August 17, 2024

@mjdguyler I am almost at a loss. I checked the API code and nothing seems to be out of the ordinary, but your URL does return an error. What's stranger still is that I took the parameters from my url, replaced the parameters in yours for reference, and it works! They look the same, but I'm wondering if there is some weird encoding in the string somewhere. Even after changing your callback value to my callback value yours still failed. I've gotten to the point where I think it might be some type of encoding issue with your page. Is your page in UTF8?

Check out these example urls for reference:

Works

http://dev.markitondemand.com/Api/v2/InteractiveChart/jsonp?callback=jQuery1102006651935772970319_1432145887816&parameters={%22Normalized%22:false,%22NumberOfDays%22:3650,%22DataPeriod%22:%22Day%22,%22Elements%22:[{%22Symbol%22:%22AAPL%22,%22Type%22:%22price%22,%22Params%22:[%22ohlc%22]},{%22Symbol%22:%22AAPL%22,%22Type%22:%22volume%22}]}

Doesn't Work

http://dev.markitondemand.com/Api/v2/InteractiveChart/jsonp?callback=jQuery1102006651935772970319_1432145887816&parameters={%22Normalized%22:false,%22NumberOfDays%22:3650,%22DataPeriod%22:%22Day%22,%22Elements%22:[{%22Symbol%22:%22APPL%22,%22Type%22:%22price%22,%22Params%22:[%22ohlc%22]},{%22Symbol%22:%22APPL%22,%22Type%22:%22volume%22}]}

As you can see the urls appear to be identical, but the second url was constructed using your url example.

@brianbaker , @timburcham can someone sanity check me here?

from deprecated-dataapis.

timburcham avatar timburcham commented on August 17, 2024

The working example uses AAPL, which is Apple. The non-working example uses APPL, which is Pete Appel Corp, a delisted OTC stock. http://finance.yahoo.com/q?uhb=uh3_finance_vert&fr=&type=2button&s=appl

If you switch your example to AAPL, in both places, it should work.

Nice brainteaser, by the way. :)

from deprecated-dataapis.

timburcham avatar timburcham commented on August 17, 2024

@mjdguyler , if you can drop some line numbers to where you found this originally, we will work to correct any error in the documentation.

from deprecated-dataapis.

mjdguyler avatar mjdguyler commented on August 17, 2024

Thanks for your help, I had thought I typed that in correctly.

On Wed, May 20, 2015 at 12:41 PM, Tim Burcham [email protected]
wrote:

@mjdguyler https://github.com/mjdguyler , if you can drop some line
numbers to where you found this originally, we will work to correct any
error in the documentation.


Reply to this email directly or view it on GitHub
#18 (comment)
.

from deprecated-dataapis.

Ali-Khatami avatar Ali-Khatami commented on August 17, 2024

@timburcham I, no joke, had three developers look at that before I added that reply. Now that you pointed it out it's so obvious it hurts. Good spot Tim!

from deprecated-dataapis.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.