Skip to content

Commit eb4f5b6

Browse files
authored
use priceFactor
1 parent 9d8cb67 commit eb4f5b6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

NHB3/ApiConnect.cs

+5-1
Original file line numberDiff line numberDiff line change
@@ -172,11 +172,13 @@ public JObject createOrder(string algo, string market, string type, string pool,
172172
{ "algorithm", algo },
173173
{ "amount", amount },
174174
{ "displayMarketFactor", (string)selAlgo["displayMarketFactor"] },
175+
{ "displayPriceFactor", (string)selAlgo["displayPriceFactor"] },
175176
{ "limit", limit },
176177
{ "market", market },
177178
{ "marketFactor", (string)selAlgo["marketFactor"] },
178179
{ "poolId", pool },
179180
{ "price", price },
181+
{ "priceFactor", (string)selAlgo["priceFactor"] },
180182
{ "type", type }
181183
};
182184
string newOrderResponse = api.post("/main/api/v2/hashpower/order", JsonConvert.SerializeObject(order), true);
@@ -211,7 +213,9 @@ public JObject updateOrder(string algo, string id, string price, string limit)
211213
{ "price", price },
212214
{ "limit", limit },
213215
{ "displayMarketFactor", (string)selAlgo["displayMarketFactor"] },
214-
{ "marketFactor", (string)selAlgo["marketFactor"] }
216+
{ "marketFactor", (string)selAlgo["marketFactor"] },
217+
{ "displayPriceFactor", (string)selAlgo["displayPriceFactor"] },
218+
{ "priceFactor", (string)selAlgo["priceFactor"] }
215219
};
216220

217221
string editOrderResponse = api.post("/main/api/v2/hashpower/order/" + id + "/updatePriceAndLimit", JsonConvert.SerializeObject(order), true);

0 commit comments

Comments
 (0)