Skip to content

Commit

Permalink
bugfixing paging request of dark pool api
Browse files Browse the repository at this point in the history
  • Loading branch information
MuslemRahimi committed Jul 10, 2024
1 parent cf7ca97 commit e05df54
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions app/cron_dark_pool_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ def save_json(data):


source = 'cta_a_delayed'
start_date, end_date = GetStartEndDate().run()
#start_date, end_date = GetStartEndDate().run()
start_date = ''
end_date = ''
start_time = ''
end_time = ''
timezone = 'UTC'
Expand Down Expand Up @@ -80,7 +82,7 @@ def run():
{
'symbol': entry['_symbol'],
'name': symbol_name_map[entry['_symbol']],
'date': (entry['_timestamp']).isoformat(),
'date': (entry['_timestamp']-timedelta(hours=4)).isoformat(),
'price': entry['_price'],
'volume': entry['_total_volume'],
'size': entry['_size']
Expand Down
2 changes: 1 addition & 1 deletion app/primary_cron_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ def run_threaded(job_func):
schedule.every(1).minutes.do(run_threaded, run_cron_quote).tag('quote_job')
schedule.every(1).minutes.do(run_threaded, run_cron_price_alert).tag('price_alert_job')
schedule.every(15).minutes.do(run_threaded, run_market_moods).tag('market_moods_job')
#schedule.every(20).minutes.do(run_threaded, run_dark_pool_flow).tag('dark_pool_flow_job')
schedule.every(10).minutes.do(run_threaded, run_dark_pool_flow).tag('dark_pool_flow_job')

schedule.every(2).hours.do(run_threaded, run_fda_calendar).tag('fda_calendar_job')
schedule.every(3).hours.do(run_threaded, run_json_job).tag('json_job')
Expand Down

0 comments on commit e05df54

Please sign in to comment.