refactor: Standardize CLP Manager and Hedger modules & cleanup
- **clp_manager.py**: Renamed from 'uniswap_manager.py'. Standardized logic for Uniswap V3 liquidity provision. - **clp_hedger.py**: Renamed from 'unified_hedger.py'. Consolidated hedging logic including Delta Calculation fixes, EAC (Edge Avoidance), and Fishing order implementation. - **Cleanup**: Removed legacy 'aerodrome' folder and tools. - **Monitoring**: Added Telegram monitoring scripts. - **Config**: Updated gitignore to exclude market data CSVs.
This commit is contained in:
36
florida/tools/debug_fills.py
Normal file
36
florida/tools/debug_fills.py
Normal file
@ -0,0 +1,36 @@
|
||||
import os
|
||||
import sys
|
||||
import json
|
||||
from dotenv import load_dotenv
|
||||
from hyperliquid.info import Info
|
||||
from hyperliquid.utils import constants
|
||||
|
||||
# Load env
|
||||
load_dotenv()
|
||||
address = os.environ.get("MAIN_WALLET_ADDRESS")
|
||||
|
||||
if not address:
|
||||
print("No address found")
|
||||
sys.exit(1)
|
||||
|
||||
info = Info(constants.MAINNET_API_URL, skip_ws=True)
|
||||
|
||||
try:
|
||||
print(f"Fetching fills for {address}...")
|
||||
fills = info.user_fills(address)
|
||||
|
||||
if fills:
|
||||
print(f"Found {len(fills)} fills. Inspecting first one:")
|
||||
print(json.dumps(fills[0], indent=2))
|
||||
|
||||
# Check for closedPnl
|
||||
if 'closedPnl' in fills[0]:
|
||||
print("✅ 'closedPnl' field FOUND!")
|
||||
else:
|
||||
print("❌ 'closedPnl' field NOT FOUND.")
|
||||
|
||||
else:
|
||||
print("No fills found.")
|
||||
|
||||
except Exception as e:
|
||||
print(f"Error: {e}")
|
||||
Reference in New Issue
Block a user