Skip to content

Commit

Permalink
Fix for broker reference
Browse files Browse the repository at this point in the history
  • Loading branch information
JKorf committed Nov 14, 2023
1 parent 0700773 commit 80c3863
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public async Task<WebCallResult<CoinExOrder>> PlaceOrderAsync(
endpoint = PlaceImmediateOrCancelOrderEndpoint;
}

clientOrderId = clientOrderId ?? ExchangeHelpers.AppendRandomString(_baseClient._brokerId, 32);
clientOrderId ??= ExchangeHelpers.AppendRandomString("x-" + _baseClient._brokerId + "-", 32);

var parameters = new Dictionary<string, object>
{
Expand Down
1 change: 1 addition & 0 deletions CoinEx.Net/Objects/Options/CoinExRestOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public class CoinExRestOptions : RestExchangeOptions<CoinExEnvironment>
internal CoinExRestOptions Copy()
{
var options = Copy<CoinExRestOptions>();
options.BrokerId = BrokerId;
options.NonceProvider = NonceProvider;
options.SpotOptions = SpotOptions.Copy<RestApiOptions>();
return options;
Expand Down

0 comments on commit 80c3863

Please sign in to comment.