smarkets / smk_python_sdk

Smarkets Python SDK
http://smarkets.github.com/
MIT License
18 stars 11 forks source link

Add functions to query available prices, ie ticks #6

Closed jcpetruzza closed 8 years ago

jcpetruzza commented 8 years ago

The current api in smarkets.odds doesn't provide a convenient and robust way to retrieve all "possible prices", that is, those that can be used to place bets (usually called "ticks").

This commit fixes that situation by adding iterators that will list ticks (in probability space) above/below given prices, determine if if a concrete price is a tick and also define constants for the minimum and maximum possible prices.

Mike-Baker commented 8 years ago

Looks good to me.