From a4a2f6e3186089a9659da75d2bf873a7ad25bba0 Mon Sep 17 00:00:00 2001 From: tim Date: Tue, 17 Jun 2025 00:37:52 -0400 Subject: [PATCH] gmx metadata and backfill in finaldata --- src/dexorder/gmx/_handle.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/dexorder/gmx/_handle.py b/src/dexorder/gmx/_handle.py index 10b118b..2b15e18 100644 --- a/src/dexorder/gmx/_handle.py +++ b/src/dexorder/gmx/_handle.py @@ -78,6 +78,17 @@ event_handlers = { 'ClaimableFundingAmountPerSizeUpdated': None, 'FundingFeesClaimed': None, + 'FeesClaimed': None, + 'SetAvailableFeeAmount': None, + 'BuybackFees': None, + 'OrderSizeDeltaAutoUpdated': None, + 'SubaccountAutoTopUp': None, + 'SetSubaccountAutoTopUpAmount': None, + 'SetMaxAllowedSubaccountActionCount': None, + 'AffiliateRewardClaimed': None, + 'CollateralClaimed': None, + 'ExecutionFeeRefundCallback': None, + 'PoolAmountUpdated': None, 'VirtualSwapInventoryUpdated': None, @@ -217,6 +228,8 @@ async def fetch_price_updates(): }, """ addr = t['tokenAddress'] + if addr not in gmx_token_symbol_map: + continue # GMX prices use 30 decimal places price = (dec(t['minPrice']) + dec(t['maxPrice'])) / 2 * dec(10) ** dec(-30) time = from_timestamp(t['timestamp'])