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

Usdt-M Futures get Margin Account Info Issue #122

Open
QuickLeopard opened this issue Nov 12, 2024 · 1 comment
Open

Usdt-M Futures get Margin Account Info Issue #122

QuickLeopard opened this issue Nov 12, 2024 · 1 comment

Comments

@QuickLeopard
Copy link

API CALL:
var response =

await restClient.UsdtFuturesApi.Account.GetCrossMarginAccountInfoAsync();

HTX SERVER RETURNS:
"{Error response: [ServerError] 4002 The merged cross and isolated margin account for USDT-M futures is unavailable.Please complete the query with linear-swap-api/v3/unified_account_info received in 356ms}"

TO REPRODUCE:
HTXRestClient.SetDefaultOptions(options =>
{
options.ApiCredentials = new ApiCredentials(API_KEY, API_SECRET); // <- Provide you API key/secret in these fields to retrieve data related to your account,
});

HTXRestClient restClient = new HTXRestClient();

var response =

await restClient.UsdtFuturesApi.Account.GetCrossMarginAccountInfoAsync();
@JKorf
Copy link
Owner

JKorf commented Nov 13, 2024

Hi based on the response you have a Unified margin account instead of a seperate cross/isolated margin account. I see the unified account endpoints are not currently implemented, I'll add them in a futures version.

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

2 participants