### 策略盘前运行 - before_trading_start 说明了在交易环境和回测环境中,如何使用before_trading_start函数在盘前运行策略。 ```Python def before_trading_start(context): # 盘前运行逻辑 pass ``` -------------------------------- ### 交易策略委托下单 - order系列接口 介绍了如何使用order系列接口进行股票委托下单,并说明了下单会直接报到柜台。 ```Python order("stock_code", quantity, price) order_target("stock_code", target_quantity) ``` -------------------------------- ### 策略盘中运行 - run_daily指定时间 展示了如何在盘中指定时间运行策略,适用于分钟级别回测和交易环境,并提及了run_daily函数的使用。 ```Python def handle_data(context): # 盘中运行逻辑 pass def run_daily(context, time='09:15'): # 指定时间运行逻辑 pass ``` -------------------------------- ### 策略运行周期说明 - handle_data 说明了回测和交易在不同频率下的运行方式,特别是日线和分钟级别的数据处理。 ```Python def handle_data(context): # 日线级别或分钟级别策略逻辑 pass ``` -------------------------------- ### Tick级别交易运行 - run_interval 描述了Tick级别交易的运行方式,以及如何使用run_interval函数处理高频数据。 ```Python def run_interval(context): # Tick级别策略逻辑 pass ``` -------------------------------- ### 策略盘后运行 - after_trading_end 说明了在交易和回测环境中,如何使用after_trading_end函数在盘后定时运行策略。 ```Python def after_trading_end(context): # 盘后运行逻辑 pass ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.