Questions tagged [stocks]
313 questions
-1
votes
1 answer
RSS Feed Stocks
I didn't realize until today that you can't get an RSS feed for a stock quote. Can someone suggest to me ways I can pull data from a service for a particular stock quote? It should include information about the stock etc. Thanks. I will be…
RobertS
-1
votes
2 answers
Morning Star Integration
I've been trying to make a comprehensive Google Sheet containing information about different stocks that can have stocks dynamically added and removed for a school project. To that end, I've done some research into loading data from tables with…

Derpleferple
- 1
- 1
- 4
-1
votes
2 answers
Parsing stock recommended rating from Yahoo stock site
I'm looking to parse a specific Yahoo stock page using a Python script (take https://finance.yahoo.com/quote/NOA?ltr=1 for example) and print the "Recommended Rating" to a file. Recommended rating can be found on the right hand side of the page…

t_wimms
- 11
- 1
- 1
- 4
-1
votes
3 answers
Parsing mutual fund JSON data
I am trying to pull out data from interactive chart and I have the JSON file from this link
http://www.tadawul.com.sa/Charts/MutualFundChartDataDownloader
I tried importing this to Python so I can extract the data, but I am facing errors
The code I…
-1
votes
1 answer
How do you use stock tickers and for-loops together in R for technical analysis?
I am having trouble finding stock technical indicators using a for-loop to loop through stocks.
Below I am using 10 stocks and am trying to see (through the output) if the current 10 day moving average (MA) for each stock is above, below, or at the…

scuba
- 3
- 3
-1
votes
1 answer
Dictionary being treated as NoneType (Python 3.5.1)
from statistics import stdev
data = [line.rstrip('\n').split(',') for line in open('C:/Users/User/Downloads/documents-export-2016-05-04/Data.csv')]
dates =…

ENPM
- 167
- 2
- 9
-1
votes
1 answer
Value returns zero after one operation
from numpy import std
import csv
data = []
with open('Data.csv') as file:
reader = csv.reader(file)
for column in zip(*reader):
data.append(column)
dates = list(reversed(open('Dates.csv').read().split('\n')))
stock_value = [int(x)…

Dheeraj Putta
- 25
- 5
-1
votes
1 answer
how to get the current value of a stock in class of stocks?
Im working on a program that uses a class of stocks. one of the methods should calculate the current value of the stock. the instructions say "number of shares times current price". i have a method that updates the price by multiplying this current…

cee
- 9
- 2
- 7
-1
votes
1 answer
Anyone know the Yahoo api for nasdaq index
I have a python script that downloads stock prices via Yahoo's APIs. I'm trying to add the NASDAQ index, but I can not find a working symbol.
From Yahoo finance webpage NASDAQ is '^IXIC', however the following fail
url =…

user192749
- 247
- 1
- 3
- 11
-1
votes
1 answer
Calculating daily stock returns with some missing values
I have data like
date price
26-12-2015 112
25-12-2015 115
24-12-2015 119
23-12-2015 NA
22-12-2015 120
I want to calculate daily returns so the syntax using ttr package is
ROC(data$price, type="discrete")
The calculation will be…

Jayesh Jinde
- 57
- 6
-1
votes
3 answers
Python code keeps giving me the following error.... "main loop cannot concatenate 'str' and 'tuple' objects"
I have been trying to run the following code but have looked over stack exchange and Google extensively but can not find the reason why this code keeps giving the following error.
main loop cannot concatenate 'str' and 'tuple' objects
I'm using…

user1380599
- 103
- 2
- 6
-1
votes
1 answer
List stock data by weeks and days using Python
I would like to list different stock data which were published in one week. The stock data should all be in seperate arrays. The different array elements should represent the different days and the arrays itself should be the different weeks. So for…

Philipp Braun
- 1,583
- 2
- 25
- 41
-1
votes
1 answer
Is there a way in C# to get a 'browser' to pre-process a WebRequest so you can work with the elements that you see when you 'View Source'
I want to make a webrequest to e.g. http://finance.yahoo.com/q?s=rb.l and extract the share price. However the text returned is before the browser has processed it and I need it processed first before the element exists that I need to…
-1
votes
2 answers
Stock exchange server algorithm
I am looking for an algorithm that will calculate the intrinsic value of a stock based on the number of people buying /selling it and additionally consider the calls/puts to fluctuate the value of the stock.
Essentially:
Current Price =…

Ganesh Krishnan
- 7,155
- 2
- 44
- 52
-1
votes
4 answers
How can I calculate the average of a list of tuples in python?
I have a list of tuples in the format:
[(security, price paid, number of shares purchased)....]
[('MSFT', '$39.458', '1,000'), ('AAPL', '$638.416', '200'), ('FOSL', '$52.033', '1,000'), ('OCZ', '$5.26', '34,480'), ('OCZ', '$5.1571', '5,300')]
I…

Zack Burt
- 8,257
- 10
- 53
- 81