# Set up DB Parameters

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 dictionary](https://docs.python.org/3/tutorial/datastructures.html#dictionaries) i.e, key-value pair; having the following keys:&#x20;

* instrument list: contains various instruments in [python list](https://docs.python.org/3/tutorial/datastructures.html)&#x20;
* table name: DB table name for India/US.
  1. For India, 'india\_eo&#x64;*':* [EOD](https://www.investopedia.com/terms/e/end-of-day-order.asp)*, '*&#x69;ndia\_5m': 5-minute [intraday](https://www.investopedia.com/terms/i/intraday.asp), 'india\_1m': 1-minute intraday.
  2. For the US, 'sp500\_eod': EOD, 'sp500\_5m': 5-minute intraday, 'sp500\_1m': 1-minute intraday.
* start and end date: specifies the time period in MM-DD-YYYY format.
* time interval: [Day level](https://www.investopedia.com/articles/trading/06/daytradingretail.asp) (1D), [Week level](https://www.investopedia.com/articles/active-trading/010715/step-back-crowd-trade-weekly-patterns.asp) (1W), [intraday ](https://www.investopedia.com/terms/i/intraday.asp)(1min, 5min, 15min, 30min, 1H, 4H)

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'
}
```

&#x20;
