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

Safe HaskellNone
LanguageHaskell2010

OANDA.Trades

Description

Defines the endpoints listed in the Trades History section of the API.

Synopsis

Documentation

data Trade Source #

Instances

Show Trade Source # 

Methods

showsPrec :: Int -> Trade -> ShowS #

show :: Trade -> String #

showList :: [Trade] -> ShowS #

Generic Trade Source # 

Associated Types

type Rep Trade :: * -> * #

Methods

from :: Trade -> Rep Trade x #

to :: Rep Trade x -> Trade #

FromJSON Trade Source # 
type Rep Trade Source # 

openTrades :: OandaEnv -> AccountID -> IO (Vector Trade) Source #

Gets a list of all open trades in an account.

tradeInfo :: OandaEnv -> AccountID -> TradeID -> IO Trade Source #

Get info for a specific trade.