View Source XtbClient.Messages.TradeTransaction.Command (XtbClient v0.1.1)

Info about command to trade the transaction.

parameters

Parameters

  • cmd operation code, see XtbClient.Messages.Operation,
  • customComment the value the customer may provide in order to retrieve it later,
  • expiration pending order expiration time,
  • offset trailing offset,
  • order 0 or position number for closing/modifications,
  • price trade price,
  • sl stop loss,
  • tp take profit,
  • symbol trade symbol,
  • type trade transaction type, see XtbClient.Messages.TradeType,
  • volume trade volume.

Link to this section Summary

Link to this section Types

@type t() :: %XtbClient.Messages.TradeTransaction.Command{
  cmd: integer(),
  customComment: binary(),
  expiration: integer(),
  offset: integer(),
  order: integer(),
  price: float(),
  sl: float(),
  symbol: binary(),
  tp: float(),
  type: integer(),
  volume: float()
}

Link to this section Functions