| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
OANDA.Accounts
Description
Defines the endpoints listed in the Accounts section of the API.
- data Account = Account {}
- accounts :: OandaEnv -> IO (Vector Account)
- data AccountInfo = AccountInfo {
- accountInfoAccountId :: Integer
- accountInfoAccountName :: Text
- accountInfoBalance :: Decimal
- accountInfoUnrealizedPl :: Decimal
- accountInfoRealizedPl :: Decimal
- accountInfoMarginUsed :: Decimal
- accountInfoMarginAvail :: Decimal
- accountInfoOpenTrades :: Integer
- accountInfoOpenOrders :: Integer
- accountInfoMarginRate :: Decimal
- accountInfoAccountCurrency :: Text
- accountInfo :: OandaEnv -> AccountID -> IO AccountInfo
Documentation
Wraps the JSON response for accounts
Constructors
| Account | |
Fields | |
data AccountInfo Source #
Constructors
Instances
accountInfo :: OandaEnv -> AccountID -> IO AccountInfo Source #
Get all account info associated with an account ID.