Building Trading Strategies Positions

Positions

Botmain features a sophisticated internal position calculation engine, delivering key insights like size, PnL, and other important metrics for each instrument or portfolio. Here's how the Position object works across different levels:

  • Individual Instrument Position: This level accounts for all orders related to a specific instrument, issued by the strategy, across various portfolios. It provides a comprehensive view of the instrument's trading activities.

  • Portfolio Position: This aggregates the positions of all instruments within a specified portfolio, incorporating the executions of all relevant orders. It offers an overview of the portfolio's total characteristics, although not all position metrics apply here due to the broader context.

  • Position by Instrument within a Portfolio: This narrows down to the position of a single instrument within a specific portfolio, based on the executions of orders for that instrument and portfolio only.

Each layer offers distinct insights, from detailed instrument analysis to broader portfolio evaluations, catering to varied strategic needs.