Summary
Functions
Fetch an account.
Fetch an account, raising an exception on error.
Get a list of accounts.
Get a list of accounts, raising an exception on error.
Get a list of changes to an account.
Get a list of changes to an account, raising an exception on error.
Get a list of tradeable instruments for the given account.
Get a list of tradeable instruments for the given account, raising an exception on error.
Get a summary of an account.
Get a summary of an account, raising an exception on error.
Update an account.
Update an account, raising an exception on error.
Functions
@spec find(ExOanda.Connection.t(), String.t(), Keyword.t()) :: {:ok, ExOanda.Response.t(ExOanda.Response.FindAccount.t())} | {:error, ExOanda.Response.t() | ExOanda.ValidationError.t() | ExOanda.TransportError.t() | ExOanda.DecodeError.t()}
Fetch an account.
Examples
iex> {:ok, res} = ExOanda.Accounts.find(conn, account_id)Docs
@spec find!(ExOanda.Connection.t(), String.t(), Keyword.t()) :: ExOanda.Response.t(ExOanda.Response.FindAccount.t())
Fetch an account, raising an exception on error.
Examples
iex> res = ExOanda.Accounts.find!(conn, account_id)Docs
@spec list(ExOanda.Connection.t(), Keyword.t()) :: {:ok, ExOanda.Response.t(ExOanda.Response.ListAccounts.t())} | {:error, ExOanda.Response.t() | ExOanda.ValidationError.t() | ExOanda.TransportError.t() | ExOanda.DecodeError.t()}
Get a list of accounts.
Examples
iex> {:ok, res} = ExOanda.Accounts.list(conn, )Docs
@spec list!(ExOanda.Connection.t(), Keyword.t()) :: ExOanda.Response.t(ExOanda.Response.ListAccounts.t())
Get a list of accounts, raising an exception on error.
Examples
iex> res = ExOanda.Accounts.list!(conn, )Docs
@spec list_changes(ExOanda.Connection.t(), String.t(), Keyword.t()) :: {:ok, ExOanda.Response.t(ExOanda.Response.AccountChanges.t())} | {:error, ExOanda.Response.t() | ExOanda.ValidationError.t() | ExOanda.TransportError.t() | ExOanda.DecodeError.t()}
Get a list of changes to an account.
Examples
iex> {:ok, res} = ExOanda.Accounts.list_changes(conn, account_id)Supported parameters
:since_transaction_id(String.t/0) - Required. ID of the Transaction to get Account changes since.
Docs
@spec list_changes!(ExOanda.Connection.t(), String.t(), Keyword.t()) :: ExOanda.Response.t(ExOanda.Response.AccountChanges.t())
Get a list of changes to an account, raising an exception on error.
Examples
iex> res = ExOanda.Accounts.list_changes!(conn, account_id)Supported parameters
:since_transaction_id(String.t/0) - Required. ID of the Transaction to get Account changes since.
Docs
@spec list_instruments(ExOanda.Connection.t(), String.t(), Keyword.t()) :: {:ok, ExOanda.Response.t(ExOanda.Response.AccountInstruments.t())} | {:error, ExOanda.Response.t() | ExOanda.ValidationError.t() | ExOanda.TransportError.t() | ExOanda.DecodeError.t()}
Get a list of tradeable instruments for the given account.
Examples
iex> {:ok, res} = ExOanda.Accounts.list_instruments(conn, account_id)Supported parameters
:instruments(String.t/0) - A comma separated list of instrument names.
Docs
@spec list_instruments!(ExOanda.Connection.t(), String.t(), Keyword.t()) :: ExOanda.Response.t(ExOanda.Response.AccountInstruments.t())
Get a list of tradeable instruments for the given account, raising an exception on error.
Examples
iex> res = ExOanda.Accounts.list_instruments!(conn, account_id)Supported parameters
:instruments(String.t/0) - A comma separated list of instrument names.
Docs
@spec summary(ExOanda.Connection.t(), String.t(), Keyword.t()) :: {:ok, ExOanda.Response.t(ExOanda.Response.AccountSummary.t())} | {:error, ExOanda.Response.t() | ExOanda.ValidationError.t() | ExOanda.TransportError.t() | ExOanda.DecodeError.t()}
Get a summary of an account.
Examples
iex> {:ok, res} = ExOanda.Accounts.summary(conn, account_id)Docs
@spec summary!(ExOanda.Connection.t(), String.t(), Keyword.t()) :: ExOanda.Response.t(ExOanda.Response.AccountSummary.t())
Get a summary of an account, raising an exception on error.
Examples
iex> res = ExOanda.Accounts.summary!(conn, account_id)Docs
@spec update(ExOanda.Connection.t(), String.t(), map(), Keyword.t()) :: {:ok, ExOanda.Response.t(ExOanda.Response.UpdateAccount.t())} | {:error, ExOanda.Response.t() | ExOanda.ValidationError.t() | ExOanda.TransportError.t() | ExOanda.DecodeError.t()}
Update an account.
Examples
iex> {:ok, res} = ExOanda.Accounts.update(conn, account_id, body)Docs
@spec update!(ExOanda.Connection.t(), String.t(), map(), Keyword.t()) :: ExOanda.Response.t(ExOanda.Response.UpdateAccount.t())
Update an account, raising an exception on error.
Examples
iex> res = ExOanda.Accounts.update!(conn, account_id, body)