Exchange list and exchange creation works

This commit is contained in:
7u83
2018-12-02 21:38:17 +01:00
parent 7a707cd10c
commit 6a964bcb5e
7 changed files with 83 additions and 44 deletions

View File

@ -110,6 +110,7 @@ public class Globals {
public static final String STRATEGIES = "strategies";
public static final String TRADERS = "traders";
public static final String ASSETS = "assets";
public static final String EXCHANGES = "exchanges";
}
@ -345,6 +346,13 @@ public class Globals {
prefs.put(PrefKeys.ASSETS, assets.toString());
}
static public final JSONObject getExchanges(){
String json = prefs.get(PrefKeys.EXCHANGES, "{}");
return new JSONObject(json);
}
static public final void putExchanges(JSONObject e){
prefs.put(PrefKeys.EXCHANGES, e.toString());
}
static public final JSONArray getTraders() {