View Source XtbClient.Messages.ProfitCalculation.Query (XtbClient v0.1.1)

Info about query for calculation of profit.

parameters

Parameters

  • closePrice theoretical close price of order,
  • cmd operation code, see XtbClient.Messages.Operation,
  • openPrice theoretical open price of order,
  • symbol symbol name,
  • volume volume in lots.

Link to this section Summary

Link to this section Types

@type t() :: %XtbClient.Messages.ProfitCalculation.Query{
  closePrice: float(),
  cmd: XtbClient.Messages.Operation.t(),
  openPrice: float(),
  symbol: binary(),
  volume: float()
}

Link to this section Functions