Parse official today/history legs in onRspQryInvestorPosition instead of guessing or retrying alternate offsets.
Co-authored-by: Cursor <cursoragent@cursor.com>
Correct main_code order in product refresh, refresh on CTP connect, and limit reconnect to trading or premarket windows.
Co-authored-by: Cursor <cursoragent@cursor.com>