aboutsummaryrefslogtreecommitdiff
path: root/trade-history.json
diff options
context:
space:
mode:
Diffstat (limited to 'trade-history.json')
-rw-r--r--trade-history.json61
1 files changed, 61 insertions, 0 deletions
diff --git a/trade-history.json b/trade-history.json
new file mode 100644
index 0000000..6840cb5
--- /dev/null
+++ b/trade-history.json
@@ -0,0 +1,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."
+}