New function to asset pair by assets
This commit is contained in:
parent
b5cf77abbd
commit
844a57df27
@ -272,6 +272,11 @@ public class GodWorld implements GetJson, World {
|
||||
return default_asset_pair;
|
||||
}
|
||||
|
||||
public AssetPair getAssetPair(AbstractAsset asset, AbstractAsset currency){
|
||||
String s = AssetPair.buildSymbol(asset.getSymbol(), currency.getSymbol());
|
||||
return asset_pairs.getOrDefault(s, null);
|
||||
}
|
||||
|
||||
|
||||
/* public AbstractAsset createAsset(long key, JSONObject cfg) throws SeSimException{
|
||||
if (key!=masterkey)
|
||||
|
Loading…
Reference in New Issue
Block a user