-
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added restClient.SpotApi.Account.GetApiKeyInfoAsync endpoint
- Loading branch information
Showing
4 changed files
with
113 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
using Newtonsoft.Json; | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace Kucoin.Net.Objects.Models.Spot | ||
{ | ||
/// <summary> | ||
/// API key info | ||
/// </summary> | ||
public record KucoinApiKey | ||
{ | ||
/// <summary> | ||
/// Remark | ||
/// </summary> | ||
[JsonProperty("remark")] | ||
public string Remark { get; set; } = string.Empty; | ||
/// <summary> | ||
/// Api key | ||
/// </summary> | ||
[JsonProperty("apiKey")] | ||
public string Apikey { get; set; } = string.Empty; | ||
/// <summary> | ||
/// Version of the API key | ||
/// </summary> | ||
[JsonProperty("apiVersion")] | ||
public int ApiKeyVersion { get; set; } | ||
/// <summary> | ||
/// Permissions, comma seperated | ||
/// </summary> | ||
[JsonProperty("permission")] | ||
public string Permissions { get; set; } = string.Empty; | ||
/// <summary> | ||
/// Creation time | ||
/// </summary> | ||
[JsonProperty("createdAt"), JsonConverter(typeof(DateTimeConverter))] | ||
public DateTime CreateTime { get; set; } | ||
/// <summary> | ||
/// User id | ||
/// </summary> | ||
[JsonProperty("uid")] | ||
public long UserId { get; set; } | ||
/// <summary> | ||
/// Is master account | ||
/// </summary> | ||
[JsonProperty("isMaster")] | ||
public bool IsMaster { get; set; } | ||
} | ||
} |