Git Product home page Git Product logo

deprecated-dataapis's Introduction

DEPRECATED

These APIs are deprecated and no longer maintained and may be taken down at any moment.

deprecated-dataapis's People

Contributors

bentaber avatar brianbaker avatar markhealey avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

deprecated-dataapis's Issues

Failed parsing JSON input

I am getting an error when using the code exactly as given in the Interactive Chart js. It yields:
(function () { /* illegal callback name */ })({"ExceptionType":"Exception","Message":"Failed parsing JSON input","Details":"Internal.MODApis","InnerException":null})

Is there something I am missing?

Cool API

Feature requests:

  • Make quotes return the current bid & ask prices at BATS.
  • Support multiple symbols per quote request.

How many requests are allowed?

First of all, thank you for the data API. It's hard to find a proper, modern API for stock data.

I just tried a little loop that fetches data for 10 companies every 10 seconds. Most requests error out in a 501 Not Implemented but at one point or another, they return the expected results.
So I'm wondering how many requests are allowed per timeframe?

Status Failure APP_SPECIFIC_ERROR

This is for http://dev.markitondemand.com/MODApis/Api/v2/Quote?symbol=AAT

<StockQuote>
  <Status>Failure|APP_SPECIFIC_ERROR</Status>
  <Name>American Assets Trust Inc</Name>
  <Symbol>AAT</Symbol>
  <LastPrice>0</LastPrice>
  <Change>0</Change>
  <ChangePercent>0</ChangePercent>
  <Timestamp/>
  <MSDate>0</MSDate>
  <MarketCap>0</MarketCap>
  <Volume>0</Volume>
  <ChangeYTD>0</ChangeYTD>
  <ChangePercentYTD>0</ChangePercentYTD>
  <High>0</High>
  <Low>0</Low>
  <Open>0</Open>
</StockQuote>

Many other symbols fail the same way.

Error in data download from Markets Data API V1 - 2

