Summary
Functions
Get the details of a single transaction in an account.
Get the details of a single transaction in an account, raising an exception on error.
Get a list of transactions for an account.
Get a list of transactions for an account, raising an exception on error.
Get a list of transactions for an account within a specific TransactionID range.
Get a list of transactions for an account within a specific TransactionID range, raising an exception on error.
Get a list of transactions for an account since a specific TransactionID.
Get a list of transactions for an account since a specific TransactionID, raising an exception on error.
Functions
@spec find(ExOanda.Connection.t(), String.t(), String.t(), Keyword.t()) :: {:ok, ExOanda.Response.t(ExOanda.Response.FindTransaction.t())} | {:error, ExOanda.Response.t() | ExOanda.ValidationError.t() | ExOanda.TransportError.t() | ExOanda.DecodeError.t()}
Get the details of a single transaction in an account.
Examples
iex> {:ok, res} = ExOanda.Transactions.find(conn, account_id, transaction_id)Docs
@spec find!(ExOanda.Connection.t(), String.t(), String.t(), Keyword.t()) :: ExOanda.Response.t(ExOanda.Response.FindTransaction.t())
Get the details of a single transaction in an account, raising an exception on error.
Examples
iex> res = ExOanda.Transactions.find!(conn, account_id, transaction_id)Docs
@spec list(ExOanda.Connection.t(), String.t(), Keyword.t()) :: {:ok, ExOanda.Response.t(ExOanda.Response.ListTransactions.t())} | {:error, ExOanda.Response.t() | ExOanda.ValidationError.t() | ExOanda.TransportError.t() | ExOanda.DecodeError.t()}
Get a list of transactions for an account.
Examples
iex> {:ok, res} = ExOanda.Transactions.list(conn, account_id)Supported parameters
:type(String.t/0) - A filter for restricting the types of Transactions to retrieve.:page_size(non_neg_integer/0) - The number of Transactions to include in each page. [default=100, maximum=1000].:to(String.t/0) - The ending time (inclusive) of the time range for the Transactions being queried. Defaults to current time.:from(String.t/0) - The starting time (inclusive) of the time range for the Transactions being queried. Defaults to account creation time.
Docs
@spec list!(ExOanda.Connection.t(), String.t(), Keyword.t()) :: ExOanda.Response.t(ExOanda.Response.ListTransactions.t())
Get a list of transactions for an account, raising an exception on error.
Examples
iex> res = ExOanda.Transactions.list!(conn, account_id)Supported parameters
:type(String.t/0) - A filter for restricting the types of Transactions to retrieve.:page_size(non_neg_integer/0) - The number of Transactions to include in each page. [default=100, maximum=1000].:to(String.t/0) - The ending time (inclusive) of the time range for the Transactions being queried. Defaults to current time.:from(String.t/0) - The starting time (inclusive) of the time range for the Transactions being queried. Defaults to account creation time.
Docs
@spec list_id_range(ExOanda.Connection.t(), String.t(), Keyword.t()) :: {:ok, ExOanda.Response.t(ExOanda.Response.ListTransactionsIdRange.t())} | {:error, ExOanda.Response.t() | ExOanda.ValidationError.t() | ExOanda.TransportError.t() | ExOanda.DecodeError.t()}
Get a list of transactions for an account within a specific TransactionID range.
Examples
iex> {:ok, res} = ExOanda.Transactions.list_id_range(conn, account_id)Supported parameters
:type(String.t/0) - A filter for restricting the types of Transactions to retrieve.:to(String.t/0) - The ending TransactionID (inclusive) to fetch.:from(String.t/0) - The starting TransactionID (inclusive) to fetch.
Docs
@spec list_id_range!(ExOanda.Connection.t(), String.t(), Keyword.t()) :: ExOanda.Response.t(ExOanda.Response.ListTransactionsIdRange.t())
Get a list of transactions for an account within a specific TransactionID range, raising an exception on error.
Examples
iex> res = ExOanda.Transactions.list_id_range!(conn, account_id)Supported parameters
:type(String.t/0) - A filter for restricting the types of Transactions to retrieve.:to(String.t/0) - The ending TransactionID (inclusive) to fetch.:from(String.t/0) - The starting TransactionID (inclusive) to fetch.
Docs
@spec list_since_id(ExOanda.Connection.t(), String.t(), String.t(), Keyword.t()) :: {:ok, ExOanda.Response.t(ExOanda.Response.ListTransactionsIdRange.t())} | {:error, ExOanda.Response.t() | ExOanda.ValidationError.t() | ExOanda.TransportError.t() | ExOanda.DecodeError.t()}
Get a list of transactions for an account since a specific TransactionID.
Examples
iex> {:ok, res} = ExOanda.Transactions.list_since_id(conn, account_id, transaction_id)Supported parameters
:type(String.t/0) - A filter for restricting the types of Transactions to retrieve.
Docs
@spec list_since_id!(ExOanda.Connection.t(), String.t(), String.t(), Keyword.t()) :: ExOanda.Response.t(ExOanda.Response.ListTransactionsIdRange.t())
Get a list of transactions for an account since a specific TransactionID, raising an exception on error.
Examples
iex> res = ExOanda.Transactions.list_since_id!(conn, account_id, transaction_id)Supported parameters
:type(String.t/0) - A filter for restricting the types of Transactions to retrieve.