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

Polymarket Get fee rate

Dokumentacja API
https://api.sandbase.ai/v1/api/polymarket/fee-rate

Retrieves the base fee rate for a specific token ID. The fee rate can be provided either as a query parameter or as a path parameter.

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

Playground

Wejście
Token ID (asset ID)
WyjścieGotowe

Twój wynik pojawi się tutaj

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

README API

Polymarket Get fee rate API

Returns the base fee rate for one Polymarket outcome token. You pass the token ID (asset ID) as token_id.

Use cases

  • Check the fee rate for a token before you build an order for it.
  • Compare the fee rate across several outcome tokens in a trading bot.
  • Include the fee in a cost or profit estimate for a Polymarket trade.

Request

curl -X POST "https://api.sandbase.ai/v1/api/polymarket/fee-rate" \
  -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_idstringNoToken ID (asset ID)

Example response

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

{
  "base_fee": 1000
}

Response fields

FieldMeaning
base_feeThe base fee rate for the token ID you sent. This is the only field in the response.
base_feeA whole number. The sample request returned 1000.
base_feeThe response shows no unit label, so check the Polymarket documentation before you convert it to a percentage.

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 fee rate?

Wyślij żądanie POST do https://api.sandbase.ai/v1/api/polymarket/fee-rate 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 fee rate?

$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 fee rate?

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

Co zwraca API Polymarket Get fee rate?

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 fee rate 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.