
import os
import sys
from backend.database.connection import db

def inspect():
    try:
        sql = "SELECT id, symbol, commission, commission_asset, exit_time, account_id FROM trades WHERE id = 3356"
        res = db.execute_query(sql)
        print(f"Trade 3356: {res}")
        
        # Also check trade 617
        sql = "SELECT id, symbol, entry_time, exit_time FROM trades WHERE id = 617"
        res = db.execute_query(sql)
        print(f"Trade 617: {res}")
        
    except Exception as e:
        print(f"Error: {e}")

if __name__ == "__main__":
    inspect()
