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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file polymarket-0.1.2.tar.gz.
File metadata
- Download URL: polymarket-0.1.2.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ff8256b8e63113bc0b609ee4daeb478b28f6fbed6af6791188ad61721a798e78
|
|
| MD5 |
0cd48cc7abe36d0162512379f46c1744
|
|
| BLAKE2b-256 |
fb59affb994b0b2d6104dfce48424981da28b1b02eba5574725caea1a08399ae
|
File details
Details for the file polymarket-0.1.2-py3-none-any.whl.
File metadata
- Download URL: polymarket-0.1.2-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
36a8422590ff82477bc632198600efabc38d58c35d3e415169a67d607f9cc4e0
|
|
| MD5 |
df0d5ce4e057822c6d0bcb9167f91971
|
|
| BLAKE2b-256 |
920f84eec58764ccc63d9c5d8cecbab23af493c2632f7f42c0e51f8d1f0e085a
|