search Nothing found
Main Algotrading documentation Trade operations Deals

Deal

An object with the properties of the selected deal.

Properties:

Deal.DealId
int
Unique identifier of a deal
Deal.SymbolName
string
Symbol name (of a currency pair) 
Deal.OperationType
string
Deal type:
Buy
Sell
Deal.Volume
double
Position volume (number of lots bought and sold)
Deal.OpenPrice
double
Deal opening price. Indicated in quoted currency.
Deal.OpenDate
DateTime
Opening date of the deal
Deal.ClosePrice
double
Deal closing price. Indicated in quoted currency.
Deal.CloseDate
DateTime
Closing date of the deal
Deal.TakeProfit
double
Deal Take Profit level. The level of the market price, upon reaching which you should close the position to take profits. Indicated in quoted currency.
Deal.StopLoss
double
Deal Stop loss level. The level of the market price, upon reaching which you should close the position to fix losses. Indicated in quoted currency.
Deal.Swap
double
Payment on open positions for their transfer to the next day. Indicated in the currency of the account.
Deal.Commission
double
Broker commission for this position
Indicated in the currency of the account.
Deal.TypeOfClosure
int
Deal closing type:
210 cPositionCloseByClient - position was closed by client himself
211 cPositionCloseByStopOut - position was closed due to insufficient funds
212 cPositionCloseByExpirationDate - futures has been expired => position was closed
213 cPositionCloseByPendingOrder - position was closed by a pending order
214 cPositionCloseByTakeProfit - position was closed by a take profit
215 cPositionCloseByStopLoss - position was closed by a stop loss
216 cPositionCloseByPersonalMoneyMarginCall - position was closed by a Personal Money Margin Call
217 cPositionCloseByStopLossAfterTheGap 
closing by a Stop Loss at the market price after the gap
218 cPositionCloseByTakeProfitAfterTheGap - 
closing by a Take Profit at the market price after the gap
Deal.PositionId
int
Unique identifier of the position after the closing of which the deal was opened
Deal.Profit
double
Deal profit in the account currency
Deal.Balance
double
Amount of funds and profit on open positions in the account currency
Deal.DepositClosePrice
double
Deposit currency price relative to USD at the closing
Deal.QuoteClosePrice
double
Quoted currency price relative to USD at the closing


Subscribe to our newsletter and stay up to date with all the news!