more work on stop loss
This commit is contained in:
@ -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() ;
|
||||
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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();
|
||||
|
Reference in New Issue
Block a user