Files
2026-02-21 07:43:33 +01:00

842 B

open_position

aiomql.contrib.trackers.open_position — Open position data container.

Overview

Defines the OpenPosition dataclass that holds the essential details of an open MetaTrader 5 position for use by the tracking system.

Classes

OpenPosition

Lightweight container for an open position's key fields.

Field Type Description
ticket int Position ticket number
symbol str Trading instrument
volume float Position volume
type PositionType BUY or SELL
price_open float Entry price
sl float Stop loss level
tp float Take profit level
profit float Current profit
swap float Accumulated swap
magic int EA magic number
comment str Position comment