Account profile
curl --request GET \
--url https://api.counsel.markets/accounts/{address}/profileimport requests
url = "https://api.counsel.markets/accounts/{address}/profile"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.counsel.markets/accounts/{address}/profile', 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.counsel.markets/accounts/{address}/profile",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.counsel.markets/accounts/{address}/profile"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.counsel.markets/accounts/{address}/profile")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.counsel.markets/accounts/{address}/profile")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"account": "<string>",
"display_name": "<string>",
"rank": 123,
"promo": {
"active": true,
"expiresAt": "<string>",
"label": "<string>"
},
"stats": {
"volume_xrp": 123,
"bets": 123,
"markets": 123,
"won": 123,
"lost": 123,
"void": 123,
"pending": 123,
"win_rate": 123
},
"series": [
{
"t": 123,
"cumulative_xrp": 123
}
],
"positions": [
{
"market_id": "<string>",
"question": "<string>",
"outcome": 123,
"outcome_label": "<string>",
"staked_xrp": 123,
"phase": "<string>",
"pnl_xrp": 123,
"projected_xrp": 123
}
]
}{
"error": "market not found"
}Accounts
Account profile
Aggregate stats, realized and indicative P&L, a cumulative-volume series, leaderboard rank, and on-chain display name for any address.
GET
/
accounts
/
{address}
/
profile
Account profile
curl --request GET \
--url https://api.counsel.markets/accounts/{address}/profileimport requests
url = "https://api.counsel.markets/accounts/{address}/profile"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.counsel.markets/accounts/{address}/profile', 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.counsel.markets/accounts/{address}/profile",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.counsel.markets/accounts/{address}/profile"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.counsel.markets/accounts/{address}/profile")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.counsel.markets/accounts/{address}/profile")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"account": "<string>",
"display_name": "<string>",
"rank": 123,
"promo": {
"active": true,
"expiresAt": "<string>",
"label": "<string>"
},
"stats": {
"volume_xrp": 123,
"bets": 123,
"markets": 123,
"won": 123,
"lost": 123,
"void": 123,
"pending": 123,
"win_rate": 123
},
"series": [
{
"t": 123,
"cumulative_xrp": 123
}
],
"positions": [
{
"market_id": "<string>",
"question": "<string>",
"outcome": 123,
"outcome_label": "<string>",
"staked_xrp": 123,
"phase": "<string>",
"pnl_xrp": 123,
"projected_xrp": 123
}
]
}{
"error": "market not found"
}The full public profile for an address: lifetime stats and win rate, a cumulative-volume time series, positions with realized or indicative P&L, leaderboard rank, the on-chain display name, and any active promo flag.
Path Parameters
XRPL classic address.
Response
Profile
On-chain claimed display name, or null.
Leaderboard rank (1-based), or null if unranked.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
⌘I