Skip to main content
POST
/
api
/
solscan
/
accounts
/
portfolio
/solscan/accounts/portfolio
curl --request POST \
  --url https://api.anysite.io/api/solscan/accounts/portfolio \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "address": "<string>",
  "count": 2,
  "timeout": 300,
  "sort_order": "desc"
}
'
[
  {
    "position_id": "<string>",
    "@type": "SolscanDefiPosition",
    "pool_id": "<string>",
    "program": "<string>",
    "position_type": "<string>",
    "token_address": "<string>",
    "token_1": "<string>",
    "token_2": "<string>",
    "amount_1": 123,
    "amount_2": 123,
    "position_value": 123,
    "current_price": 123,
    "lower_price": 123,
    "upper_price": 123,
    "is_in_range": true,
    "created_at": 123
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
address
string
required

Solana account or token mint address (base58)

Example:

"5tzFkiKscXHK5ZXCGbXZxdw7gTjjD1mBwuoFbhUvuAi9"

count
integer
required

Max number of positions to return

Required range: x >= 1
timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
sort_order
enum<string>
default:desc

Order positions by value

Available options:
desc,
asc

Response

Successful Response

position_id
string
required
@type
string
default:SolscanDefiPosition
pool_id
string | null
program
string | null
position_type
string | null
token_address
string | null
token_1
string | null
token_2
string | null
amount_1
number | null
amount_2
number | null
position_value
number | null
current_price
number | null
lower_price
number | null
upper_price
number | null
is_in_range
boolean | null
created_at
integer | null