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

Function _base_frame

python/tests/test_bars_module.py:8–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6import openquant
7import polars as pl
8import pytest
9from polars.testing import assert_frame_equal
10
11
12def _base_frame() -> pl.DataFrame:
13 ts = [
14 "2024-01-01 09:30:00",
15 "2024-01-01 09:31:00",
16 "2024-01-01 09:33:00",
17 "2024-01-01 09:34:00",
18 "2024-01-01 09:35:00",
19 "2024-01-01 09:36:00",
20 "2024-01-01 09:37:00",
21 "2024-01-01 09:39:00",
22 "2024-01-01 09:40:00",
23 "2024-01-01 09:41:00",
24 ]
25 close = [100.0, 100.4, 100.1, 100.8, 100.7, 101.2, 101.0, 101.5, 101.4, 101.7]
26 volume = [
27 80_000.0,
28 85_000.0,
29 90_000.0,
30 88_000.0,
31 95_000.0,
32 300_000.0,
33 92_000.0,
34 98_000.0,
35 99_000.0,
36 97_000.0,
37 ]

Calls

no outgoing calls

Tested by

no test coverage detected