| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
OANDA.Orders
Description
Defines the endpoints listed in the Orders section of the API.
- openOrders :: OandaEnv -> AccountID -> IO (Vector Order)
- data Order = Order {
- orderId :: Integer
- orderInstrument :: InstrumentText
- orderUnits :: Integer
- orderSide :: Side
- orderType :: Text
- orderTime :: ZonedTime
- orderPrice :: Decimal
- orderTakeProfit :: Decimal
- orderStopLoss :: Decimal
- orderExpiry :: ZonedTime
- orderUpperBound :: Decimal
- orderLowerBound :: Decimal
- orderTrailingStop :: Decimal
Documentation
openOrders :: OandaEnv -> AccountID -> IO (Vector Order) Source #
Get all open orders for an account.
Constructors
| Order | |
Fields
| |