From 816380232e863f83e76ec690f3876e02508d8bc5 Mon Sep 17 00:00:00 2001 From: Alex1911-Jiang Date: Thu, 5 Dec 2024 23:13:04 +0800 Subject: [PATCH] Update BinanceRestClientUsdFuturesApiAgent.cs --- .../UsdFuturesApi/BinanceRestClientUsdFuturesApiAgent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Binance.Net/Clients/UsdFuturesApi/BinanceRestClientUsdFuturesApiAgent.cs b/Binance.Net/Clients/UsdFuturesApi/BinanceRestClientUsdFuturesApiAgent.cs index 41872b25c..2fa56fc8d 100644 --- a/Binance.Net/Clients/UsdFuturesApi/BinanceRestClientUsdFuturesApiAgent.cs +++ b/Binance.Net/Clients/UsdFuturesApi/BinanceRestClientUsdFuturesApiAgent.cs @@ -24,7 +24,7 @@ public async Task> IfNewUser(string brokerId, in var parameters = new ParameterCollection(); parameters.AddOptional("brokerId", brokerId.ToString(CultureInfo.InvariantCulture)); - parameters.AddOptional("type", (int)IfNewUserMarginedFuturesType.UsdtMarginedFutures); + parameters.AddEnum("type", IfNewUserMarginedFuturesType.UsdtMarginedFutures); parameters.AddOptionalParameter("recvWindow", receiveWindow?.ToString(CultureInfo.InvariantCulture) ?? _baseClient.ClientOptions.ReceiveWindow.TotalMilliseconds.ToString(CultureInfo.InvariantCulture)); var request = _definitions.GetOrCreate(HttpMethod.Get, "fapi/v1/apiReferral/ifNewUser", BinanceExchange.RateLimiter.FuturesRest, 100, true);