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

Safe HaskellNone
LanguageHaskell2010

OANDA.Rates

Description

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

Synopsis

Documentation

instruments :: OandaEnv -> AccountID -> InstrumentsArgs -> IO (Vector Instrument) Source

Retrieve a list of instruments from OANDA

prices :: OandaEnv -> [InstrumentText] -> Maybe ZonedTime -> IO (Vector Price) Source

Retrieve the current prices for a list of instruments.

midpointCandles :: OandaEnv -> InstrumentText -> CandlesArgs -> IO (Vector MidpointCandlestick) Source

Retrieve the price history of a single instrument in midpoint candles

bidaskCandles :: OandaEnv -> InstrumentText -> CandlesArgs -> IO (Vector BidAskCandlestick) Source

Retrieve the price history of a single instrument in bid/ask candles

data Granularity Source

Constructors

S5 
S10 
S15 
S30 
M1 
M2 
M3 
M4 
M5 
M10 
M15 
M30 
H1 
H2 
H3 
H4 
H6 
H8 
H12 
D 
W 
M