简体   繁体   English

盈透证券 API - 历史账户摘要

[英]Interactive Brokers API - Historical Account Summary

IBApi account summary request only pulls current account information. IBApi 帐户摘要请求仅提取当前帐户信息。 Is there a way to request historical account information?有没有办法请求历史帐户信息? For example, historical net liquidation value to calculate the historical performance of the portfolio.例如,历史净清算价值来计算投资组合的历史表现。

Short answer no.简短的回答没有。 The API can only access data/functions already available in the TWS, and that historical account information (other than recent trade activity) is not available in TWS. API 只能访问 TWS 中已有的数据/功能,并且历史账户信息(最近的交易活动除外)在 TWS 中不可用。

The reports on the IB account web page are comprehensive and will give you more than enough historical information; IB账户web页面上的报告很全面,会给你足够的历史信息; but will likely require a manual download, or at least can't be requested programmatically through the API.但可能需要手动下载,或者至少不能通过 API 以编程方式请求。

You will likely need to keep track locally yourself of all trade activity in the account if you want something that works autonomously.如果您想要自动运行的东西,您可能需要自己在本地跟踪账户中的所有交易活动。 I do that, and it was a non-trivial exercise to set up.我这样做了,这是一个非常重要的设置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM