curl --request POST \
--url https://api.breezing.io/v1/reports/token \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"dateFrom": 1,
"dateTo": 1,
"description": "<string>",
"tokens": [
"<string>"
],
"wallets": [
123
],
"includeSlippage": true,
"isPerWallet": true
}
'import requests
url = "https://api.breezing.io/v1/reports/token"
payload = {
"name": "<string>",
"dateFrom": 1,
"dateTo": 1,
"description": "<string>",
"tokens": ["<string>"],
"wallets": [123],
"includeSlippage": True,
"isPerWallet": True
}
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({
name: '<string>',
dateFrom: 1,
dateTo: 1,
description: '<string>',
tokens: ['<string>'],
wallets: [123],
includeSlippage: true,
isPerWallet: true
})
};
fetch('https://api.breezing.io/v1/reports/token', 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.breezing.io/v1/reports/token",
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([
'name' => '<string>',
'dateFrom' => 1,
'dateTo' => 1,
'description' => '<string>',
'tokens' => [
'<string>'
],
'wallets' => [
123
],
'includeSlippage' => true,
'isPerWallet' => true
]),
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.breezing.io/v1/reports/token"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"dateFrom\": 1,\n \"dateTo\": 1,\n \"description\": \"<string>\",\n \"tokens\": [\n \"<string>\"\n ],\n \"wallets\": [\n 123\n ],\n \"includeSlippage\": true,\n \"isPerWallet\": true\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.breezing.io/v1/reports/token")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"dateFrom\": 1,\n \"dateTo\": 1,\n \"description\": \"<string>\",\n \"tokens\": [\n \"<string>\"\n ],\n \"wallets\": [\n 123\n ],\n \"includeSlippage\": true,\n \"isPerWallet\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.breezing.io/v1/reports/token")
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 \"name\": \"<string>\",\n \"dateFrom\": 1,\n \"dateTo\": 1,\n \"description\": \"<string>\",\n \"tokens\": [\n \"<string>\"\n ],\n \"wallets\": [\n 123\n ],\n \"includeSlippage\": true,\n \"isPerWallet\": true\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"reportId": 123,
"taskId": 123
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
}
}Create Token Report API
Generate a Breezing token report with per-token gain/loss, opening and closing balances, and fiat figures for the period, across all chains.
curl --request POST \
--url https://api.breezing.io/v1/reports/token \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"dateFrom": 1,
"dateTo": 1,
"description": "<string>",
"tokens": [
"<string>"
],
"wallets": [
123
],
"includeSlippage": true,
"isPerWallet": true
}
'import requests
url = "https://api.breezing.io/v1/reports/token"
payload = {
"name": "<string>",
"dateFrom": 1,
"dateTo": 1,
"description": "<string>",
"tokens": ["<string>"],
"wallets": [123],
"includeSlippage": True,
"isPerWallet": True
}
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({
name: '<string>',
dateFrom: 1,
dateTo: 1,
description: '<string>',
tokens: ['<string>'],
wallets: [123],
includeSlippage: true,
isPerWallet: true
})
};
fetch('https://api.breezing.io/v1/reports/token', 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.breezing.io/v1/reports/token",
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([
'name' => '<string>',
'dateFrom' => 1,
'dateTo' => 1,
'description' => '<string>',
'tokens' => [
'<string>'
],
'wallets' => [
123
],
'includeSlippage' => true,
'isPerWallet' => true
]),
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.breezing.io/v1/reports/token"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"dateFrom\": 1,\n \"dateTo\": 1,\n \"description\": \"<string>\",\n \"tokens\": [\n \"<string>\"\n ],\n \"wallets\": [\n 123\n ],\n \"includeSlippage\": true,\n \"isPerWallet\": true\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.breezing.io/v1/reports/token")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"dateFrom\": 1,\n \"dateTo\": 1,\n \"description\": \"<string>\",\n \"tokens\": [\n \"<string>\"\n ],\n \"wallets\": [\n 123\n ],\n \"includeSlippage\": true,\n \"isPerWallet\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.breezing.io/v1/reports/token")
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 \"name\": \"<string>\",\n \"dateFrom\": 1,\n \"dateTo\": 1,\n \"description\": \"<string>\",\n \"tokens\": [\n \"<string>\"\n ],\n \"wallets\": [\n 123\n ],\n \"includeSlippage\": true,\n \"isPerWallet\": true\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"reportId": 123,
"taskId": 123
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
}
}Query Parameters
Organization ID. Use GET /v1/companies to discover available org/company pairs.
"1"
Company ID. Use GET /v1/companies to discover available companies and their access levels.
"1"
Body
Report name shown in the reports list.
1 - 200Period start (unix ms).
x > 0Period end (unix ms). Must be >= dateFrom.
x > 0Optional free-text description.
2000Token symbols to include (max 500), e.g. from GET /assets. Omit or pass [] to include ALL of the company's non-spam tokens.
500Wallet IDs to include (from GET /wallets). Omit or pass [] to include ALL of the company's wallets.
500When true, the report adds the slippage fiat amount to closing balances. Ignored (dropped) in per-wallet mode, matching the dashboard.
When true AND more than one wallet is covered, generates one combined report with a per-wallet breakdown (one generation job per wallet). With a single wallet it falls back to a regular report, matching the dashboard.