Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

validation-constraints-required: Field is missing: account-id. #116

Closed
UncleJey opened this issue Sep 17, 2024 · 2 comments
Closed

validation-constraints-required: Field is missing: account-id. #116

UncleJey opened this issue Sep 17, 2024 · 2 comments

Comments

@UncleJey
Copy link
Contributor

UncleJey commented Sep 17, 2024

Hi!

        //init:
        HTXRestClient restClient = new HTXRestClient();
        restClient.SpotApi.SetApiCredentials(new ApiCredentials(key, secret));
        // this working fine

        var user = await restClient.SpotApi.Account.GetUserIdAsync();
        Debug.Log(user.Data);
       // this returns valid user id

        var acc = await restClient.SpotApi.Account.GetAccountsAsync();
        var account = acc.Data.First();
        Debug.Log($"account id:{account.Id} status: {account.Status} type:{account.Type}");
       // returns account id:XXXXXXXX status: Working type:Spot

          var blc = await restClient.SpotApi.Account.GetAccountHistoryAsync(account.Id);
       // blc.Data.Error.Message this returns error
      **validation-constraints-required: Field is missing: account-id.**

why?

@UncleJey
Copy link
Contributor Author

@JKorf can you take a look?

@UncleJey
Copy link
Contributor Author

fized in #117

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant