Sand AISand AI MAGI-2MAGI-2 jest teraz na SandBase: wideo 1080p z natywnym dźwiękiemWypróbuj teraz

Polymarket Get sampling simplified markets

Dokumentacja API
https://api.sandbase.ai/v1/api/polymarket/sampling-simplified-markets

Returns sampling simplified markets with reward and token summaries.

Cena
$0.012USD / wywołanie
Metoda
POST
Odpowiedź
JSON
Parametry
0 wymaganych · 1 opcjonalnych

Playground

Wejście
next_cursor
WyjścieGotowe

Twój wynik pojawi się tutaj

Uzupełnij dane wejściowe, a następnie kliknij Uruchom.

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.

Odkryj więcej

Powiązane APIs

Wszystkie APIs
APICenaOdpowiedź
Polymarket$0.012 za wywołanieJSON
Polymarket$0.012 za wywołanieJSON
Polymarket$0.012 za wywołanieJSON
Polymarket$0.012 za wywołanieJSON
Polymarket$0.012 za wywołanieJSON
Polymarket$0.012 za wywołanieJSON

Pytania

FAQ

Jak używać API Polymarket Get sampling simplified markets?

Wyślij żądanie POST do https://api.sandbase.ai/v1/api/polymarket/sampling-simplified-markets z kluczem API SandBase w nagłówku Authorization (Bearer) oraz parametrami w treści JSON. Możesz też wypróbować je w Playground na tej stronie bez pisania kodu.

Ile kosztuje API Polymarket Get sampling simplified markets?

$0.012 za wywołanie, rozliczane z salda SandBase. Płacisz tylko za wykonane wywołania; nie ma subskrypcji.

Jakie parametry przyjmuje API Polymarket Get sampling simplified markets?

Nie są wymagane żadne parametry. Opcjonalne: next_cursor (string). Tabela Parameters oraz Playground na tej stronie zawierają wszystkie pola.

Co zwraca API Polymarket Get sampling simplified markets?

Odpowiedź JSON zwrócona w tym samym żądaniu HTTP (synchronicznie). README na tej stronie zawiera przykładową odpowiedź.

Czy potrzebuję konta deweloperskiego Polymarket lub klucza API?

Nie. Polymarket Get sampling simplified markets działa przez SandBase, więc jeden klucz API SandBase obejmuje ten endpoint i każde inne API oraz model w katalogu. Nie musisz osobno ubiegać się o dostęp do API Polymarket.