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_py-0.1.0.tar.gz
(2.9 kB
view details)
Built Distribution
File details
Details for the file polymarket_py-0.1.0.tar.gz
.
File metadata
- Download URL: polymarket_py-0.1.0.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 | d8c1b96e68cc8e63a32a1001809c79ea4957d117f3d66f14b768b363fc6b2cf1 |
|
MD5 | 77a80cef417072294fcc45c1fae8e8af |
|
BLAKE2b-256 | 089770b8c86f77bc52e280aedc68713d2042af739ad1f42f70ef88703db9fa69 |
Provenance
File details
Details for the file polymarket_py-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: polymarket_py-0.1.0-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 | 312c240516b8291aa4945465c896bf48a8849a685bf2fedaf33fa092865db4a5 |
|
MD5 | f9a4774fc771fa4d9632fc3060535d8d |
|
BLAKE2b-256 | 00c23f10b6fa86532597e759e11413a39c596cbe4201168508474e0ee633c17d |