ExOanda.Response (ExOanda v0.1.1)
View SourceCommon response schema for Oanda API.
Summary
Types
@type t(data) :: %ExOanda.Response{ data: data, error_code: String.t() | nil, error_message: String.t() | nil, id: term(), request_id: String.t(), status: atom() }
Common response schema for ExOanda.
The type of the data field is determined by the Oanda endpoint being called, however, the type of the nested schema is passed as a generic type parameter.
For example, the response schema for ExOanda.Accounts.list is ExOanda.Response.t(ExOanda.Response.ListAccounts.t()).