All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.fair_acc.sample.financial.service.execution.ExecutionPlatform Maven / Gradle / Ivy

Go to download

Small sample applications to showcase the features of the chart-fx library.

The newest version!
package io.fair_acc.sample.financial.service.execution;

import io.fair_acc.sample.financial.dos.Order;

public interface ExecutionPlatform {
    /**
     * Execute the trading order
     *
     * @param order Order
     * @return result
     */
    ExecutionResult performOrder(Order order);

    /**
     * Cancel the trading order
     *
     * @param orderId int
     * @return result
     */
    ExecutionResult cancelOrder(int orderId);

    /**
     * Cancel the trading order
     *
     * @param order instance
     * @return result
     */
    ExecutionResult cancelOrder(Order order);

    /**
     * Add the listener of execution platform
     *
     * @param listener ExecutionPlatformListener
     */
    void addExecutionPlatformListener(ExecutionPlatformListener listener);

    /**
     * Remove the listener of execution platform
     *
     * @param listener ExecutionPlatformListener
     */
    void removeExecutionPlatformListener(ExecutionPlatformListener listener);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy