stocks

Problem with Stock Quote from Google Finance

巧了我就是萌 提交于 2019-12-12 01:36:34
问题 Below is the example I got from google finance for a stock quote. But it doesnt seem to be working. Stock price isnt displayed. Thanks <body> Hello world! Here is your portfolio:<br/> GOOG: <span id=_IG_SYM1_l></span> (<span id=_IG_SYM1_c></span>)<br/> AAPL: <span id=_IG_SYM2_l></span> (<span id=_IG_SYM2_c></span>)<br/> INTC: <span id=_IG_SYM3_l></span> (<span id=_IG_SYM3_c></span>)<br/> <script type="text/javascript"> var quote = new google.finance.Quote(); quote.enableDomUpdates( { 'GOOG' :

Getting stock symbol from company name

走远了吗. 提交于 2019-12-11 12:42:46
问题 I have a company name and i want to get the stock symbol of that company and all the information related to it. I have tried using yahoo call back Stock ticker symbol lookup API but for some reason it returns a http 400 bad request. Could someone please tell me how i would go about getting the symbol for that stock so that i can query yahoo and get all the data. Also is it possible to just use this company name to get all the stock related data. request i sent- "http://d.yimg.com/autoc

Limit of multiple Quote in a finance google API call

坚强是说给别人听的谎言 提交于 2019-12-11 09:53:21
问题 I have thousands of stock symbol and for real time prices requesting finance google API, as an example http://finance.google.com/finance/info?client=ig&q=AAPL in the above I am getting price of AAPL, so I am considering it like single HTTP request for signle stock i.e AAPL Now my question is: - can I pass all the stock symbol (assume 400-500) with comma separte to a single URL, If NO then what is the max limit of symobl that will be going to pass a API URL? - Another point is , Assume if I am

Pyalgotrade - TA-LIB - Indicator Returns “NONE”

懵懂的女人 提交于 2019-12-08 13:04:18
问题 I'm working with Pyalgotrade to test a trading strategy in python. Pyalgotrade allows for the use of a library called TA-LIB,which is a technical analysis library. For some reason, when I use the PPO indicator it returns "None". The indicator takes in a few arguments:(http://gbeced.github.io/pyalgotrade/docs/v0.12/html/talib.html) I provided a snippet of the output which for now is only the closing stock price of the day and what was supposed to be the output from this indicator. 'DDD' is the

Stock Tweets, Text Mining, Emoticon Erros

偶尔善良 提交于 2019-12-07 20:21:40
问题 I was hoping you'd be able to assist in a text mining exercise. I was interested in 'AAPL' tweets, and was able to pull 500 tweets from the API. I was able to clear several hurdles on my own, but need help for last part. For some reason, the tm package is not removing stopwords. Can you please take a look and see what the problem might be? Are emoticons causing an issue? After plotting Term_Frequency, the most frequent terms are "AAPL", "Apple", "iPhone", "Price", "Stock" Thanks in advance!

R calculating a stock's beta (using PerformanceAnalytics CAPM.beta() function or lm() function producing unexpected results)

≯℡__Kan透↙ 提交于 2019-12-07 17:14:04
问题 I am trying to quantify a stock's beta (bench marked vs. SPY) in R using the PerformanceAnalytics CAPM.beta() function and the results aren't even close to the values I am seeing online at Yahoo/Google Finance. The code: require(PerformanceAnalytics) start_date <- "2013-08-24" acad <- getSymbols("ACAD", from = start_date, auto.assign = F) spy <- getSymbols("SPY", from = start_date, auto.assign = F) CAPM.beta(acad[,6], spy[,6]) For the above example, Yahoo/Finviz/Google all list ACAD's beta at

Stock Tweets, Text Mining, Emoticon Erros

徘徊边缘 提交于 2019-12-06 13:29:06
I was hoping you'd be able to assist in a text mining exercise. I was interested in 'AAPL' tweets, and was able to pull 500 tweets from the API. I was able to clear several hurdles on my own, but need help for last part. For some reason, the tm package is not removing stopwords. Can you please take a look and see what the problem might be? Are emoticons causing an issue? After plotting Term_Frequency, the most frequent terms are "AAPL", "Apple", "iPhone", "Price", "Stock" Thanks in advance! Munckinn transform into dataframe tweets.df <- twListToDF(tweets) #Isolate text from tweets aapl_tweets

Stock option price variations by users orders (buy/sell)

天涯浪子 提交于 2019-12-06 04:13:26
问题 Following this question Generate a fictitious stock option price variation I wish to simulate that the price change, while users gives an order of buy or sell, like the real stock exchange. (I make a user case to help you to understand.) Initial state "Stock option example" : Company X, price of the stock option $20,000 A CRON task makes the price variation each second, with this PHP script : function stockVariation($price,$max_up,$max_down) { // Variation calculate, with volatility max (10

Get complete stock list for specific index

二次信任 提交于 2019-12-05 07:33:22
问题 Just wondering what kind of free finance API's are out there. I'm looking for something where I can specify the index and get a list of all the companies, by ticker symbol, that are included in that index. Currently I'm only interested in NYSE-listed company stocks. I'd really appreciate any suggestions on API's or methods. 回答1: Other than doing the hard work, like downloading the symbols for the various exchanges from NASDAQ, then is a way to get Google Finance to display all of the stocks

Free API or similar to get Next Earnings Date for stocks [closed]

↘锁芯ラ 提交于 2019-12-05 04:12:48
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . I am looking for an API or similar where I can get the next (upcoming) earnings date for a stock. I have googled for it and haven't found anything usable. I know of both the Yahoo and Google finance APIs, but none of them provide the next earnings date. Many sites, i.e. www.finviz.com (look for "Earnings" here