OddsApi周围的Python包装
oddsapi的Python项目详细描述
Python-The-orids Api包装
Python包装机。在
说明和实施
一个完整的Python包装器,它为来自世界各地的博彩公司的大量体育赛事提供体育赔率数据。 在https://the-odds-api.com/获取免费的API密钥。在
使用
有关赔率Api的详细说明,请参阅https://the-odds-api.com/liveapi/guides/v3/。下面是一个简单的用法示例。在
from oddsapi import OddsClient
client = OddsClient(api_key="your api key")
sports = client.retrieve_sports()
odds = client.retrieve_odds(
sport_key='americanfootball_ncaaf',
region='us',
mkt='spreads'
)
print(f"Requests Remaining: {client.requests_remaining}")
print(f"Requests Used: {client.requests_used}")
- 项目
标签: