Exchange v0.2.0 Exchange.Adapters.MessageBus.OrderPlaced View Source

A struct representing the payload of :order_placed events.

Link to this section Summary

Types

t()

OrderPlaced

Functions

Decodes the params to an OrderPlaced struct

Link to this section Types

Specs

t() :: %Exchange.Adapters.MessageBus.OrderPlaced{
  action_indicator: String.t(),
  client_trans_ref: String.t(),
  consideration_currency: String.t(),
  good_until: String.t(),
  last_modified: String.t(),
  limit: integer(),
  order_id: String.t(),
  order_time: String.t(),
  order_value: String.t(),
  quantity: integer(),
  quantity_matched: integer(),
  security_id: String.t(),
  status_code: String.t(),
  total_commission: String.t(),
  total_consideration: String.t(),
  trade_type: String.t(),
  type_code: String.t()
}

OrderPlaced

Link to this section Functions

Link to this function

decode_from_jason(params)

View Source

Specs

decode_from_jason(map()) :: t()

Decodes the params to an OrderPlaced struct

Parameters

  • params: map with necessary parameters to populate the struct