关于函数的Event事件想请教大家

yuchaohua yuchaohua 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
现在我有一个API控件,它封装的函数中有一个Method是
reqAccountUpdates(boolean subscribe, string acctCode)

Call this method to request account updates. The account data will be fed back through the updateAccountTime, updateAccountValue and updatePortfolio events.


Event
void updatePortfolio (string symbol, string secType, string expiry, double strike, string right, string currency, string localSymbol, long position, double marketPrice, double marketValue, double averageCost, double unrealizedPNL, double realizedPNL, String account
This event updates a single holding in your portfolio.

如上面所叙述,
我想通过reqAccountUpdates函数的返回event:updatePortfolio得到它包含的某些值,该怎样去实现呢?新手上路,请多多指教!




...全文

相关推荐

评论
收藏 已收藏
分享
返回顶部