Enum Code
- Namespace
- WhalesSecret.TradeScriptLib
- Assembly
- WhalesSecret.TradeScriptLib.dll
List of codes that a trade script may end with.
public enum Code
- Extension Methods
Fields
Ok = 0
Trade script finished without any issue.
Warn = 1
Trade script finished correctly but something is not quite as intended by trade script author.
The difference between Warn and Error is up to trade script author's preference.
For example, an order that is taking too long to be filled might represent a warning/error in some trading strategies but it might be perfectly fine in others.
Error = 2
Trade script failed to execute correctly as intended by trade script author.
Application operator should review whether manual intervention is required to avoid potential loss of funds.