update cron job
This commit is contained in:
parent
6b931be507
commit
f00a28ab05
@ -341,14 +341,7 @@ async def run():
|
|||||||
print(e)
|
print(e)
|
||||||
options_flow = {}
|
options_flow = {}
|
||||||
|
|
||||||
'''
|
|
||||||
try:
|
|
||||||
with open(f"json/market-movers/data.json", 'r') as file:
|
|
||||||
data = ujson.load(file)
|
|
||||||
market_movers = {'winner': data['gainers']['1D'][0], 'loser': data['losers']['1D'][0], 'active': data['active']['1D'][0]}
|
|
||||||
except:
|
|
||||||
market_movers = {}
|
|
||||||
'''
|
|
||||||
market_status = check_market_hours()
|
market_status = check_market_hours()
|
||||||
|
|
||||||
if market_status == 0:
|
if market_status == 0:
|
||||||
|
|||||||
@ -275,7 +275,7 @@ async def get_pre_post_market_movers(symbols):
|
|||||||
one_day_price = ujson.load(file)
|
one_day_price = ujson.load(file)
|
||||||
# Filter out entries where 'close' is None
|
# Filter out entries where 'close' is None
|
||||||
filtered_prices = [price for price in one_day_price if price['close'] is not None]
|
filtered_prices = [price for price in one_day_price if price['close'] is not None]
|
||||||
|
|
||||||
if price and changes_percentage and len(filtered_prices) > 300:
|
if price and changes_percentage and len(filtered_prices) > 300:
|
||||||
res_list.append({
|
res_list.append({
|
||||||
"symbol": symbol,
|
"symbol": symbol,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user