Get fees to claims
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user