oanda-rest-api-0.3.0.0: Client to the OANDA REST API

Safe HaskellNone
LanguageHaskell2010

OANDA.Transactions

Description

Defines the endpoints listed in the <http://developer.oanda.com/rest-live/transaction-history/ Transaction History> section of the API.

Synopsis

Documentation

data Transaction Source #

Instances

Show Transaction Source # 
Generic Transaction Source # 

Associated Types

type Rep Transaction :: * -> * #

FromJSON Transaction Source # 
type Rep Transaction Source # 
type Rep Transaction = D1 (MetaData "Transaction" "OANDA.Transactions" "oanda-rest-api-0.3.0.0-2QW5QOWynH85EIyagYeyg1" False) (C1 (MetaCons "Transaction" PrefixI True) ((:*:) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "transactionId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Integer)) (S1 (MetaSel (Just Symbol "transactionAccountId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Integer))) ((:*:) (S1 (MetaSel (Just Symbol "transactionTime") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ZonedTime)) (S1 (MetaSel (Just Symbol "transactionType") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 String)))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "transactionInstrument") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe InstrumentText))) (S1 (MetaSel (Just Symbol "transactionSide") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Side)))) ((:*:) (S1 (MetaSel (Just Symbol "transactionUnits") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Decimal))) (S1 (MetaSel (Just Symbol "transactionPrice") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Decimal)))))) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "transactionLowerBound") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Decimal))) (S1 (MetaSel (Just Symbol "transactionUpperBound") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Decimal)))) ((:*:) (S1 (MetaSel (Just Symbol "transactionTakeProfitPrice") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Decimal))) (S1 (MetaSel (Just Symbol "transactionStopLossPrice") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Decimal))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "transactionTrailingStopLossDistance") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Decimal))) (S1 (MetaSel (Just Symbol "transactionPL") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Decimal)))) ((:*:) (S1 (MetaSel (Just Symbol "transactionInterest") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Decimal))) (S1 (MetaSel (Just Symbol "transactionAccountBalance") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Decimal))))))))

transactionHistory :: OandaEnv -> AccountID -> IO (Vector Transaction) Source #

Get a list of transactions for the account.