Table of Contents

Interface ITradeScript

Namespace
WhalesSecret.TradeScriptLib
Assembly
WhalesSecret.TradeScriptLib.dll

All classes implementing this interface are considered to be trade scripts.

public interface ITradeScript
Extension Methods

Methods

ExecuteAsync(string, CancellationToken)

Method that is called every time when user requests to execute the trade script with parameters specified in jsonInput.

SetupAsync()

Method that is called exactly once after user request to load a trade script via the front-end application.

When this method returns false, trade script is not loaded at all as it is considered to be a fatal error during trade script initialization.

TeardownAsync()

Method that is called once user unloads trade script via front-end application.