Skip to content

Commit

Permalink
- Update yquery acess code - incomplete
Browse files Browse the repository at this point in the history
  • Loading branch information
asafravid authored and asafravid committed Oct 19, 2023
1 parent 941f45b commit f97d944
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions sss.py
Original file line number Diff line number Diff line change
Expand Up @@ -1632,9 +1632,9 @@ def process_info(yq_mode, json_db, symbol, stock_data, tase_mode, sectors_list,

earningsYearly = None
earningsQuarterly = None
if 'earnings' in symbol.all_modules[stock_data.symbol.replace('.','-') if not tase_mode else stock_data.symbol]:
earningsYearly = symbol.all_modules[stock_data.symbol.replace('.','-') if not tase_mode else stock_data.symbol]['earnings']['financialsChart']['yearly']
earningsQuarterly = symbol.all_modules[stock_data.symbol.replace('.','-') if not tase_mode else stock_data.symbol]['earnings']['financialsChart']['quarterly']
if 'financialsChart' in symbol.earnings[stock_data.symbol.replace('.','-') if not tase_mode else stock_data.symbol]:
earningsYearly = symbol.earnings[stock_data.symbol.replace('.','-') if not tase_mode else stock_data.symbol]['financialsChart']['yearly']
earningsQuarterly = symbol.earnings[stock_data.symbol.replace('.','-') if not tase_mode else stock_data.symbol]['financialsChart']['quarterly']

financialData = symbol.financial_data[stock_data.symbol.replace('.','-') if not tase_mode else stock_data.symbol]

Expand Down
10 changes: 5 additions & 5 deletions sss_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@

run_custom_tase = False # Custom Portfolio
run_custom = False
run_tase = False # Tel Aviv Stock Exchange
run_tase = True # Tel Aviv Stock Exchange
run_nsr = False # NASDAQ100+S&P500+RUSSEL1000
run_all = True # All Nasdaq Stocks
run_all = False # All Nasdaq Stocks
run_six = False # All Swiss Stocks
run_st = False # All (Stockholm) Swedish Stocks
multi_dim_scan_mode = True # Mult-dimentional scan Mode
multi_dim_scan_mode = False # Mult-dimentional scan Mode
aggregate_only = False
research_mode_max_ev = False
use_reference_as_raw_data = False
Expand All @@ -53,8 +53,8 @@
# After 1st ever Run: Recommended to use reference (filter and damper)
# The research mode shall run on new_run as input (new_run >= reference_run) where > means newer
reference_run_custom = 'Results/All/20220419-020633_A_nRes112_Custom_CustSssV'
reference_run_tase = 'Results/Tase/20230410-234249_Tase_Tchnlgy3.0_RlEstt1.0_nRes253'
reference_run_nsr = 'Results/Nsr/20230411-105538_Tchnlgy3.0_FnnclSrvcs1.0_nRes834'
reference_run_tase = None # 'Results/Tase/20230410-234249_Tase_Tchnlgy3.0_RlEstt1.0_nRes253'
reference_run_nsr = None # 'Results/Nsr/20230411-105538_Tchnlgy3.0_FnnclSrvcs1.0_nRes834'
reference_run_all = 'Results/All/20221208-004305_Tchnlgy3.0_FnnclSrvcs1.0_A_nRes2543'
reference_run_six = 'Results/Six/20220111-002719_S_nRes196' # '20211216-002301_S_nRes27_CustSssV'
reference_run_st = 'Results/St/20210915-023602_St_Bdb_nRes130'
Expand Down

0 comments on commit f97d944

Please sign in to comment.