Is it possible to get PE or EPS for a STOCK using Interactive Broker API - interactive-brokers

I would like to get Price per Earnings or Earnings per Share for a stock symbol using Interactive Broker API. Is it possible, if so how?

Yes, you can get Reuters Fundamentals data via the API: https://interactivebrokers.github.io/tws-api/reuters_fundamentals.html#report_type&gsc.tab=0
For each report type, you'll get back XML. The contents of the reports are not well documented, but several years of EPS history is available in the ReportsFinSummary report.

Related

Is it possible to receive keyword-level Google Display Network ad cost via the API?

I've skimmed through the Keywords Performance Report of the API documentation, and couldn't understand whether it would be possible for me to use this report to determine daily keyword costs.
What I want is basically to be able to look for keyword to an API request result and get the cost associated with it. Is such a thing possible? Am I looking in the right place?
Apparently, it's not possible to do so, since all costs on all Display Network items are listed with a special ID (3000000) in costs, meant to capture all GDN displays.

How can I build a corpus from unstructured text (pdf, txt, html) and train IBM Watson? And then ask questions via API calls?

I want to train a machine learning system such as IBM Watson using some PDF, txt, html unstructured data, and then ask questions and get answers via API calls. How can I achieve that? GUI based training or API based training. From Bluemix, it is hard to decide which service is best to achieve this requirement. Can you please suggest the best options?
Retrieve and Rank- Retrieve and Rank can surface the most relevant information from a collection of documents. For example, using R&R, an experienced technician can quickly find solutions from dense product manuals. A contact center agent can also quickly find answers to improve average call handle times. The Retrieve and Rank service works "out of the box," but can also be customized to improve the results. More details here
Discovery Service- Extract value from unstructured data by converting, normalizing, enriching it. Use a simplified query language to explore that data or to quickly tap into pre-enriched datasets like the Discovery News collection. More details here
I would recommend Watson Discovery (https://www.ibm.com/watson/services/discovery) for your purpose.
It's very complete and supports many features in both GUI and API. It supports questions in natural language or in query format.
Its documentation is here: https://console.bluemix.net/docs/services/discovery/getting-started.html#getting-started-with-the-api
If you create a free instance of Watson Discovery, you can test its API here: https://watson-api-explorer.mybluemix.net/apis/discovery-v1
There are examples of each API call here: https://www.ibm.com/watson/developercloud/discovery/api/v1/
There is also a demo and respective code here:
https://discovery-news-demo.mybluemix.net/?cm_mc_uid=30407807098515090430617&cm_mc_sid_50200000=1509636542&cm_mc_sid_52640000=1509636542
and
https://github.com/watson-developer-cloud/discovery-nodejs

Any method to retrieve the available serial numbers for an item?

I'm trying to find a way to retrieve the available (i.e. in stock) serial numbers from Items in QuickBooks Enterprise using qbxml. I've looked through OSR and the various Item Query requests as well as read the docs for the C-Data QuickBooks drivers. I'm not seeing a way to pull the available serial numbers out.
Anyone know if this is possible? Maybe there is a report that contains it?
The OSR shows that you should be able to fetch them on InventoryTransactionQuery, but I'm currently running it against the sample "advanced inventory company" and it's returning "null" for the RetList.
Just parsed out the XML by toXmlString-ing the QBXML response:
Was doing it wrong: It is the ret-list, you have to subparse it for things.
Only problem is that this does not include the bins, so your visibility of inventory is only to the warehouse level.
I'm finding information extremely sparse so I hope this is useful for someone, even if it's a necro for the OP.

Youtube Analytics API Demographics as Raw Count (Not Percentage)

Does anyone know of a way to get view counts broken down by demographic (age/gender) for a for video and/or a channel?
The YouTube Analytics API is only providing that breakdown by percentage (of logged in users), which is great, but our for our requirements, we need the raw counts. And unfortunately, we can't accurately derive the raw counts from the percentage because the api does not seem to give us the number of logged in users, or enough precision.
Any guidance would be appreciated!
Thanks,
Kris
Sorry, I don't believe that we make those raw counts available on either the web interface or the API—I just checked the web interface and it only shows percentages as well. Feel free to file a feature request and I'll see if there's any chance that we could start exposing more details.

About data mining by using twitter data

I plan to write a thesis about using sentiment information to enhance the predictivity of some financial trading model for currency.
The sentiment data should be twitter threads including some keyword, like "EUR.USD". And I will filter out some sentiment words to identify the sentiment. Simple idea. Then we try to see whether here is any relation between the degree of sentiment and the movement of EUR.USD.
My big concern is on twitter data. As we all know that the twitter set up the limit to see the history data. You could only browser back for like 5 days. It is not enough since our strategy based on daily sentiment.
I noticed that google have some fantastic thing like timeline about the twitter updates: http://www.readwriteweb.com/archives/googles_twitter_timeline_lets_you_explore_the_past.php
But first of all, I am in Switzerland and seems I have no such function on my google which is too smart to identify my location and may block some US google version function like this. Secondly, even I could see some fancy interactive google timeline control on my firefox, How could I dig out data from my query and save them? Does google supply such api?
The Google service you mentioned has shut down recently so you won't be able to use it. (http://www.searchenginejournal.com/google-realtime-shuts-down-as-twitter-deal-expires/31007/)
If you need a longer timespan of data to analyze I see the following options:
pay for historical data :) (https://dev.twitter.com/docs/twitter-data-providers)
if you don't want to pay, you need to fetch tweets containing EUR/USD whatever else (you could use the streaming API for this) and store them somehow. Run this service for a while (if possible) and you'll have more than just 5 days of data.

Resources