API for the Trade.Exec() game from Stockfighter on

Basic usage:

import Stockfighter
import Stockfighter.Types

main = do
    st <- mkStockfighterState "APIKEY"
    heartbeat st

Example for using the websocket API:

import Control.Monad.Trans.Resource
import Control.Monad.IO.Class
import Data.Conduit
import Stockfighter

main = runResourceT $ quoteWebsocket "ACCOUNT" "TESTEX" "FOOBAR" $$ (awaitForever (liftIO . print))

This library uses hslogger for logging, to get all debug logging:

import System.Log.Logger

main = do
    updateGlobalLogger "Stockfighter" (setLevel DEBUG)

For more information, see