function main() { if (exchange.GetName() != 'Futures_CTP') { throw "只支持CTP前置机"; } r = exchange.IO("settlement", QDate);