Skip to main content
GET
/
liquidity
Get Latest
curl --request GET \
  --url https://rwapulse.xyz/api/v0/liquidity \
  --header 'Authorization: Bearer <token>'
import requests

url = "https://rwapulse.xyz/api/v0/liquidity"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://rwapulse.xyz/api/v0/liquidity', 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.xyz/api/v0/liquidity",
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.xyz/api/v0/liquidity"

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.xyz/api/v0/liquidity")
.header("Authorization", "Bearer <token>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://rwapulse.xyz/api/v0/liquidity")

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
Returns current liquidity for all assets or filtered by type.
curl "https://rwapulse.xyz/api/v0/liquidity?assetType=stock" \
  -H "Authorization: Bearer rwa_your_key"

Parameters

NameRequiredDefaultDescription
assetTypeNoallstock or commodity

Response

{
  "date": "2024-01-15",
  "assetType": "stock",
  "count": 25,
  "data": [
    {
      "stock_symbol": "TSLA",
      "token_symbol": "TSLAx",
      "issuer": "xStocks",
      "network": "solana",
      "dex": "Raydium",
      "pair_name": "TSLA/USDC",
      "tvl_usd": "125000.50",
      "volume_24h_usd": "8500.00",
      "price_usd": "248.35",
      "snapshot_date": "2024-01-15"
    }
  ]
}

Common Mistake

Forgetting assetType returns both stocks and commodities. Filter if you need one type.