View Source XtbClient.Messages.ProfitInfo (XtbClient v0.1.1)

Result of profit calculation.

parameters

Parameters

  • order_id order number,
  • transaction_id transaction ID,
  • position_no position number,
  • profit profit in account currency,
  • market_value market value,
  • profit_calc_price profit calc price,
  • profit_recalc_price profit recalc price.

handled-api-methods

Handled Api methods

  • getProfits

Link to this section Summary

Link to this section Types

@type t() :: %XtbClient.Messages.ProfitInfo{
  market_value: float(),
  order_id: integer(),
  position_no: integer(),
  profit: float(),
  profit_calc_price: float(),
  profit_recalc_price: float(),
  transaction_id: integer()
}

Link to this section Functions