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

A struct representing the payload of :trade_processed events.

Link to this section Summary

Types

t()

TradeProcessed

Link to this section Types

Specs

t() :: %Exchange.Adapters.MessageBus.TradeProcessed{
  acknowledged_at: integer(),
  buy_commission: Money.t(),
  buy_order_id: Ecto.UUID.t(),
  buy_total: Money.t(),
  buyer_id: Ecto.UUID.t(),
  currency: atom(),
  price: Money.t(),
  sell_commission: Money.t(),
  sell_order_id: Ecto.UUID.t(),
  sell_total: Money.t(),
  seller_id: Ecto.UUID.t(),
  size: integer(),
  ticker: atom(),
  trade_id: Ecto.UUID.t()
}

TradeProcessed

Link to this section Functions