jmcarp / betfair.py

A Python wrapper for the Betfair API
MIT License
103 stars 76 forks source link

Change Runner.selection_id type to int #30

Closed petedmarsh closed 9 years ago

petedmarsh commented 9 years ago

Previously Runner.selection_id was declared to be a float, however the API documentation says that it is a long:

https://api.developer.betfair.com/services/webapps/docs/x/SIA6#BettingTypeDefinitions-Runner

This changes the declared data type in the model to int. int is used over long as this maintains Python 3 compatability (in Python 2 int('') will return a long if the number is big enough to require it).

jmcarp commented 9 years ago

Good catch!