public final class IntradayBarRequestBuilder extends Object
Modifier and Type | Class and Description |
---|---|
static class |
IntradayBarRequestBuilder.IntradayBarEventType
Defines the field to be returned for historical intraday bar requests.
|
Constructor and Description |
---|
IntradayBarRequestBuilder(String ticker,
org.joda.time.DateTime startDateTime,
org.joda.time.DateTime endDateTime)
Creates a RequestBuilder with an event type TRADE.
|
IntradayBarRequestBuilder(String ticker,
IntradayBarRequestBuilder.IntradayBarEventType eventType,
org.joda.time.DateTime startDateTime,
org.joda.time.DateTime endDateTime)
Creates a RequestBuilder with standard options.
|
Modifier and Type | Method and Description |
---|---|
IntradayBarRequestBuilder |
adjustAbnormalDistributions()
Adjust historical pricing to reflect: Special Cash, Liquidation, Capital Gains, Long-Term Capital Gains,
Short-Term Capital Gains, Memorial, Return of Capital, Rights Redemption, Miscellaneous, Return Premium,
Preferred Rights Redemption, Proceeds/Rights, Proceeds/Shares, Proceeds/ Warrants.
|
IntradayBarRequestBuilder |
adjustDefault()
Adjust historical pricing based on the DPDF
|
IntradayBarRequestBuilder |
adjustNormalDistributions()
Adjust historical pricing to reflect: Regular Cash, Interim, 1st Interim, 2nd Interim, 3rd Interim, 4th Interim,
5th Interim, Income, Estimated, Partnership Distribution, Final, Interest on Capital, Distribution, Prorated.
|
IntradayBarRequestBuilder |
adjustSplits()
Adjust historical pricing and/or volume to reflect: Spin-Offs, Stock Splits/Consolidations, Stock Dividend/Bonus,
Rights Offerings/ Entitlement.
|
protected void |
buildRequest(com.bloomberglp.blpapi.Request request) |
com.bloomberglp.blpapi.Request |
buildRequest(com.bloomberglp.blpapi.Session session) |
IntradayBarRequestBuilder |
fillInitialBar()
Populate an empty bar with previous value.
|
BloombergRequestType |
getRequestType() |
ResultParser<IntradayBarData> |
getResultParser() |
BloombergServiceType |
getServiceType() |
IntradayBarRequestBuilder |
period(int period,
TimeUnit timeUnit) |
String |
toString() |
public IntradayBarRequestBuilder(String ticker, org.joda.time.DateTime startDateTime, org.joda.time.DateTime endDateTime)
ticker
- a ticker for which data needs to be retrieved - must be valid Bloomberg symbol (for example:
IBM
US Equity)startDateTime
- the start of the date range (inclusive) for which to retrieve dataendDateTime
- the end of the date range (inclusive) for which to retrieve dataNullPointerException
- if any of the parameters is nullIllegalArgumentException
- if the ticker is an empty string or if the start date is strictly after the end
datepublic IntradayBarRequestBuilder(String ticker, IntradayBarRequestBuilder.IntradayBarEventType eventType, org.joda.time.DateTime startDateTime, org.joda.time.DateTime endDateTime)
ticker
- a ticker for which data needs to be retrieved - must be valid Bloomberg symbol (for example:
IBM
US Equity)eventType
- the eventType to retrieve for the selected tickerstartDateTime
- the start of the date range (inclusive) for which to retrieve dataendDateTime
- the end of the date range (inclusive) for which to retrieve data
NullPointerException
- if any of the parameters is nullIllegalArgumentException
- if the ticker is an empty string or if the start date is strictly after the end
datepublic IntradayBarRequestBuilder period(int period, TimeUnit timeUnit)
period
- Determine the period of the output. Sets the length of each time bar in the response. Once
rounded, it needs to represent a duration between 1 and 1440 in minutes. If omitted, the request will default
to one minute. One minute is the lowest possible granularity.timeUnit
- The time unit in which period is expressedIllegalArgumentException
- if period is not between 1 and 1440 minutespublic IntradayBarRequestBuilder fillInitialBar()
public IntradayBarRequestBuilder adjustDefault()
public IntradayBarRequestBuilder adjustAbnormalDistributions()
public IntradayBarRequestBuilder adjustNormalDistributions()
public IntradayBarRequestBuilder adjustSplits()
public String toString()
protected void buildRequest(com.bloomberglp.blpapi.Request request)
request
- an empty Request that needs to be populatedpublic BloombergRequestType getRequestType()
public ResultParser<IntradayBarData> getResultParser()
public BloombergServiceType getServiceType()
public com.bloomberglp.blpapi.Request buildRequest(com.bloomberglp.blpapi.Session session)
buildRequest
in interface RequestBuilder<T extends RequestResult>
session
- the session to which the request will be sentCopyright © 2013. All Rights Reserved.