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

Function sample_rows

crates/openquant/tests/data_processing.rs:8–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6}
7
8fn sample_rows() -> Vec<OhlcvRow> {
9 vec![
10 OhlcvRow {
11 timestamp: ts(0),
12 symbol: "AAPL".to_string(),
13 open: 100.0,
14 high: 101.0,
15 low: 99.0,
16 close: 100.5,
17 volume: 10.0,
18 adj_close: 100.5,
19 },
20 OhlcvRow {
21 timestamp: ts(60),
22 symbol: "AAPL".to_string(),
23 open: 100.5,
24 high: 101.2,
25 low: 100.3,
26 close: 101.0,
27 volume: 11.0,
28 adj_close: 101.0,
29 },
30 OhlcvRow {
31 timestamp: ts(60),
32 symbol: "AAPL".to_string(),
33 open: 100.6,
34 high: 101.3,
35 low: 100.4,
36 close: 101.1,
37 volume: 12.0,
38 adj_close: 101.1,
39 },
40 ]
41}
42
43#[test]
44fn clean_and_align_rows() {

Callers 1

clean_and_align_rowsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected