MCPcopy Create free account
hub / github.com/quantopian/zipline / handle_data

Method handle_data

tests/test_algorithm.py:3199–3201  ·  view source on GitHub ↗
(algo, data)

Source from the content-addressed store, hash-verified

3197 algo.set_max_leverage(max_leverage=max_leverage)
3198
3199 def handle_data(algo, data):
3200 algo.order(algo.sid(self.sidint), 1)
3201 algo.record(latest_time=algo.get_datetime())
3202
3203 # Set max leverage to 0 so buying one share fails.
3204 algo = self.make_algo(

Callers

nothing calls this directly

Calls 5

recordMethod · 0.80
order_target_percentMethod · 0.80
orderMethod · 0.45
sidMethod · 0.45
get_datetimeMethod · 0.45

Tested by

no test coverage detected