Table of Contents

Interface IScriptApi

Namespace
WhalesSecret.ScriptApiLib
Assembly
WhalesSecret.ScriptApiLib.dll

Trade script API with script environment.

public interface IScriptApi : IAsyncDisposable
Inherited Members
Extension Methods

Methods

ConnectAsync(ExchangeMarket, ConnectionOptions?)

Connects to exchangeMarket and does appropriate API initialization to allow fully-fledged trading.

If the logged in WhalesSecret account is already connected to the exchange, the operation succeeds immediately.

If the connection is lost, an automatic reconnect is attempted.

InitializeMarketAsync(ExchangeMarket, CancellationToken)

Initializes the given exchange market.

SetCredentials(IApiIdentity)

Sets credentials for the API. It's only possible to set credentials for each exchange market once.