aboutsummaryrefslogtreecommitdiff
path: root/trade-history.json
blob: 6840cb518b2fdd5690f2b2bcd0fe9a6ba4859da5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
{
  "address": "0xA12b3c4d5e6f7890abcdef1234567890a1b2c3d4",
  "fetchedAt": "2026-07-04T13:45:00Z",
  "summary": {
    "totalTrades": 18,
    "buyCount": 11,
    "sellCount": 7,
    "totalVolume": 12483.42,
    "totalFees": 8.74,
    "totalRealizedPnl": 6.23,
    "byCoin": {
      "BTC": {
        "trades": 4,
        "buys": 2,
        "sells": 2,
        "volume": 4120.00,
        "fees": 2.88,
        "realizedPnl": 2.14,
        "wins": 2,
        "losses": 1,
        "flat": 0,
        "avgPrice": 68500.0,
        "winRate": 66.7
      },
      "ETH": {
        "trades": 5,
        "buys": 3,
        "sells": 2,
        "volume": 2780.00,
        "fees": 1.95,
        "realizedPnl": -0.42,
        "wins": 1,
        "losses": 2,
        "flat": 0,
        "avgPrice": 3650.0,
        "winRate": 33.3
      },
      "HYPE": {
        "trades": 9,
        "buys": 6,
        "sells": 3,
        "volume": 5583.42,
        "fees": 3.91,
        "realizedPnl": 4.51,
        "wins": 5,
        "losses": 2,
        "flat": 0,
        "avgPrice": 28.45,
        "winRate": 71.4
      }
    }
  },
  "recentFills": [
    {"tid":1018,"coin":"HYPE","side":"BUY","price":27.10,"size":2.0,"notional":54.20,"totalFee":0.038,"closedPnl":0,"iso":"2026-07-04T12:30:00Z"},
    {"tid":1017,"coin":"HYPE","side":"SELL","price":29.40,"size":5.0,"notional":147.00,"totalFee":0.103,"closedPnl":2.15,"iso":"2026-07-04T11:15:00Z"},
    {"tid":1016,"coin":"ETH","side":"SELL","price":3690.0,"size":0.089,"notional":328.41,"totalFee":0.230,"closedPnl":-0.45,"iso":"2026-07-04T10:02:00Z"},
    {"tid":1015,"coin":"BTC","side":"BUY","price":67850.0,"size":0.002,"notional":135.70,"totalFee":0.095,"closedPnl":0,"iso":"2026-07-04T09:11:00Z"},
    {"tid":1014,"coin":"HYPE","side":"BUY","price":26.85,"size":8.0,"notional":214.80,"totalFee":0.150,"closedPnl":0,"iso":"2026-07-03T18:44:00Z"}
  ],
  "note": "Sample data for dashboard rendering. Run tradehistory module to fetch real fills from Hyperliquid."
}