Returns detailed information about requested pool
curl --request GET \
--url https://backend.swap.coffee/v1/yield/pool/{pool_address} \
--header 'X-Api-Key: <api-key>'import requests
url = "https://backend.swap.coffee/v1/yield/pool/{pool_address}"
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://backend.swap.coffee/v1/yield/pool/{pool_address}', 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://backend.swap.coffee/v1/yield/pool/{pool_address}",
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://backend.swap.coffee/v1/yield/pool/{pool_address}"
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://backend.swap.coffee/v1/yield/pool/{pool_address}")
.header("X-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://backend.swap.coffee/v1/yield/pool/{pool_address}")
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{
"pool_statistics": {
"address": "<string>",
"tvl_usd": 123,
"volume_usd": 123,
"fee_usd": 123,
"apr": 123,
"lp_apr": 123,
"boost_apr": 123,
"locked_asset_amount": "<string>"
},
"pool": {
"pool": {
"dex": "stonfi",
"address": "<string>",
"tokens": [
{
"address": {
"blockchain": "ton",
"address": "native"
},
"metadata": {
"name": "ARBUZ",
"symbol": "ARBUZ",
"decimals": 123,
"listed": true,
"image_url": "<string>"
}
}
],
"reserves": [
123
],
"fees": {
"average_gas": 123,
"divider": 123,
"input": 123,
"output": 123,
"first_token": 123,
"second_token": 123
},
"amm_settings": {},
"restrictions": [
{
"min_swap_amount": 123,
"max_swap_amount": 123
}
],
"unavailable_until": 123
},
"boosts": [
{
"pool_address": "<string>",
"reward_token": {
"address": {
"blockchain": "ton",
"address": "native"
},
"metadata": {
"name": "ARBUZ",
"symbol": "ARBUZ",
"decimals": 123,
"listed": true,
"image_url": "<string>"
}
},
"reward_rate_per_second": "<string>",
"finish_seconds_unix": 123,
"rewards_per_day_usd": 123,
"apr": 123,
"boost_factory": "<string>",
"boost_id": 123,
"start_seconds_unix": 123,
"lock_duration_seconds": 123,
"excluded_addresses": [
"<string>"
]
}
],
"total_supply": "<string>"
}
}{
"error": "<string>"
}Yield
Returns detailed information about requested pool
GET
/
v1
/
yield
/
pool
/
{pool_address}
Returns detailed information about requested pool
curl --request GET \
--url https://backend.swap.coffee/v1/yield/pool/{pool_address} \
--header 'X-Api-Key: <api-key>'import requests
url = "https://backend.swap.coffee/v1/yield/pool/{pool_address}"
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://backend.swap.coffee/v1/yield/pool/{pool_address}', 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://backend.swap.coffee/v1/yield/pool/{pool_address}",
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://backend.swap.coffee/v1/yield/pool/{pool_address}"
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://backend.swap.coffee/v1/yield/pool/{pool_address}")
.header("X-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://backend.swap.coffee/v1/yield/pool/{pool_address}")
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{
"pool_statistics": {
"address": "<string>",
"tvl_usd": 123,
"volume_usd": 123,
"fee_usd": 123,
"apr": 123,
"lp_apr": 123,
"boost_apr": 123,
"locked_asset_amount": "<string>"
},
"pool": {
"pool": {
"dex": "stonfi",
"address": "<string>",
"tokens": [
{
"address": {
"blockchain": "ton",
"address": "native"
},
"metadata": {
"name": "ARBUZ",
"symbol": "ARBUZ",
"decimals": 123,
"listed": true,
"image_url": "<string>"
}
}
],
"reserves": [
123
],
"fees": {
"average_gas": 123,
"divider": 123,
"input": 123,
"output": 123,
"first_token": 123,
"second_token": 123
},
"amm_settings": {},
"restrictions": [
{
"min_swap_amount": 123,
"max_swap_amount": 123
}
],
"unavailable_until": 123
},
"boosts": [
{
"pool_address": "<string>",
"reward_token": {
"address": {
"blockchain": "ton",
"address": "native"
},
"metadata": {
"name": "ARBUZ",
"symbol": "ARBUZ",
"decimals": 123,
"listed": true,
"image_url": "<string>"
}
},
"reward_rate_per_second": "<string>",
"finish_seconds_unix": 123,
"rewards_per_day_usd": 123,
"apr": 123,
"boost_factory": "<string>",
"boost_id": 123,
"start_seconds_unix": 123,
"lock_duration_seconds": 123,
"excluded_addresses": [
"<string>"
]
}
],
"total_supply": "<string>"
}
}{
"error": "<string>"
}Authorizations
Path Parameters
Pool address
Returns list of pools which correspond to the given paramsReturns detailed information about user's position in the pool
⌘I