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

Function _toy_pipeline_input

python/tests/test_pipeline_api.py:7–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5
6
7def _toy_pipeline_input():
8 timestamps = [
9 "2024-01-01 09:30:00",
10 "2024-01-01 09:31:00",
11 "2024-01-01 09:32:00",
12 "2024-01-01 09:33:00",
13 "2024-01-01 09:34:00",
14 "2024-01-01 09:35:00",
15 "2024-01-01 09:36:00",
16 "2024-01-01 09:37:00",
17 ]
18 close = [100.0, 100.2, 99.9, 100.4, 100.0, 100.7, 100.4, 100.9]
19 probabilities = [0.55, 0.60, 0.52, 0.48, 0.61, 0.58, 0.63, 0.57]
20 sides = [1.0, 1.0, -1.0, 1.0, 1.0, -1.0, 1.0, 1.0]
21 asset_prices = [
22 [100.0, 100.0, 100.0],
23 [100.2, 99.8, 100.1],
24 [100.3, 99.9, 100.2],
25 [100.4, 100.2, 100.1],
26 [100.3, 100.0, 100.3],
27 [100.6, 100.1, 100.4],
28 [100.7, 100.3, 100.5],
29 [100.8, 100.4, 100.6],
30 ]
31 asset_names = ["A", "B", "C"]
32 return timestamps, close, probabilities, sides, asset_prices, asset_names
33
34
35def test_pipeline_run_contract():

Callers 3

test_pipeline_run_framesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected