Tai.VenueAdapters.Deribit.Stream.Connection.State (tai v0.0.75)

Link to this section Summary

Link to this section Types

Specs

account() :: Tai.Venues.Account.t()
Link to this type

channel_name()

Specs

channel_name() :: atom()
Link to this type

credential_id()

Specs

credential_id() :: Tai.Venue.credential_id()
Link to this type

jsonrpc_id()

Specs

jsonrpc_id() :: non_neg_integer()
Link to this type

portfolio_channel()

Specs

portfolio_channel() :: String.t()

Specs

product() :: Tai.Venues.Product.t()

Specs

route() :: :markets

Specs

t() :: %Tai.VenueAdapters.Deribit.Stream.Connection.State{
  account_channels: %{optional(portfolio_channel()) => account()},
  channels: [channel_name()],
  credential: {credential_id(), map()} | nil,
  jsonrpc_id: jsonrpc_id(),
  jsonrpc_requests: %{optional(jsonrpc_id()) => pos_integer()},
  last_heartbeat: pos_integer(),
  markets: [product()],
  opts: map(),
  quote_depth: pos_integer(),
  routes: %{required(route()) => atom()},
  venue: venue()
}

Specs

venue() :: Tai.Venue.id()