Skip to content

Commit

Permalink
Use environment variable to get access key for MarketData provider
Browse files Browse the repository at this point in the history
  • Loading branch information
bleunguts committed Feb 13, 2024
1 parent d233a1e commit f3fe70c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ProjectX.GatewayAPI/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public void ConfigureServices(IServiceCollection services)
services.AddSingleton<FXTasksChannel>();
services.TryAddScoped<IPricingTasksProcessor, PricingTasksProcessor>();
services.AddSingleton<IStockMarketSource>(new FileBackedStockMarketDataSource(
new FMPStockMarketSource(Options.Create(new FMPStockMarketSourceOptions() { ApiKey = "35fdfe7c1a0d49e6ca2283bb073fea3a" })),
new FMPStockMarketSource(Options.Create(new FMPStockMarketSourceOptions() { ApiKey = FMPStockMarketSourceOptions.GetFromEnvironment() })),
Options.Create(new FileBackedStoreMarketDataSourceOptions() { Filename = Configuration.GetSection("MarketData")["CacheFilename"] }))
);
services.AddSingleton<IStockSignalService, StockSignalService>();
Expand Down

0 comments on commit f3fe70c

Please sign in to comment.