复制完以后在交易终端点右上角点击组件图标选种组件即可使用
function main() { if (exchange.GetName() != 'Futures_CTP') { throw "只支持CTP前置机"; } var acc = exchange.GetAccount(); if (!acc) { throw "获取账户基本信息失败"; } return exchange.IO("api", "ReqUserPasswordUpdate", {BrokerID: acc.Info.BrokerID, UserID: acc.Info.AccountID, OldPassword: OldPassword, NewPassword: NewPassword}) }