Notus API
Liquidity pools

Get Liquidity Pool

Get liquidity pool by pool ID with aggregated stats

GET
/api/v1/liquidity/pools/{id}
x-api-key<token>

In: header

Path Parameters

idstring

The unique identifier of the pool

Length1 <= length

Query Parameters

rangeInDays?integer

Number of days to aggregate pool statistics for. Must be between 1 and 365 days. Default is 30 days.

Default30
Range1 <= value <= 365

Response Body

curl -X GET "https://api.notus.team/api/v1/liquidity/pools/string?rangeInDays=30"
fetch("https://api.notus.team/api/v1/liquidity/pools/string?rangeInDays=30")
package main

import (
  "fmt"
  "net/http"
  "io/ioutil"
)

func main() {
  url := "https://api.notus.team/api/v1/liquidity/pools/string?rangeInDays=30"

  req, _ := http.NewRequest("GET", url, nil)
  
  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  body, _ := ioutil.ReadAll(res.Body)

  fmt.Println(res)
  fmt.Println(string(body))
}
import requests

url = "https://api.notus.team/api/v1/liquidity/pools/string?rangeInDays=30"

response = requests.request("GET", url)

print(response.text)
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.http.HttpResponse.BodyHandlers;
import java.time.Duration;

HttpClient client = HttpClient.newBuilder()
  .connectTimeout(Duration.ofSeconds(10))
  .build();

HttpRequest.Builder requestBuilder = HttpRequest.newBuilder()
  .uri(URI.create("https://api.notus.team/api/v1/liquidity/pools/string?rangeInDays=30"))
  .GET()
  .build();

try {
  HttpResponse<String> response = client.send(requestBuilder.build(), BodyHandlers.ofString());
  System.out.println("Status code: " + response.statusCode());
  System.out.println("Response body: " + response.body());
} catch (Exception e) {
  e.printStackTrace();
}
using System;
using System.Net.Http;
using System.Text;

var client = new HttpClient();
var response = await client.GetAsync("https://api.notus.team/api/v1/liquidity/pools/string?rangeInDays=30");
var responseBody = await response.Content.ReadAsStringAsync();
{
  "pool": {
    "provider": {
      "name": "XY",
      "logoUrl": "https://assets.notus.team/Lifi.png",
      "explorerURL": "https://explorer.li.fi"
    },
    "address": "0x88e6a0c2ddd26feeb64f039a2c41296fcb3f5640",
    "chain": {
      "id": 137,
      "name": "POLYGON",
      "logo": "https://logopolygon.com"
    },
    "fee": 0.05,
    "totalValueLockedUSD": "10000.453",
    "tokens": [
      {
        "name": "Wrapped Bitcoin",
        "symbol": "WBTC",
        "decimals": 18,
        "address": "0x2f2a2543b76a4166549f7aab2e75bef0aefc5b0f",
        "logoURL": "https://assets.notus.team/wbtc.png"
      }
    ],
    "stats": {
      "rangeInDays": 30,
      "feesInUSD": "1500.75",
      "volumeInUSD": "50000.25",
      "transactionsCount": 1250
    }
  }
}
{
  "statusCode": 403,
  "id": "UNAVAILABLE_COMPUTE_UNITS",
  "message": "The project doesn't have enough compute units to perform this action. Please upgrade your plan."
}