Sand AISand AI MAGI-2MAGI-2 теперь на SandBase: видео 1080p с нативным звукомПопробовать сейчас

Polymarket Get sampling simplified markets

Документация API
https://api.sandbase.ai/v1/api/polymarket/sampling-simplified-markets

Returns sampling simplified markets with reward and token summaries.

Цена
$0.012USD / вызов
Метод
POST
Ответ
JSON
Параметры
0 обязательных · 1 необязательных

Песочница

Ввод
next_cursor
ВыходГотово

Ваш результат появится здесь

Заполните входные данные, затем нажмите «Запустить».

README по API

Polymarket Get sampling simplified markets API

Returns a page of Polymarket markets that have reward programs, with each market's reward settings and its outcome tokens with prices. The call needs no input for the first page, and takes an optional next_cursor to fetch later pages.

Use cases

  • List markets that pay liquidity rewards and compare their rewards_daily_rate values.
  • Find the token_id for each Yes and No outcome to use in order book or price calls.
  • Track current outcome prices for reward-eligible markets.
  • Filter for markets that are active and still accepting orders before quoting.

Request

curl -X POST "https://api.sandbase.ai/v1/api/polymarket/sampling-simplified-markets" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
next_cursorstringNonext_cursor

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "count": 1000,
  "data": [
    {
      "accepting_orders": true,
      "active": true,
      "archived": false,
      "closed": false,
      "condition_id": "0xa467b14d51f01b957109d9cbb1d6c124fab2a089d52ed8f471d23c2812e743b7",
      "rewards": {
        "max_spread": 3.5,
        "min_size": 200,
        "rates": [
          {
            "asset_address": "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174",
            "rewards_daily_rate": 5
          }
        ]
      },
      "tokens": [
        {
          "outcome": "Yes",
          "price": 0.0205,
          "token_id": "32338220…",
          "winner": false
        }
      ],
      "version": "v1"
    }
  ],
  "limit": 1000,
  "next_cursor": "aWQ6MTMyODAxOQ=="
}

Response fields

FieldMeaning
countNumber of markets in this response page.
limitPage size limit for the response. The sample shows 1000.
next_cursorCursor string to pass as next_cursor to get the next page.
data[].condition_idHex ID of the market condition. Use it to identify the market in other calls.
data[].active / data[].closed / data[].archived / data[].accepting_ordersBoolean flags for market state. They show whether the market is live, finished, archived, or taking orders.
data[].rewards.max_spreadMaximum spread value allowed for an order to count toward rewards.
data[].rewards.min_sizeMinimum order size value for an order to count toward rewards.
data[].rewards.rates[].rewards_daily_rateDaily reward rate for the asset listed in asset_address.
data[].tokens[].outcome / data[].tokens[].priceOutcome label such as Yes or No, and its current price. Prices of the two outcomes add up to about 1.
data[].tokens[].token_id / data[].tokens[].winnerLong numeric ID of the outcome token, and a flag that shows whether that outcome won.

Notes

Pricing

$0.012 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

Посмотреть больше

Связанные APIs

Все APIs
APIЦенаОтвет
Polymarket$0.012 за запросJSON
Polymarket$0.012 за запросJSON
Polymarket$0.012 за запросJSON
Polymarket$0.012 за запросJSON
Polymarket$0.012 за запросJSON
Polymarket$0.012 за запросJSON

Вопросы

FAQ

Как использовать API Polymarket Get sampling simplified markets?

Отправьте POST-запрос на https://api.sandbase.ai/v1/api/polymarket/sampling-simplified-markets, указав ключ SandBase API в заголовке Authorization (Bearer), а параметры — в теле JSON. Вы также можете попробовать это в Playground на этой странице без написания кода.

Сколько стоит API Polymarket Get sampling simplified markets?

$0.012 за вызов, списывается с баланса SandBase. Оплата взимается только за сделанные вызовы; подписка не требуется.

Какие параметры принимает API Polymarket Get sampling simplified markets?

Параметры не требуются. Необязательные: next_cursor (string). В таблице Parameters и в Playground на этой странице перечислены все поля.

Что возвращает API Polymarket Get sampling simplified markets?

JSON-ответ, возвращаемый в том же HTTP-запросе (синхронно). В README на этой странице приведен пример ответа.

Нужен ли мне аккаунт разработчика Polymarket или API key?

Нет. Polymarket Get sampling simplified markets работает через SandBase, поэтому один API key SandBase покрывает этот endpoint и все остальные API и модели в каталоге. Вам не нужно отдельно запрашивать доступ к API Polymarket.