- fixed fetch
git-svn-id: http://moon:8086/svn/projects/Stock@312 fda53097-d464-4ada-af97-ba876c37ca34
This commit is contained in:
+3
-4
@@ -20,9 +20,9 @@ import os
|
||||
# https://ntguardian.wordpress.com/2016/09/19/introduction-stock-market-data-python-1
|
||||
|
||||
key = '0UO7Z2MVZ2YSQSVE'
|
||||
thresh_macd = 1.0
|
||||
thresh_macd = 0.5
|
||||
show_range_days = 20
|
||||
show_title = ['SIE.DE']
|
||||
show_title = []
|
||||
k_euro = 1 / 1.11
|
||||
N_poly = 7
|
||||
|
||||
@@ -188,8 +188,7 @@ class Symbol(object):
|
||||
fetch = False
|
||||
today = dt.date.today()
|
||||
try:
|
||||
hdf = pd.HDFStore(filename, 'r')
|
||||
hdf.close()
|
||||
hdf = pd.HDFStore(filename)
|
||||
except:
|
||||
fetch = True
|
||||
|
||||
|
||||
Reference in New Issue
Block a user