MCPcopy Create free account
hub / github.com/QuantFans/quantdigger / simple_load_data

Function simple_load_data

quantdigger/kernel/datasource/data.py:335–343  ·  view source on GitHub ↗
(fname, n, intraday)

Source from the content-addressed store, hash-verified

333
334
335def simple_load_data(fname, n, intraday):
336 entryinfo = pd.read_csv("%strace/%s.csv"%(home, fname), index_col=0, parse_dates=True)
337 assert entryinfo.index.is_unique
338 #print entryinfo.islong
339 print "Loaded File: %s"%home + fname + ".csv"
340 pricefname = pricefname_from_tradefname(fname, 1)
341 stock_dir= home + "stock_data/"
342 pricefname = stock_dir + pricefname
343 return simple_deal_tradeinfo(entryinfo, pricefname, n, intraday)
344
345
346def load_wavedata(*fnames):

Callers

nothing calls this directly

Calls 2

simple_deal_tradeinfoFunction · 0.85

Tested by

no test coverage detected