Cache
The Cache
is a central in-memory database that automatically stores and manages all trading-related data.
Think of it as your trading system’s memory – storing everything from market data to order history to custom calculations.
The Cache serves multiple key purposes:
-
Stores market data:
- Stores recent market history (e.g., order books, quotes, trades, bars).
- Gives you access to both current and historical market data for your strategy.
-
Tracks trading data:
- Maintains complete
Order
history and current execution state. - Tracks all
Position
s andAccount
information. - Stores
Instrument
definitions andCurrency
information.
- Maintains complete
-
Stores custom data:
- Any user-defined objects or data can be stored in the
Cache
for later use. - Enables data sharing between different strategies.
- Any user-defined objects or data can be stored in the