Safe Haskell | None |
---|---|
Language | Haskell2010 |
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
data AccountInfo Source #
accountInfo :: OandaEnv -> AccountID -> IO AccountInfo Source #
Get all account info associated with an account ID.