Skip to content

Build auto-invest rule management and execution API #1031

Closed
zainabwahab-eth/accesslayer-server
#2

Description

@Chucks1093

Summary

Implement endpoints for creating and managing auto-invest rules, and a background job that evaluates rules against newly listed keys and executes qualifying purchases.

Scope

  • POST /auto-invest/rules — create rule with category, min rating, max price, max per key
  • GET /auto-invest/rules?wallet= — list active rules for wallet
  • PATCH /auto-invest/rules/:id — update or toggle rule
  • DELETE /auto-invest/rules/:id — delete rule
  • Execution job triggered on each new key listing event

Acceptance Criteria

  • Rule CRUD endpoints work correctly with validation
  • Execution job evaluates rules correctly against all criteria
  • Balance threshold check prevents execution when insufficient
  • AutoInvestExecuted event recorded with rule and key IDs
  • Multiple matching rules execute independently per wallet

ETA

12 hours

Activity

  1. innocentharuna commented on Oct 17, 2026

    @innocentharuna

    @innocentharuna has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

    hey maintainer, please kindly assign this to me, i can surely fix it

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @innocentharuna to this issue.

  2. iorchirmyom-afk commented on Oct 17, 2026

    @iorchirmyom-afk

    @iorchirmyom-afk has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

    I would love to work on this issue. Please assign 🙏

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @iorchirmyom-afk to this issue.

  3. BashBurna26 commented on Oct 17, 2026

    @BashBurna26

    @BashBurna26 has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

    I would like to work on the Drips Network Project because I am interested in innovative blockchain and decentralized technologies that create real value for communities

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @BashBurna26 to this issue.

  4. Ayfataan commented on Oct 17, 2026

    @Ayfataan

    @Ayfataan has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

    I’d like to work on this issue

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @Ayfataan to this issue.

  5. zainabwahab-eth commented on Oct 17, 2026

    @zainabwahab-eth
    Contributor

    @zainabwahab-eth has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

    Hello, I'd love to work on this. Please assign to me. Thank you

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @zainabwahab-eth to this issue.

  6. Times-stack commented on Oct 17, 2026

    @Times-stack

    @Times-stack has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

    Hi maintainer I would like to work on this issue please assign

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @Times-stack to this issue.

  7. ritachukwuneye commented on Oct 17, 2026

    @ritachukwuneye

    @ritachukwuneye has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

    Hi maintainer, Kindly assign this issue to me.

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @ritachukwuneye to this issue.

  8. michljoe commented on Oct 17, 2026

    @michljoe

    @michljoe has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

    Hi, I'll like to work on this issues, I'll provide the best technical skills from experience, please assign it to me

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @michljoe to this issue.

  9. shinorh247 commented on Oct 17, 2026

    @shinorh247

    @shinorh247 has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

    Hi maintainer I would love to work on this issue

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @shinorh247 to this issue.

  10. Lspnjr1 commented on Oct 17, 2026

    @Lspnjr1

    @Lspnjr1 has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

    Kindly assign boss

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @Lspnjr1 to this issue.

  11. Sensei-Victor commented on Oct 17, 2026

    @Sensei-Victor
    Contributor

    @Sensei-Victor has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

    Please assign

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @Sensei-Victor to this issue.

  12. drips-wave commented on Oct 17, 2026

    @drips-wave

    Congratulations, @zainabwahab-eth! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on October 22, 2026.

    🧑‍💻 @zainabwahab-eth: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.

    Warning

    When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.

    🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.

    🌊 Happy Wave 🌊

  13. grantfox-oss commented on Oct 21, 2026

    @grantfox-oss

    🎉 This issue has been marked as completed on GrantFox!

    @zainabwahab-eth's PR #1122 was approved and merged by @Chucks1093.

    🏆 @zainabwahab-eth: You earned 40 FoxPoints for this contribution! Your current tier: Builder (1,206 total points). Track your full progress on GrantFox.

    👏 Great work, @zainabwahab-eth! Keep contributing to accesslayerorg.

  14. added a commit that references this issue on Oct 21, 2026
  15. drips-wave commented on Oct 21, 2026

    @drips-wave

    This issue has been completed by @zainabwahab-eth as part of the Stellar Wave Program's 10th Wave 🥳

    😎 @zainabwahab-eth: You earned 150 Points for completing this issue! Once the Wave's rewards are finalized, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here. You can also Leave a review to share your experience working on this issue.

    🧑‍💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.

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

Metadata

Metadata

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions