Trading Sessions & Security Status
Model opening and closing auctions, continuous trading and the midday break. Apply market- and security-specific suspension, price and order rules, and test how the backtest handles unfillable orders.
Design research, backtesting and paper execution workflows for Shanghai and Shenzhen A-shares and Hong Kong securities. Define the universe, data access and market rules before scoping broker integration and go-live checks.
Maintain board-lot sizes and price increments by security and model board-lot and odd-lot handling. Support half-day and auction sessions in the calendar, and verify order eligibility and liquidity assumptions.
Configure currencies, fees and settlement treatment by security, account and route. For Stock Connect workflows, verify the route calendar, eligible securities and broker-supported order capabilities separately.
Use each security’s board-lot size and each session’s actual trading hours. Validate board-lot orders against the security’s lot size and handle odd lots using the capabilities of the broker and route.
Acceptance example: with a 500-share board lot, selling 1,200 shares involves 1,000 board-lot shares and a 200-share odd lot. Record the handling of each part separately. If a signal arrives after the half-day close, defer or skip it under the agreed policy and record the session restriction.
Record market-data and rule versions, adjustment methods, the universe and cost assumptions. Replay suspensions, price-limit events and corporate actions to verify signals, fills and holdings.
Test unavailable sellable quantity, orders above limits, partial fills, cancellations and reconnections. Before live integration, confirm broker capabilities, account permissions and applicable algorithmic trading requirements, then reconcile orders, holdings and statements.