简体   繁体   English

获取彭博Java API中的先前收盘价和%change字段名称

[英]get previous close price and %change fields name in Bloomberg Java API

我想使用彭博Java API检索许多证券的先前收盘价和涨跌百分比,而我在询问其名称字段,请提供帮助。

You can query fields on a Bloomberg terminal with the following command: 您可以使用以下命令在Bloomberg终端上查询字段:

FLDS WHATEVER_YOU_ARE_LOOKING_FOR

In your case, FLDS PREVIOUS CLOSE for example. 以您的情况为例,例如FLDS PREVIOUS CLOSE

Which field to use depends on whether you need real time or not: you can either use PX_CLOSE_1D or PREV_CLOSE_VALUE_REALTIME . 使用哪个字段取决于您是否需要实时:可以使用PX_CLOSE_1DPREV_CLOSE_VALUE_REALTIME

For the % change, you can use CHG_PCT_1D or RT_PX_CHG_PCT_1D (note that the former does not adjust for dividends whereas the latter does). 对于百分比变化,您可以使用CHG_PCT_1DRT_PX_CHG_PCT_1D (请注意,前者不调整股息,而后者则调整)。

Alternatively, you can download the history for those stocks over one day with the appropriate adjustment settings and/or (if you need real time) subscribe to current price and calculate the % change manually. 或者,您可以使用适当的调整设置下载这些股票在一天中的历史记录,和/或(如果需要实时)订阅当前价格并手动计算百分比变化。

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

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