bet-0.1.2.0: Betfair API bindings. Bet on sports on betting exchanges.

Safe HaskellNone
LanguageHaskell2010

Network.Betfair.Unsafe

Contents

Description

(Financially) unsafe Betfair API functions.

Synopsis

Rate limiting

setAPIRateLimit :: NumberOfRequests -> IO () Source

Set the global rate limit.

The initial value is 4. The rate limiting is global and shared with all Betfair connections in the same Haskell process.

DANGEROUS! If the limit allows for more than 20 requests per second then you have to pay up Betfair data charge fee.

This can be a fractional value like 19.8 if you like living dangerously.

Setting this to 0 prevents all further communication with Betfair (aside from logging in).

getAPIRateLimit :: IO NumberOfRequests Source

Returns the current global rate limit.