Method InitializeMarketAsync
- Namespace
- WhalesSecret.ScriptApiLib
- Assembly
- WhalesSecret.ScriptApiLib.dll
InitializeMarketAsync(ExchangeMarket, CancellationToken)
Initializes the given exchange market.
public Task<ExchangeInfo> InitializeMarketAsync(ExchangeMarket exchangeMarket, CancellationToken cancellationToken = default)
Parameters
exchangeMarket
ExchangeMarketExchange market to initialize.
cancellationToken
CancellationTokenCancellation token that allows the caller to cancel the operation.
Returns
- Task<ExchangeInfo>
Information about the exchange market and its symbol pairs.
Exceptions
- OperationCanceledException
Thrown if the operation was cancelled.
- OperationFailedException
Thrown if the operation failed.