Table of Contents

Enum EventCategory

Namespace
WhalesSecret.TradeScriptLib.API.EventV1
Assembly
WhalesSecret.TradeScriptLib.dll

Categories of trade script events.

public enum EventCategory
Extension Methods

Fields

Other = 0

Events that do not fit into any other category.

System = 1

Events related to the internal functionality of Whale's Secret's system. This may include events such as starting or terminating the trade script. These events are generated automatically by the system and cannot be created or manipulated by the trade scripts.

TradeSystem = 2

All events related to orders and trades. This may include events such as creating a new order, closing an order, changing an order, etc. These events are generated automatically by the system as trade scripts interact with exchanges and these events cannot be created or manipulated by the trade scripts.

Trade = 3

Events related to actual trades. This may include events such as creating a new order, closing an order, changing an order, etc. In contrast to TradeSystem, events in this category are generated by the trade scripts themselves.

Strategy = 4

Events related to the trading strategy. This may include detection of a trend, find a support level, going over a certain threshold in an indicator, etc.

Exchange = 5

Non-trading events related to a communication with an exchange. This may include an exchange going to a maintenance mode, exchange behaving in an unexpected way, etc.

Script = 6

Events related to the internal functionality of the trade script. This may include getting an unexpected error, reaching an unexpected state, execution of a periodic task, etc.