Enum SplitDuration
- Namespace
- DatabentoDotNet.Historical
- Assembly
- DatabentoDotNet.Historical.dll
The time interval a batch job's output is split into separate files at.
public enum SplitDuration
- Extension Methods
Fields
Day = 0One file per day. The API's default, and this enum's.
Month = 2One file per month.
None = 4No splitting by time. Comes back from the API as
null.Week = 1One file per week, a week beginning on Sunday UTC.
Year = 3One file per year.
Remarks
Port of upstream's SplitDuration (batch.rs:398-410), whose default is
Day — so Day is the zero value here, and default agrees with
upstream's #[default] rather than quietly meaning "do not split".
None arrives as JSON null, never as the string "none".
Upstream discovered this and handles it in a hand-written deserializer
(batch.rs:672-681): "The API returns null instead of "none" for no
time-based splitting". #39's probe of batch.get_job_details confirms it — a job submitted
with no split carries "split_duration":null — so BatchWireStrings renders
none for a request and Json.SplitDurationJsonConverter reads null back.