This example demonstrates two powerful and complementary methods in eXtremeDB's Python API for inserting time-series data into sequence fields:
- The
Object.seq_append()method — used to append coordinated records across multiple sequence fields of an existing object, supporting input as tuples, dictionaries, custom Python objects, or lists of these.- The
Connection.nest()method — which automatically creates or updates objects based on a unique key (e.g.,key), while simultaneously appending new sequence records using the same flexible input formats.Together, these methods enable efficient, high-level ingestion of structured time-series data while maintaining logical alignment between parallel sequences such as timestamps, prices, and volumes.
In a console window run:
seqnestBut it is more instructive to run one instance in your development environment debugger, stepping through the code.