# PredictIt

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

App · 2 actions. Web page: https://docs.lodol.com/docs/integrations/predictit

## Actions

### Get market

Read one market and its contracts by market ID.

**Inputs**

- Market (`market_id`, text, required): Market ID.

**Outputs**

- `data` (object): The response from PredictIt.

**Example output**

```json
{
  "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**

- `data` (object): The response from PredictIt.

**Example output**

```json
{
  "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"
      }
    ]
  }
}
```
