Longbridge.QuoteContext.RealtimeStore (longbridge v0.1.0)

Copy Markdown View Source

In-memory cache of pushed data, keyed by symbol.

Mirrors the local data store maintained by the upstream longbridge/openapi Rust and Go SDKs (SecuritiesData / Store in their respective cores). Updated on every push event the QuoteContext receives, queried by the realtime_* family of methods.

Backed by an ETS table owned by the QuoteContext process so it inherits the connection's lifecycle.

Data retained per symbol

  • quote — most recent PushQuote (one)
  • depth — most recent PushDepth (one)
  • brokers — most recent PushBrokers (one)
  • trades — recent PushTrade entries (capped at 500)

Summary

Functions

Returns a specification to start this module under a supervisor.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.