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 TradingLimits data to aegis, configure to grafana dashboard and alerts #1

Closed
3 tasks
ninabarbakadze opened this issue Aug 2, 2023 · 0 comments
Closed
3 tasks

Comments

@ninabarbakadze
Copy link

ninabarbakadze commented Aug 2, 2023

Description

We want to be able to visualize and create alerts based on trading limits data.
In order to expose this data from aegis we need to:

  • Create a smart contract with two functions:
    • netflow(bytes32 exchangeId, address asset, uint8 limit)(uint256)
    • limit(bytes32 exchangeId, address asset, uint8 limit)(uint256)
    • timeLeft(bytes32 exchangeId, address asset, uint8 limit)(uint256) (timestamp)
    • duration(bytes32 exchangeId, address asset, uint8 limit)(uint256) (timestamp)
  • Add variables in the config for:
    • all exchangeIds
    • all assets (if needed)
    • limits
  • Add metric definitions using the variables
  • Create a dashboard in Grafan showing the data
  • Create severe alert for netflow passing the limit (should never happen)
  • Create an informational alert based on timeLeft/duration vs abs(netflow)/limit

Acceptance Criteria:

  • On-chain data is created in Aegis
  • Dashboard is created
  • Alert severity set to info and alerts show up on discord
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: 📥 Backlog
Development

No branches or pull requests

2 participants