Skip to content

Commit

Permalink
update cron job
Browse files Browse the repository at this point in the history
  • Loading branch information
MuslemRahimi committed Dec 25, 2024
1 parent 47cecb1 commit 285bdce
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/cron_dark_pool_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,13 +127,13 @@ def main():
try:
sector = stock_screener_data_dict[symbol].get('sector', None)
except:
sector = None
sector = ""

volume = float(item['volume'])
size = float(item['size'])

daily_volume_percentage = round((size / volume) * 100, 2)
avg_volume_percentage = round((size / quote_data.get('avgVolume', 1)) * 100, 2)
size_volume_ratio = round((size / volume) * 100, 2)
size_avg_volume_ratio = round((size / quote_data.get('avgVolume', 1)) * 100, 2)
res.append({
'ticker': item['ticker'],
'date': item['executed_at'],
Expand All @@ -143,8 +143,8 @@ def main():
'premium': item['premium'],
'sector': sector,
'assetType': asset_type,
'dailyVolumePercentage': daily_volume_percentage,
'avgVolumePercentage': avg_volume_percentage,
'sizeVolRatio': size_volume_ratio,
'sizeAvgVolRatio': size_avg_volume_ratio,
'trackingID': item['tracking_id']
})
except Exception as e:
Expand Down

0 comments on commit 285bdce

Please sign in to comment.