View Source XtbClient.Messages.TradeType (XtbClient v0.1.1)
Atoms representing operation types.
values
Values
:openorder open, used for opening orders,:pendingorder pending, only used in the streamingXtbClient.Connection.subscribe_get_trades/2command,:closeorder close,:modifyorder modify, only used in theXtbClient.Connection.trade_transaction/2command,:deleteorder delete, only used in theXtbClient.Connection.trade_transaction/2command.
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.