Skip to content

Commit

Permalink
delete needless code
Browse files Browse the repository at this point in the history
  • Loading branch information
shikuan authored and shikbupt committed Jun 19, 2024
1 parent d7fda51 commit 83459bf
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions beanprice/sources/eastmoneyfund.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 83459bf

Please sign in to comment.