Get current positions for a wallet
GET
/api/wallets/{address}/positions
const url = 'https://api.qeychain.xyz/api/wallets/example/positions?page=1&limit=50';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.qeychain.xyz/api/wallets/example/positions?page=1&limit=50'Returns current token positions with cost basis data for a tracked wallet.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”address
required
Address
string
Query Parameters
Section titled “Query Parameters”page
Page
Page number
integer
Page number
limit
Limit
Items per page
integer
Items per page
owned_wallets
Any of:
Array<string>
null
All wallet addresses owned by the user (for internal transfer detection). Comma-separated or repeated.
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
Examplegenerated
exampleBad Request
Not Found
Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example" } ]}Internal Server Error
