PredictIt

App · 2 actions

Read PredictIt market and contract prices from the public market data feed.

Get market

Read one market and its contracts by market ID.

Inputs

Marketmarket_idtextRequired
Market ID.

Outputs

dataobject
The response from PredictIt.
Example output
{
  "data": {
    "contracts": [
      {
        "bestBuyNoCost": 1,
        "bestBuyYesCost": 1,
        "bestSellNoCost": 1,
        "bestSellYesCost": 1,
        "dateEnd": "example",
        "displayOrder": 1,
        "id": 1,
        "image": "example",
        "lastClosePrice": 1,
        "lastTradePrice": 1,
        "name": "example",
        "shortName": "example",
        "status": "example"
      }
    ],
    "id": 1,
    "image": "example",
    "name": "example",
    "shortName": "example",
    "status": "example",
    "timeStamp": "example",
    "url": "example"
  }
}

List markets

Read the markets and contract prices in the public feed.

Inputs

None.

Outputs

dataobject
The response from PredictIt.
Example output
{
  "data": {
    "markets": [
      {
        "contracts": [
          {
            "bestBuyNoCost": 1,
            "bestBuyYesCost": 1,
            "bestSellNoCost": 1,
            "bestSellYesCost": 1,
            "dateEnd": "example",
            "displayOrder": 1,
            "id": 1,
            "image": "example",
            "lastClosePrice": 1,
            "lastTradePrice": 1,
            "name": "example",
            "shortName": "example",
            "status": "example"
          }
        ],
        "id": 1,
        "image": "example",
        "name": "example",
        "shortName": "example",
        "status": "example",
        "timeStamp": "example",
        "url": "example"
      }
    ]
  }
}

On this page