Set up DB Parameters

THIS STEP IS OPTIONAL: Only required when you are using Orca as a package. Within SharkSigma, the user inputs can be selected from the frontend interface directly.

In order to run Orca, we need to have some user inputs and set up DB parameters (such as db_name, time period, and time interval) to successfully run with those inputs.

To set up DB parameters, create a python dictionaryarrow-up-right i.e, key-value pair; having the following keys:

Now, let's look at the code:

user_input_dict = {
    'instrument_list': ['RELIANCE'],  
    'table_name': 'india_eod',
    'start_date': "01-01-2019",
    'end_date': "01-28-2020",
    'interval': '4H',  
    'initial_capital': 100000,
    'market_hours': 1,
    'data_input_type': 'db',
    'user_file_name': 'strategy_name',
    'root_file_path': os.path.splitext(__file__)[0],  # Current File Path
    'path_type': 'AWS'
}

Last updated