MCPcopy Create free account
hub / github.com/Open-Quant/openquant / ts

Function ts

crates/openquant/tests/data_structures_standard.rs:4–6  ·  view source on GitHub ↗
(seconds: i64)

Source from the content-addressed store, hash-verified

2use openquant::data_structures::{standard_bars, time_bars, StandardBarType, Trade};
3
4fn ts(seconds: i64) -> NaiveDateTime {
5 DateTime::<Utc>::from_timestamp(seconds, 0).expect("timestamp").naive_utc()
6}
7
8fn sample_trades() -> Vec<Trade> {
9 vec![

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected