Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 1 addition & 14 deletions project-templates/csharp/common/research.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -81,20 +81,7 @@
}
},
"outputs": [],
"source": [
"// Get historical data for a bank sector ETF and some banking companies over 2021.\n",
"var qb = new QuantBook();\n",
"var tickers = new[]\n",
"{\n",
" \"XLF\", // Financial Select Sector SPDR Fund\n",
" \"COF\", // Capital One Financial Corporation\n",
" \"GS\", // Goldman Sachs Group, Inc.\n",
" \"JPM\", // J P Morgan Chase & Co\n",
" \"WFC\" // Wells Fargo & Company\n",
"};\n",
"var symbols = tickers.Select(ticker => qb.AddEquity(ticker, Resolution.Daily).Symbol).ToList();\n",
"var history = qb.History(symbols, new DateTime(2021, 1, 1), new DateTime(2022, 1, 1)).ToList();"
]
"source": "// Get historical data for a bank sector ETF and some banking companies over 2021.\nvar qb = new QuantBook();\nvar tickers = new[]\n{\n \"XLF\", // Financial Select Sector SPDR Fund\n \"COF\", // Capital One Financial Corporation\n \"GS\", // Goldman Sachs Group, Inc.\n \"JPM\", // J P Morgan Chase & Co\n \"WFC\" // Wells Fargo & Company\n};\nvar symbols = tickers.Select(ticker => qb.AddEquity(ticker).Symbol).ToList();\nvar history = qb.History(symbols, new DateTime(2021, 1, 1), new DateTime(2022, 1, 1)).ToList();"
},
{
"cell_type": "markdown",
Expand Down
2 changes: 1 addition & 1 deletion project-templates/csharp/equities-universe/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public override void Initialize()
SetCash(100000);
Settings.SeedInitialPrices = true;
UniverseSettings.Leverage = 2.0m;
UniverseSettings.Resolution = Resolution.Daily;
UniverseSettings.Resolution = Resolution.Minute;

_universe = AddUniverse(coarse =>
{
Expand Down
2 changes: 1 addition & 1 deletion project-templates/python/ai/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def initialize(self) -> None:
self.set_cash(100_000)
self.settings.seed_initial_prices = True
# Request SPY data for model training, prediction and trading.
self._spy = self.add_equity("SPY", Resolution.DAILY)
self._spy = self.add_equity("SPY")
# Hyperparameters to create the MLP model.
num_factors = 5
num_neurons_1 = 10
Expand Down
12 changes: 1 addition & 11 deletions project-templates/python/common/research.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,7 @@
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# Get historical data for a bank sector ETF and some banking companies over 2021.\n",
"qb = QuantBook()\n",
"tickers = [\"XLF\", # Financial Select Sector SPDR Fund\n",
" \"COF\", # Capital One Financial Corporation\n",
" \"GS\", # Goldman Sachs Group, Inc.\n",
" \"JPM\", # J P Morgan Chase & Co\n",
" \"WFC\"] # Wells Fargo & Company\n",
"symbols = [qb.add_equity(ticker, Resolution.DAILY).symbol for ticker in tickers]\n",
"history = qb.history(symbols, datetime(2021, 1, 1), datetime(2022, 1, 1))"
]
"source": "# Get historical data for a bank sector ETF and some banking companies over 2021.\nqb = QuantBook()\ntickers = [\"XLF\", # Financial Select Sector SPDR Fund\n \"COF\", # Capital One Financial Corporation\n \"GS\", # Goldman Sachs Group, Inc.\n \"JPM\", # J P Morgan Chase & Co\n \"WFC\"] # Wells Fargo & Company\nsymbols = [qb.add_equity(ticker).symbol for ticker in tickers]\nhistory = qb.history(symbols, datetime(2021, 1, 1), datetime(2022, 1, 1))"
},
{
"cell_type": "markdown",
Expand Down
2 changes: 1 addition & 1 deletion project-templates/python/equities-universe/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def initialize(self) -> None:
self.set_cash(100000)
self.settings.seed_initial_prices = True
self.universe_settings.leverage = 2
self.universe_settings.resolution = Resolution.DAILY
self.universe_settings.resolution = Resolution.MINUTE

def _filter(fundamentals: List[Fundamental]) -> List[Symbol]:
selected = {}
Expand Down