| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
OANDA.Positions
Description
Defines the endpoints listed in the Positions section of the API.
- data Position = Position {}
- openPositions :: OandaEnv -> AccountID -> IO (Vector Position)
- position :: OandaEnv -> AccountID -> InstrumentText -> IO Position
- closePosition :: OandaEnv -> AccountID -> InstrumentText -> IO CloseResponse
- data CloseResponse = CloseResponse {}
Documentation
Constructors
| Position | |
Fields | |
openPositions :: OandaEnv -> AccountID -> IO (Vector Position) Source #
Get all open positions for an account.
position :: OandaEnv -> AccountID -> InstrumentText -> IO Position Source #
Get open position for an account on a given instrument.
closePosition :: OandaEnv -> AccountID -> InstrumentText -> IO CloseResponse Source #
Closes an existing position.