CodeBook Crontab or something similar for scheduling Python scripts

Options

Hi everyone, could you please let me know if there is a way in CodeBook or anywhere else in Workspace to configure a task that would run a Python script at a specific time every day? Currently, I download the data manually by running the code, but I would like this process to be automated and executed daily at the same time. Below I’m pasting a sample code that I’d like to be executed once a day at a specific time.

import refinitiv.data as rd

rd.open_session()

data = rd.get_history(universe='USD2MD=', fields = ['BID', 'ASK'], interval="1D", start='2025-07-01', end='2025-07-15')

data.to_csv('USD.csv')

Thank you. Regards, Marlena

Best Answer