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

Safe HaskellNone
LanguageHaskell2010

OANDA.Orders

Description

Defines the endpoints listed in the Orders section of the API.

Synopsis

Documentation

openOrders :: OandaEnv -> AccountID -> IO (Vector Order) Source #

Get all open orders for an account.

data Order Source #

Instances

Show Order Source # 

Methods

showsPrec :: Int -> Order -> ShowS #

show :: Order -> String #

showList :: [Order] -> ShowS #

Generic Order Source # 

Associated Types

type Rep Order :: * -> * #

Methods

from :: Order -> Rep Order x #

to :: Rep Order x -> Order #

FromJSON Order Source # 
type Rep Order Source # 
type Rep Order = D1 (MetaData "Order" "OANDA.Orders" "oanda-rest-api-0.3.0.0-2QW5QOWynH85EIyagYeyg1" False) (C1 (MetaCons "Order" PrefixI True) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "orderId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Integer)) ((:*:) (S1 (MetaSel (Just Symbol "orderInstrument") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 InstrumentText)) (S1 (MetaSel (Just Symbol "orderUnits") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Integer)))) ((:*:) (S1 (MetaSel (Just Symbol "orderSide") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Side)) ((:*:) (S1 (MetaSel (Just Symbol "orderType") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)) (S1 (MetaSel (Just Symbol "orderTime") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ZonedTime))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "orderPrice") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Decimal)) ((:*:) (S1 (MetaSel (Just Symbol "orderTakeProfit") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Decimal)) (S1 (MetaSel (Just Symbol "orderStopLoss") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Decimal)))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "orderExpiry") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ZonedTime)) (S1 (MetaSel (Just Symbol "orderUpperBound") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Decimal))) ((:*:) (S1 (MetaSel (Just Symbol "orderLowerBound") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Decimal)) (S1 (MetaSel (Just Symbol "orderTrailingStop") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Decimal)))))))