Extract from JSON output:
{
"symbolInput": "GB00B3FJQ599",
"basic": {
"symbol": "GB00B3FJQ599:GBX",
"name": "JP Morgan US Equity Income C - Net Income",
"exchange": "Lipper",
"exhangeCode": "LIP",
"currency": "GBp"
},
"quote": {
"lastPrice": 2.924,
"openPrice": 292.4,
"high": 292.4,
"low": 292.4,
"previousClosePrice": 2.932,
"change1Day": -0.008,
"change1DayPercent": -0.2728513,
"timeStamp": "2017-02-20T05:00:00",
"volume": 0.0
}
"lastPrice" is in £s not pence.

Interactive Chart API not returning Data for hour or minute requests.

The following url returns empty data from the API:
http://dev.markitondemand.com/MODApis/Api/v2/InteractiveChart/json?parameters=%7B%22DataInterval%22%3A+5%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%5D%2C+%22Normalized%22%3A+false%2C+%22DataPeriod%22%3A+%22Minute%22%2C+%22EndOffsetDays%22%3A+100%2C+%22NumberOfDays%22%3A+20%7D

This is the corresping code for the request (using Python requests):

    elements = [{
    'Symbol': 'aapl',
    'Type':'price',
    'Params': ["ohlc"]
     }]

    int_chart_json = {
        'EndOffsetDays': 100,
        'NumberOfDays': 20,
        'Normalized': False,
        'DataPeriod' : 'Minute',
        'DataInterval': 5,
        'Elements': elements
        }
my_params = {'parameters': json.dumps(int_chart_json)}

When I change DataPeriod to 'Day' and 'DataPeriod' to '0', it works as expceted.
Am I missing something?

Error in data download from Markets Data API V1 - 3

JSON extract from download:
{
"symbolInput": "GB00B7S9KM94",
"basic": {
"symbol": "GB00B7S9KM94:GBX",
"name": "BNY Mellon Investment Funds-Newton Global Income Fund Institutional W Accumulation",
"exchange": "Lipper",
"exhangeCode": "LIP",
"currency": "GBp"
},
"quote": {
"lastPrice": 1.8478,
"previousClosePrice": 1.8508,
"change1Day": -0.003,
"change1DayPercent": -0.16209207,
"timeStamp": "2017-02-20T05:00:00"
}
},
{
"symbolInput": "GB00B87BSD02",
"basic": {
"symbol": "GB00B87BSD02:GBX",
"name": "BNY Mellon Investment Funds-Newton Multi-Asset Growth Fund Institutional W Income",
"exchange": "Lipper",
"exhangeCode": "LIP",
"currency": "GBp"
},
"quote": {
"lastPrice": 1.5968,
"previousClosePrice": 1.6007,
"change1Day": -0.0039,
"change1DayPercent": -0.24364341,
"timeStamp": "2017-02-20T05:00:00"
}
},
{
"symbolInput": "GB00B7W36529",
"basic": {
"symbol": "GB00B7W36529:GBX",
"name": "BNY Mellon Investment Funds-Newton Real Return Fund Institutional W Income",
"exchange": "Lipper",
"exhangeCode": "LIP",
"currency": "GBp"
},
"quote": {
"lastPrice": 1.0216,
"previousClosePrice": 1.0221,
"change1Day": -0.0005,
"change1DayPercent": -0.04891889,
"timeStamp": "2017-02-20T05:00:00"
}
"currency" for all three should be "GBP", or prices should be multiplied by factor of 100.

XML chart data does is not properly received

When requesting xml instead of json data, the chart information is not properly received.

From the example on line...

http://dev.markitondemand.com/MODApis/Api/v2/InteractiveChart/json?parameters=%7B%22Normalized%22%3Afalse%2C%22NumberOfDays%22%3A365%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%22c%22%5D%7D%5D%7D

returns the correct information where as...

http://dev.markitondemand.com/MODApis/Api/v2/InteractiveChart/xml?parameters=%7B%22Normalized%22%3Afalse%2C%22NumberOfDays%22%3A365%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%22c%22%5D%7D%5D%7D

returns this...

<InteractiveChartData><Labels></Labels><Positions></Positions><Dates></Dates><Elements><ElementData><Currency>USD</Currency><TimeStamp></TimeStamp><Symbol>AAPL</Symbol><Type>price</Type><DataSeries></DataSeries></ElementData></Elements></InteractiveChartData>

adding 'Access-Control-Allow-Origin'?

I'm getting CORS errors when I request data from the API

No 'Access-Control-Allow-Origin' header is present on the requested resource.

... is it possible to allow XHRs from other domains by setting this on the server end? Or is there an alternate way to request this data without getting this error (I'm using Fetch API). Thanks!

Dow Jones Quotes Error

http://dev.markitondemand.com/API/v2/Quote/json?symbol=DJI

{
"Status": "Failure|APP_SPECIFIC_ERROR",
"Name": "DOW JONES INDU AVERAGE INDEX",
"Symbol": "DJI",
"LastPrice": 0,
"Change": 0,
"ChangePercent": 0,
"Timestamp": null,
"MSDate": 0,
"MarketCap": 0,
"Volume": 0,
"ChangeYTD": 0,
"ChangePercentYTD": 0,
"High": 0,
"Low": 0,
"Open": 0
}

can you help me with this? Is my ticker incorrect?

Cross Origin Request Blocked Error

I have been developing a test application using angular JS but getting this error on Chrome and Firefox. Internet explorer seems to work fine though. I looked at some blogs tried to modify the Http headers from the client side but no luck.

Here is the full error from firefox :
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://dev.markitondemand.com/Api/v2/Lookup/json?input=G. (Reason: CORS header 'Access-Control-Allow-Origin' missing).

Access-Control-Allow-Origin:*

Hi Guys,

Can you please look into setting a response header as follows to all responses:

Access-Control-Allow-Origin:*

This is bypass the Cross Reference blockages that browsers create for JS code.

Please let me know if you have any questions.

Thanks,
Pushkar
header

PS: Great job though - however my test has failed. I always try VIPS symbol for a response, your services do not cater to it... But it is still consistent and great!!

Error in data download from Markets Data API V1 - 1

Extract from JSON output:
{
"symbolInput": "GB00BKJ9C676",
"basic": {
"symbol": "GB00BKJ9C676:GBX",
"name": "Castlefield CFP SDL UK Buffettology Fund Institutional Income Shares",
"exchange": "Lipper",
"exhangeCode": "LIP",
"currency": "GBp"
},
"quote": {
"lastPrice": 2.3662,
"previousClosePrice": 2.3765,
"change1Day": -0.0103,
"change1DayPercent": -0.43341048,
"timeStamp": "2017-02-17T05:00:00"
}
Currency should either be "GBP" or all prices should be multiplied by factor of 100.

Quote API stuck in time on Oct 14 2016

The quote API is stuck in time at Oct 14 2016 and its missing all the changes from Monday 17-th October. Is this know to the dev team? I am building an app for realtime tracking and wanted to give this api a try but looks like its having issues. Is the API still actively maintained? Would be nice to have a dashboard with API availability status if this happens occasionally for whatever reason.

Request: GET http://dev.markitondemand.com/Api/v2/Quote/json?symbol=AAPL
Response:
{ "Status": "SUCCESS", "Name": "Apple Inc", "Symbol": "AAPL", "LastPrice": 117.63, "Change": 0.649999999999991, "ChangePercent": 0.555650538553592, "Timestamp": "Fri Oct 14 00:00:00 UTC-04:00 2016", "MSDate": 42657, "MarketCap": 633842550090, "Volume": 35652191, "ChangeYTD": 105.26, "ChangePercentYTD": 11.7518525555767, "High": 118.17, "Low": 117.13, "Open": 117.88 }

Looking up "GOOG" returns "GOOGL"

When doing a quote request for "GOOG" the result returned is "GOOGL". Expected results is the result returns "GOOG" data.

http://dev.markitondemand.com/Api/v2/Quote/json?symbol=goog

Returns:

{
    "Status": "SUCCESS",
        "Name": "Alphabet Inc",
        "Symbol": "GOOGL",
        "LastPrice": 676.37,
        "Change": 5.13,
        "ChangePercent": 0.764257195637923,
        "Timestamp": "Mon Oct 12 15:59:00 UTC-04:00 2015",
        "MSDate": 42289.6659722222,
        "MarketCap": 231052050220,
        "Volume": 77760,
        "ChangeYTD": 530.66,
        "ChangePercentYTD": 27.4582595258735,
        "High": 677.77,
        "Low": 667.82,
        "Open": 669.85
}

Minute by Minute Stock tiicker

HTTP status code

This REST API does not return HTTP status code properly. For example when I call:

http://dev.markitondemand.com/MODApis/Api/v2/Quote/json?symbol=nonsense

it returns 200 OK, but should return 404 Not Found. Can you fix it please? It would make usage of this API much smoother and better.

Interactive API response missing prefix when using JSONP

Hi,

the HTTP Request

http://dev.markitondemand.com/Api/Interactive/jsonp?callback=jQuery16209718675615731627_1381993829672&parameters=%7B%22Normalized%22%3Afalse%2C%22NumberOfDays%22%3A100%2C%22DataPeriod%22%3A%22Day%22%2C%22LabelPeriod%22%3A%22Day%22%2C%22ExtraPoints%22%3A0%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%2C%22RealTime%22%3Afalse%7D&_=1381993839793

returns

{"Labels":null,"Positions":[...],"Dates":[...],"Elements":[{"Currency":"USD","TimeStamp":"2013-10-16 15:59:59-04","Symbol":"AAPL","Type":"price","DataSeries":{"open":{"min":413.6,"max":509.71,"values":[...]},"high":{"min":423.5,"max":513.74,"values":[...]},"low":{"min":410.38,"max":504,"values":[...]},"close":{"min":418.99,"max":507.74,"values":[...]}}},{"Currency":"USD","TimeStamp":"2013-10-16 15:59:59-04","Symbol":"AAPL","Type":"volume","DataSeries":{"volume":{"min":7109152,"max":32096208,"values":[...]}}}]}

while the correct answer would be:

jQuery16209718675615731627_1381993829672(
{"Labels":null,"Positions":[...],"Dates":[...],"Elements":[{"Currency":"USD","TimeStamp":"2013-10-16 15:59:59-04","Symbol":"AAPL","Type":"price","DataSeries":{"open":{"min":413.6,"max":509.71,"values":[...]},"high":{"min":423.5,"max":513.74,"values":[...]},"low":{"min":410.38,"max":504,"values":[...]},"close":{"min":418.99,"max":507.74,"values":[...]}}},{"Currency":"USD","TimeStamp":"2013-10-16 15:59:59-04","Symbol":"AAPL","Type":"volume","DataSeries":{"volume":{"min":7109152,"max":32096208,"values":[...]}}}]}
)

Is there something wrong with my request or is jsonp not supported?

Quote API and multiple tickers

May I suggest that Quote API should change to accept a list of tickers rather than just one ticker(symbol)?

I really like this API and would hate to flood it with requests every time I want to pull quote data for several tickers at a time.

Thank you for your efforts developing this!

NYSE ARCA quotes not working

quotes for NYSE ARCA tickers give "Status":"Failure|APP_SPECIFIC_ERROR".

The name for the security shows up correctly, but all other data are 0 or null.

Timestamp is not accurate 00:00:00

Perhaps this is related to being updated only once daily.

When retrieving a Quote:

{"Status":"SUCCESS","Name":"HP Inc","Symbol":"HPQ","LastPrice":15.49,"Change":0.15,"ChangePercent":0.977835723598438,"Timestamp":"Wed Sep 28 00:00:00 UTC-04:00 2016","MSDate":42641,"MarketCap":26501469240,"Volume":9742233,"ChangeYTD":11.84,"ChangePercentYTD":30.8277027027027,"High":15.49,"Low":15.17,"Open":15.4}

501 Not Implemented

I am using an AJAX call for the Interactive Chart API along with the Lookup API to handles form submissions from the client. Sometimes, at random, the API will return the expected results, but most of the time, it will return a status error 501 Not Implemented. The issue occurs within my localhost environment, so I presume that this is not an issue dealing with HTTP and HTTPS compatibility, however, I am having those issues with that over my app when it is running on Heroku. Any advice or possible solution would be much appreciated. If you are experiencing similar issues, please leave a comment below to see if we can figure something out together.

BATS stock quote coming back with Status: "Failure|APP_SPECIFIC_ERROR"

I'm not sure if this is supported or not, but I thought the BATS exchange was. If I try something like:

http://dev.markitondemand.com/Api/v2/Lookup/jsonp?input=VTI&callback=myFunction

I get the following response:

[
  -{
    Symbol: "VTI"
    Name: "Vanguard Idx Fund"
    Exchange: "BATS Trading Inc"
  }
]

But when I try a stock quote on the same symbol, I receive the error. I've tried this on quite a few symbols.

http://dev.markitondemand.com/Api/v2/Quote/jsonp?symbol=VTI&callback=myFunction

{
  Status: "Failure|APP_SPECIFIC_ERROR"
  Name: "Vanguard Idx Fund"
  Symbol: "VTI"
  LastPrice: 0
  Change: 0
  ChangePercent: 0
  Timestamp: null
  MSDate: 0
  MarketCap: 0
  Volume: 0
  ChangeYTD: 0
  ChangePercentYTD: 0
  High: 0
  Low: 0
  Open: 0
}

APP_SPECIFIC_ERROR on indexes like DOW, NASDAQ, S&P500

The documentation doesn't make any mention of this, but the following stocks all return 0s in the stock quote API with the status of Failure|APP_SPECIFIC_ERROR. Are these not supported by markitondemand?

-DJI - DOW JONES INDU AVERAGE INDEX
-IXIC - NAS/NMS COMPSITE
-SPX - S&P 500 INDEX

Example from: http://dev.markitondemand.com/Api/v2/Lookup/jsonp?input=SPX&callback=myFunction

myFunction({"Status":"Failure|APP_SPECIFIC_ERROR","Name":"S&P 500 INDEX","Symbol":"SPX","LastPrice":0,"Change":0,"ChangePercent":0,"Timestamp":null,"MSDate":0,"MarketCap":0,"Volume":0,"ChangeYTD":0,"ChangePercentYTD":0,"High":0,"Low":0,"Open":0})

Quote API returning Document Moved HTML instead of JSON response

Quote API returning HTML instead of JSON response . However the API works fine when accessed in the browser directly or using curl command

I am using nodejs to make http request to
http://dev.markitondemand.com/MODApis/Api/v2/Quote/json?symbol=AAPL

getting response below

<title>Document Moved</title>

Object Moved

This document may be found here <title>Document Moved</title>

Object Moved

This document may be found here undefined:1 <title>Document Moved</title> ^

Appreciate your help with this issue.

Unable to obtain other than daily data

I have trouble obtaining chart data with a period different than "Day"

The following URL

http://dev.markitondemand.com/Api/v2/InteractiveChart/jsonp?callback=jQuery203014748947089537978_1389299433884&parameters=%7B%22Normalized%22%3Afalse%2C%22EndOffsetDays%22%3A0%2C%22NumberOfDays%22%3A1%2C%22DataPeriod%22%3A%22Hour%22%2C%22DataInterval%22%3A1%2C%22LabelPeriod%22%3A%22Hour%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&_=1389299433886

only returns
jQuery203014748947089537978_1389299433884({"Labels":null,"Positions":null,"Dates":null,"Elements":[]})

Above request used the parameters:{"Normalized":false,"EndOffsetDays":0,"NumberOfDays":1,"DataPeriod":"Hour","DataInterval":1,"LabelPeriod":"Hour","Elements":[{"Symbol":"AAPL","Type":"price","Params":["ohlc"]},{"Symbol":"AAPL","Type":"volume"}]}

I had expected to obtain 7 datapoints.

stock quote service

Does the stock quote api support fetching multiple symbols at a time? If not, please add it in the future release. Thanks.

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.