package com.goldenchart.trading.pipeline;

/**
 * WebSocket 수신 쓰레드 → 이벤트 큐로 전달하는 불변 체결 틱.
 */
public record TradeTickEvent(
        String market,
        double tradePrice,
        double tradeVolume,
        long tradeTimeMs,
        long enqueuedAtMs
) {
    public static TradeTickEvent of(String market, double price, double volume, long timeMs) {
        return new TradeTickEvent(market, price, volume, timeMs, System.currentTimeMillis());
    }
}
