From 83459bfaeec23577c23784281fda33ba7a30d184 Mon Sep 17 00:00:00 2001 From: shikuan Date: Sat, 18 Sep 2021 15:49:52 +0800 Subject: [PATCH] delete needless code --- beanprice/sources/eastmoneyfund.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/beanprice/sources/eastmoneyfund.py b/beanprice/sources/eastmoneyfund.py index 6daeba5..d6d7e66 100644 --- a/beanprice/sources/eastmoneyfund.py +++ b/beanprice/sources/eastmoneyfund.py @@ -106,17 +106,3 @@ def get_prices_series(self, ticker, time_begin, time_end): res = [source.SourcePrice(x[1], x[0], CURRENCY) for x in get_price_series(ticker, time_begin, time_end)] return sorted(res, key=lambda x: x.time) - - -if __name__ == '__main__': - s = Source() - r = s.get_latest_price('040003') - print('last') - print(r) - r = s.get_historical_price('377240', datetime.datetime(2020, 10, 9)) - print('history') - print(r) - r = s.get_prices_series('377240', datetime.datetime(2020, 9, 25), - datetime.datetime(2020, 10, 9)) - print('series') - print(r)