Integrations can inject timestamped historical data, no custom sql required either. There’s an API in core for this integrations can use. And there are two integrations in core making use of this API you can use as a reference. See my post here for more info: