Questions tagged [stocks]
313 questions
2
votes
2 answers
Get Google or Yahoo API live option price
Is there a way to get the live options information from Yahoo or Google's API. By options information I mean: call, ask volume. I basically need the information on this page
thanks for your help!

Nick
- 605
- 3
- 11
- 27
2
votes
1 answer
Google Stocks API
I'm developing a bot, and I want to use the Google's Stock's API shown here:
http://jarloo.com/tutorials/google-stock-api/
The only problem is, It was a feature request from someone else and I don't know a lot about stocks. I see that it is…

will
- 1,397
- 5
- 23
- 44
2
votes
2 answers
How to sort a structured list of stock data for later access in Python?
I am very new to Python and want to build a black box stock trading program that finds various correlations between stock's rates of return and gives me a response such as buy, sell, hold, etc. I found a neat little easy to use Python module for…

BlackBoxTrader
- 29
- 1
- 8
2
votes
2 answers
How to iterate through pandas-datareader and create multiple dataframes for each stock ticker?
I want to iteratively create multiple dataframes from a list of ticker names.
Here is the stack overflow post i'm referencing:
Stack Overflow Post - Iteratively Create Multiple Dataframes
I'm having trouble understanding how to accomplish this, i…

Lee
- 95
- 1
- 13
2
votes
1 answer
tsfresh time-series clustering of stock data
How would we use "tsfresh" for time-series clustering of stock data,
where we do not have a vector of target values?
The select_features function requires a vector of target values.

dwightdc
- 21
- 2
2
votes
0 answers
Python pandas calculate ATR on higher timeframe without resampling
I'm having a dataframe of 1min stock data. I want to calculate AverageTruerange indicator of a higher time frame without respampling the data. I came up with the below solution, however it is slow.
tf - higher time frame, n = lookback for ATR, OHLC…

revendar
- 371
- 2
- 3
- 12
2
votes
1 answer
Use proper inputs to download stock data
I have a code below that tries to ask a user to enter 5 countries so that in return she gets the data for stock index price of that country (Say if she enters USA in return she gets info for S&P 500). I use error-handling properties so that if there…

Alberto Alvarez
- 805
- 3
- 11
- 20
2
votes
1 answer
Creating instances of Esper's epl
I am playing around with Esper, learning how to use more advanced concepts.
I have a program that fires mock stock events of 3 different stocks. I currently have a module with match_recognize pattern EPL that looks like this:
module…

jocund
- 25
- 1
- 6
2
votes
0 answers
PYTHON Convert EOD OHLC format DataFrame to Weekly OHLC and Monthly Format
Python 3.6
The experiment is to do the following
I have this following code with given daily EOD/OHLC stock data getting it from quandl for every day.
class YahooQuote(Quote):
''' Daily quotes from Yahoo. Date format='yyyy-mm-dd' '''
def…

Marx Babu
- 750
- 3
- 11
- 34
2
votes
1 answer
Split/Group pandas DataFrame by row, according to column's value continuity
I need some help to create distinct groups of rows, if a price cross a moving average (given by the changes in the "trend" column). I'm going to explain it by examples. The following is the data I have:
close avg diff …

php-junkie
- 107
- 9
2
votes
0 answers
Scrape Stocks' Historical Data in R for Pakistan Stock Exchange
I am working on Stocks' Analysis in R for Pakistan Stock Exchange. I am using "rvest" library and its tutorial at: https://github.com/hadley/rvest
Using this tutorial, I am trying to fetch the historical data into dataframes from this website:…

Abdul Basit Khan
- 646
- 1
- 6
- 19
2
votes
2 answers
Examples for Algorithms that can be used for Stock Market Analysis
I was working on a Stock Market Analysis website as a college project.
I was keen on knowing some algorithms which I could potentially use for analysing trends in the stock market.
I would be glad if some one could help.

Jayesh
- 3,891
- 11
- 55
- 83
2
votes
1 answer
Stock Tweets, Text Mining, Emoticon Erros
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…

Munckinn
- 41
- 2
2
votes
1 answer
How to use R quantmod to query Taiwan Stock from google finance
I would like to query Taiwan stock price from google finance.
Although I can query the same stock from yahoo finance, but the volume is wrong.
So I need to get the correct data from google finance.
This code worked for yahoo finance
…

SONIC
- 21
- 2
2
votes
0 answers
Retrieve historical stock valuation data with python
I am looking to retrieve historical data like P/E ratio, earnings, book value etc as well as stock price. I'd like to go through a whole bunch of stocks programmatically or to possibly select historical stocks based on valuation rules.
I found a few…

user1581390
- 1,900
- 5
- 25
- 38