Skip to content

Commit

Permalink
use priceFactor
Browse files Browse the repository at this point in the history
  • Loading branch information
bl4z authored Dec 7, 2021
1 parent 9d8cb67 commit eb4f5b6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion NHB3/ApiConnect.cs
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,13 @@ public JObject createOrder(string algo, string market, string type, string pool,
{ "algorithm", algo },
{ "amount", amount },
{ "displayMarketFactor", (string)selAlgo["displayMarketFactor"] },
{ "displayPriceFactor", (string)selAlgo["displayPriceFactor"] },
{ "limit", limit },
{ "market", market },
{ "marketFactor", (string)selAlgo["marketFactor"] },
{ "poolId", pool },
{ "price", price },
{ "priceFactor", (string)selAlgo["priceFactor"] },
{ "type", type }
};
string newOrderResponse = api.post("/main/api/v2/hashpower/order", JsonConvert.SerializeObject(order), true);
Expand Down Expand Up @@ -211,7 +213,9 @@ public JObject updateOrder(string algo, string id, string price, string limit)
{ "price", price },
{ "limit", limit },
{ "displayMarketFactor", (string)selAlgo["displayMarketFactor"] },
{ "marketFactor", (string)selAlgo["marketFactor"] }
{ "marketFactor", (string)selAlgo["marketFactor"] },
{ "displayPriceFactor", (string)selAlgo["displayPriceFactor"] },
{ "priceFactor", (string)selAlgo["priceFactor"] }
};

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

0 comments on commit eb4f5b6

Please sign in to comment.