Skip to content

Commit 597c14f

Browse files
author
gate
committed
update to v7.1.29
1 parent e1f8634 commit 597c14f

File tree

7 files changed

+46
-46
lines changed

7 files changed

+46
-46
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,8 @@ Class | Method | HTTP request | Description
392392
- [Model.AccountBalance](docs/AccountBalance.md)
393393
- [Model.AccountDetail](docs/AccountDetail.md)
394394
- [Model.AccountDetailKey](docs/AccountDetailKey.md)
395+
- [Model.AccountKeyInfo](docs/AccountKeyInfo.md)
396+
- [Model.AccountKeyInfoPerms](docs/AccountKeyInfoPerms.md)
395397
- [Model.AccountRateLimit](docs/AccountRateLimit.md)
396398
- [Model.AgencyCommission](docs/AgencyCommission.md)
397399
- [Model.AgencyCommissionHistory](docs/AgencyCommissionHistory.md)
@@ -491,8 +493,6 @@ Class | Method | HTTP request | Description
491493
- [Model.InlineResponse200](docs/InlineResponse200.md)
492494
- [Model.InlineResponse2001](docs/InlineResponse2001.md)
493495
- [Model.InsuranceRecord](docs/InsuranceRecord.md)
494-
- [Model.Key](docs/Key.md)
495-
- [Model.KeyPerms](docs/KeyPerms.md)
496496
- [Model.LedgerRecord](docs/LedgerRecord.md)
497497
- [Model.LiquidateOrder](docs/LiquidateOrder.md)
498498
- [Model.MarginAccount](docs/MarginAccount.md)

docs/AccountApi.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ This endpoint does not need any parameter.
8585

8686
<a name="getaccountmainkeys"></a>
8787
# **GetAccountMainKeys**
88-
> Key GetAccountMainKeys ()
88+
> AccountKeyInfo GetAccountMainKeys ()
8989
9090
Query All Main Account Key Information
9191

@@ -112,7 +112,7 @@ namespace Example
112112
try
113113
{
114114
// Query All Main Account Key Information
115-
Key result = apiInstance.GetAccountMainKeys();
115+
AccountKeyInfo result = apiInstance.GetAccountMainKeys();
116116
Debug.WriteLine(result);
117117
}
118118
catch (GateApiException e)
@@ -132,7 +132,7 @@ This endpoint does not need any parameter.
132132

133133
### Return type
134134

135-
[**Key**](Key.md)
135+
[**AccountKeyInfo**](AccountKeyInfo.md)
136136

137137
### Authorization
138138

docs/Key.md renamed to docs/AccountKeyInfo.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
# Io.Gate.GateApi.Model.Key
2+
# Io.Gate.GateApi.Model.AccountKeyInfo
33

44
Main Account API Key Information
55

@@ -13,7 +13,7 @@ Name | Type | Description | Notes
1313
**CurrencyPairs** | **List&lt;string&gt;** | Trading Pair Whitelist, Maximum 30 Pairs | [optional]
1414
**UserId** | **long** | User ID | [optional]
1515
**IpWhitelist** | **List&lt;string&gt;** | IP Whitelist | [optional]
16-
**Perms** | [**List&lt;KeyPerms&gt;**](KeyPerms.md) | | [optional]
16+
**Perms** | [**List&lt;AccountKeyInfoPerms&gt;**](AccountKeyInfoPerms.md) | | [optional]
1717
**Key** | [**AccountDetailKey**](AccountDetailKey.md) | | [optional]
1818
**CreatedAt** | **string** | Created time | [optional] [readonly]
1919
**UpdatedAt** | **string** | Last Update Time | [optional] [readonly]

docs/KeyPerms.md renamed to docs/AccountKeyInfoPerms.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
# Io.Gate.GateApi.Model.KeyPerms
2+
# Io.Gate.GateApi.Model.AccountKeyInfoPerms
33

44
## Properties
55

src/Io.Gate.GateApi/Api/AccountApi.cs

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ public interface IAccountApiSync : IApiAccessor
5353
///
5454
/// </remarks>
5555
/// <exception cref="Io.Gate.GateApi.Client.ApiException">Thrown when fails to make API call</exception>
56-
/// <returns>Key</returns>
57-
Key GetAccountMainKeys ();
56+
/// <returns>AccountKeyInfo</returns>
57+
AccountKeyInfo GetAccountMainKeys ();
5858

