Exchange v0.2.4 Exchange.Adapters.MessageBus.PriceBroadcast View Source

A struct representing the payload of :price_broadcast events.

Link to this section Summary

Types

t()

PriceBroadcast

Functions

Decodes the params to a PriceBroadcast struct

Link to this section Types

Specs

t() :: %Exchange.Adapters.MessageBus.PriceBroadcast{
  ask_min: integer(),
  bid_max: integer(),
  ticker: atom()
}

PriceBroadcast

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 PriceBroadcast struct

Parameters

  • params: map with necessary parameters to populate the struct