curl --request GET \
--url https://{host}/v1/positions \
--header 'Authorization: Bearer <token>'import requests
url = "https://{host}/v1/positions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{host}/v1/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://{host}/v1/positions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://{host}/v1/positions"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{host}/v1/positions")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{host}/v1/positions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"asOf": 123,
"counts": {
"spot": {
"closed": 1,
"open": 1
}
},
"hasMore": true,
"positions": [
{
"avgCost": {
"native": "123.456789",
"usd": "123.456789"
},
"buyCount": 1,
"chain": "solana",
"fees": {
"native": "123.456789",
"usd": "123.456789"
},
"funding": {
"status": "unresolved",
"address": "<string>",
"amount": "123.456789",
"asset": "<string>",
"sourceKind": "cex",
"sourceLabel": "<string>",
"symbol": "<string>",
"timestamp": 123,
"tx": "<string>"
},
"holdings": "123.456789",
"holdingsPctSupply": "123.456789",
"invested": {
"native": "123.456789",
"usd": "123.456789"
},
"isStablecoin": true,
"isTransfer": true,
"lifetime": {
"buyCount": 1,
"cycleCount": 1,
"fees": {
"native": "123.456789",
"usd": "123.456789"
},
"invested": {
"native": "123.456789",
"usd": "123.456789"
},
"realizedPnl": {
"native": "123.456789",
"usd": "123.456789"
},
"received": {
"native": "123.456789",
"usd": "123.456789"
},
"sellCount": 1,
"tokensBought": "123.456789",
"tokensSold": "123.456789",
"winningCycleCount": 1
},
"openedAt": 123,
"product": "spot",
"realizedPnl": {
"native": "123.456789",
"usd": "123.456789"
},
"received": {
"native": "123.456789",
"usd": "123.456789"
},
"sellCount": 1,
"status": "open",
"token": {
"address": "<string>",
"chain": "solana",
"decimals": 1,
"image": "<string>",
"marketCap": {
"native": "123.456789",
"usd": "123.456789"
},
"name": "<string>",
"price": {
"native": "123.456789",
"usd": "123.456789"
},
"symbol": "<string>"
},
"tokensBought": "123.456789",
"tokensSold": "123.456789",
"updatedAt": 123,
"version": 123,
"walletAddress": "<string>",
"avgEntryMarketCap": {
"native": "123.456789",
"usd": "123.456789"
},
"avgExitMarketCap": {
"native": "123.456789",
"usd": "123.456789"
},
"closedAt": 123,
"identities": [
{
"source": "codex",
"avatar": "<string>",
"displayName": "<string>",
"farcaster": "<string>",
"handle": "<string>",
"telegram": "<string>",
"twitter": "<string>"
}
],
"pnlPct": "123.456789",
"totalPnl": {
"native": "123.456789",
"usd": "123.456789"
},
"unrealizedPnl": {
"native": "123.456789",
"usd": "123.456789"
},
"value": {
"native": "123.456789",
"usd": "123.456789"
}
}
],
"nextCursor": "<string>"
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": "<unknown>"
}
}One page of the named wallets' spot positions.
curl --request GET \
--url https://{host}/v1/positions \
--header 'Authorization: Bearer <token>'import requests
url = "https://{host}/v1/positions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{host}/v1/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://{host}/v1/positions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://{host}/v1/positions"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{host}/v1/positions")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{host}/v1/positions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"asOf": 123,
"counts": {
"spot": {
"closed": 1,
"open": 1
}
},
"hasMore": true,
"positions": [
{
"avgCost": {
"native": "123.456789",
"usd": "123.456789"
},
"buyCount": 1,
"chain": "solana",
"fees": {
"native": "123.456789",
"usd": "123.456789"
},
"funding": {
"status": "unresolved",
"address": "<string>",
"amount": "123.456789",
"asset": "<string>",
"sourceKind": "cex",
"sourceLabel": "<string>",
"symbol": "<string>",
"timestamp": 123,
"tx": "<string>"
},
"holdings": "123.456789",
"holdingsPctSupply": "123.456789",
"invested": {
"native": "123.456789",
"usd": "123.456789"
},
"isStablecoin": true,
"isTransfer": true,
"lifetime": {
"buyCount": 1,
"cycleCount": 1,
"fees": {
"native": "123.456789",
"usd": "123.456789"
},
"invested": {
"native": "123.456789",
"usd": "123.456789"
},
"realizedPnl": {
"native": "123.456789",
"usd": "123.456789"
},
"received": {
"native": "123.456789",
"usd": "123.456789"
},
"sellCount": 1,
"tokensBought": "123.456789",
"tokensSold": "123.456789",
"winningCycleCount": 1
},
"openedAt": 123,
"product": "spot",
"realizedPnl": {
"native": "123.456789",
"usd": "123.456789"
},
"received": {
"native": "123.456789",
"usd": "123.456789"
},
"sellCount": 1,
"status": "open",
"token": {
"address": "<string>",
"chain": "solana",
"decimals": 1,
"image": "<string>",
"marketCap": {
"native": "123.456789",
"usd": "123.456789"
},
"name": "<string>",
"price": {
"native": "123.456789",
"usd": "123.456789"
},
"symbol": "<string>"
},
"tokensBought": "123.456789",
"tokensSold": "123.456789",
"updatedAt": 123,
"version": 123,
"walletAddress": "<string>",
"avgEntryMarketCap": {
"native": "123.456789",
"usd": "123.456789"
},
"avgExitMarketCap": {
"native": "123.456789",
"usd": "123.456789"
},
"closedAt": 123,
"identities": [
{
"source": "codex",
"avatar": "<string>",
"displayName": "<string>",
"farcaster": "<string>",
"handle": "<string>",
"telegram": "<string>",
"twitter": "<string>"
}
],
"pnlPct": "123.456789",
"totalPnl": {
"native": "123.456789",
"usd": "123.456789"
},
"unrealizedPnl": {
"native": "123.456789",
"usd": "123.456789"
},
"value": {
"native": "123.456789",
"usd": "123.456789"
}
}
],
"nextCursor": "<string>"
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": "<unknown>"
}
}Authorizations
Send the API key as Authorization: Bearer <key>.
Query Parameters
Wallet addresses, CSV; one to 100.
Chains to scope to, CSV of the chain slugs. Absent means every spot chain.
Lifecycle to list; open when absent.
A position's current-cycle lifecycle.
open, closed Drop open positions whose token liquidity is below the low-liquidity floor.
Drop open positions whose remaining value is below the dust floor.
Drop positions never acquired through a buy.
Exact-token drill-down chain; requires token.
Exact-token drill-down address; requires chain.
Case-insensitive substring of the token symbol or name.
Sort field and direction, field:asc|desc. value:desc when absent, closedAt:desc for closed.
Rows per page, clamped to 1-100; 50 when absent.
1 <= x <= 100Opaque cursor from the previous page.
Response
One page of the named wallets' positions. The price-derived fields are null for a token without a price.
One page of the named wallets' positions.
Serve-time snapshot timestamp.
Per-product counts, taken before the lifecycle, display, search and drill-down filters.
Show child attributes
Show child attributes
Whether a next page exists.
Positions on this page.
Show child attributes
Show child attributes
Cursor for the next page; null on the last page.