Skip to content

v0.2.2

Choose a tag to compare

@shanu516516 shanu516516 released this 20 Mar 19:18
· 9 commits to main since this release

What's Changed in v0.2.2 (compared to v0.2.1)

New Features

Lend Order Info V1 RPC Method

  • Added lend_order_info_v1 RPC method with unrealised profit calculation and APR computation
  • Refined unrealised profit and APR calculations for accuracy

Open Interest Chart

  • Added open_interest_chart RPC method and associated database functions
  • New migration (2026-03-16-000000_open_interest_chart) with schema for tracking open interest over time

Stop-Loss & Take-Profit (SLTP) Support

  • Added new command types for stop loss and take profit in SQL types
  • Added methods to retrieve latest take-profit and stop-loss details
  • Enhanced trader_order_info with take-profit and stop-loss fields
  • Enhanced TraderOrderLimitUpdate handling for SLTP commands
  • Added SLTP order type to SQL types

Transaction Hash Handling

  • Refactored transaction hash handling and enhanced database schema
  • Added request_id support in DatabaseArchiver transaction handling
  • New migration (2026-03-09-000000_txhash_improvements) for tx hash schema improvements
  • Added transaction_hashes RPC method documentation

Improvements

Order Management

  • Added OrderUpdated status to OrderStatus enum
  • Added CancelledLimitClose status to OrderStatus enum
  • Updated order size calculation in archiver logic based on order status
  • Added new order type and status variants to SQL types and migrations

Price & Data Handling

  • Refactored price handling in SortedSetCommand to enforce two decimal scale
  • Updated SortedSetCommand to include created_time in model and related functions

Code Quality & Maintenance

  • Refactored funding update retrieval and improved code readability in public_methods.rs
  • Updated logging level for price feed errors
  • Removed commented-out logging for price feed errors in WsContext
  • Enhanced event handling in Kafka consumer
  • Updated .gitignore

Dependency Updates

  • Updated relayer-core dependency to use specific tag instead of branch reference
  • Version bumped to 0.2.2

Database Migrations

  • 2026-03-09-000000_txhash_improvements — Transaction hash schema enhancements
  • 2026-03-09-000001_add_order_types — New order type and status variants
  • 2026-03-16-000000_open_interest_chart — Open interest chart tables

Stats

  • 22 files changed, 1,338 insertions(+), 98 deletions(-)

Full Changelog: v0.2.1...v0.2.2