more work on stop loss
This commit is contained in:
parent
f5552c7b5b
commit
9a88f42b7e
@ -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=true
|
||||||
annotation.processing.enabled.in.editor=false
|
annotation.processing.enabled.in.editor=false
|
||||||
annotation.processing.processors.list=
|
annotation.processing.processors.list=
|
||||||
|
@ -32,7 +32,15 @@ import java.util.Map;
|
|||||||
* @author 7u83 <7u83@mail.ru>
|
* @author 7u83 <7u83@mail.ru>
|
||||||
*/
|
*/
|
||||||
public interface Account {
|
public interface Account {
|
||||||
|
/**
|
||||||
|
* Get a list of assets in this account
|
||||||
|
* @return Map of assets
|
||||||
|
*/
|
||||||
public Map<Asset, Double> getAssets();
|
public Map<Asset, Double> getAssets();
|
||||||
|
/**
|
||||||
|
* Get the exchange this accounts belongs to
|
||||||
|
* @return Exchange
|
||||||
|
*/
|
||||||
public Exchange getExchange() ;
|
public Exchange getExchange() ;
|
||||||
|
|
||||||
|
|
||||||
|
@ -42,7 +42,7 @@ public class AccountImpl extends AccountBase {
|
|||||||
|
|
||||||
|
|
||||||
HashMap<AbstractAsset, Double> assets_bound = new HashMap<>();
|
HashMap<AbstractAsset, Double> assets_bound = new HashMap<>();
|
||||||
HashMap<AbstractAsset, Double> stop_loss = new HashMap<>();
|
HashMap<AbstractAsset, Order> stop_loss = new HashMap<>();
|
||||||
|
|
||||||
|
|
||||||
Trader owner;
|
Trader owner;
|
||||||
|
@ -50,7 +50,7 @@ public interface Asset {
|
|||||||
public String getSymbol();
|
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.
|
* @return true if asset can act as currency, false if not.
|
||||||
*/
|
*/
|
||||||
public boolean isCurrency();
|
public boolean isCurrency();
|
||||||
|
Loading…
Reference in New Issue
Block a user