more work on stop loss

This commit is contained in:
7u83 2019-05-06 13:49:26 +02:00
parent f5552c7b5b
commit 9a88f42b7e
4 changed files with 11 additions and 3 deletions

View File

@ -1,4 +1,4 @@
#Mon, 14 Jan 2019 08:39:39 +0100
#Sat, 30 Mar 2019 12:25:28 +0100
annotation.processing.enabled=true
annotation.processing.enabled.in.editor=false
annotation.processing.processors.list=

View File

@ -32,7 +32,15 @@ import java.util.Map;
* @author 7u83 <7u83@mail.ru>
*/
public interface Account {
/**
* Get a list of assets in this account
* @return Map of assets
*/
public Map<Asset, Double> getAssets();
/**
* Get the exchange this accounts belongs to
* @return Exchange
*/
public Exchange getExchange() ;

View File

@ -42,7 +42,7 @@ public class AccountImpl extends AccountBase {
HashMap<AbstractAsset, Double> assets_bound = new HashMap<>();
HashMap<AbstractAsset, Double> stop_loss = new HashMap<>();
HashMap<AbstractAsset, Order> stop_loss = new HashMap<>();
Trader owner;

View File

@ -50,7 +50,7 @@ public interface Asset {
public String getSymbol();
/**
* Determine if this asset can be used as currency
* Determine if this asset can be used as currency.
* @return true if asset can act as currency, false if not.
*/
public boolean isCurrency();