Skip to content

Commit

Permalink
Update parse.py
Browse files Browse the repository at this point in the history
  • Loading branch information
urbao authored Jan 14, 2024
1 parent f2345e7 commit 300e924
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,16 @@
#else:
# INDEX=get.index_from_user('OTC', LANG)

import json
config_file=DIRPATH+"config.json"
with open(config_file, 'r') as json_file:
data=json.load(json_file)
# 2. Limitation: stock weekly transaction which is below 500 should NOT be considered
min_trans_toleration=500
min_trans_toleration=data["min_trans_toleration"]

# 3. Limitation: stock lowest price is higher than $350 should NOT be considered
max_stock_price=350.0
max_stock_price=data["max_stock_price"]


# all analyze should only consider those on the list of parsed_stockid_list
for stockid in parsed_stockid_list:
Expand Down

0 comments on commit 300e924

Please sign in to comment.