Sand AISand AI MAGI-2MAGI-2 è ora su SandBase: video in 1080p con audio nativoProvalo ora

Polymarket Get last trade price

Documentazione API
https://api.sandbase.ai/v1/api/polymarket/last-trade-price

Retrieves the last trade price and side for a specific token ID. Returns default values of 0.5 for price and empty string for side if no trades found.

Prezzo
$0.012USD / chiamata
Metodo
POST
Risposta
JSON
Parametri
1 obbligatori · 0 opzionali

Playground

Input
Token ID (asset ID)
OutputPronto

Il tuo output apparirà qui

Completa gli input, poi fai clic su Esegui.

README API

Polymarket Get last trade price API

Returns the most recent trade price and trade side for one Polymarket outcome token. It needs a token_id (the asset ID of the outcome token). If the token has no trades, the description says the API returns 0.5 for price and an empty string for side.

Use cases

  • Show the latest traded price for a Yes or No outcome on a dashboard.
  • Check whether the last trade on a token was a buy or a sell.
  • Compare the last trade price with the current midpoint or spread to spot stale quotes.
  • Poll a list of token IDs to track price moves on markets you follow.

Request

curl -X POST "https://api.sandbase.ai/v1/api/polymarket/last-trade-price" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"token_id": "32338220190071351435772801779725302244575775216413325951443816017994629993401"}'

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

Parameters

NameTypeRequiredDescription
token_idstringYesToken ID (asset ID)

Example response

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

{
  "price": "0.02",
  "side": "SELL"
}

Response fields

FieldMeaning
pricePrice of the last trade for the token, returned as a string. In the sample it is 0.02. The description says it is 0.5 when no trades exist.
sideSide of the last trade, such as SELL. The description says it is an empty string when no trades exist.

Notes

Pricing

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

Esplora altro

API correlate

Tutte le API
APIPrezzoRisposta
Polymarket$0.012 per chiamataJSON
Polymarket$0.012 per chiamataJSON
Polymarket$0.012 per chiamataJSON
Polymarket$0.012 per chiamataJSON
Polymarket$0.012 per chiamataJSON
Polymarket$0.012 per chiamataJSON

Domande

FAQ

Come uso l'API Polymarket Get last trade price?

Invia una richiesta POST a https://api.sandbase.ai/v1/api/polymarket/last-trade-price con la tua chiave API di SandBase nell'header Authorization (Bearer) e i parametri nel body JSON. Puoi anche provarla nel Playground di questa pagina senza scrivere codice.

Quanto costa l'API Polymarket Get last trade price?

$0.012 per chiamata, addebitato dal tuo saldo SandBase. Paghi solo le chiamate che effettui; non c'è alcun abbonamento.

Quali parametri accetta l'API Polymarket Get last trade price?

Richiesti: token_id (string). La tabella dei parametri e il Playground di questa pagina elencano tutti i campi.

Cosa restituisce l'API Polymarket Get last trade price?

Una risposta JSON restituita nella stessa richiesta HTTP (sincrona). Il README di questa pagina include una risposta di esempio.

Mi serve un account sviluppatore o una chiave API Polymarket?

No. Polymarket Get last trade price funziona tramite SandBase, quindi una sola chiave API SandBase copre questo endpoint e tutte le altre API e modelli del catalogo. Non è necessario richiedere separatamente l'accesso alle API Polymarket.