Skip to main content

Session Management

Trading sessions can more or less be distilled down to trading hours or times when traders will trade.

Trading Hours

Stock market times

  • Pre-Market 04:00 EST to 9:30 EST
  • Market 9:30 EST to 16:00 EST
  • After Market 16:00 EST to 20:00 EST

Forex market times

  • Sydney 17:00 EST to 02:00 EST
  • Tokyo 19:00 EST to 04:00 EST
  • London 03:00 EST to 00:00 EST
  • New York 08:00 EST to 17:00 EST

Crypto market times

  • 24 hour market, use UTC days

Time Tracking

For session management, on query, which ever app uses session should calculate sessions on it's down to reduce times. Where we should be storing current session is in PostGreSQL, RabbitMQ, and Redis. This helps so we can query the session as well as be able to trigger events off sessions using pub/sub.