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

Safe HaskellNone
LanguageHaskell2010

OANDA.Positions

Description

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

Synopsis

Documentation

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.