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

EstimatePosition API returns incorrect margin estimate with perps edge case #10121

Closed
witgaw opened this issue Nov 16, 2023 · 0 comments · Fixed by #10119, #10122 or #10124
Closed

EstimatePosition API returns incorrect margin estimate with perps edge case #10121

witgaw opened this issue Nov 16, 2023 · 0 comments · Fixed by #10119, #10122 or #10124

Comments

@witgaw
Copy link
Member

witgaw commented Nov 16, 2023

When market doesn't have at least 1 of each price observations (internal and external) the funding payment doesn't get exchanged, but Margin Estimate assumes it will happen and hence provides and incorrect estimate for side due to make the payment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment