Skip to content

v0.1.46: Rate Limiting Removal & Cache Improvements

Choose a tag to compare

@quanhua92 quanhua92 released this 02 Dec 00:46
· 695 commits to main since this release

Features

  • Add mode selection support to Ticker Data Explorer - Users can now seamlessly switch between Vietnamese stocks (VN) and cryptocurrency data using a new dropdown interface
  • Implement auto-clear cache functionality - Cache now automatically clears 50% of oldest entries when reaching 95% capacity to prevent memory issues
  • Add configurable cache management - New environment variables for cache control:
    • CACHE_AUTO_CLEAR_ENABLED (default: true)
    • CACHE_AUTO_CLEAR_THRESHOLD (default: 0.95)
    • CACHE_AUTO_CLEAR_RATIO (default: 0.5)

Improvements

  • Remove governor rate limiting completely - Server now runs without any rate limiting restrictions for better performance
  • Fix crypto worker logging - Replace confusing log messages with proper debug-level logging
  • Add cryptocurrency examples - Quick examples now include BTC, ETH, XRP for easy testing
  • Maintain backward compatibility - VN mode remains the default for existing API users

Data Updates

  • Update market data for VNINDEX and VIC tickers
  • Update cryptocurrency data for BTC across all intervals

Technical Changes

  • Remove tower_governator dependency and associated middleware
  • Clean up unused imports and rate limit headers from CORS configuration
  • Fix compilation issues with format strings and borrow checker