Get bucketed cash-flow series
curl --request GET \
--url https://api.range.org/v2/treasury/cash-flow \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.range.org/v2/treasury/cash-flow"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://api.range.org/v2/treasury/cash-flow', 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.range.org/v2/treasury/cash-flow",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-KEY: <api-key>"
],
]);
$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.range.org/v2/treasury/cash-flow"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-KEY", "<api-key>")
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.range.org/v2/treasury/cash-flow")
.header("X-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.range.org/v2/treasury/cash-flow")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"period": {
"start": "2026-08-01T00:00:00.000Z",
"end": "2026-09-01T00:00:00.000Z"
},
"bucket": "day",
"items": [
{
"leg_count": 4,
"unpriced_leg_count": 0,
"spot_priced_leg_count": 0,
"inflow_usd": "1250.75",
"outflow_usd": "900.00",
"net_usd": "350.75",
"transfer_count": 4,
"settled": true,
"period_start": "2026-08-15T00:00:00.000Z",
"period_end": "2026-08-16T00:00:00.000Z"
}
],
"totals": {
"leg_count": 4,
"unpriced_leg_count": 0,
"spot_priced_leg_count": 0,
"inflow_usd": "1250.75",
"outflow_usd": "900.00",
"net_usd": "350.75",
"transfer_count": 4,
"settled": true
},
"data_availability": {
"flows": "available",
"notes": [
"Trades are excluded from cash flow; only TRANSFER events are counted.",
"USD for a leg without a provider-supplied price is valued at current spot when available; a leg refused the event-level fallback because another leg on the same event is already priced is valued at zero instead."
]
}
}Treasury
Get treasury cash-flow buckets
Return cash-flow buckets, USD inflows, outflows, net amounts, totals, and data availability for a time window.
GET
/
v2
/
treasury
/
cash-flow
Get bucketed cash-flow series
curl --request GET \
--url https://api.range.org/v2/treasury/cash-flow \
--header 'X-API-KEY: <api-key>'import requests
url = "https://api.range.org/v2/treasury/cash-flow"
headers = {"X-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-KEY': '<api-key>'}};
fetch('https://api.range.org/v2/treasury/cash-flow', 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.range.org/v2/treasury/cash-flow",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-KEY: <api-key>"
],
]);
$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.range.org/v2/treasury/cash-flow"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-KEY", "<api-key>")
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.range.org/v2/treasury/cash-flow")
.header("X-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.range.org/v2/treasury/cash-flow")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"period": {
"start": "2026-08-01T00:00:00.000Z",
"end": "2026-09-01T00:00:00.000Z"
},
"bucket": "day",
"items": [
{
"leg_count": 4,
"unpriced_leg_count": 0,
"spot_priced_leg_count": 0,
"inflow_usd": "1250.75",
"outflow_usd": "900.00",
"net_usd": "350.75",
"transfer_count": 4,
"settled": true,
"period_start": "2026-08-15T00:00:00.000Z",
"period_end": "2026-08-16T00:00:00.000Z"
}
],
"totals": {
"leg_count": 4,
"unpriced_leg_count": 0,
"spot_priced_leg_count": 0,
"inflow_usd": "1250.75",
"outflow_usd": "900.00",
"net_usd": "350.75",
"transfer_count": 4,
"settled": true
},
"data_availability": {
"flows": "available",
"notes": [
"Trades are excluded from cash flow; only TRANSFER events are counted.",
"USD for a leg without a provider-supplied price is valued at current spot when available; a leg refused the event-level fallback because another leg on the same event is already priced is valued at zero instead."
]
}
}Authorizations
AuthorizationBearer
Query Parameters
Available options:
utila, kraken, binance, okx, bybit, bitget, gate, kucoin, plaid, squads, altitude, coinbase, realms, wise, safe, hyperliquid, cubist, privy, dfns, anchorage, revolut_business, turnkey, fordefi, coins_ph, fireblocks, pave_bank, meow, copper, custom Example:
"utila"
Response
200 - application/json
Last modified on November 10, 2026
Was this page helpful?