Skip to main content
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
    }
  ]
}

Path Parameters

id
string
required

Market id (16 hex chars).

Response

Market

id
string
required

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

Example:

"8679dd8bda43f5c1"

question
string
required
Example:

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

family
enum<string>
required

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

Available options:
A,
B
phase
enum<string>
required
Available options:
open,
closed,
resolving,
disputable,
resolved
status
enum<string>
required
Available options:
open,
resolved,
void
pool_account
string
required

XRPL account holding all stakes; outcomes separated by DestinationTag.

Example:

"rNPA3W2Gj3mMTqt6V5KYc5hD2pszdPsV6S"

fee_rate
number
required

Flat takeout on the gross pool before the split.

Example:

0.03

bet_cutoff
string<date-time>
required
resolution_time
string<date-time>
required
resolution
object
required
total_xrp
number
required
Example:

0

total_drops
string
required

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

Example:

"0"

outcomes
object[]
required