Get Leaderboard Placement
curl --request GET \
--url https://api.cnt.ekiden.fi/api/v1/user/leaderboard/placement \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.cnt.ekiden.fi/api/v1/user/leaderboard/placement"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.cnt.ekiden.fi/api/v1/user/leaderboard/placement', 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.cnt.ekiden.fi/api/v1/user/leaderboard/placement",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.cnt.ekiden.fi/api/v1/user/leaderboard/placement"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.cnt.ekiden.fi/api/v1/user/leaderboard/placement")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cnt.ekiden.fi/api/v1/user/leaderboard/placement")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"account_value": "<string>",
"place": "<string>",
"pnl": "<string>",
"ranked": true,
"referral_xp": 123,
"roi": "<string>",
"sub_account_address": "<string>",
"total_xp": 123,
"trading_xp": 123,
"volume": "<string>"
}
]
}Leaderboard
Get Leaderboard Placement
Placement(s) for the authenticated user. When sub_account is omitted, returns one entry per user trading subaccount; otherwise exactly one entry. When the user has no trading subaccounts, data is an empty array. If the account is not ranked, ranked is false and place is “0”.
GET
/
api
/
v1
/
user
/
leaderboard
/
placement
Get Leaderboard Placement
curl --request GET \
--url https://api.cnt.ekiden.fi/api/v1/user/leaderboard/placement \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.cnt.ekiden.fi/api/v1/user/leaderboard/placement"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.cnt.ekiden.fi/api/v1/user/leaderboard/placement', 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.cnt.ekiden.fi/api/v1/user/leaderboard/placement",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.cnt.ekiden.fi/api/v1/user/leaderboard/placement"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.cnt.ekiden.fi/api/v1/user/leaderboard/placement")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cnt.ekiden.fi/api/v1/user/leaderboard/placement")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"account_value": "<string>",
"place": "<string>",
"pnl": "<string>",
"ranked": true,
"referral_xp": 123,
"roi": "<string>",
"sub_account_address": "<string>",
"total_xp": 123,
"trading_xp": 123,
"volume": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
When set, return placement for this subaccount only; otherwise one entry per subaccount.
Ranking window. Leaderboard ranking window: today, last 7 days, last 30 days, or all time.
Available options:
today, 7d, 30d, all Response
Placements (ranked false when not on board)
Response for the current user's placement(s) on the leaderboard.
One row per subaccount (or single row when sub_account query is set).
Show child attributes
Show child attributes