QBbgLib
0.4
Qt wrapper for the Bloomberg API
|
Base class for intraday requests. More...
#include <QBbgAbstractIntradayRequest.h>
Public Types | |
enum | EventType : qint8 { EventType::Invalid, EventType::TRADE, EventType::BID, EventType::ASK, EventType::BID_BEST, EventType::ASK_BEST, EventType::MID_PRICE, EventType::AT_TRADE, EventType::BEST_BID, EventType::BEST_ASK } |
Type of event to capture. 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 | |
virtual | ~QBbgAbstractIntradayRequest ()=0 |
Destructor. More... | |
virtual const QDateTime & | endDateTime () const |
The last date/time of the period to retrieve data. More... | |
virtual EventType | eventType () const |
Returns the type of event to retrieve. More... | |
virtual bool | isValidReq () const override |
Reimplemented from QBbgAbstractRequest::isValidReq() More... | |
virtual QBbgAbstractIntradayRequest & | operator= (const QBbgAbstractIntradayRequest &a) |
Copies another tick data request. More... | |
virtual bool | operator== (const QBbgAbstractIntradayRequest &other) const |
Checks if two requests are identical. More... | |
virtual void | setDateTimeRange (QDateTime startDt, QDateTime endDt) |
Set the period range to retrieve. More... | |
virtual void | setEndDateTime (const QDateTime &val) |
Set the last date/time of the period to retrieve data. More... | |
virtual void | setEventType (EventType val) |
Set the type of event to retrieve. More... | |
virtual void | setSecurity (const QBbgSecurity &val) override |
Reimplemented from QBbgAbstractRequest::setSecurity() More... | |
virtual void | setStartDateTime (const QDateTime &val) |
Set the first date/time of the period to retrieve data. More... | |
virtual const QDateTime & | startDateTime () const |
The first date/time of the period to retrieve data. 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... | |
Static Public Member Functions | |
static QString | eventTypeString (const EventType &val) |
Converts EventType to its string representation. More... | |
static EventType | stringEventType (QString val) |
Converts a string to the corresponding EventType. More... | |
Properties | |
QDateTime | endDateTime |
The last date/time of the period to retrieve data. More... | |
EventType | eventType |
The type of event to retrieve. More... | |
QDateTime | startDateTime |
The first date/time of the period to retrieve data. 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... | |
Related Functions | |
(Note that these are not member functions.) | |
uint | qHash (QBbgLib::QBbgAbstractIntradayRequest::EventType key, uint seed) |
Allows EventType to be used as a key of a QHash. More... | |
![]() | |
uint | qHash (QBbgLib::QBbgAbstractRequest::RequestType key, uint seed=0) |
Allows QBbgAbstractRequest::RequestType to be used as a key of a QHash. More... | |
Base class for intraday requests.
|
strong |
Type of event to capture.
|
pure virtual |
Destructor.
|
virtual |
The last date/time of the period to retrieve data.
|
virtual |
Returns the type of event to retrieve.
|
static |
Converts EventType to its string representation.
|
overridevirtual |
Reimplemented from QBbgAbstractRequest::isValidReq()
Reimplemented from QBbgLib::QBbgAbstractRequest.
|
virtual |
Copies another tick data request.
|
virtual |
Checks if two requests are identical.
|
virtual |
Set the period range to retrieve.
Equivalent to setStartDateTime(startDt); setEndDateTime(endDt); but automatically swaps the dates if endDt is earlier than startDt
|
virtual |
Set the last date/time of the period to retrieve data.
|
virtual |
Set the type of event to retrieve.
|
overridevirtual |
Reimplemented from QBbgAbstractRequest::setSecurity()
Reimplemented from QBbgLib::QBbgAbstractRequest.
|
virtual |
Set the first date/time of the period to retrieve data.
|
virtual |
The first date/time of the period to retrieve data.
|
static |
Converts a string to the corresponding EventType.
|
related |
Allows EventType to be used as a key of a QHash.
|
readwrite |
The last date/time of the period to retrieve data.
|
readwrite |
The type of event to retrieve.
|
readwrite |
The first date/time of the period to retrieve data.