|
QBbgLib
0.4
Qt wrapper for the Bloomberg API
|
A portfolio request. More...
#include <QBbgPortfolioDataRequest.h>
Public Types | |
| enum | PortfolioFields { PortfolioFields::PORTFOLIO_MPOSITION, PortfolioFields::PORTFOLIO_MWEIGHT, PortfolioFields::PORTFOLIO_DATA, PortfolioFields::PORTFOLIO_MEMBERS } |
| Available fields for the request. More... | |
Public Types inherited from QBbgLib::QBbgAbstractRequest | |
| 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 | |
| QBbgPortfolioDataRequest () | |
| Creates an empty portfolio request. More... | |
| QBbgPortfolioDataRequest (const QBbgPortfolioDataRequest &a) | |
| Creates a copy of another portfolio request. More... | |
| virtual | ~QBbgPortfolioDataRequest () |
| Destructor. More... | |
| virtual QBbgPortfolioDataRequest & | operator= (const QBbgPortfolioDataRequest &a) |
| Copies another portfolio request. More... | |
| virtual QDate | referenceDay () const |
| Returns the portfolio reference date or null if not set. More... | |
| virtual void | setField (const QString &val) |
| Reimplemented from QBbgAbstractFieldRequest::setField. More... | |
| virtual void | setField (PortfolioFields val) |
| Sets the field to one of the 4 allowed ones for portfolio requests. More... | |
| virtual void | setOverrides (const QBbgOverride &Overr) |
| Reimplemented from QBbgAbstractFieldRequest::setOverrides. More... | |
| virtual void | setPortfolio (const QString &tradingSystem, const QString &firmID, const QString &portfolioID) |
| AIM/TOMS users can download their portfolios specifying the parameters. More... | |
| virtual void | setReferenceDay (const QDate &val) |
| Sets the date for which to retrieve the portfolio. More... | |
| virtual void | setSecurity (const QBbgSecurity &val) |
| Reimplemented from QBbgAbstractRequest::setSecurity. More... | |
Public Member Functions inherited from QBbgLib::QBbgAbstractFieldRequest | |
| 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 bool | isValidReq () const |
| Reimplemented from QBbgAbstractRequest::isValidReq. 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... | |
Public Member Functions inherited from QBbgLib::QBbgAbstractRequest | |
| 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 | |
| QDate | referenceDay |
| The portfolio reference date. More... | |
Properties inherited from QBbgLib::QBbgAbstractFieldRequest | |
| QString | field |
| The field associated with the request. More... | |
| QBbgOverride | overrides |
| The overrides applied to the request. More... | |
Properties inherited from QBbgLib::QBbgAbstractRequest | |
| 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 | |
Related Functions inherited from QBbgLib::QBbgAbstractRequest | |
| uint | qHash (QBbgLib::QBbgAbstractRequest::RequestType key, uint seed=0) |
| Allows QBbgAbstractRequest::RequestType to be used as a key of a QHash. More... | |
A portfolio request.
This class allows to request data regarding portfolios set up in PRTU on the terminal.
Only securities with the QBbgSecurity::Client extension can be used.
This is equivalent to using BDS() bloomberg function with a Client security in excel.
Available fields for the request.
|
virtual |
Destructor.
| QBbgLib::QBbgPortfolioDataRequest::QBbgPortfolioDataRequest | ( | ) |
Creates an empty portfolio request.
| QBbgLib::QBbgPortfolioDataRequest::QBbgPortfolioDataRequest | ( | const QBbgPortfolioDataRequest & | a | ) |
Creates a copy of another portfolio request.
|
virtual |
Copies another portfolio request.
|
virtual |
Returns the portfolio reference date or null if not set.
|
virtual |
Reimplemented from QBbgAbstractFieldRequest::setField.
Reimplemented from QBbgLib::QBbgAbstractFieldRequest.
|
virtual |
Sets the field to one of the 4 allowed ones for portfolio requests.
|
virtual |
Reimplemented from QBbgAbstractFieldRequest::setOverrides.
Reimplemented from QBbgLib::QBbgAbstractFieldRequest.
|
virtual |
AIM/TOMS users can download their portfolios specifying the parameters.
|
virtual |
Sets the date for which to retrieve the portfolio.
a null QDate will retrieve the current live portfolio
|
virtual |
Reimplemented from QBbgAbstractRequest::setSecurity.
Reimplemented from QBbgLib::QBbgAbstractRequest.
|
readwrite |
1.8.9.1