get https://api.syve.ai/v1/wallet-api/latest-total-performance
Retrieve a summary of the total trading performance of a wallet.
Method: GET
Endpoint: https://api.syve.ai/v1/wallet-api/latest-total-performance
Recently Added
This endpoint has been recently added. It's possible for there to still be bugs. If you find any bugs please send us a message in our Discord: https://discord.com/invite/rs5GPAZ7tG
Request Parameters
Name | Type(s) | Description |
---|---|---|
wallet_address | string | The wallet address for which to calculate performance. This is a required parameter. |
timestamp | integer | The time at which to calculate the total performance of a wallet. The time is given in UNIX timestamp seconds format. By default the most recent time is taken. |
Response Fields
Response Field | Type | Description |
---|---|---|
wallet_address | string | The given wallet address for which trading performance was calculated. |
realized_profit | double | The total profit made from completed trades. |
realized_investment | double | The sum of investments across all completed (realized) trades. |
realized_return | double | The actual return on investment from completed trades, calculated as realized_profit / investment multiplied by 100. |
unrealized_profit | double | The closing token balance for the given interval and wallet address. |
unrealized_investment | double | The closing token balance (in base format) for the given interval and wallet address. |
unrealized_return | double | The potential return on investment if the token is sold at the current price; calculated as unrealized_profit / unrealized_investment multiplied by 100. |
total_profit | double | The sum of all profits from both completed trades and unrealized gains. |
total_investment | double | The sum of all investments made in both completed and ongoing trades. |
total_return | double | The overall financial performance, obtained by dividing the total profit by the total investment and adding 1. |
win_rate | double | The percentage of trades (both realized and unrealized) that were profitable. |
first_trade_timestamp | integer | The time of the earliest DEX trade made by the wallet (in UNIX seconds timestamp format). |
last_trade_timestamp | integer | The time of the most recent DEX trade made by the wallet (in UNIX seconds timestamp format). |
Live Example
Press Try It to make a request and see what the response looks like. Feel free to try different query parameters.