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

chore(solver/app): add usd pnl #3281

Merged
merged 1 commit into from
Mar 5, 2025
Merged

chore(solver/app): add usd pnl #3281

merged 1 commit into from
Mar 5, 2025

Conversation

corverroos
Copy link
Collaborator

Adds PnL in USD to solver.

issue: #3199

Copy link

vercel bot commented Mar 5, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
omni ⬜️ Ignored (Inspect) Mar 5, 2025 1:29pm

Comment on lines +13 to +16
// Price returns the price of the token in USD.
Price(ctx context.Context, tokens Token) (float64, error)
// Prices returns the price of each provided token in USD.
Prices(ctx context.Context, tokens ...Token) (map[Token]float64, error)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

slight change to pricer interface

@corverroos corverroos merged commit 9dd0fb5 into main Mar 5, 2025
21 checks passed
@corverroos corverroos deleted the corver/usdpnl branch March 5, 2025 15:12
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

Successfully merging this pull request may close these issues.

2 participants