Get strategy analytics
curl --request GET \
--url https://api.pods.finance/strategies/analytics \
--header 'x-api-key: <api-key>'import requests
url = "https://api.pods.finance/strategies/analytics"
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/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://api.pods.finance/strategies/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 => [
"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/analytics"
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/analytics")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pods.finance/strategies/analytics")
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{
"data": [
{
"_id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"dateString": "<string>",
"messageContent": {},
"strategy": {
"_id": "<string>",
"assetName": "<string>",
"network": "<string>",
"networkId": "<string>",
"protocol": "<string>",
"underlyingAsset": "<string>",
"underlyingDecimals": 123
},
"tokenPrice": {}
}
],
"pagination": {
"page": 1,
"limit": 10,
"total": 24,
"totalPages": 3,
"hasMore": true
}
}{
"error": {
"code": "QUOTE_NOT_FOUND",
"message": "Quote not found or expired"
}
}{
"error": {
"code": "QUOTE_NOT_FOUND",
"message": "Quote not found or expired"
}
}Strategies
Get strategy analytics
Returns paginated analytics webhook events for the authenticated customer. Requires API key or Bearer token. Pass period explicitly (all-time, 24h, 7d, or 30d). Minimum limit is 10.
GET
/
strategies
/
analytics
Get strategy analytics
curl --request GET \
--url https://api.pods.finance/strategies/analytics \
--header 'x-api-key: <api-key>'import requests
url = "https://api.pods.finance/strategies/analytics"
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/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://api.pods.finance/strategies/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 => [
"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/analytics"
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/analytics")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.pods.finance/strategies/analytics")
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{
"data": [
{
"_id": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"dateString": "<string>",
"messageContent": {},
"strategy": {
"_id": "<string>",
"assetName": "<string>",
"network": "<string>",
"networkId": "<string>",
"protocol": "<string>",
"underlyingAsset": "<string>",
"underlyingDecimals": 123
},
"tokenPrice": {}
}
],
"pagination": {
"page": 1,
"limit": 10,
"total": 24,
"totalPages": 3,
"hasMore": true
}
}{
"error": {
"code": "QUOTE_NOT_FOUND",
"message": "Quote not found or expired"
}
}{
"error": {
"code": "QUOTE_NOT_FOUND",
"message": "Quote not found or expired"
}
}Authorizations
ApiKeyAuthBearerAuth
API key for authentication. Obtain from your Pods dashboard.
Query Parameters
Analytics time window
Available options:
all-time, 24h, 7d, 30d Example:
"all-time"
Page number
Required range:
x > 0Results per page (minimum 10, maximum 1000)
Required range:
10 <= x <= 1000Example:
100
Was this page helpful?
⌘I