QBbgLib
0.4
Qt wrapper for the Bloomberg API
|
An historical request. More...
#include <QBbgHistoricalDataRequest.h>
Public Types | |
enum | NonTradingDayFill { NON_TRADING_WEEKDAYS, ALL_CALENDAR_DAYS, ACTIVE_DAYS_ONLY } |
Policy to handle non-trading days. More... | |
enum | PeriodAdjustment { ACTUAL, CALENDAR, FISCAL } |
Determine the frequency and calendar type of the output. More... | |
enum | PeriodSelection { DAILY, WEEKLY, MONTHLY, QUARTERLY, SEMI_ANNUALLY, YEARLY } |
Frequency of historical data. More... | |
![]() | |
enum | RequestType : qint32 { RequestType::Invalid = -1, RequestType::Beqs, RequestType::HistoricalData = FirstFielded, RequestType::ReferenceData, RequestType::PortfolioData, RequestType::IntraDayTick = FirstIntraday, RequestType::IntraDayBar } |
Type of Request. More... | |
enum | SpecialIDs { InvalidID = -1024 } |
Special requestID codes. More... | |
Public Member Functions | |
QBbgHistoricalDataRequest () | |
Creates an empty historical data request. More... | |
QBbgHistoricalDataRequest (const QBbgHistoricalDataRequest &a) | |
Creates a copy of another historical data request. More... | |
virtual | ~QBbgHistoricalDataRequest () |
Destructor. More... | |
virtual bool | adjustmentAbnormal () const |
virtual bool | adjustmentFollowDPDF () const |
virtual bool | adjustmentNormal () const |
virtual bool | adjustmentSplit () const |
virtual QString | calendarCode () const |
virtual QString | currency () const |
virtual const QDate & | endDate () const |
The last date of the period to retrieve data. More... | |
virtual bool | fillWithNull () const |
virtual bool | isValidReq () const |
Reimplemented from QBbgAbstractRequest::isValidReq() More... | |
virtual qint32 | maxDataPoints () const |
virtual NonTradingDayFill | nonTradingDayFill () const |
virtual QBbgHistoricalDataRequest & | operator= (const QBbgHistoricalDataRequest &a) |
Copies another historical data request. More... | |
virtual bool | operator== (const QBbgHistoricalDataRequest &a) const |
Checks if two requests are identical. More... | |
virtual PeriodAdjustment | periodicityAdjustment () const |
virtual PeriodSelection | periodicitySelection () const |
virtual void | setAdjustmentAbnormal (bool val) |
virtual void | setAdjustmentFollowDPDF (bool val) |
virtual void | setAdjustmentNormal (bool val) |
virtual void | setAdjustmentSplit (bool val) |
virtual void | setCalendarCode (QString val) |
virtual void | setCurrency (QString val) |
virtual void | setEndDate (const QDate &val) |
Set the last date of the period to retrieve data. More... | |
virtual void | setFillWithNull (bool val) |
virtual void | setMaxDataPoints (qint32 val) |
virtual void | setNonTradingDayFill (NonTradingDayFill val) |
virtual void | setPeriodicityAdjustment (PeriodAdjustment val) |
virtual void | setPeriodicitySelection (QBbgHistoricalDataRequest::PeriodSelection val) |
virtual void | setSecurity (const QBbgSecurity &val) |
Reimplemented from QBbgAbstractRequest::setSecurity() More... | |
virtual void | setStartDate (const QDate &val) |
Set the first date of the period to retrieve data. More... | |
virtual void | setUseClosePrice (bool val) |
virtual void | setUsePriceForPricing (bool val) |
virtual void | setUseRelativeDate (bool val) |
virtual const QDate & | startDate () const |
The first date of the period to retrieve data. More... | |
virtual bool | useClosePrice () const |
virtual bool | usePriceForPricing () const |
virtual bool | useRelativeDate () const |
![]() | |
virtual | ~QBbgAbstractFieldRequest ()=0 |
Destructor. More... | |
virtual void | clearOverrides () |
Remove all overrides from a request. More... | |
virtual const QString & | field () const |
The field related to the request. More... | |
virtual QBbgAbstractFieldRequest & | operator= (const QBbgAbstractFieldRequest &a) |
Copies another request. More... | |
virtual bool | operator== (const QBbgAbstractFieldRequest &a) const |
Checks if two requests are identical. More... | |
virtual const QBbgOverride & | overrides () const |
Returns the set of overrides applied to the request. More... | |
virtual void | setField (const QString &val) |
Sets the field for the request. More... | |
virtual void | setOverrides (const QBbgOverride &Overr) |
Sets the overrides to apply to the request. More... | |
![]() | |
virtual | ~QBbgAbstractRequest ()=0 |
Destructor. More... | |
virtual qint64 | getID () const |
Returns the current ID for the request. More... | |
virtual QBbgAbstractRequest & | operator= (const QBbgAbstractRequest &other) |
Copies another request. More... | |
virtual bool | operator== (const QBbgAbstractRequest &other) const |
Checks if two requests are identical. More... | |
virtual RequestType | requestType () const |
Returns the type of request. More... | |
virtual const QBbgSecurity & | security () const |
Returns the security associated with the request. More... | |
virtual void | setID (qint64 val) |
Set the ID associated to the current request. More... | |
virtual void | setSecurity (const QString &SecName, QBbgSecurity::YellowKeys SecKey) |
Overloaded from setSecurity. More... | |
Properties | |
bool | adjustmentAbnormal |
Adjusts for Abnormal Cash Dividends. More... | |
bool | adjustmentFollowDPDF |
Adjustments based on DPDF. More... | |
bool | adjustmentNormal |
Adjust for "change on day". More... | |
bool | adjustmentSplit |
Adjustments based on Capital Changes. More... | |
QString | calendarCode |
Returns the data based on the calendar of the specified country, exchange, or religion. More... | |
QString | currency |
Amends the value from local to desired currency. More... | |
QDate | endDate |
The end date of the period to retrieve data. More... | |
bool | fillWithNull |
If data is to be displayed for non trading days what is the data to be returned. More... | |
qint32 | maxDataPoints |
Maximum number of data points to return. More... | |
NonTradingDayFill | nonTradingDayFill |
Sets to include/exclude non trading days where no data was generated. More... | |
PeriodAdjustment | periodicityAdjustment |
Determine the frequency and calendar type of the output. To be used in conjunction with periodicitySelection. More... | |
PeriodSelection | periodicitySelection |
Determine the frequency of the output. To be used in conjunction with periodicityAdjustment. More... | |
QDate | startDate |
The first date of the period to retrieve data. More... | |
bool | useClosePrice |
Indicates whether to use the average or the closing price in quote calculation. More... | |
bool | usePriceForPricing |
Sets quote to Price or Yield for a debt instrument whose default value is quoted in yield. More... | |
bool | useRelativeDate |
Returns data with a relative date. More... | |
![]() | |
QString | field |
The field associated with the request. More... | |
QBbgOverride | overrides |
The overrides applied to the request. More... | |
![]() | |
bool | isValidReq |
Checks if the request is valid. More... | |
qint64 | requestID |
The request unique identifier. More... | |
RequestType | requestType |
The type of the request. More... | |
QBbgSecurity | security |
The security associated with the request. More... | |
Additional Inherited Members | |
![]() | |
uint | qHash (QBbgLib::QBbgAbstractRequest::RequestType key, uint seed=0) |
Allows QBbgAbstractRequest::RequestType to be used as a key of a QHash. More... | |
An historical request.
This class can be used to query historical data from Bloomberg.
This is equivalent to BDH() Bloomberg function in excel.
Determine the frequency and calendar type of the output.
|
virtual |
Destructor.
QBbgLib::QBbgHistoricalDataRequest::QBbgHistoricalDataRequest | ( | ) |
Creates an empty historical data request.
QBbgLib::QBbgHistoricalDataRequest::QBbgHistoricalDataRequest | ( | const QBbgHistoricalDataRequest & | a | ) |
Creates a copy of another historical data request.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
The last date of the period to retrieve data.
|
virtual |
|
virtual |
Reimplemented from QBbgAbstractRequest::isValidReq()
Reimplemented from QBbgLib::QBbgAbstractFieldRequest.
|
virtual |
|
virtual |
|
virtual |
Copies another historical data request.
|
virtual |
Checks if two requests are identical.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Set the last date of the period to retrieve data.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Reimplemented from QBbgAbstractRequest::setSecurity()
Reimplemented from QBbgLib::QBbgAbstractRequest.
|
virtual |
Set the first date of the period to retrieve data.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
The first date of the period to retrieve data.
|
virtual |
|
virtual |
|
virtual |
|
readwrite |
Adjusts for Abnormal Cash Dividends.
Adjust historical pricing to reflect:
|
readwrite |
Adjustments based on DPDF.
Setting to true will follow the DPDF<GO> Bloomberg function.
True is the default setting for this option.
|
readwrite |
Adjust for "change on day".
Adjust historical pricing to reflect:
|
readwrite |
Adjustments based on Capital Changes.
Adjust historical pricing and/or volume to reflect: Spin-Offs, Stock Splits/Consolidations, Stock Dividend/Bonus, Rights Offerings/Entitlement.
|
readwrite |
Returns the data based on the calendar of the specified country, exchange, or religion.
Returns the data based on the calendar of the specified country, exchange, or religion from CDR<GO>.
Taking a two character calendar code null terminated string. This will cause the data to be aligned according to the calendar and including calendar holidays.
Only applies only to DAILY requests.
|
readwrite |
Amends the value from local to desired currency.
Use the 3 letters ISO code for the currency
|
readwrite |
The end date of the period to retrieve data.
|
readwrite |
If data is to be displayed for non trading days what is the data to be returned.
If set to true it will return a null QVariant for the non trading days otherwise the previous value will be used
|
readwrite |
Maximum number of data points to return.
The response will contain up to X data points, where X is the integer specified.
If the original data set is larger than X, the response will be a subset, containing the last X data points.
Hence the first range of data points will be removed.
|
readwrite |
Sets to include/exclude non trading days where no data was generated.
|
readwrite |
Determine the frequency and calendar type of the output. To be used in conjunction with periodicitySelection.
|
readwrite |
Determine the frequency of the output. To be used in conjunction with periodicityAdjustment.
|
readwrite |
The first date of the period to retrieve data.
|
readwrite |
Indicates whether to use the average or the closing price in quote calculation.
|
readwrite |
Sets quote to Price or Yield for a debt instrument whose default value is quoted in yield.
true = Price, false = yield
|
readwrite |