Skip to content

Develop fee#34

Merged
shanu516516 merged 2 commits into
mainfrom
develop-fee
Jul 1, 2025
Merged

Develop fee#34
shanu516516 merged 2 commits into
mainfrom
develop-fee

Conversation

@shanu516516
Copy link
Copy Markdown
Collaborator

This branch merges new features and fixes related to order cancellation handling and fee tracking into the project:

  • Order Cancellation Logic (Lua & Rust):

    • The archiver.rs Redis script to properly handle order cancellations.
    • When an order is cancelled:
      • The order is removed from the Redis hash.
      • The position size is adjusted or removed from the order book.
      • No further processing occurs if the position is already zero.
    • This ensures that cancelled orders are cleanly removed from both memory and persistent storage.
  • Orderbook View Enhancements (SQL Migration):

    • Modified the up.sql migration to add two new columns: fee_filled and fee_settled.
    • These columns are now selected and available in orderbook views for both open and settled orders.
    • This change supports more detailed fee tracking and reporting at the database level.

@shanu516516 shanu516516 merged commit b69b830 into main Jul 1, 2025
0 of 3 checks passed
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.

1 participant