5959
/// <summary>
6060
/// Query All Main Account Key Information
@@ -63,8 +63,8 @@ public interface IAccountApiSync : IApiAccessor
6363
///
6464
/// </remarks>
6565
/// <exception cref="Io.Gate.GateApi.Client.ApiException">Thrown when fails to make API call</exception>
66-
/// <returns>ApiResponse of Key</returns>
67-
ApiResponse<Key> GetAccountMainKeysWithHttpInfo ();
66+
/// <returns>ApiResponse of AccountKeyInfo</returns>
67+
ApiResponse<AccountKeyInfo> GetAccountMainKeysWithHttpInfo ();
6868
/// <summary>
6969
/// Get user transaction rate limit information
7070
/// </summary>
@@ -268,8 +268,8 @@ public interface IAccountApiAsync : IApiAccessor
268268
///
269269
/// </remarks>
270270
/// <exception cref="Io.Gate.GateApi.Client.ApiException">Thrown when fails to make API call</exception>
271-
/// <returns>Task of Key</returns>
272-
Task<Key> GetAccountMainKeysAsync ();
271+
/// <returns>Task of AccountKeyInfo</returns>
272+
Task<AccountKeyInfo> GetAccountMainKeysAsync ();
273273

274274
/// <summary>
275275
/// Query All Main Account Key Information
@@ -278,8 +278,8 @@ public interface IAccountApiAsync : IApiAccessor
278278
///
279279
/// </remarks>
280280
/// <exception cref="Io.Gate.GateApi.Client.ApiException">Thrown when fails to make API call</exception>
281-
/// <returns>Task of ApiResponse (Key)</returns>
282-
Task<ApiResponse<Key>> GetAccountMainKeysAsyncWithHttpInfo ();
281+
/// <returns>Task of ApiResponse (AccountKeyInfo)</returns>
282+
Task<ApiResponse<AccountKeyInfo>> GetAccountMainKeysAsyncWithHttpInfo ();
283283
/// <summary>
284284
/// Get user transaction rate limit information
285285
/// </summary>
@@ -675,19 +675,19 @@ public async Task<ApiResponse<AccountDetail>> GetAccountDetailAsyncWithHttpInfo
675675
/// Query All Main Account Key Information
676676
/// </summary>
677677
/// <exception cref="Io.Gate.GateApi.Client.ApiException">Thrown when fails to make API call</exception>
678-
/// <returns>Key</returns>
679-
public Key GetAccountMainKeys ()
678+
/// <returns>AccountKeyInfo</returns>
679+
public AccountKeyInfo GetAccountMainKeys ()
680680
{
681-
ApiResponse<Key> localVarResponse = GetAccountMainKeysWithHttpInfo();
681+
ApiResponse<AccountKeyInfo> localVarResponse = GetAccountMainKeysWithHttpInfo();
682682
return localVarResponse.Data;
683683
}
684684

685685
/// <summary>
686686
/// Query All Main Account Key Information
687687
/// </summary>
688688
/// <exception cref="Io.Gate.GateApi.Client.ApiException">Thrown when fails to make API call</exception>
689-
/// <returns>ApiResponse of Key</returns>
690-
public ApiResponse<Key> GetAccountMainKeysWithHttpInfo ()
689+
/// <returns>ApiResponse of AccountKeyInfo</returns>
690+
public ApiResponse<AccountKeyInfo> GetAccountMainKeysWithHttpInfo ()
691691
{
692692
RequestOptions localVarRequestOptions = new RequestOptions();
693693

@@ -710,7 +710,7 @@ public ApiResponse<Key> GetAccountMainKeysWithHttpInfo ()
710710
localVarRequestOptions.RequireApiV4Auth = true;
711711

712712
// make the HTTP request
713-
var localVarResponse = this.Client.Get<Key>("/account/main_keys", localVarRequestOptions, this.Configuration);
713+
var localVarResponse = this.Client.Get<AccountKeyInfo>("/account/main_keys", localVarRequestOptions, this.Configuration);
714714

715715
if (this.ExceptionFactory != null)
716716
{
@@ -725,10 +725,10 @@ public ApiResponse<Key> GetAccountMainKeysWithHttpInfo ()
725725
/// Query All Main Account Key Information
726726
/// </summary>
727727
/// <exception cref="Io.Gate.GateApi.Client.ApiException">Thrown when fails to make API call</exception>
728-
/// <returns>Task of Key</returns>
729-
public async Task<Key> GetAccountMainKeysAsync ()
728+
/// <returns>Task of AccountKeyInfo</returns>
729+
public async Task<AccountKeyInfo> GetAccountMainKeysAsync ()
730730
{
731-
Io.Gate.GateApi.Client.ApiResponse<Key> localVarResponse = await GetAccountMainKeysAsyncWithHttpInfo();
731+
Io.Gate.GateApi.Client.ApiResponse<AccountKeyInfo> localVarResponse = await GetAccountMainKeysAsyncWithHttpInfo();
732732
return localVarResponse.Data;
733733

734734
}
@@ -737,8 +737,8 @@ public async Task<Key> GetAccountMainKeysAsync ()
737737
/// Query All Main Account Key Information
738738
/// </summary>
739739
/// <exception cref="Io.Gate.GateApi.Client.ApiException">Thrown when fails to make API call</exception>
740-
/// <returns>Task of ApiResponse (Key)</returns>
741-
public async Task<ApiResponse<Key>> GetAccountMainKeysAsyncWithHttpInfo ()
740+
/// <returns>Task of ApiResponse (AccountKeyInfo)</returns>
741+
public async Task<ApiResponse<AccountKeyInfo>> GetAccountMainKeysAsyncWithHttpInfo ()
742742
{
743743

744744
RequestOptions localVarRequestOptions = new RequestOptions();
@@ -763,7 +763,7 @@ public async Task<ApiResponse<Key>> GetAccountMainKeysAsyncWithHttpInfo ()
763763

764764
// make the HTTP request
765765

766-
var localVarResponse = await this.AsynchronousClient.GetAsync<Key>("/account/main_keys", localVarRequestOptions, this.Configuration);
766+
var localVarResponse = await this.AsynchronousClient.GetAsync<AccountKeyInfo>("/account/main_keys", localVarRequestOptions, this.Configuration);
767767

768768
if (this.ExceptionFactory != null)
769769
{

src/Io.Gate.GateApi/Model/Key.cs renamed to src/Io.Gate.GateApi/Model/AccountKeyInfo.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ namespace Io.Gate.GateApi.Model
2828
/// Main Account API Key Information
2929
/// </summary>
3030
[DataContract]
31-
public partial class Key : IEquatable<Key>, IValidatableObject
31+
public partial class AccountKeyInfo : IEquatable<AccountKeyInfo>, IValidatableObject
3232
{
3333
/// <summary>
34-
/// Initializes a new instance of the <see cref="Key" /> class.
34+
/// Initializes a new instance of the <see cref="AccountKeyInfo" /> class.
3535
/// </summary>
3636
/// <param name="state">API Key Status: 1 - Normal, 2 - Locked, 3 - Frozen (can only be modified; default is 1 upon creation).</param>
3737
/// <param name="mode">User Mode: 1 - Classic, 2 - Legacy Unified (can only be specified during creation, non-modifiable afterwards).</param>
@@ -41,7 +41,7 @@ public partial class Key : IEquatable<Key>, IValidatableObject
4141
/// <param name="ipWhitelist">IP Whitelist.</param>
4242
/// <param name="perms">perms.</param>
4343
/// <param name="key">key.</param>
44-
public Key(int state = default(int), int mode = default(int), List<string> name = default(List<string>), List<string> currencyPairs = default(List<string>), long userId = default(long), List<string> ipWhitelist = default(List<string>), List<KeyPerms> perms = default(List<KeyPerms>), AccountDetailKey key = default(AccountDetailKey))
44+
public AccountKeyInfo(int state = default(int), int mode = default(int), List<string> name = default(List<string>), List<string> currencyPairs = default(List<string>), long userId = default(long), List<string> ipWhitelist = default(List<string>), List<AccountKeyInfoPerms> perms = default(List<AccountKeyInfoPerms>), AccountDetailKey key = default(AccountDetailKey))
4545
{
4646
this.State = state;
4747
this.Mode = mode;
@@ -99,7 +99,7 @@ public partial class Key : IEquatable<Key>, IValidatableObject
9999
/// Gets or Sets Perms
100100
/// </summary>
101101
[DataMember(Name="perms")]
102-
public List<KeyPerms> Perms { get; set; }
102+
public List<AccountKeyInfoPerms> Perms { get; set; }
103103

104104
/// <summary>
105105
/// Gets or Sets Key
@@ -135,7 +135,7 @@ public partial class Key : IEquatable<Key>, IValidatableObject
135135
public override string ToString()
136136
{
137137
var sb = new StringBuilder();
138-
sb.Append("class Key {\n");
138+
sb.Append("class AccountKeyInfo {\n");
139139
sb.Append(" State: ").Append(State).Append("\n");
140140
sb.Append(" Mode: ").Append(Mode).Append("\n");
141141
sb.Append(" Name: ").Append(Name).Append("\n");
@@ -167,15 +167,15 @@ public virtual string ToJson()
167167
/// <returns>Boolean</returns>
168168
public override bool Equals(object input)
169169
{
170-
return this.Equals(input as Key);
170+
return this.Equals(input as AccountKeyInfo);
171171
}
172172

173173
/// <summary>
174-
/// Returns true if Key instances are equal
174+
/// Returns true if AccountKeyInfo instances are equal
175175
/// </summary>
176-
/// <param name="input">Instance of Key to be compared</param>
176+
/// <param name="input">Instance of AccountKeyInfo to be compared</param>
177177
/// <returns>Boolean</returns>
178-
public bool Equals(Key input)
178+
public bool Equals(AccountKeyInfo input)
179179
{
180180
if (input == null)
181181
return false;

src/Io.Gate.GateApi/Model/KeyPerms.cs renamed to src/Io.Gate.GateApi/Model/AccountKeyInfoPerms.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,17 @@
2525
namespace Io.Gate.GateApi.Model
2626
{
2727
/// <summary>
28-
/// KeyPerms
28+
/// AccountKeyInfoPerms
2929
/// </summary>
3030
[DataContract]
31-
public partial class KeyPerms : IEquatable<KeyPerms>, IValidatableObject
31+
public partial class AccountKeyInfoPerms : IEquatable<AccountKeyInfoPerms>, IValidatableObject
3232
{
3333
/// <summary>
34-
/// Initializes a new instance of the <see cref="KeyPerms" /> class.
34+
/// Initializes a new instance of the <see cref="AccountKeyInfoPerms" /> class.
3535
/// </summary>
3636
/// <param name="name">Permission function name (no value will be cleared) - &#x60;wallet&#x60;: wallet - &#x60;spot&#x60;: spot/margin - &#x60;futures&#x60;: perpetual contract - &#x60;delivery&#x60;: delivery contract - &#x60;earn&#x60;: earn - &#x60;custody&#x60;: custody - &#x60;options&#x60;: options - &#x60;account&#x60;: account information - &#x60;loan&#x60;: lending - &#x60;margin&#x60;: margin - &#x60;unified&#x60;: unified account - &#x60;copy&#x60;: copy trading- &#x60;pilot&#x60;: pilot - &#x60;otc&#x60;: otc - &#x60;alpha&#x60;: alpha - &#x60;crossx&#x60;: cross-exchange.</param>
3737
/// <param name="readOnly">Read Only.</param>
38-
public KeyPerms(string name = default(string), bool readOnly = default(bool))
38+
public AccountKeyInfoPerms(string name = default(string), bool readOnly = default(bool))
3939
{
4040
this.Name = name;
4141
this.ReadOnly = readOnly;
@@ -62,7 +62,7 @@ public partial class KeyPerms : IEquatable<KeyPerms>, IValidatableObject
6262
public override string ToString()
6363
{
6464
var sb = new StringBuilder();
65-
sb.Append("class KeyPerms {\n");
65+
sb.Append("class AccountKeyInfoPerms {\n");
6666
sb.Append(" Name: ").Append(Name).Append("\n");
6767
sb.Append(" ReadOnly: ").Append(ReadOnly).Append("\n");
6868
sb.Append("}\n");
@@ -85,15 +85,15 @@ public virtual string ToJson()
8585
/// <returns>Boolean</returns>
8686
public override bool Equals(object input)
8787
{
88-
return this.Equals(input as KeyPerms);
88+
return this.Equals(input as AccountKeyInfoPerms);
8989
}
9090

9191
/// <summary>
92-
/// Returns true if KeyPerms instances are equal
92+
/// Returns true if AccountKeyInfoPerms instances are equal
9393
/// </summary>
94-
/// <param name="input">Instance of KeyPerms to be compared</param>
94+
/// <param name="input">Instance of AccountKeyInfoPerms to be compared</param>
9595
/// <returns>Boolean</returns>
96-
public bool Equals(KeyPerms input)
96+
public bool Equals(AccountKeyInfoPerms input)
9797
{
9898
if (input == null)
9999
return false;

0 commit comments

Comments
 (0)