Polymarket / agents

Trade autonomously on Polymarket using AI Agents
MIT License
52 stars 5 forks source link

cli command for gamma markets #1

Closed alexnicita closed 2 months ago

alexnicita commented 2 months ago
% python cli.py get-all-markets --limit=2 --sort-by=volume
limit: int = 2, sort_by: str = volume
[
    SimpleMarket(
        id=13107,
        question='Will Joe Biden be inaugurated as President of the USA on January 20th, 2021?',
        end='2021-01-20T00:00:00Z',
        description=(
            'This is a market on if Joe Biden will be inaugurated as President of the United States of America on Inau'
            'guration Day—January 20th, 2021. At the time of market creation, AP, CNN, WSJ, Fox, and more have called '
            'the election for Joe Biden as the winner, and formally declared him the president-elect. Trump, however, '
            'has continued to contest the results legally and some have speculated that there may be other maneuvers b'
            'y which someone other than Joe Biden would be inaugurated. This market will not resolve, under any circum'
            'stances, until the resolution date—January 20th, 2021. If Donald Trump, or anyone else other than Joe Bid'
            'en, is inaugurated on that day as President of the USA, the market will resolve to “No”. If for any reaso'
            'n, no Presidential inauguration is held on that date, this market will resolve to “No”. If Joe Biden is i'
            'naugurated to the office of President of the United States on January 20th, 2021, this market will resolv'
            'e to “yes”. The resolution source will be https://www.usa.gov/presidents#item-37462 and https://www.white'
            'house.gov/about-the-white-house/presidents/, both official government sources.'
        ),
        active=True,
        deployed=False,
        funded=False,
        rewardsMinSize=0.0,
        rewardsMaxSpread=0.0,
        volume=8582604.040652,
        spread=1.0,
        outcome_a='[',
        outcome_b='"',
        outcome_a_price='[',
        outcome_b_price='"',
    ),
    SimpleMarket(
        id=192726,
        question='Will Joe Biden be President of the USA on September 30, 2021?',
        end='2021-09-30T00:00:00Z',
        description=(
            'This is a market on whether Joe Biden will be President of the United States on September 30, 2021, 11:59'
            ' PM ET. This market will resolve to “Yes“ if, on the resolution date, Joe Biden is listed as being the cu'
            'rrent President of the United States according to official US government sources, like the link provided '
            'as the resolution source. If, for any reason, Joe Biden is not the sitting President of the United States'
            ' on that date, this market will resolve to “No“. In the event of ambiguity in terms of the market outcome'
            ', the market will be resolved in good faith at the sole discretion of the Markets Integrity Committee (MI'
            'C). The resolution source for this market will be the official website of the United States President, ht'
            'tps://www.whitehouse.gov/. '
        ),
        active=True,
        deployed=False,
        funded=False,
        rewardsMinSize=0.0,
        rewardsMaxSpread=0.0,
        volume=652928.021682,
        spread=1.0,
        outcome_a='[',
        outcome_b='"',
        outcome_a_price='[',
        outcome_b_price='"',
    ),
]