diff --git a/Mexc.Net/Clients/SpotApi/MexcRestClientSpotApiAccount.cs b/Mexc.Net/Clients/SpotApi/MexcRestClientSpotApiAccount.cs index 607f7b6..0b62dc5 100644 --- a/Mexc.Net/Clients/SpotApi/MexcRestClientSpotApiAccount.cs +++ b/Mexc.Net/Clients/SpotApi/MexcRestClientSpotApiAccount.cs @@ -36,6 +36,16 @@ public async Task> GetAccountInfoAsync(Cancellati #endregion + #region Get KYC Status + + /// + public async Task> GetKycStatusAsync(CancellationToken ct = default) + { + return await _baseClient.SendRequestInternal("/api/v3/kyc/status", HttpMethod.Get, ct, signed: true).ConfigureAwait(false); + } + + #endregion + #region Get User Assets /// diff --git a/Mexc.Net/Enums/KycStatus.cs b/Mexc.Net/Enums/KycStatus.cs new file mode 100644 index 0000000..89558bd --- /dev/null +++ b/Mexc.Net/Enums/KycStatus.cs @@ -0,0 +1,34 @@ +using CryptoExchange.Net.Attributes; +using System; +using System.Collections.Generic; +using System.Text; + +namespace Mexc.Net.Enums +{ + /// + /// KYC status + /// + public enum KycStatus + { + /// + /// Unverified + /// + [Map("1")] + Unverified, + /// + /// Primary + /// + [Map("2")] + Primary, + /// + /// Advanced + /// + [Map("3")] + Advanced, + /// + /// Institutional + /// + [Map("4")] + Institutional + } +} diff --git a/Mexc.Net/Interfaces/Clients/SpotApi/IMexcRestClientSpotApiAccount.cs b/Mexc.Net/Interfaces/Clients/SpotApi/IMexcRestClientSpotApiAccount.cs index ee4f49b..c1f4a5b 100644 --- a/Mexc.Net/Interfaces/Clients/SpotApi/IMexcRestClientSpotApiAccount.cs +++ b/Mexc.Net/Interfaces/Clients/SpotApi/IMexcRestClientSpotApiAccount.cs @@ -22,6 +22,14 @@ public interface IMexcRestClientSpotApiAccount /// Task> GetAccountInfoAsync(CancellationToken ct = default); + /// + /// Get KYC status for the account + /// + /// + /// Cancellation token + /// + Task> GetKycStatusAsync(CancellationToken ct = default); + /// /// Get a list of user assets and deposit/withdrawal data /// diff --git a/Mexc.Net/Mexc.Net.xml b/Mexc.Net/Mexc.Net.xml index 52bf4d8..3aa6e71 100644 --- a/Mexc.Net/Mexc.Net.xml +++ b/Mexc.Net/Mexc.Net.xml @@ -119,6 +119,9 @@ + + + @@ -422,6 +425,31 @@ One month + + + KYC status + + + + + Unverified + + + + + Primary + + + + + Advanced + + + + + Institutional + + Order side @@ -716,6 +744,14 @@ Cancellation token + + + Get KYC status for the account + + + Cancellation token + + Get a list of user assets and deposit/withdrawal data @@ -2049,6 +2085,16 @@ Id + + + KYC status + + + + + Status + + Order info diff --git a/Mexc.Net/Objects/Models/Spot/MexcKycStatus.cs b/Mexc.Net/Objects/Models/Spot/MexcKycStatus.cs new file mode 100644 index 0000000..9d55d6e --- /dev/null +++ b/Mexc.Net/Objects/Models/Spot/MexcKycStatus.cs @@ -0,0 +1,20 @@ +using Mexc.Net.Enums; +using System; +using System.Collections.Generic; +using System.Text; +using System.Text.Json.Serialization; + +namespace Mexc.Net.Objects.Models.Spot +{ + /// + /// KYC status + /// + public record MexcKycStatus + { + /// + /// Status + /// + [JsonPropertyName("status")] + public KycStatus Status { get; set; } + } +}