polymarket


Namepolymarket JSON
Version 0.1.2 PyPI version JSON
download
home_pagehttps://github.com/MattMaximo/polymarket-py
SummaryA package to export historical odds for an outcome of a market on Polymarket
upload_time2024-08-06 19:29:04
maintainerNone
docs_urlNone
authorMatt Maximo
requires_python>=3.6
licenseNone
keywords polymarket crypto data api exporter market odds
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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:

```python
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)

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/MattMaximo/polymarket-py",
    "name": "polymarket",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": "polymarket, crypto, data, api, exporter, market, odds",
    "author": "Matt Maximo",
    "author_email": "matt@pioneerdigital.org",
    "download_url": "https://files.pythonhosted.org/packages/fb/59/affb994b0b2d6104dfce48424981da28b1b02eba5574725caea1a08399ae/polymarket-0.1.2.tar.gz",
    "platform": null,
    "description": "# Polymarket Data Fetcher\n\nPolymarket Data Fetcher is a Python package that allows you to easily fetch historical odds data from Polymarket for specific market outcomes.\n\n## Installation\n\nYou can install the Polymarket Data Fetcher using pip:\n## Usage\n\nHere's a basic example of how to use the Polymarket Data Fetcher:\n\n```python\nfrom polymarket_data_fetcher import PolymarketDataFetcher\n\n# Initialize the fetcher\npm = PolymarketDataFetcher()\n\n# Define the parameters\nslug = \"will-donald-trump-win-the-2024-us-presidential-election\"\nstart_date = \"2024-01-01\"  # yyyy-mm-dd format\nfidelity = \"1440\"  # daily data\n\n# Fetch historical odds for a market\nodds = pm.get_historical_odds(slug, start_date, fidelity)\n\n# Display the results\nprint(odds)\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A package to export historical odds for an outcome of a market on Polymarket",
    "version": "0.1.2",
    "project_urls": {
        "Homepage": "https://github.com/MattMaximo/polymarket-py"
    },
    "split_keywords": [
        "polymarket",
        " crypto",
        " data",
        " api",
        " exporter",
        " market",
        " odds"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "920f84eec58764ccc63d9c5d8cecbab23af493c2632f7f42c0e51f8d1f0e085a",
                "md5": "df0d5ce4e057822c6d0bcb9167f91971",
                "sha256": "36a8422590ff82477bc632198600efabc38d58c35d3e415169a67d607f9cc4e0"
            },
            "downloads": -1,
            "filename": "polymarket-0.1.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "df0d5ce4e057822c6d0bcb9167f91971",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 3222,
            "upload_time": "2024-08-06T19:29:03",
            "upload_time_iso_8601": "2024-08-06T19:29:03.300382Z",
            "url": "https://files.pythonhosted.org/packages/92/0f/84eec58764ccc63d9c5d8cecbab23af493c2632f7f42c0e51f8d1f0e085a/polymarket-0.1.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "fb59affb994b0b2d6104dfce48424981da28b1b02eba5574725caea1a08399ae",
                "md5": "0cd48cc7abe36d0162512379f46c1744",
                "sha256": "ff8256b8e63113bc0b609ee4daeb478b28f6fbed6af6791188ad61721a798e78"
            },
            "downloads": -1,
            "filename": "polymarket-0.1.2.tar.gz",
            "has_sig": false,
            "md5_digest": "0cd48cc7abe36d0162512379f46c1744",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 2921,
            "upload_time": "2024-08-06T19:29:04",
            "upload_time_iso_8601": "2024-08-06T19:29:04.970901Z",
            "url": "https://files.pythonhosted.org/packages/fb/59/affb994b0b2d6104dfce48424981da28b1b02eba5574725caea1a08399ae/polymarket-0.1.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-06 19:29:04",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "MattMaximo",
    "github_project": "polymarket-py",
    "github_not_found": true,
    "lcname": "polymarket"
}
        
Elapsed time: 0.36583s