Show / Hide Table of Contents

Class EnvironmentExtensions

Collection of helper extension methods for IEnvironment interface.

Inheritance
System.Object
EnvironmentExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Alpaca.Markets
Assembly: Alpaca.Markets.dll
Syntax
public static class EnvironmentExtensions

Methods

| Improve this Doc View Source

GetAlpacaCryptoDataClient(IEnvironment, SecurityKey)

Creates the new instance of IAlpacaCryptoDataClient interface implementation for specific environment provided as environment argument.

Declaration
public static IAlpacaCryptoDataClient GetAlpacaCryptoDataClient(this IEnvironment environment, SecurityKey securityKey)
Parameters
Type Name Description
IEnvironment environment

Target environment for new object.

SecurityKey securityKey

Alpaca API security key.

Returns
Type Description
IAlpacaCryptoDataClient

The new instance of IAlpacaCryptoDataClient interface implementation.

| Improve this Doc View Source

GetAlpacaCryptoDataClientConfiguration(IEnvironment, SecurityKey)

Creates new instance of AlpacaCryptoDataClientConfiguration for specific environment provided as environment argument.

Declaration
public static AlpacaCryptoDataClientConfiguration GetAlpacaCryptoDataClientConfiguration(this IEnvironment environment, SecurityKey securityKey)
Parameters
Type Name Description
IEnvironment environment

Target environment for new object.

SecurityKey securityKey

Alpaca API security key.

Returns
Type Description
AlpacaCryptoDataClientConfiguration

New instance of AlpacaCryptoDataClientConfiguration object.

| Improve this Doc View Source

GetAlpacaCryptoStreamingClient(IEnvironment, SecurityKey)

Creates the new instance of IAlpacaCryptoStreamingClient interface implementation for specific environment provided as environment argument.

Declaration
public static IAlpacaCryptoStreamingClient GetAlpacaCryptoStreamingClient(this IEnvironment environment, SecurityKey securityKey)
Parameters
Type Name Description
IEnvironment environment

Target environment for new object.

SecurityKey securityKey

Alpaca API security key.

Returns
Type Description
IAlpacaCryptoStreamingClient

The new instance of IAlpacaCryptoStreamingClient interface implementation.

| Improve this Doc View Source

GetAlpacaCryptoStreamingClientConfiguration(IEnvironment, SecurityKey)

Creates new instance of AlpacaCryptoStreamingClientConfiguration for specific environment provided as environment argument.

Declaration
public static AlpacaCryptoStreamingClientConfiguration GetAlpacaCryptoStreamingClientConfiguration(this IEnvironment environment, SecurityKey securityKey)
Parameters
Type Name Description
IEnvironment environment

Target environment for new object.

SecurityKey securityKey

Alpaca API security key.

Returns
Type Description
AlpacaCryptoStreamingClientConfiguration

New instance of AlpacaCryptoStreamingClientConfiguration object.

| Improve this Doc View Source

GetAlpacaDataClient(IEnvironment, SecurityKey)

Creates the new instance of IAlpacaDataClient interface implementation for specific environment provided as environment argument.

Declaration
public static IAlpacaDataClient GetAlpacaDataClient(this IEnvironment environment, SecurityKey securityKey)
Parameters
Type Name Description
IEnvironment environment

Target environment for new object.

SecurityKey securityKey

Alpaca API security key.

Returns
Type Description
IAlpacaDataClient

The new instance of IAlpacaDataClient interface implementation.

| Improve this Doc View Source

GetAlpacaDataClientConfiguration(IEnvironment, SecurityKey)

Creates new instance of AlpacaDataClientConfiguration for specific environment provided as environment argument.

Declaration
public static AlpacaDataClientConfiguration GetAlpacaDataClientConfiguration(this IEnvironment environment, SecurityKey securityKey)
Parameters
Type Name Description
IEnvironment environment

Target environment for new object.

SecurityKey securityKey

Alpaca API security key.

Returns
Type Description
AlpacaDataClientConfiguration

New instance of AlpacaDataClientConfiguration object.

| Improve this Doc View Source

GetAlpacaDataStreamingClient(IEnvironment, SecurityKey)

Creates the new instance of IAlpacaDataStreamingClient interface implementation for specific environment provided as environment argument.

Declaration
public static IAlpacaDataStreamingClient GetAlpacaDataStreamingClient(this IEnvironment environment, SecurityKey securityKey)
Parameters
Type Name Description
IEnvironment environment

Target environment for new object.

SecurityKey securityKey

Alpaca API security key.

Returns
Type Description
IAlpacaDataStreamingClient

The new instance of IAlpacaDataStreamingClient interface implementation.

| Improve this Doc View Source

GetAlpacaDataStreamingClientConfiguration(IEnvironment, SecurityKey)

Creates new instance of AlpacaDataStreamingClientConfiguration for specific environment provided as environment argument.

Declaration
public static AlpacaDataStreamingClientConfiguration GetAlpacaDataStreamingClientConfiguration(this IEnvironment environment, SecurityKey securityKey)
Parameters
Type Name Description
IEnvironment environment

Target environment for new object.

