Table of Contents

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 ExchangeMarket

Exchange market to initialize.

cancellationToken CancellationToken

Cancellation 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.