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.2.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for polymarket-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36a8422590ff82477bc632198600efabc38d58c35d3e415169a67d607f9cc4e0 |
|
MD5 | df0d5ce4e057822c6d0bcb9167f91971 |
|
BLAKE2b-256 | 920f84eec58764ccc63d9c5d8cecbab23af493c2632f7f42c0e51f8d1f0e085a |