SecurityKey securityKey

Alpaca API security key.

Returns
Type Description
AlpacaDataStreamingClientConfiguration

New instance of AlpacaDataStreamingClientConfiguration object.

| Improve this Doc View Source

GetAlpacaNewsStreamingClient(IEnvironment, SecurityKey)

Creates the new instance of IAlpacaNewsStreamingClient interface implementation for specific environment provided as environment argument.

Declaration
public static IAlpacaNewsStreamingClient GetAlpacaNewsStreamingClient(this IEnvironment environment, SecurityKey securityKey)
Parameters
Type Name Description
IEnvironment environment

Target environment for new object.

SecurityKey securityKey

Alpaca API security key.

Returns
Type Description
IAlpacaNewsStreamingClient

The new instance of IAlpacaNewsStreamingClient interface implementation.

| Improve this Doc View Source

GetAlpacaNewsStreamingClientConfiguration(IEnvironment, SecurityKey)

Creates new instance of AlpacaNewsStreamingClientConfiguration for specific environment provided as environment argument.

Declaration
public static AlpacaNewsStreamingClientConfiguration GetAlpacaNewsStreamingClientConfiguration(this IEnvironment environment, SecurityKey securityKey)
Parameters
Type Name Description
IEnvironment environment

Target environment for new object.

SecurityKey securityKey

Alpaca API security key.

Returns
Type Description
AlpacaNewsStreamingClientConfiguration

New instance of AlpacaNewsStreamingClientConfiguration object.

| Improve this Doc View Source

GetAlpacaOptionsDataClient(IEnvironment, SecurityKey)

Creates the new instance of IAlpacaOptionsDataClient interface implementation for specific environment provided as environment argument.

Declaration
public static IAlpacaOptionsDataClient GetAlpacaOptionsDataClient(this IEnvironment environment, SecurityKey securityKey)
Parameters
Type Name Description
IEnvironment environment

Target environment for new object.

SecurityKey securityKey

Alpaca API security key.

Returns
Type Description
IAlpacaOptionsDataClient

The new instance of IAlpacaOptionsDataClient interface implementation.

| Improve this Doc View Source

GetAlpacaOptionsDataClientConfiguration(IEnvironment, SecurityKey)

Creates new instance of AlpacaOptionsDataClientConfiguration for specific environment provided as environment argument.

Declaration
public static AlpacaOptionsDataClientConfiguration GetAlpacaOptionsDataClientConfiguration(this IEnvironment environment, SecurityKey securityKey)
Parameters
Type Name Description
IEnvironment environment

Target environment for new object.

SecurityKey securityKey

Alpaca API security key.

Returns
Type Description
AlpacaOptionsDataClientConfiguration

New instance of AlpacaOptionsDataClientConfiguration object.

| Improve this Doc View Source

GetAlpacaStreamingClient(IEnvironment, SecurityKey)

Creates the new instance of IAlpacaStreamingClient interface implementation for specific environment provided as environment argument.

Declaration
public static IAlpacaStreamingClient GetAlpacaStreamingClient(this IEnvironment environment, SecurityKey securityKey)
Parameters
Type Name Description
IEnvironment environment

Target environment for new object.

SecurityKey securityKey

Alpaca API security key.

Returns
Type Description
IAlpacaStreamingClient

The new instance of IAlpacaStreamingClient interface implementation.

| Improve this Doc View Source

GetAlpacaStreamingClientConfiguration(IEnvironment, SecurityKey)

Creates new instance of AlpacaStreamingClientConfiguration for specific environment provided as environment argument.

Declaration
public static AlpacaStreamingClientConfiguration GetAlpacaStreamingClientConfiguration(this IEnvironment environment, SecurityKey securityKey)
Parameters
Type Name Description
IEnvironment environment

Target environment for new object.

SecurityKey securityKey

Alpaca API security key.

Returns
Type Description
AlpacaStreamingClientConfiguration

New instance of AlpacaStreamingClientConfiguration object.

| Improve this Doc View Source

GetAlpacaTradingClient(IEnvironment, SecurityKey)

Creates the new instance of IAlpacaTradingClient interface implementation for specific environment provided as environment argument.

Declaration
public static IAlpacaTradingClient GetAlpacaTradingClient(this IEnvironment environment, SecurityKey securityKey)
Parameters
Type Name Description
IEnvironment environment

Target environment for new object.

SecurityKey securityKey

Alpaca API security key.

Returns
Type Description
IAlpacaTradingClient

The new instance of IAlpacaTradingClient interface implementation.

| Improve this Doc View Source

GetAlpacaTradingClientConfiguration(IEnvironment, SecurityKey)

Creates new instance of AlpacaTradingClientConfiguration for specific environment provided as environment argument.

Declaration
public static AlpacaTradingClientConfiguration GetAlpacaTradingClientConfiguration(this IEnvironment environment, SecurityKey securityKey)
Parameters
Type Name Description
IEnvironment environment

Target environment for new object.

SecurityKey securityKey

Alpaca API security key.

Returns
Type Description
AlpacaTradingClientConfiguration

New instance of AlpacaTradingClientConfiguration object.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX