mtgoxapi-0.5.0.2: Library to communicate with Mt.Gox

Safe HaskellNone

Network.MtGoxAPI.TickerMonitor

Synopsis

Documentation

initTickerMonitor :: IO TickerMonitorHandleSource

Initializes ticker monitor and returns a handle for it.

getTickerStatus :: TickerMonitorHandle -> IO TickerStatusSource

Access latest ticker status in a safe way. It will be checked, whether fresh data is available (never older than 300 seconds) and if not, re-try a few times before giving up. The function will not block for longer than about 20 seconds.

updateTickerStatus :: TickerMonitorHandle -> StreamMessage -> IO ()Source

Update ticker with new data.