Passer au contenu principal
GET
/
markets
List markets
curl --request GET \
  --url https://api.counsel.markets/markets
{
  "markets": [
    {
      "id": "8679dd8bda43f5c1",
      "question": "Will XRP/USD be ≥ $1.13 by midnight ET?",
      "pool_account": "rNPA3W2Gj3mMTqt6V5KYc5hD2pszdPsV6S",
      "fee_rate": 0.03,
      "bet_cutoff": "2023-11-07T05:31:56Z",
      "resolution_time": "2023-11-07T05:31:56Z",
      "resolution": {
        "summary": "XLS-47 XRP/USD >= 1.13"
      },
      "total_xrp": 0,
      "total_drops": "0",
      "outcomes": [
        {
          "index": 0,
          "label": "Yes",
          "destination_tag": 0,
          "pool_drops": "0",
          "pool_xrp": 0,
          "bets": 0,
          "implied_prob": 0.5,
          "payout_per_unit": 1.94
        }
      ]
    }
  ],
  "source_tag": 2606220005,
  "generated_at": "2023-11-07T05:31:56Z"
}
Renvoie chaque marché public avec les soldes de pool en temps réel lus depuis l’indexeur XRPL. Chaque issue porte sa mise, sa probabilité implicite et son payout indicatif par unité. Les cotes sont indicatives jusqu’à bet_cutoff ; le payout final est déterminé par la composition du pool à la clôture. Aucun paramètre, aucune authentification.

Réponse

200 - application/json

Live markets snapshot

markets
object[]
requis
source_tag
integer | null
requis

counsel's XRPL SourceTag, carried on every attributed transaction.

Exemple:

2606220005

generated_at
string<date-time>
requis

ISO 8601 timestamp of the indexer snapshot.