Safe Haskell | None |
---|---|
Language | Haskell2010 |
(Financially) unsafe Betfair API functions.
- setAPIRateLimit :: NumberOfRequests -> IO ()
- getAPIRateLimit :: IO NumberOfRequests
- type NumberOfRequests = Double
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.
type NumberOfRequests = Double Source