Class HistoryStorage

    • Constructor Detail

      • HistoryStorage

        public HistoryStorage()
    • Method Detail

      • getDeals

        public abstract List<MetatraderDeal> getDeals()
        Returns all deals stored in history storage
        Returns:
        all deals stored in history storage
      • getHistoryOrders

        public abstract List<MetatraderOrder> getHistoryOrders()
        Returns all history orders stored in history storage
        Returns:
        all history orders stored in history storage
      • reset

        public abstract void reset()
        Resets the storage
      • loadData

        public abstract CompletableFuture<Void> loadData()
        Loads history data from the file manager
        Returns:
        completable future which resolves when the history is loaded
      • updateStorage

        public abstract CompletableFuture<Void> updateStorage()
        Saves unsaved history items to storage
        Returns:
        completable future which resolves when storage is updated
      • isOrderSynchronizationFinished

        public boolean isOrderSynchronizationFinished()
        Returns flag indicating whether order history synchronization have finished
        Returns:
        flag indicating whether order history synchronization have finished
      • isDealSynchronizationFinished

        public boolean isDealSynchronizationFinished()
        Returns flag indicating whether deal history synchronization have finished
        Returns:
        flag indicating whether deal history synchronization have finished
      • getLastHistoryOrderTime

        public abstract CompletableFuture<IsoTime> getLastHistoryOrderTime()
        Returns the time of the last history order record stored in the history storage
      • getLastDealTime

        public abstract CompletableFuture<IsoTime> getLastDealTime()
        Returns the time of the last history deal record stored in the history storage