/zerion/wallets/positions
curl --request POST \
--url https://api.anysite.io/api/zerion/wallets/positions \
--header 'Content-Type: application/json' \
--header 'access-token: <api-key>' \
--data '
{
"address": "<string>",
"count": 2,
"timeout": 300,
"currency": "usd",
"chains": []
}
'import requests
url = "https://api.anysite.io/api/zerion/wallets/positions"
payload = {
"address": "<string>",
"count": 2,
"timeout": 300,
"currency": "usd",
"chains": []
}
headers = {
"access-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'access-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({address: '<string>', count: 2, timeout: 300, currency: 'usd', chains: []})
};
fetch('https://api.anysite.io/api/zerion/wallets/positions', 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.anysite.io/api/zerion/wallets/positions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'address' => '<string>',
'count' => 2,
'timeout' => 300,
'currency' => 'usd',
'chains' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"access-token: <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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.anysite.io/api/zerion/wallets/positions"
payload := strings.NewReader("{\n \"address\": \"<string>\",\n \"count\": 2,\n \"timeout\": 300,\n \"currency\": \"usd\",\n \"chains\": []\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("access-token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.anysite.io/api/zerion/wallets/positions")
.header("access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"address\": \"<string>\",\n \"count\": 2,\n \"timeout\": 300,\n \"currency\": \"usd\",\n \"chains\": []\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.anysite.io/api/zerion/wallets/positions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["access-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"address\": \"<string>\",\n \"count\": 2,\n \"timeout\": 300,\n \"currency\": \"usd\",\n \"chains\": []\n}"
response = http.request(request)
puts response.read_body[
{
"id": "<string>",
"@type": "ZerionPosition",
"name": "<string>",
"type": "<string>",
"protocol": "<string>",
"value": 123,
"amount": 123,
"is_displayable": true,
"is_included_in_chart": true,
"updated_at": "<string>",
"chain": {
"id": "<string>",
"@type": "ZerionChainRef",
"name": "<string>",
"image": "<string>",
"is_testnet": true
},
"asset": {
"@type": "ZerionAsset",
"id": "<string>",
"name": "<string>",
"symbol": "<string>",
"image": "<string>",
"price": 123,
"price_change_24h": 123,
"is_verified": true,
"contracts": {}
},
"dapp": {
"@type": "ZerionDapp",
"id": "<string>",
"name": "<string>",
"image": "<string>",
"url": "<string>"
}
}
]{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}/zerion
/zerion/wallets/positions
Get a wallet’s token and DeFi positions across all blockchain networks
Price: 20 credits
⚠️ Common errors: 412: Wallet or ENS name not found
POST
/
api
/
zerion
/
wallets
/
positions
/zerion/wallets/positions
curl --request POST \
--url https://api.anysite.io/api/zerion/wallets/positions \
--header 'Content-Type: application/json' \
--header 'access-token: <api-key>' \
--data '
{
"address": "<string>",
"count": 2,
"timeout": 300,
"currency": "usd",
"chains": []
}
'import requests
url = "https://api.anysite.io/api/zerion/wallets/positions"
payload = {
"address": "<string>",
"count": 2,
"timeout": 300,
"currency": "usd",
"chains": []
}
headers = {
"access-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'access-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({address: '<string>', count: 2, timeout: 300, currency: 'usd', chains: []})
};
fetch('https://api.anysite.io/api/zerion/wallets/positions', 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.anysite.io/api/zerion/wallets/positions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'address' => '<string>',
'count' => 2,
'timeout' => 300,
'currency' => 'usd',
'chains' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"access-token: <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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.anysite.io/api/zerion/wallets/positions"
payload := strings.NewReader("{\n \"address\": \"<string>\",\n \"count\": 2,\n \"timeout\": 300,\n \"currency\": \"usd\",\n \"chains\": []\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("access-token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.anysite.io/api/zerion/wallets/positions")
.header("access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"address\": \"<string>\",\n \"count\": 2,\n \"timeout\": 300,\n \"currency\": \"usd\",\n \"chains\": []\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.anysite.io/api/zerion/wallets/positions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["access-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"address\": \"<string>\",\n \"count\": 2,\n \"timeout\": 300,\n \"currency\": \"usd\",\n \"chains\": []\n}"
response = http.request(request)
puts response.read_body[
{
"id": "<string>",
"@type": "ZerionPosition",
"name": "<string>",
"type": "<string>",
"protocol": "<string>",
"value": 123,
"amount": 123,
"is_displayable": true,
"is_included_in_chart": true,
"updated_at": "<string>",
"chain": {
"id": "<string>",
"@type": "ZerionChainRef",
"name": "<string>",
"image": "<string>",
"is_testnet": true
},
"asset": {
"@type": "ZerionAsset",
"id": "<string>",
"name": "<string>",
"symbol": "<string>",
"image": "<string>",
"price": 123,
"price_change_24h": 123,
"is_verified": true,
"contracts": {}
},
"dapp": {
"@type": "ZerionDapp",
"id": "<string>",
"name": "<string>",
"image": "<string>",
"url": "<string>"
}
}
]{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authorizations
API token from the dashboard
Headers
Body
application/json
Required range:
x >= 1Required range:
20 <= x <= 1500Available options:
usd, eur, gbp, jpy, aud, cad, chf, cny, inr, krw, rub, brl, try, btc, eth Available options:
ethereum, tron, binance-smart-chain, base, arbitrum, plasma, ink, avalanche, polygon, monad, optimism, mantle, katana, berachain, xdai, megaeth, sei, okbchain, linea, fraxtal, blast, unichain, sonic, celo, zksync-era, scroll, abstract, ronin, bob, xinfin-xdc, soneium, fantom, cronos-zkevm, manta-pacific, aurora, taiko, metis-andromeda, ape, mode, opbnb, somnia, lisk, tomochain, polynomial, polygon-zkevm, 0g, lens, gravity-alpha, zora, swellchain, redstone, astar-zkevm, rari, degen, cyber, hyperevm, solana, tempo, wonder, world, zero, zkcandy, zklink-nova, re-al Response
Successful Response
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes