From eb4f5b64804c8c0a24bd4ef66a2b5b45d272bd27 Mon Sep 17 00:00:00 2001 From: bl4z Date: Tue, 7 Dec 2021 11:30:26 +0100 Subject: [PATCH] use priceFactor --- NHB3/ApiConnect.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/NHB3/ApiConnect.cs b/NHB3/ApiConnect.cs index 001f781..ec51cb8 100644 --- a/NHB3/ApiConnect.cs +++ b/NHB3/ApiConnect.cs @@ -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); @@ -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);