Realized Trades
Update as of Mar 17th: Add stats of unclosed vaults
Update as of May 12th: Migration to DuneSQL has been completed to enhance performance.
Update as of May 25th: The txs contains multiple PnL events that were mismatched to vaults in our previous code. Transactions with multiple PnL events were affected.
Unrealized and Realized Trades
Developed by @0x84f54a7962 Thanks @saulius and @shogun for previous work.
This dashboard monitors and visualizes user's perpetual trading activities within a specified time frame.
Transactions are combined within vaults. A vault's lifespan commences with the first position opening and concludes when the remaining value drops to 0 (either closed or liquidated). As a result, all displayed PnL is considered realized.
All opened vaults (within date interval) are listed in table GMX user opened vaults, and all trading raw records are listed in table GMX user all trading records (not limit to date interval).
Unclosed Position is calculated by the aggregated open volume of unclosed vaults.
Note: A Sanity Check is needed for Liquidation Log
A GMX exploitation was discovered using this tool; for details, please refer to https://twitter.com/0x84f54a7962/status/1629141575472418816
Some interesting addresses for demonstration purposes:
0x1211dee17afa8b15835bb550381d9099079da82e
0xa4663faa96ad9efa320fb98cf55fdb99aecacab9
More "smart" addresses can be found utilizing GMX-trader-leaderboard