curl --request POST \
--url https://api.datadash.xyz/api/v1/smart-money/summary \
--header 'Content-Type: application/json' \
--data '
{
"eventId": "27185",
"orderBy": [
{
"direction": "desc",
"field": "yesValue"
}
],
"page": {
"limit": 50,
"offset": 0
},
"walletFilters": [
{
"field": "userId",
"operator": "inCohort",
"value": "0GYJ8T5V2Q1XW"
}
]
}
'import requests
url = "https://api.datadash.xyz/api/v1/smart-money/summary"
payload = {
"eventId": "27185",
"orderBy": [
{
"direction": "desc",
"field": "yesValue"
}
],
"page": {
"limit": 50,
"offset": 0
},
"walletFilters": [
{
"field": "userId",
"operator": "inCohort",
"value": "0GYJ8T5V2Q1XW"
}
]
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
eventId: '27185',
orderBy: [{direction: 'desc', field: 'yesValue'}],
page: {limit: 50, offset: 0},
walletFilters: [{field: 'userId', operator: 'inCohort', value: '0GYJ8T5V2Q1XW'}]
})
};
fetch('https://api.datadash.xyz/api/v1/smart-money/summary', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.datadash.xyz/api/v1/smart-money/summary",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'eventId' => '27185',
'orderBy' => [
[
'direction' => 'desc',
'field' => 'yesValue'
]
],
'page' => [
'limit' => 50,
'offset' => 0
],
'walletFilters' => [
[
'field' => 'userId',
'operator' => 'inCohort',
'value' => '0GYJ8T5V2Q1XW'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.datadash.xyz/api/v1/smart-money/summary"
payload := strings.NewReader("{\n \"eventId\": \"27185\",\n \"orderBy\": [\n {\n \"direction\": \"desc\",\n \"field\": \"yesValue\"\n }\n ],\n \"page\": {\n \"limit\": 50,\n \"offset\": 0\n },\n \"walletFilters\": [\n {\n \"field\": \"userId\",\n \"operator\": \"inCohort\",\n \"value\": \"0GYJ8T5V2Q1XW\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.datadash.xyz/api/v1/smart-money/summary")
.header("Content-Type", "application/json")
.body("{\n \"eventId\": \"27185\",\n \"orderBy\": [\n {\n \"direction\": \"desc\",\n \"field\": \"yesValue\"\n }\n ],\n \"page\": {\n \"limit\": 50,\n \"offset\": 0\n },\n \"walletFilters\": [\n {\n \"field\": \"userId\",\n \"operator\": \"inCohort\",\n \"value\": \"0GYJ8T5V2Q1XW\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.datadash.xyz/api/v1/smart-money/summary")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"eventId\": \"27185\",\n \"orderBy\": [\n {\n \"direction\": \"desc\",\n \"field\": \"yesValue\"\n }\n ],\n \"page\": {\n \"limit\": 50,\n \"offset\": 0\n },\n \"walletFilters\": [\n {\n \"field\": \"userId\",\n \"operator\": \"inCohort\",\n \"value\": \"0GYJ8T5V2Q1XW\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body[
{
"market": {
"active": true,
"archived": true,
"closed": true,
"description": "<string>",
"endDate": "2023-11-07T05:31:56Z",
"eventId": 123,
"eventSlug": "<string>",
"groupItemTitle": "<string>",
"icon": "<string>",
"id": 123,
"image": "<string>",
"liquidity": 123,
"openInterest": 123,
"outcomeNames": [
"<string>"
],
"outcomePrices": [
123
],
"question": "<string>",
"slug": "<string>",
"startDate": "2023-11-07T05:31:56Z",
"volume": 123,
"volume24h": 123
},
"marketPct": 123,
"noPrice": 123,
"noValue": 123,
"noWallets": 123,
"smartPct": 123,
"yesPrice": 123,
"yesValue": 123,
"yesWallets": 123
}
]{
"code": "<string>",
"message": "<string>"
}{
"code": "<string>",
"message": "<string>"
}Smart Money Summary
Smart-money Yes/No summary of an event, one row per open market. Add a Market filter to get the single row a market’s strip renders.
curl --request POST \
--url https://api.datadash.xyz/api/v1/smart-money/summary \
--header 'Content-Type: application/json' \
--data '
{
"eventId": "27185",
"orderBy": [
{
"direction": "desc",
"field": "yesValue"
}
],
"page": {
"limit": 50,
"offset": 0
},
"walletFilters": [
{
"field": "userId",
"operator": "inCohort",
"value": "0GYJ8T5V2Q1XW"
}
]
}
'import requests
url = "https://api.datadash.xyz/api/v1/smart-money/summary"
payload = {
"eventId": "27185",
"orderBy": [
{
"direction": "desc",
"field": "yesValue"
}
],
"page": {
"limit": 50,
"offset": 0
},
"walletFilters": [
{
"field": "userId",
"operator": "inCohort",
"value": "0GYJ8T5V2Q1XW"
}
]
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
eventId: '27185',
orderBy: [{direction: 'desc', field: 'yesValue'}],
page: {limit: 50, offset: 0},
walletFilters: [{field: 'userId', operator: 'inCohort', value: '0GYJ8T5V2Q1XW'}]
})
};
fetch('https://api.datadash.xyz/api/v1/smart-money/summary', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.datadash.xyz/api/v1/smart-money/summary",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'eventId' => '27185',
'orderBy' => [
[
'direction' => 'desc',
'field' => 'yesValue'
]
],
'page' => [
'limit' => 50,
'offset' => 0
],
'walletFilters' => [
[
'field' => 'userId',
'operator' => 'inCohort',
'value' => '0GYJ8T5V2Q1XW'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.datadash.xyz/api/v1/smart-money/summary"
payload := strings.NewReader("{\n \"eventId\": \"27185\",\n \"orderBy\": [\n {\n \"direction\": \"desc\",\n \"field\": \"yesValue\"\n }\n ],\n \"page\": {\n \"limit\": 50,\n \"offset\": 0\n },\n \"walletFilters\": [\n {\n \"field\": \"userId\",\n \"operator\": \"inCohort\",\n \"value\": \"0GYJ8T5V2Q1XW\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.datadash.xyz/api/v1/smart-money/summary")
.header("Content-Type", "application/json")
.body("{\n \"eventId\": \"27185\",\n \"orderBy\": [\n {\n \"direction\": \"desc\",\n \"field\": \"yesValue\"\n }\n ],\n \"page\": {\n \"limit\": 50,\n \"offset\": 0\n },\n \"walletFilters\": [\n {\n \"field\": \"userId\",\n \"operator\": \"inCohort\",\n \"value\": \"0GYJ8T5V2Q1XW\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.datadash.xyz/api/v1/smart-money/summary")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"eventId\": \"27185\",\n \"orderBy\": [\n {\n \"direction\": \"desc\",\n \"field\": \"yesValue\"\n }\n ],\n \"page\": {\n \"limit\": 50,\n \"offset\": 0\n },\n \"walletFilters\": [\n {\n \"field\": \"userId\",\n \"operator\": \"inCohort\",\n \"value\": \"0GYJ8T5V2Q1XW\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body[
{
"market": {
"active": true,
"archived": true,
"closed": true,
"description": "<string>",
"endDate": "2023-11-07T05:31:56Z",
"eventId": 123,
"eventSlug": "<string>",
"groupItemTitle": "<string>",
"icon": "<string>",
"id": 123,
"image": "<string>",
"liquidity": 123,
"openInterest": 123,
"outcomeNames": [
"<string>"
],
"outcomePrices": [
123
],
"question": "<string>",
"slug": "<string>",
"startDate": "2023-11-07T05:31:56Z",
"volume": 123,
"volume24h": 123
},
"marketPct": 123,
"noPrice": 123,
"noValue": 123,
"noWallets": 123,
"smartPct": 123,
"yesPrice": 123,
"yesValue": 123,
"yesWallets": 123
}
]{
"code": "<string>",
"message": "<string>"
}{
"code": "<string>",
"message": "<string>"
}Body
Query argument $1, bound as a query parameter and cast inside the query.
Show child attributes
Show child attributes
Filters to apply, combined with AND. Use a group for OR.
1A single condition, or a group combining conditions with AND/OR.
- ID
- Group
Show child attributes
Show child attributes
Sort keys in priority order; the first is the primary sort. Defaults to the table's configured ranking when omitted.
Show child attributes
Show child attributes
Filters to apply, combined with AND. Use a group for OR.
1inCohort/notInCohort take cohort ids instead of addresses.
- Wallet address
- User Profile Lookup
- User Tag Profile Lookup
- Group
Show child attributes
Show child attributes
Response
List of Smart Money Summary rows
Resolved Market row.
Show child attributes
Show child attributes
The market's normalized probability for this outcome — its live Yes price over the sum of the event's Yes prices on a neg-risk event, the raw live Yes price on a binary one; the bar's marker
Average at-risk entry price of the No side in familiar No-price units — field buy cost divided by the synthetic NO-equivalent shares (field value at the complement price) on a neg-risk event, raw No legs' cost over shares otherwise (the strip's red avg). NULL when the side holds no shares.
Current USD value of the No side — the cohort's true bets on every other outcome of a neg-risk event at live prices, the raw No legs' value otherwise
Number of wallets on the No side — at-risk money on the event's other outcomes (counted from the same per-wallet arrays as the dollars) on a neg-risk event, distinct holders of No shares otherwise
The bar percentage — the cohort's Yes value as a share of its total value on the market's two sides (the No side being the rest of the field on a neg-risk event); compare against Market Odds (the marker)
Average at-risk entry price of the Yes side — buy cost divided by shares (canonical on a neg-risk event, share-weighted raw legs otherwise), not the live price (the strip's green avg). NULL when the side holds no shares.
Current USD value of the Yes side still held on the market — canonical true-bet shares (e') at the live Yes price on a neg-risk event, the raw Yes legs' value otherwise
Number of wallets on the Yes side — canonical bet carries at-risk cost on this outcome (after netting, conversion, and the floor skim) on a neg-risk event, distinct holders of Yes shares otherwise