![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python Trading
文章平均质量分 64
zhucai4
这个作者很懒,什么都没留下…
展开
-
Head First Python Notes - Chapter 5
class athlete: def __init__(self, path): with open(path) as timef: temp = timef.readline() self.data = temp.strip().split(',') def sort_time(self):原创 2015-03-07 22:24:44 · 375 阅读 · 0 评论 -
Head First Python Notes - Chapter 6
Organize data with class structure.原创 2015-03-07 22:36:34 · 351 阅读 · 0 评论 -
Download Option Data from Yahoo Finance
from lxml.html import parsefrom urllib2 import urlopenimport pandas as pddef unpack(row, kind='td'): elts = row.findall('.//%s' % kind) return [val.text_content() for val in elts]optionu原创 2015-04-18 11:19:29 · 964 阅读 · 0 评论 -
Download Analyst Recommendation from HeXun
import numpy as npimport scipy as spimport scipy.stats as ssimport pandas as pdimport requests as rsimport bs4df = pd.DataFrame()for i in range(51,3808): webpage = 'http://yanbao.stock.he原创 2015-04-16 11:09:40 · 996 阅读 · 0 评论 -
Download Chinese Stock Data from Sina Finance
import numpy as npimport pandas as pdfrom urllib2 import urlopenfrom bs4 import BeautifulSoup def get_year_range(code): url = 'http://vip.stock.finance.sina.com.cn/corp/go.php/vMS_MarketHisto原创 2015-04-16 11:06:52 · 1347 阅读 · 0 评论 -
Download U.S. Stock Data form Yahoo Finance
def get_data_yahoo(ticker, datestart, dateend): datestart = datestart.split('-') dateend = dateend.split('-') startyear = datestart[0] startmonth = str(int(datestart[1])-1) start原创 2015-04-16 11:03:46 · 634 阅读 · 0 评论 -
6 ways to download free intraday and tick data for the U.S. stock market
Intraday and even tick data is also available free on the net. Today, I will show you six places where you can download and export historical intraday data. Some of these websites are very popular and转载 2015-05-06 09:52:36 · 1130 阅读 · 0 评论 -
10 ways to download historical stock quotes data for free
Here is a list of websites that provide end of day historical data for US and international stock markets.All the quotes data provided by the websites listed here can be exported to CSV or Excel转载 2015-05-06 09:56:21 · 970 阅读 · 0 评论 -
Download and Process High Frequency Data from NetFods
API for trade datahttp://hopey.netfonds.no/tradedump.php?date=20150423&paper=AAPL.O&csv_format=csvAPI for quota data should behttp://hopey.netfonds.no/posdump.php?date=20150423&paper=AAPL.O&csv_原创 2015-05-06 10:01:24 · 1399 阅读 · 1 评论