We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb4f5b6 commit ab8bbe1Copy full SHA for ab8bbe1
NHB3/ApiConnect.cs
@@ -56,6 +56,22 @@ public JArray getMarket() {
56
return new JArray();
57
}
58
59
+ public JArray getMarketForAlgo(String algorithm)
60
+ {
61
+ string marketResponse = api.get("/main/api/v2/public/orders/active2?algorithm="+algorithm, false);
62
+ if (String.IsNullOrEmpty(marketResponse))
63
64
+ return new JArray();
65
+ }
66
+
67
+ JObject marektObject = JsonConvert.DeserializeObject<JObject>(marketResponse);
68
+ if (marektObject["error_id"] == null)
69
70
+ return marektObject["list"] as JArray;
71
72
73
74
75
public bool settingsOk() {
76
string accountsResponse = api.get("/main/api/v2/accounting/accounts2", true);
77
0 commit comments