Bingex.Swap.GetServerTimeData (Bingex v0.1.7)

Parses and structures server time data for BingX swaps.

Extracts the server time from the API response and embeds it into a Bingex.API.Reply.

Summary

Types

t()

@type t() :: %Bingex.Swap.GetServerTimeData{time: non_neg_integer()}

Functions

decode(arg1)

@spec decode(any()) :: {:ok, t()} | :error

embed_in_reply(reply)

@spec embed_in_reply(Bingex.API.Reply.t()) :: Bingex.API.Reply.t(t())