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

A struct representing the payload of :trade_executed events.

Link to this section Summary

Types

t()

TradeExecuted

Functions

Decodes the params to a TradeExecuted struct

Link to this section Types

Specs

t() :: %Exchange.Adapters.MessageBus.TradeExecuted{trade: Exchange.Trade}

TradeExecuted

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 a TradeExecuted struct

Parameters

  • params: map with necessary parameters to populate the struct