polymarket-py


Namepolymarket-py JSON
Version 0.1.0 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:14:02
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-py",
    "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/08/97/70b8c86f77bc52e280aedc68713d2042af739ad1f42f70ef88703db9fa69/polymarket_py-0.1.0.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.0",
    "project_urls": {
        "Homepage": "https://github.com/MattMaximo/polymarket-py"
    },
    "split_keywords": [
        "polymarket",
        " crypto",
        " data",
        " api",
        " exporter",
        " market",
        " odds"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "00c23f10b6fa86532597e759e11413a39c596cbe4201168508474e0ee633c17d",
                "md5": "f9a4774fc771fa4d9632fc3060535d8d",
                "sha256": "312c240516b8291aa4945465c896bf48a8849a685bf2fedaf33fa092865db4a5"
            },
            "downloads": -1,
            "filename": "polymarket_py-0.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "f9a4774fc771fa4d9632fc3060535d8d",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 3248,
            "upload_time": "2024-08-06T19:14:01",
            "upload_time_iso_8601": "2024-08-06T19:14:01.304036Z",
            "url": "https://files.pythonhosted.org/packages/00/c2/3f10b6fa86532597e759e11413a39c596cbe4201168508474e0ee633c17d/polymarket_py-0.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "089770b8c86f77bc52e280aedc68713d2042af739ad1f42f70ef88703db9fa69",
                "md5": "77a80cef417072294fcc45c1fae8e8af",
                "sha256": "d8c1b96e68cc8e63a32a1001809c79ea4957d117f3d66f14b768b363fc6b2cf1"
            },
            "downloads": -1,
            "filename": "polymarket_py-0.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "77a80cef417072294fcc45c1fae8e8af",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 2936,
            "upload_time": "2024-08-06T19:14:02",
            "upload_time_iso_8601": "2024-08-06T19:14:02.392014Z",
            "url": "https://files.pythonhosted.org/packages/08/97/70b8c86f77bc52e280aedc68713d2042af739ad1f42f70ef88703db9fa69/polymarket_py-0.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-06 19:14:02",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "MattMaximo",
    "github_project": "polymarket-py",
    "github_not_found": true,
    "lcname": "polymarket-py"
}
        
Elapsed time: 0.94142s