ExX2Y2.Orders.Index (ex_x2y2 v0.0.3)

Link to this section Summary

Link to this section Types

@type address() :: String.t()
@type api_key() :: ExX2Y2.Http.Request.api_key()
Link to this type

error_reason()

@type error_reason() :: :parse_result_item | String.t()
@type params() :: %{
  optional(:limit) => non_neg_integer(),
  optional(:direction) => String.t(),
  optional(:maker) => address(),
  optional(:cursor) => address(),
  optional(:contract) => address(),
  optional(:token_id) => non_neg_integer(),
  optional(:created_before) => unix_timestamp(),
  optional(:created_after) => unix_timestamp(),
  optional(:sort) => String.t()
}
@type result() :: {:ok, ExX2Y2.PageCursor.t()} | {:error, error_reason()}
Link to this type

unix_timestamp()

@type unix_timestamp() :: non_neg_integer()

Link to this section Functions

Link to this function

get(api_key, params \\ %{})

@spec get(api_key(), params()) :: result()