# Polymarket Liquidity Rewards Scanner (`drizzly_twilight/polymarket-liquidity-rewards-scanner`) Actor

Lists Polymarket markets that pay daily liquidity-provider rewards, sorted by USD/day, with qualifying max spread, minimum size and current liquidity. Built for market makers hunting reward pools.

- **URL**: https://apify.com/drizzly_twilight/polymarket-liquidity-rewards-scanner.md
- **Developed by:** [Cid Aric](https://apify.com/drizzly_twilight) (community)
- **Categories:** Business
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 rewarded markets

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Polymarket Liquidity Rewards Scanner

Lists Polymarket markets that pay **daily liquidity-provider rewards**, sorted by USD/day,
together with the qualifying max spread, minimum quote size and current liquidity.
Built for market makers hunting reward pools.

### What it does

- Reads Polymarket's public gamma API (no authentication).
- Extracts per-market reward configuration from `clobRewards` (daily rate, max spread, min size).
- Ranks markets by daily subsidy, so you can spot pools with high pay and low competition.

### Input

| Field | Default | Meaning |
|---|---|---|
| `minDailyRewardUsd` | `1` | Minimum daily reward pool (USD) |
| `maxSpreadCents` | unset | Only markets allowing a spread this tight or tighter |
| `minLiquidityUsd` | `0` | Minimum current liquidity |
| `pages` | `5` | Pages of 100 markets to scan |
| `topN` | `100` | Max rows |

### Output

| Field | Meaning |
|---|---|
| `question` | Market title |
| `daily_reward_usd` | Total daily LP reward pool |
| `rewards_max_spread_cents` | Max spread allowed to qualify (cents) |
| `rewards_min_size` | Minimum quote size to count |
| `liquidity_usd` | Current liquidity |
| `volume_24h_usd` | 24h volume |
| `end_date` | Market resolution date |
| `url` | Polymarket link |

### How much does it cost?

| Event | Price |
|---|---|
| `apify-default-dataset-item` (per result) | **$0.003** |
| `apify-actor-start` (per run) | **$0.005** |

A run returning 100 rewarded markets costs about **$0.31**.

### How to use it

1. Prefer markets with a high `daily_reward_usd` but low `liquidity_usd` — big subsidy, few competitors.
2. Quote both sides inside `rewards_max_spread_cents`, each side at least `rewards_min_size`.
3. Rewards are split pro-rata among qualifying quotes, so fewer quoters means a bigger share.
4. **Main risk:** adverse selection — getting filled by informed traders can wipe out the reward.

### Local run

```bash
python3 src/logic.py
```

# Actor input Schema

## `minDailyRewardUsd` (type: `number`):

Markets paying less than this amount of rewards per day are dropped.

## `maxSpreadCents` (type: `number`):

Markets whose qualifying max spread is wider than this (in cents) are dropped. Leave empty for no limit.

## `minLiquidityUsd` (type: `number`):

Markets with less than this much liquidity are dropped. Use 0 to list everything.

## `pages` (type: `integer`):

How many pages of Polymarket markets to scan (100 markets per page). Higher values take longer but find more reward pools.

## `topN` (type: `integer`):

Maximum number of markets written to the dataset, sorted by daily reward descending.

## Actor input object example

```json
{
  "minDailyRewardUsd": 1,
  "minLiquidityUsd": 0,
  "pages": 5,
  "topN": 100
}
```

# Actor output Schema

## `results` (type: `string`):

Each row is one Polymarket market paying daily maker rewards, with the qualifying spread, minimum size and current liquidity.

## `summary` (type: `string`):

How many markets were scanned and how many carry an active reward pool.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("drizzly_twilight/polymarket-liquidity-rewards-scanner").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("drizzly_twilight/polymarket-liquidity-rewards-scanner").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call drizzly_twilight/polymarket-liquidity-rewards-scanner --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,drizzly_twilight/polymarket-liquidity-rewards-scanner"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/kbDmD1FdU3480yMoj/builds/OKIbZM81UrpYWaOaq/openapi.json
