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

add accountHealth #42

Open
wphan opened this issue Mar 11, 2024 · 1 comment
Open

add accountHealth #42

wphan opened this issue Mar 11, 2024 · 1 comment

Comments

@wphan
Copy link
Member

wphan commented Mar 11, 2024

add an endpoint for a subaccount's accountHealth (same as health modal on UI).

Should show for both initial and maintenance margin types:

  • Total collateral
  • Margin requirement
  • Free collateral
@jordy25519
Copy link
Collaborator

should be simple, can extract this: https://github.com/drift-labs/drift-rs/blob/a443eaf060b2fb54d373a82b5f040a10d3c58099/src/liquidation.rs#L260-L278

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