View Source ExTrade.Accounts (ExTrade v0.0.1)
Interface to the E*TRADE Accounts API.
Link to this section Summary
Functions
Retrieve a given ExTrade.Accounts.Account
's ExTrade.Accounts.Balance
via the Get Account Balances endpoint.
Retrieve a list of ExTrade.Accounts.Account
s via the List Accounts endpoint.
Retrieve a given ExTrade.Accounts.Transaction
's ExTrade.Accounts.TransactionDetails
via the List Transaction Details endpoint.
Retrieve a given ExTrade.Accounts.Account
's list of ExTrade.Accounts.Transaction
s via the List Transactions endpoint.
Retrieve a given ExTrade.Accounts.Account
's ExTrade.Accounts.Portfolio
via the View Portfolio endpoint.
Link to this section Functions
@spec get_account_balance(String.t(), Keyword.t()) :: {:ok, ExTrade.Accounts.Balance.t()} | ExTrade.Response.error_t()
Retrieve a given ExTrade.Accounts.Account
's ExTrade.Accounts.Balance
via the Get Account Balances endpoint.
Optional Query Parameters
:acount_type
:real_time_nav
@spec list_accounts() :: {:ok, [ExTrade.Accounts.Account.t()]} | ExTrade.Response.error_t()
Retrieve a list of ExTrade.Accounts.Account
s via the List Accounts endpoint.
list_transaction_details(account_id_key, transaction_id, opts \\ [])
View Source@spec list_transaction_details(String.t(), integer(), Keyword.t()) :: {:ok, ExTrade.Accounts.TransactionDetails.t()} | ExTrade.Response.error_t()
Retrieve a given ExTrade.Accounts.Transaction
's ExTrade.Accounts.TransactionDetails
via the List Transaction Details endpoint.
Optional Query Parameters
:store_id
@spec list_transactions(String.t(), Keyword.t()) :: {:ok, [ExTrade.Accounts.Transaction.t()]} | ExTrade.Response.error_t()
Retrieve a given ExTrade.Accounts.Account
's list of ExTrade.Accounts.Transaction
s via the List Transactions endpoint.
Optional Query Parameters
:count
:end_date
:marker
:sort_order
:start_date
@spec view_portfolio(String.t(), Keyword.t()) :: {:ok, ExTrade.Accounts.PortfolioResponse.t()} | ExTrade.Response.error_t()
Retrieve a given ExTrade.Accounts.Account
's ExTrade.Accounts.Portfolio
via the View Portfolio endpoint.
Optional Query Parameters
:count
:lots_required
:market_session
:sort_by
:sort_order
:totals_required
:view