📄️ AddonLogger
Dedicated file logger for addon-specific logging. Writes to a separate file in Bookmap's logs directory so addon messages aren't drowned out by Bookmap's general logging. USAGE: <pre> // In your strat
📄️ CloseReason
Represents the reason why a position/family was closed. This is useful for statistics and logging.
📄️ Direction
Represents the direction of a trade or order. BUY = Going long (buying to open, or buying to close a short) SELL = Going short (selling to open, or selling to close a long)
📄️ FamilyState
Represents the state of an order family (entry + TP + SL). PENDING - Entry order not yet filled ACTIVE - Entry filled, TP and SL are working CLOSED - All orders have reached terminal state
📄️ GuardResult
Result of a guard system check. Immutable record that indicates whether an order is allowed and provides a reason if blocked.
📄️ GuardSystem
Guard system that validates whether a new order can be placed. Guards are checked in sequence: 1. Position Check - Must be flat 2. Active Orders Check - No orders pending 3. Cooldown Check - Cooldown
📄️ OrderFamily
Represents a family of related orders (entry + TP + SL). A bracket order creates one family with three orders: - Entry order (opens position) - Take Profit order (closes at profit) - Stop Loss order (
📄️ OrderManager
OrderManager - Main facade for the order placement system. This is the primary interface that strategies use to place and manage orders. It coordinates all internal components and handles Bookmap API
📄️ OrderManagerConfig
Configuration for OrderManager. Immutable configuration object using builder pattern.
📄️ OrderRecord
Represents a single order and its complete state. This is the internal representation of an order, tracked by broker ID. Thread-safe through careful synchronization in OrderRegistry.
📄️ OrderRegistry
Central registry for all orders and families. This is the single source of truth for order state. All lookups and updates go through this registry. Thread-safe through ConcurrentHashMap and careful sy
📄️ OrderState
Represents the lifecycle state of an order. States are divided into two categories: - ACTIVE states: Order is still "alive" and may fill - TERMINAL states: Order has reached a final state
📄️ OrderType
Represents the type/role of an order within a bracket family. ENTRY - The initial order that opens the position TAKE_PROFIT - The limit order to close at profit target STOP_LOSS - The stop ord
📄️ PositionTracker
Tracks the current position and trade history. Position is derived from execution callbacks, not from order state. This ensures accurate position tracking regardless of API quirks.
📄️ SessionTimeUtils
Utilities for session time management. Handles ES futures session times (9:30 AM - 4:00 PM ET).
📄️ TradeStatistics
Tracks trading statistics for the session. Thread-safe through atomic operations and volatile fields.