Пример #1
0
 /// <summary>
 /// Creates new instance of <see cref="AlpacaTradingClientConfiguration"/> for specific
 /// environment provided as <paramref name="environment"/> argument.
 /// </summary>
 /// <param name="environment">Target environment for new object.</param>
 /// <param name="securityKey">Alpaca API security key.</param>
 /// <returns>New instance of <see cref="AlpacaTradingClientConfiguration"/> object.</returns>
 public static AlpacaTradingClientConfiguration GetAlpacaTradingClientConfiguration(
     this IEnvironment environment,
     SecurityKey securityKey) =>
Пример #2
0
 /// <summary>
 /// Creates new instance of <see cref="AlpacaTradingClient"/> for specific
 /// environment provided as <paramref name="environment"/> argument.
 /// </summary>
 /// <param name="environment">Target environment for new object.</param>
 /// <param name="securityKey">Alpaca API security key.</param>
 /// <returns>New instance of <see cref="AlpacaTradingClient"/> object.</returns>
 public static AlpacaTradingClient GetAlpacaTradingClient(
     this IEnvironment environment,
     SecurityKey securityKey) =>
 new AlpacaTradingClient(environment.GetAlpacaTradingClientConfiguration(securityKey));