()
| 6 | import openquant |
| 7 | import polars as pl |
| 8 | import pytest |
| 9 | from polars.testing import assert_frame_equal |
| 10 | |
| 11 | |
| 12 | def _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 | ] |
no outgoing calls
no test coverage detected