Sand AISand AI MAGI-2MAGI-2 ya está en SandBase: video en 1080p con audio nativoPruébalo ahora

Polymarket Get spread

Documentación de la API
https://api.sandbase.ai/v1/api/polymarket/spread

Retrieves the spread for a specific token ID. The spread is the difference between the best ask and best bid prices.

Precio
$0.012USD / llamada
Método
POST
Respuesta
JSON
Parámetros
1 obligatorios · 0 opcionales

Entorno de pruebas

Entrada
Token ID (asset ID)
SalidaListo

Su salida aparecerá aquí

Complete las entradas y luego haga clic en Ejecutar.

README de la API

Polymarket Get spread API

Returns the current spread for one Polymarket outcome token. The spread is the gap between the best ask price and the best bid price. You send one token_id.

Use cases

  • Check how tight the market is for an outcome token before placing an order.
  • Flag thin markets by filtering out tokens with a wide spread.
  • Track the spread of a token over time to see how the gap between bid and ask changes.

Request

curl -X POST "https://api.sandbase.ai/v1/api/polymarket/spread" \
  -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.

{
  "spread": "0.001"
}

Response fields

FieldMeaning
spreadThe difference between the best ask price and the best bid price for the token.
spreadReturned as a decimal string. In the sample, 0.001 means the best ask and best bid are 0.001 apart.
spreadA smaller value means the best bid and best ask sit closer together. A larger value means they sit further apart.

Notes

Pricing

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

Explorar más

APIs relacionadas

Todas las APIs
APIPrecioRespuesta
Polymarket$0.012 por llamadaJSON
Polymarket$0.012 por llamadaJSON
Polymarket$0.012 por llamadaJSON
Polymarket$0.012 por llamadaJSON
Polymarket$0.012 por llamadaJSON
Polymarket$0.012 por llamadaJSON

Preguntas

FAQ

¿Cómo uso la API de Polymarket Get spread?

Envía una solicitud POST a https://api.sandbase.ai/v1/api/polymarket/spread con tu clave API de SandBase en el encabezado Authorization (Bearer) y los parámetros como un cuerpo JSON. También puedes probarlo en el Playground de esta página sin escribir código.

¿Cuánto cuesta la API de Polymarket Get spread?

$0.012 por llamada, facturado desde tu saldo de SandBase. Solo se te cobra por las llamadas que haces; no hay suscripción.

¿Qué parámetros acepta la API de Polymarket Get spread?

Requeridos: token_id (string). La tabla de Parámetros y el Playground de esta página enumeran todos los campos.

¿Qué devuelve la API de Polymarket Get spread?

Una respuesta JSON devuelta en la misma solicitud HTTP (sincrónica). El README de esta página incluye una respuesta de ejemplo.

¿Necesito una cuenta de desarrollador o una clave API de Polymarket?

No. Polymarket Get spread funciona a través de SandBase, así que una sola clave API de SandBase cubre este endpoint y todas las demás APIs y modelos del catálogo. No necesitas solicitar acceso a la API de Polymarket por separado.