Get fees to claims

This commit is contained in:
2025-06-13 14:22:38 +07:00
parent 5188b5faec
commit 3f34c56968
13 changed files with 580 additions and 20 deletions

View File

@@ -75,6 +75,20 @@ namespace Managing.Api.Controllers
return Ok(await _AccountService.GetAccountByUser(user, name, true, true));
}
/// <summary>
/// Retrieves the GMX claimable fees summary for a specific account.
/// </summary>
/// <param name="name">The name of the account to get claimable fees for.</param>
/// <returns>The GMX claimable fees summary including funding fees, UI fees, and rebate stats.</returns>
[HttpGet]
[Route("{name}/gmx-claimable-summary")]
public async Task<ActionResult<GmxClaimableSummary>> GetGmxClaimableSummary(string name)
{
var user = await GetUser();
var result = await _AccountService.GetGmxClaimableSummaryAsync(user, name);
return Ok(result);
}
/// <summary>
/// Deletes a specific account by name for the authenticated user.
/// </summary>