Get strategy details
curl --request GET \
--url https://api.pods.finance/strategies/{id} \
--header 'x-api-key: <api-key>'import requests
url = "https://api.pods.finance/strategies/{id}"
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.pods.finance/strategies/{id}', 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.pods.finance/strategies/{id}",
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.pods.finance/strategies/{id}"
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.pods.finance/strategies/{id}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pods.finance/strategies/{id}")
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{
"historic": [
null
],
"spotPosition": {
"apy": 0.0285,
"avgApy": 0.0406,
"grossAPY": 0.0285,
"inceptionApy": 0.1468,
"netAPY": 0.0285
},
"strategy": {
"id": "Aave-USDC-polygon",
"slug": "Aave-USDC-polygon",
"asset": "<string>",
"assetDecimals": 6,
"assetName": "USDC",
"availableActions": [
"lend",
"withdraw"
],
"implementationSelector": "AavePolygon",
"network": "polygon",
"networkId": "137",
"protocol": "Aave",
"underlyingAsset": "<string>",
"underlyingDecimals": 123,
"isDefault": true,
"paused": true,
"startDate": "<string>",
"fee": "0",
"performanceFeeBps": "0",
"metadata": {},
"marketData": {
"lastRefreshedAt": "2023-11-07T05:31:56Z",
"samples": [
{
"at": "2023-11-07T05:31:56Z",
"tvl": "<string>",
"tvlUsd": 123
}
],
"tvl": "<string>",
"tvlChange24h": 123,
"tvlUsd": 123,
"usdRate": 123
},
"protocolInfo": {
"name": "Aave",
"logo": "https://icons.llamao.fi/icons/protocols/aave"
},
"chain": {
"name": "polygon",
"id": 137,
"explorer": {
"name": "Polygonscan",
"url": "https://polygonscan.com"
},
"logo": "<string>"
},
"assetToken": {
"name": "USD Coin",
"address": "0x3c499c542cef5e3811e1192ce70d8cc03d5c3359",
"symbol": "USDC",
"decimals": 6,
"logo": "<string>"
},
"underlyingToken": {
"name": "USD Coin",
"address": "0x3c499c542cef5e3811e1192ce70d8cc03d5c3359",
"symbol": "USDC",
"decimals": 6,
"logo": "<string>"
},
"logourl": "<string>",
"category": [
"<string>"
]
}
}{
"error": {
"code": "QUOTE_NOT_FOUND",
"message": "Quote not found or expired"
}
}Strategies
Get strategy details
Retrieve detailed information about a specific strategy
GET
/
strategies
/
{id}
Get strategy details
curl --request GET \
--url https://api.pods.finance/strategies/{id} \
--header 'x-api-key: <api-key>'import requests
url = "https://api.pods.finance/strategies/{id}"
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.pods.finance/strategies/{id}', 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.pods.finance/strategies/{id}",
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.pods.finance/strategies/{id}"
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.pods.finance/strategies/{id}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pods.finance/strategies/{id}")
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{
"historic": [
null
],
"spotPosition": {
"apy": 0.0285,
"avgApy": 0.0406,
"grossAPY": 0.0285,
"inceptionApy": 0.1468,
"netAPY": 0.0285
},
"strategy": {
"id": "Aave-USDC-polygon",
"slug": "Aave-USDC-polygon",
"asset": "<string>",
"assetDecimals": 6,
"assetName": "USDC",
"availableActions": [
"lend",
"withdraw"
],
"implementationSelector": "AavePolygon",
"network": "polygon",
"networkId": "137",
"protocol": "Aave",
"underlyingAsset": "<string>",
"underlyingDecimals": 123,
"isDefault": true,
"paused": true,
"startDate": "<string>",
"fee": "0",
"performanceFeeBps": "0",
"metadata": {},
"marketData": {
"lastRefreshedAt": "2023-11-07T05:31:56Z",
"samples": [
{
"at": "2023-11-07T05:31:56Z",
"tvl": "<string>",
"tvlUsd": 123
}
],
"tvl": "<string>",
"tvlChange24h": 123,
"tvlUsd": 123,
"usdRate": 123
},
"protocolInfo": {
"name": "Aave",
"logo": "https://icons.llamao.fi/icons/protocols/aave"
},
"chain": {
"name": "polygon",
"id": 137,
"explorer": {
"name": "Polygonscan",
"url": "https://polygonscan.com"
},
"logo": "<string>"
},
"assetToken": {
"name": "USD Coin",
"address": "0x3c499c542cef5e3811e1192ce70d8cc03d5c3359",
"symbol": "USDC",
"decimals": 6,
"logo": "<string>"
},
"underlyingToken": {
"name": "USD Coin",
"address": "0x3c499c542cef5e3811e1192ce70d8cc03d5c3359",
"symbol": "USDC",
"decimals": 6,
"logo": "<string>"
},
"logourl": "<string>",
"category": [
"<string>"
]
}
}{
"error": {
"code": "QUOTE_NOT_FOUND",
"message": "Quote not found or expired"
}
}Authorizations
API key for authentication. Obtain from your Pods dashboard.
Path Parameters
Strategy ID or slug
Response
Strategy details retrieved
Strategy detail returned by GET /strategies/{id}
Was this page helpful?
⌘I