stocks

HighStock setup

陌路散爱 提交于 2019-12-04 21:59:13
I am working with HighStock to create a chart for stocks of various companies. In the API, it does not tell me how to retrieve the data about a stock, it is simply retrieving it in a JSON file. I am wondering if a stock parameter (Example: 'AAPL' or 'GOOG') can be passed in to retrieve this information. HighStock Website HighStock Examples The Highcharts/Highstock charts by default have turboThreshold that is used to save on expensive data checking and indexing in long series. So if you have a chart that is larger than the 1000 data points you have to do some server side processing to be able

Fundamental Data Using IbPy

纵饮孤独 提交于 2019-12-04 21:37:23
I am trying to use IbPY to pull the price of a stock along with its financial statements. I'm new to python and don't entirely understand the complexities of calling some of the different methods within IbPy. I wrote some code to loop through the SP 500 and pull the bid/ask for each stock. I was hoping someone might be able to help me figure out the next step to pull the financial statements. Thoughts on the best way to do that? from ib.opt import ibConnection, message from ib.ext.Contract import Contract from ib.ext.EWrapper import EWrapper from time import sleep import csv with open(r'C:

What data source could I use for my stock market program? [closed]

两盒软妹~` 提交于 2019-12-04 07:44:12
问题 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 4 years ago . I would like to make a free open-source C++ application for both Linux and Windows which will create live stock market charts (i.e. they're refreshed frequently). Please could you give me some pointers on these issues: What should I use as the data source? Are there free services I can implement? I would like to

Get complete stock list for specific index

杀马特。学长 韩版系。学妹 提交于 2019-12-03 21:33:43
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. 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 and/or companies listed on an exchange. Here is a sample url for obtaining the list of companies on NASDAQ:

How can I download stock price data with Python?

三世轮回 提交于 2019-12-03 12:21:20
I have installed pandas-daatreader but both the Google and Yahoo APIs for downloading historical stock price data have been deprecated. import pandas_datareader.data as web start_date = '2018-01-01' end_date = '2018-06-08' panel_data = web.DataReader('SPY', 'yahoo', start_date, end_date) ImmediateDeprecationError: Yahoo Daily has been immediately deprecated due to large breaks in the API without the introduction of a stable replacement. Pull Requests to re-enable these data connectors are welcome. See https://github.com/pydata/pandas-datareader/issues Could you advise me how I can access

import from CSV into Ruby array, with 1st field as hash key, then lookup a field's value given header row

隐身守侯 提交于 2019-12-03 03:08:23
问题 Maybe somebody can help me. Starting with a CSV file like so: Ticker,"Price","Market Cap" ZUMZ,30.00,933.90 XTEX,16.02,811.57 AAC,9.83,80.02 I manage to read them into an array: require 'csv' tickers = CSV.read("stocks.csv", {:headers => true, :return_headers => true, :header_converters => :symbol, :converters => :all} ) To verify data, this works: puts tickers[1][:ticker] ZUMZ However this doesn't: puts tickers[:ticker => "XTEX"][:price] How would I go about turning this array into a hash

import from CSV into Ruby array, with 1st field as hash key, then lookup a field's value given header row

被刻印的时光 ゝ 提交于 2019-12-02 17:41:27
Maybe somebody can help me. Starting with a CSV file like so: Ticker,"Price","Market Cap" ZUMZ,30.00,933.90 XTEX,16.02,811.57 AAC,9.83,80.02 I manage to read them into an array: require 'csv' tickers = CSV.read("stocks.csv", {:headers => true, :return_headers => true, :header_converters => :symbol, :converters => :all} ) To verify data, this works: puts tickers[1][:ticker] ZUMZ However this doesn't: puts tickers[:ticker => "XTEX"][:price] How would I go about turning this array into a hash using the ticker field as unique key, such that I could easily look up any other field associatively as

What data source could I use for my stock market program? [closed]

夙愿已清 提交于 2019-12-02 15:56:27
I would like to make a free open-source C++ application for both Linux and Windows which will create live stock market charts (i.e. they're refreshed frequently). Please could you give me some pointers on these issues: What should I use as the data source? Are there free services I can implement? I would like to use the same or similar information as companies like Google . I'm not sure what GUI toolkit would be best to use, is there one which has charting built in, or would I need to use a specialized library for this? Some things to note: This is my first attempt at both cross-platform C++

getSymbols downloading data for multiple symbols and calculate returns

非 Y 不嫁゛ 提交于 2019-12-01 13:48:27
I'm currently downloading stock data using GetSymbols from the Quantmod package and calculating the daily stock returns, and then combining the data into a dataframe. I would like to do this for a very large set of stock symbols. See example below. In stead of doing this manually I would like to use a For Loop if possible or maybe use one of the apply functions, however I can not find the solution. This is what I currently do: Symbols<-c ("XOM","MSFT","JNJ","GE","CVX","WFC","PG","JPM","VZ","PFE","T","IBM","MRK","BAC","DIS","ORCL","PM","INTC","SLB") length(Symbols) #daily returns for selected

Multiple OHLC datasets in one image

不想你离开。 提交于 2019-12-01 11:50:19
How can I chart multiple datasets in one image using JFreeChart ? Essentially I want to chart a stock's price and it's moving average line in one image. I've tried getting the XYPlot and adding the second dataset, but it does not work. DefaultOHLCDataset dataset = new DefaultOHLCDataset(symbol, items); DefaultOHLCDataset dataset2 = new DefaultOHLCDataset(symbol, evs); JFreeChart chart2 = ChartFactory.createHighLowChart( symbol, "minutes", "prices", dataset, true); chart2.getXYPlot().setDataset(1, dataset2); Or is there any specialized java library for stock trading application that's easier to