A package to export historical odds for an outcome of a market on Polymarket
Project description
Polymarket Data Fetcher
Polymarket Data Fetcher is a Python package that allows you to easily fetch historical odds data from Polymarket for specific market outcomes.
Installation
You can install the Polymarket Data Fetcher using pip:
Usage
Here's a basic example of how to use the Polymarket Data Fetcher:
from polymarket_data_fetcher import PolymarketDataFetcher
# Initialize the fetcher
pm = PolymarketDataFetcher()
# Define the parameters
slug = "will-donald-trump-win-the-2024-us-presidential-election"
start_date = "2024-01-01" # yyyy-mm-dd format
fidelity = "1440" # daily data
# Fetch historical odds for a market
odds = pm.get_historical_odds(slug, start_date, fidelity)
# Display the results
print(odds)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
polymarket-0.1.1.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for polymarket-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78af46959c2f70bbe5f624c90b71cc0e5e44388d1d19484769e98c4133cb5075 |
|
MD5 | 875328fbabbd1ae6701212a3e624e965 |
|
BLAKE2b-256 | 9eb3cbbfb932c1cd768691a3ca01c0aba526112afedbadaf59e47f2ef5a5a2ad |