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

Margin Ratio Query Feature #62

Open
flaneurdd opened this issue Oct 12, 2022 · 1 comment
Open

Margin Ratio Query Feature #62

flaneurdd opened this issue Oct 12, 2022 · 1 comment

Comments

@flaneurdd
Copy link

flaneurdd commented Oct 12, 2022

Feature Request

Add support for trader margin ratio queries

Margin ratio is calculated as: (margin + pending funding payments + unrealized Pnl) / openNotional
The query is to return the calculated ratio and the components: margin, funding payments, unrealized Pnl and openNotional
The query should allow filtering by trader, blocknumber and timestamp

@Wraecca
Copy link
Contributor

Wraecca commented Oct 13, 2022

As discussed in Discord, we want to experiment with allowing community members to give donations to devs that provide pull requests. I'll match the donation (same dollar value in PERP), so now we have 100 USDC & $100 worth of PERP for this feature request. Look forward to seeing how it goes!

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