View Source XtbClient.Messages.TradeInfo (XtbClient v0.1.1)
Info about the trade that has happened.
parameters
Parameters
close_price
close price in base currency,close_time
null
if order is not closed,closed
closed,operation
operation code, seeXtbClient.Messages.Operation
,comment
comment,commission
commission in account currency,null
if not applicable,custom_comment
the value the customer may provide in order to retrieve it later,digits
number of decimal places,expiration
null
if order is not closed,margin_rate
margin rate,nominal_value
nominal value,null
if not applicable,offset
trailing offset,open_price
open price in base currency,open_time
open time,order_opened
order number for opened transaction,order_closed
order number for closed transaction,position
order number common both for opened and closed transaction,profit
profit in account currency,stop_loss
zero if stop loss is not set (in base currency),spread
spread,state
state,storage
order swaps in account currency,symbol
symbol name ornull
for deposit/withdrawal operations,taxes
taxes,timestamp
timestamp,take_profit
zero if take profit is not set (in base currency),type
type,volume
volume in lots.
Link to this section Summary
Link to this section Types
@type t() :: %XtbClient.Messages.TradeInfo{ close_price: float(), close_time: DateTime.t() | nil, closed: boolean(), comment: binary(), commission: float() | nil, custom_comment: binary() | nil, digits: integer(), expiration: DateTime.t() | nil, margin_rate: float(), nominal_value: float() | nil, offset: integer(), open_price: float(), open_time: DateTime.t(), operation: integer(), order_closed: integer(), order_opened: integer(), position: integer(), profit: float(), spread: float() | nil, state: integer() | nil, stop_loss: float(), storage: float(), symbol: binary() | nil, take_profit: float(), taxes: float() | nil, timestamp: DateTime.t() | nil, type: integer() | nil, volume: float() }