From 7fab969e71cf8612ddfcd1febd56cadd44c0a1f8 Mon Sep 17 00:00:00 2001 From: Matt O'Keefe Date: Mon, 28 Aug 2023 12:26:23 -0500 Subject: [PATCH] Update BinanceGroupCommon.cs --- .../API/Exchanges/BinanceGroup/BinanceGroupCommon.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ExchangeSharp/API/Exchanges/BinanceGroup/BinanceGroupCommon.cs b/src/ExchangeSharp/API/Exchanges/BinanceGroup/BinanceGroupCommon.cs index 40bb6f65..605e4078 100644 --- a/src/ExchangeSharp/API/Exchanges/BinanceGroup/BinanceGroupCommon.cs +++ b/src/ExchangeSharp/API/Exchanges/BinanceGroup/BinanceGroupCommon.cs @@ -642,6 +642,9 @@ protected override async Task OnGetOrderDetailsAsync(string // Add up the fees from each trade in the order Dictionary feesPayload = await GetNoncePayloadAsync(); feesPayload["symbol"] = marketSymbol!; + if (!isClientOrderId) { + feesPayload["orderId"] = orderId; + } JToken feesToken = await MakeJsonRequestAsync("/myTrades", BaseUrlApi, feesPayload); ParseFees(feesToken, result);