Skip to content

[Margin app] Create assets statistic handler #917

@CBoYXD

Description

@CBoYXD

Guideline

  1. Carefully read the issue description before applying to ensure you have all the necessary information to start working on it.
  2. Write a brief description of how you will approach the task (without using ChatGPT).
  3. Add your Telegram handler in your application (e.g., in OnlyDust or similar)
  4. Write ETA in your application

What should I do if I have a problem

  1. Try to google it before asking. Googling is taking major part of dev work
  2. If you couldn't find answer your question with Google, text your question to dev group with your question.
  3. Do not send DM to maintainer, it would be better and faster to ask other contributors in chat

How to prepare PR

  1. Check if your code smell good
  2. Add close #<issue number> to link your issue with your PR
  3. Do not commit changes that are unrelated to your task
  4. Check after you created PR, if you committed everything

Task Description

  1. In the handlers folder, create a new file named admin.py. Inside, add a handler called /assets. Use the Admin Filter from this issue to verify the user is an admin. Then, call the Assets statistic method from this issue to retrieve the data. Format the response using Telegram Markdown so it displays neatly.
  2. Provide a screenshot demonstrating that the handler works as expected.

Metadata

Metadata

Assignees

Labels

Backendgood first issueGood for newcomersonlydust-waveContribute to awesome OSS repos during OnlyDust's open source week

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions