Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Kukks committed Jun 21, 2020
1 parent 5e4984a commit ff6504d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/ExchangeSharp/API/Exchanges/BTSE/ExchangeBTSEAPI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,9 @@ protected override async Task<IEnumerable<ExchangeOrderResult>> OnGetOpenOrderDe
IsBuy = token["side"].Value<string>() == "BUY",
Price = token["price"].Value<decimal>(),
MarketSymbol = token["symbol"].Value<string>(),
OrderDate = token["timestamp"].ConvertInvariant<long>().UnixTimeStampToDateTimeMilliseconds()
OrderDate = token["timestamp"].ConvertInvariant<long>().UnixTimeStampToDateTimeMilliseconds(),
ClientOrderId = token["clOrderID"].Value<string>(),
Result = token["side"].Value<string>() == "STATUS_ACTIVE"? ExchangeAPIOrderResult.Pending : ExchangeAPIOrderResult.Unknown
});
}

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit ff6504d

Please sign in to comment.