MCPcopy
hub / github.com/microsoft/qlib / get_order

Function get_order

tests/rl/test_qlib_simulator.py:25–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23
24
25def get_order() -> Order:
26 return Order(
27 stock_id="SH600000",
28 amount=TOTAL_POSITION,
29 direction=OrderDir.BUY,
30 start_time=pd.Timestamp("2019-03-04 09:30:00"),
31 end_time=pd.Timestamp("2019-03-04 14:29:00"),
32 )
33
34
35def get_configs(order: Order) -> Tuple[dict, dict]:

Callers 3

test_simulator_stop_twapFunction · 0.85
test_interpreterFunction · 0.85

Calls 1

OrderClass · 0.90

Tested by

no test coverage detected