Get Analytics
curl --request GET \
--url https://rwapulse.fi/api/v0/liquidity/analytics \
--header 'Authorization: Bearer <token>'import requests
url = "https://rwapulse.fi/api/v0/liquidity/analytics"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://rwapulse.fi/api/v0/liquidity/analytics', 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://rwapulse.fi/api/v0/liquidity/analytics",
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://rwapulse.fi/api/v0/liquidity/analytics"
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://rwapulse.fi/api/v0/liquidity/analytics")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://rwapulse.fi/api/v0/liquidity/analytics")
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_bodyLiquidity
Get Analytics
Get time-series analytics
GET
/
liquidity
/
analytics
Get Analytics
curl --request GET \
--url https://rwapulse.fi/api/v0/liquidity/analytics \
--header 'Authorization: Bearer <token>'import requests
url = "https://rwapulse.fi/api/v0/liquidity/analytics"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://rwapulse.fi/api/v0/liquidity/analytics', 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://rwapulse.fi/api/v0/liquidity/analytics",
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://rwapulse.fi/api/v0/liquidity/analytics"
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://rwapulse.fi/api/v0/liquidity/analytics")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://rwapulse.fi/api/v0/liquidity/analytics")
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_bodyReturns TVL and volume time-series, grouped by total, stock, or issuer.
curl "https://rwapulse.xyz/api/v0/liquidity/analytics?days=30&groupBy=total" \
-H "Authorization: Bearer rwa_your_key"
Parameters
| Name | Required | Default | Description |
|---|---|---|---|
groupBy | No | total | total, stock, or issuer |
days | No | 90 | Days of history (clamped to 365) |
assetType | No | stock | stock or commodity |
symbol | No | - | Filter by symbol (when groupBy=stock) |
issuer | No | - | Filter by issuer (when groupBy=issuer) |
Response (groupBy=total)
{
"groupBy": "total",
"days": 30,
"series": [
{
"date": "2024-01-15",
"tvl": 150000,
"volume": 12000,
"poolCount": 25
}
]
}
Response (groupBy=stock)
{
"groupBy": "stock",
"days": 30,
"data": [
{
"symbol": "TSLA",
"series": [
{ "date": "2024-01-15", "tvl": 50000, "volume": 4000 }
]
}
]
}
Common Mistake
days must be an integer >= 1. groupBy=stock without symbol returns all stocks.⌘I