GET /traders/{address}/tax-report: Per-Year Tax Summary
curl --request GET \
--url https://partner-api.bravadotrade.com/trader-analytics/traders/{address}/tax-reportimport requests
url = "https://partner-api.bravadotrade.com/trader-analytics/traders/{address}/tax-report"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://partner-api.bravadotrade.com/trader-analytics/traders/{address}/tax-report', 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://partner-api.bravadotrade.com/trader-analytics/traders/{address}/tax-report",
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://partner-api.bravadotrade.com/trader-analytics/traders/{address}/tax-report"
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://partner-api.bravadotrade.com/trader-analytics/traders/{address}/tax-report")
.asString();require 'uri'
require 'net/http'
url = URI("https://partner-api.bravadotrade.com/trader-analytics/traders/{address}/tax-report")
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{
"short_term": {
"count": 123,
"proceeds_uusdc": "<string>",
"cost_uusdc": "<string>",
"gain_loss_uusdc": "<string>"
},
"long_term": {
"count": 123,
"proceeds_uusdc": "<string>",
"cost_uusdc": "<string>",
"gain_loss_uusdc": "<string>"
}
}Trader Data API
GET /traders/{address}/tax-report: Per-Year Tax Summary
Per-calendar-year tax summary with short-term and long-term capital gains and income breakdown.
GET
/
trader-analytics
/
traders
/
{address}
/
tax-report
GET /traders/{address}/tax-report: Per-Year Tax Summary
curl --request GET \
--url https://partner-api.bravadotrade.com/trader-analytics/traders/{address}/tax-reportimport requests
url = "https://partner-api.bravadotrade.com/trader-analytics/traders/{address}/tax-report"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://partner-api.bravadotrade.com/trader-analytics/traders/{address}/tax-report', 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://partner-api.bravadotrade.com/trader-analytics/traders/{address}/tax-report",
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://partner-api.bravadotrade.com/trader-analytics/traders/{address}/tax-report"
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://partner-api.bravadotrade.com/trader-analytics/traders/{address}/tax-report")
.asString();require 'uri'
require 'net/http'
url = URI("https://partner-api.bravadotrade.com/trader-analytics/traders/{address}/tax-report")
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{
"short_term": {
"count": 123,
"proceeds_uusdc": "<string>",
"cost_uusdc": "<string>",
"gain_loss_uusdc": "<string>"
},
"long_term": {
"count": 123,
"proceeds_uusdc": "<string>",
"cost_uusdc": "<string>",
"gain_loss_uusdc": "<string>"
}
}Sign each request with a fresh HMAC signature. The cURL and HTTP header values below are placeholders, not reusable credentials. For runnable signing code, use request signing examples. Python examples use the signed session from that page; Node.js examples use its
bravadoFetch helper.GET https://partner-api.bravadotrade.com/trader-analytics/traders/{address}/tax-report
Path Parameters
Query Parameters
Response
An array of per-year summary objects (or a single object whenyear is specified).
object
object
Example
curl -G https://partner-api.bravadotrade.com/trader-analytics/traders/0xabc.../tax-report \
-H "X-BRAVADO-API-KEY: $BRAVADO_API_KEY" \
-H "X-BRAVADO-TIMESTAMP: <unix-ms>" \
-H "X-BRAVADO-SIGNATURE: <signature-for-this-request>" \
-d year=2024
{
"year": 2024,
"short_term": { "count": 118, "gain_loss_uusdc": "13300000000" },
"long_term": { "count": 14, "gain_loss_uusdc": "2600000000" },
"fees_uusdc": "3200000000",
"net_taxable_uusdc": "15900000000"
}