import TradingPair from "../assets/TradingPair.js";
import APIEvent from "./APIEvent.js"
import APIEventType from "./APIEventType.js"

export default class TradeEvent extends APIEvent{
    /**
     * @type {TradingPair}
     */
    tradingPair = null;

    /**
     * @type {number}
     */
    price = 0;

    /**
     * @type {number}
     */
    quantity = 0;

    /**
     * @param {TradingPair} tradingPair 
     */
    constructor(tradingPair){
        super(APIEventType.TRADE);
        this.tradingPair = tradingPair;
    }
}