我想使用彭博Java API检索许多证券的先前收盘价和涨跌百分比,而我在询问其名称字段,请提供帮助。
You can query fields on a Bloomberg terminal with the following command:
FLDS WHATEVER_YOU_ARE_LOOKING_FOR
In your case, FLDS PREVIOUS CLOSE
for example.
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
.
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).
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.