import APIEvent from "./APIEvent.js"
import APIEventType from "./APIEventType.js"

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

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

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

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

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

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

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

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

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

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

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

    constructor(tradingPair){
        super(APIEventType.TICKER_24H);
        this.tradingPair = tradingPair;
    }
}