Upgrade ccapi from 5.31.2 -> 5.45.1
This commit is contained in:
1 parent
a1b923c826
commit
f21c6594c0
98 files changed
+9664
-2200
No files matched your search
@@ -16,8 +16,8 @@ class Message CCAPI_FINAL {
|
||||
public:
|
||||
enum class RecapType {
|
||||
UNKNOWN,
|
||||
NONE, // normal data tick; not a recap
|
||||
SOLICITED, // generated on request by subscriber
|
||||
NONE, // Normal data tick, not a recap. For market depth, it represents the new snapshot. For public trade, it represents the new trades.
|
||||
SOLICITED, // A recap. For market depth, it represents the initial snapshot. For public trade, it represents the recent trades.
|
||||
};
|
||||
static std::string recapTypeToString(RecapType recapType) {
|
||||
std::string output;
|
||||
@@ -185,7 +185,8 @@ class Message CCAPI_FINAL {
|
||||
std::string toString() const {
|
||||
std::string output = "Message [type = " + typeToString(type) + ", recapType = " + recapTypeToString(recapType) +
|
||||
", time = " + UtilTime::getISOTimestamp(time) + ", timeReceived = " + UtilTime::getISOTimestamp(timeReceived) +
|
||||
", elementList = " + ccapi::firstNToString(elementList, 10) + ", correlationIdList = " + ccapi::toString(correlationIdList) + "]";
|
||||
", elementList = " + ccapi::firstNToString(elementList, 10) + ", correlationIdList = " + ccapi::toString(correlationIdList) +
|
||||
", secondaryCorrelationIdMap = " + ccapi::toString(secondaryCorrelationIdMap) + "]";
|
||||
return output;
|
||||
}
|
||||
std::string toStringPretty(const int space = 2, const int leftToIndent = 0, const bool indentFirstLine = true) const {
|
||||
@@ -195,14 +196,19 @@ class Message CCAPI_FINAL {
|
||||
"recapType = " + recapTypeToString(recapType) + ",\n" + ss + "time = " + UtilTime::getISOTimestamp(time) + ",\n" + ss +
|
||||
"timeReceived = " + UtilTime::getISOTimestamp(timeReceived) + ",\n" + ss +
|
||||
"elementList = " + ccapi::firstNToStringPretty(elementList, 10, space, space + leftToIndent, false) + ",\n" + ss +
|
||||
"correlationIdList = " + ccapi::toString(correlationIdList) + "\n" + sl + "]";
|
||||
"correlationIdList = " + ccapi::toString(correlationIdList) + ",\n" + ss +
|
||||
"secondaryCorrelationIdMap = " + ccapi::toString(secondaryCorrelationIdMap) + "\n" + sl + "]";
|
||||
return output;
|
||||
}
|
||||
const std::vector<Element>& getElementList() const { return elementList; }
|
||||
void setElementList(const std::vector<Element>& elementList) { this->elementList = elementList; }
|
||||
void setElementList(std::vector<Element>& elementList) { this->elementList = std::move(elementList); }
|
||||
const std::vector<std::string>& getCorrelationIdList() const { return correlationIdList; }
|
||||
const std::map<std::string, std::string>& getSecondaryCorrelationIdMap() const { return secondaryCorrelationIdMap; }
|
||||
void setCorrelationIdList(const std::vector<std::string>& correlationIdList) { this->correlationIdList = correlationIdList; }
|
||||
void setSecondaryCorrelationIdMap(const std::map<std::string, std::string>& secondaryCorrelationIdMap) {
|
||||
this->secondaryCorrelationIdMap = secondaryCorrelationIdMap;
|
||||
}
|
||||
// 'getTime' only works in C++. For other languages, please use 'getTimeISO'.
|
||||
TimePoint getTime() const { return time; }
|
||||
std::string getTimeISO() const { return UtilTime::getISOTimestamp(time); }
|
||||
@@ -227,6 +233,7 @@ class Message CCAPI_FINAL {
|
||||
TimePoint timeReceived{std::chrono::seconds{0}};
|
||||
std::vector<Element> elementList;
|
||||
std::vector<std::string> correlationIdList;
|
||||
std::map<std::string, std::string> secondaryCorrelationIdMap;
|
||||
Type type{Type::UNKNOWN};
|
||||
RecapType recapType{RecapType::UNKNOWN};
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user