Passer au contenu principal
GET
/
markets
/
{id}
Get a market
curl --request GET \
  --url https://api.counsel.markets/markets/{id}
{
  "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
    }
  ]
}
Récupérez un marché à partir de son id déterministe. La structure correspond à une entrée unique de Lister les marchés.

Paramètres de chemin

id
string
requis

Market id (16 hex chars).

Réponse

Market

id
string
requis

Deterministic id: first 16 hex of sha256(question|resolutionTime).

Exemple:

"8679dd8bda43f5c1"

question
string
requis
Exemple:

"Will XRP/USD be ≥ $1.13 by midnight ET?"

family
enum<string>
requis

A = XLS-47 oracle auto-resolved; B = real-world optimistic resolution.

Options disponibles:
A,
B
phase
enum<string>
requis
Options disponibles:
open,
closed,
resolving,
disputable,
resolved
status
enum<string>
requis
Options disponibles:
open,
resolved,
void
pool_account
string
requis

XRPL account holding all stakes; outcomes separated by DestinationTag.

Exemple:

"rNPA3W2Gj3mMTqt6V5KYc5hD2pszdPsV6S"

fee_rate
number
requis

Flat takeout on the gross pool before the split.

Exemple:

0.03

bet_cutoff
string<date-time>
requis
resolution_time
string<date-time>
requis
resolution
object
requis
total_xrp
number
requis
Exemple:

0

total_drops
string
requis

Total drops staked, decimal string. Use for exact arithmetic.

Exemple:

"0"

outcomes
object[]
requis