Authorizations
Query Parameters
The number of closed positions to return. If omitted, defaults to 100.
Body
Request payload for querying positions.
The current timestamp in milliseconds used for signature verification. Can be provided as a string or a number.
The Solana wallet address of the user.
Signature of the 'By signing, I hereby agree to Vanish's Terms of Service and agree to be bound by them (docs.vanish.trade/legal/TOS)
Details: read:{timestamp}' string signed using the user's wallet.
Response
A successful response containing the user's recently closed positions.
The token mint address associated with this position.
Total amount of SOL spent buying this token (in lamports).
Total USD value spent buying this token, based on SOL price at the time of transactions.
Total number of tokens purchased (in smallest units).
Total amount of SOL received from selling this token (in lamports).
Total USD value received from selling this token, based on SOL price at the time of transactions.
Total number of tokens sold (in smallest units).
Current remaining token balance for this token (in smallest units).
Number of decimal places used by the token (e.g., 9 for SOL).
Timestamp of the first trade related to this token position (ISO 8601 format).
Timestamp of the latest trade related to this token position (ISO 8601 format).
