View Source XtbClient.Messages.Operation (XtbClient v0.1.1)
Atoms for operation codes.
Link to this section Summary
Link to this section Types
@type operation_code() :: 0..7
@type t() ::
:buy
| :sell
| :buy_limit
| :sell_limit
| :buy_stop
| :sell_stop
| :balance
| :credit
Link to this section Functions
@spec format(t()) :: operation_code()
Format operation atom as integer value.
@spec parse(operation_code()) :: t()
Parse an integer number as valid operation atom.