import OrderBookEntry from "../../../apiwrapper/orderbook/OrderBookEntry.js";
import AssetStatisticValue from "./AssetStatisticValue.js";

export default class AssetStatistic {
    /**
     * Simple Moving Average
     * 
     * Description: Sum up values in timeslot und divide by slot duration
     * 
     * Formula: (P1 + P2 + P3 + ... + Pn) / n
     * 
     * Link: https://corporatefinanceinstitute.com/resources/equities/moving-average/#:~:text=It%20is%20calculated%20by%20adding,traders%20to%20generate%20trading%20signals.
     * @type {AssetStatisticValue}
     */
    sme = new AssetStatisticValue();

    /**
     * max length = 60; (1 hour)
     * @type {number[]}
     */
    #priceValuePerMinute = [];

    /**
     * max length = 60; (1 minute)
     * @type {number[]}
     */
    #priceValuesPerSecond = [];

    constructor(){
        // TOOD set start time values
    }

    /**
     * @param {OrderBookEntry} bestBid 
     */
    push(bestBid){
        
    }
}