View Source XtbClient.Messages.TradeType (XtbClient v0.1.1)
Atoms representing operation types.
values
Values
:open
order open, used for opening orders,:pending
order pending, only used in the streamingXtbClient.Connection.subscribe_get_trades/2
command,:close
order close,:modify
order modify, only used in theXtbClient.Connection.trade_transaction/2
command,:delete
order delete, only used in theXtbClient.Connection.trade_transaction/2
command.
Link to this section Summary
Functions
Format atom representing trade type to integer value.
Link to this section Types
@type t() :: :open | :pending | :close | :modify | :delete
@type trade_code() :: 0..4
Link to this section Functions
@spec format(t()) :: trade_code()
Format atom representing trade type to integer value.