Write strategies
A core functionality of Marketcetera is its strategy engine, which listens and responds to market events.
The engine is supported by a Strategy API to simplify processing these events. In this API, the most used modules are askEvent
, bidEvent
, TradeEvent
, and MarketStatEvent
.
Prerequisites
To write a strategy, ensure you have the following:
- The ability to write a script and compile it into a Java archive file.
- DARE installed and running
- Access to Marketdata
Example
An example strategy with its Java and compiled JAR file, can be found in the strategies/strategy-sample
directory of the open-source repository.
Next steps
After you've written a strategy, you can Run it from Photon.