From ff6504d4e026ca9039a441fe1b86ae0e103155fa Mon Sep 17 00:00:00 2001 From: Kukks Date: Sun, 21 Jun 2020 12:41:53 +0200 Subject: [PATCH] fixes --- src/ExchangeSharp/API/Exchanges/BTSE/ExchangeBTSEAPI.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ExchangeSharp/API/Exchanges/BTSE/ExchangeBTSEAPI.cs b/src/ExchangeSharp/API/Exchanges/BTSE/ExchangeBTSEAPI.cs index b1a9e091..9e894e0e 100644 --- a/src/ExchangeSharp/API/Exchanges/BTSE/ExchangeBTSEAPI.cs +++ b/src/ExchangeSharp/API/Exchanges/BTSE/ExchangeBTSEAPI.cs @@ -127,7 +127,9 @@ protected override async Task> OnGetOpenOrderDe IsBuy = token["side"].Value() == "BUY", Price = token["price"].Value(), MarketSymbol = token["symbol"].Value(), - OrderDate = token["timestamp"].ConvertInvariant().UnixTimeStampToDateTimeMilliseconds() + OrderDate = token["timestamp"].ConvertInvariant().UnixTimeStampToDateTimeMilliseconds(), + ClientOrderId = token["clOrderID"].Value(), + Result = token["side"].Value() == "STATUS_ACTIVE"? ExchangeAPIOrderResult.Pending : ExchangeAPIOrderResult.Unknown }); } @@ -258,7 +260,7 @@ protected override async Task ProcessRequestAsync(IHttpWebRequest request, Dicti } var hexSha384 = CryptoUtility.SHA384Sign( - $"{request.RequestUri.PathAndQuery.Replace("/spot", string.Empty)}{nonce}{json}", + $"{request.RequestUri.AbsolutePath.Replace("/spot", string.Empty)}{nonce}{json}", passphrase); request.AddHeader("btse-sign", hexSha384); request.AddHeader("btse-nonce", nonce);