hstradeking-0.1.0: Tradeking API bindings for Haskell

Safe HaskellNone

Finance.TradeKing.Service

Description

Low-level access to TradeKing API

Synopsis

Documentation

apiEndPoint :: TradeKing -> Command -> Format -> StringSource

Given a set of TradeKing URLs, a Command, and a Format, returns the API endpoint

invokeSimple :: TradeKingApp -> Command -> Format -> IO ResponseSource

Invokes a simple command signed with OAuth in the given format, and returns the Response object.

streamQuotes' :: TradeKingApp -> [Stock] -> (ResumableSource (ResourceT IO) ByteString -> ResourceT IO b) -> IO bSource

Low-level quote streaming command. This differs from streamQuotes in that the source it provides produces ByteStrings.