Skip to content

Feed Record Reference | ScaleTrade

🔌 Structure: FeedRecord

Describes a data feed (feeder) source and its connection, licensing, and operational settings.

Field Type Default Description
index int 0 Unique identifier (primary key for the feed)
priority int 0 Priority of the feed (higher = more preferred)
version int 0 Version of the data feed (used for updates and compatibility checks)
name string — Name of the data source
module_name string — File name within the feed module directory
copyright string — Copyright information
web string — Official website of the data provider
config object in API, JSON string in storage {} Provider-specific feeder configuration.
modes int 0 Operating modes (bitmask or enum FeederModes)
description string — Human-readable description of the data source
module string — Licensed module name (used for licensing and loading)
file string — Executable or dynamic library file name
enable int 0 Feed status flag: 0 = disabled, 1 = enabled
mode int 0 Feed mode (e.g., FEED_MASTER, FEED_RESERVE)
timeout int 120 Timeout before considering feed as unresponsive (in seconds)
timeout_reconnect int 5 Time before first reconnect attempt after failure (in seconds)
timeout_sleep int 60 Delay between reconnect attempts after repeated failures (in seconds)
attemps_sleep int 3 Number of failed attempts before switching to longer reconnect intervals

Quote symbol mapping

Mappings are separate records. A mapping normalizes a provider-specific symbol name to the source name used by server symbols:

{"feeder_id":7,"provider_symbol":"EUR/USD","source_name":"EURUSD"}

Mapping is performed by FeedManager before a tick enters the quote pipeline. Lookup is exact and case-sensitive. Masks and wildcard rules are not supported. If a provider symbol is absent from the map, it continues unchanged and is treated as the source name.

After normalization, the existing source index can fan one source_name out to multiple internal symbols. QuotePolicy does not perform symbol mapping; it only selects a feeder by (provider_type, provider_id).

Mappings are compiled into an immutable in-memory snapshot when feeder configuration changes. Tick processing does not parse JSON or query the database.

Mappings are persisted in feed_symbol_mappings and are deleted automatically with their feeder. See Feeder symbol mappings.