Repository navigation
v0.2.2
What's Changed in v0.2.2 (compared to v0.2.1)
New Features
Lend Order Info V1 RPC Method
- Added
lend_order_info_v1RPC method with unrealised profit calculation and APR computation - Refined unrealised profit and APR calculations for accuracy
Open Interest Chart
- Added
open_interest_chartRPC 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_infowith take-profit and stop-loss fields - Enhanced
TraderOrderLimitUpdatehandling for SLTP commands - Added
SLTPorder type to SQL types
Transaction Hash Handling
- Refactored transaction hash handling and enhanced database schema
- Added
request_idsupport inDatabaseArchivertransaction handling - New migration (
2026-03-09-000000_txhash_improvements) for tx hash schema improvements - Added
transaction_hashesRPC method documentation
Improvements
Order Management
- Added
OrderUpdatedstatus toOrderStatusenum - Added
CancelledLimitClosestatus toOrderStatusenum - 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
SortedSetCommandto enforce two decimal scale - Updated
SortedSetCommandto includecreated_timein 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-coredependency 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 enhancements2026-03-09-000001_add_order_types— New order type and status variants2026-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