# MidaPosition()
Positions are represented by the MidaPosition
class.
- Interface
class MidaPosition {
get id: string;
get tradingAccount: MidaTradingAccount;
get symbol: string;
get volume: MidaDecimal;
get direction: MidaPositionDirection | undefined;
get protection: MidaProtection;
get takeProfit: MidaDecimal | undefined;
get stopLoss: MidaDecimal | undefined;
get trailingStopLoss: boolean | undefined;
get status: MidaPositionStatus;
getUsedMargin (): Promise<MidaDecimal>;
getUnrealizedGrossProfit (): Promise<MidaDecimal>;
getUnrealizedSwap (): Promise<MidaDecimal>;
getUnrealizedCommission (): Promise<MidaDecimal>;
changeProtection (protection: MidaProtectionDirectives): Promise<MidaProtectionChange>;
addVolume (volume: MidaDecimalConvertible): Promise<MidaOrder>;
subtractVolume (volume: MidaDecimalConvertible): Promise<MidaOrder>;
reverse (): Promise<MidaOrder>;
close (): Promise<MidaOrder>;
setTakeProfit (takeProfit: MidaDecimalConvertible | undefined): Promise<MidaProtectionChange>;
setStopLoss (stopLoss: MidaDecimalConvertible | undefined): Promise<MidaProtectionChange>;
setTrailingStopLoss (trailingStopLoss: boolean): Promise<MidaProtectionChange>;
}