io.fair_acc.sample.financial.service.execution.ExecutionPlatform Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of samples Show documentation
Show all versions of samples Show documentation
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);
}