burakoner / OKX.Api

Up-to-date, most-complete, well-organized, well-documented, easy-to-use, multi-task and multi-thread compatible OKX Cryptocurrency Exchange Rest and Websocket Api Wrapper
MIT License
39 stars 15 forks source link

Trading account, GetAccountConfigurationAsync Error #53

Closed MihailRom closed 8 months ago

MihailRom commented 8 months ago

Hello! Please, fix same values in OkxAccountConfiguration model class https://github.com/burakoner/OKX.Api/blob/master/OKX.Api/Models/TradingAccount/OkxAccountConfiguration.cs

Properties public OkxAccountRoleType? AccountRoleType { get; set; } and public OkxSpotCopyTradingRole? SpotCopyTradingRole { get; set; } have similar value [JsonProperty("roleType")]

So, method GetAccountConfigurationAsync returns an error

burakoner commented 8 months ago

I've fixed this issue. Please check out Version 1.5.6 at https://github.com/burakoner/OKX.Api/commit/f8b6cccc2c423ca7d4417eb5a3e4b7e6331ac579 and https://www.nuget.org/packages/OKX.Api/1.5.6

Thank you for feedback. Have a great day.