Skip to content

Commit 1105eec

Browse files
committed
chore: format code
1 parent 7aa64b3 commit 1105eec

File tree

77 files changed

+877
-864
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+877
-864
lines changed

include/ccapi_cpp/ccapi_http_connection.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ class HttpConnection CCAPI_FINAL {
1515
std::string toString() const {
1616
std::ostringstream oss;
1717
oss << streamPtr;
18-
std::string output = "HttpConnection [host = " + host + ", port = " + port + ", streamPtr = " + oss.str() +", lastReceiveDataTp = "+UtilTime::getISOTimestamp(lastReceiveDataTp)+ "]";
18+
std::string output = "HttpConnection [host = " + host + ", port = " + port + ", streamPtr = " + oss.str() +
19+
", lastReceiveDataTp = " + UtilTime::getISOTimestamp(lastReceiveDataTp) + "]";
1920
return output;
2021
}
2122
std::string host;

include/ccapi_cpp/ccapi_request.h

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,8 @@ class Request CCAPI_FINAL {
148148
", correlationId = " + correlationId + ", secondaryCorrelationId = " + secondaryCorrelationId +
149149
(this->serviceName == CCAPI_FIX ? ", paramListFix = " + ccapi::toString(paramListFix) : ", paramList = " + ccapi::toString(paramList)) +
150150
", credential = " + ccapi::toString(shortCredential) + ", operation = " + operationToString(operation) +
151-
", timeSent = " + UtilTime::getISOTimestamp(timeSent)+", index = " + ccapi::toString(index)+", localIpAddress = " + localIpAddress+", baseUrl = " + baseUrl + "]";
151+
", timeSent = " + UtilTime::getISOTimestamp(timeSent) + ", index = " + ccapi::toString(index) + ", localIpAddress = " + localIpAddress +
152+
", baseUrl = " + baseUrl + "]";
152153
return output;
153154
}
154155
const std::string& getCorrelationId() const { return correlationId; }
@@ -190,8 +191,11 @@ class Request CCAPI_FINAL {
190191
void setCorrelationId(const std::string& correlationId) { this->correlationId = correlationId; }
191192
void setSecondaryCorrelationId(const std::string& secondaryCorrelationId) { this->secondaryCorrelationId = secondaryCorrelationId; }
192193
void setMarginType(const std::string& marginType) { this->marginType = marginType; }
193-
void setLocalIpAddress(const std::string& localIpAddress){this->localIpAddress=localIpAddress;}
194-
void setBaseUrl(const std::string& baseUrl){this->baseUrl=baseUrl;this->setBaseUrlParts();}
194+
void setLocalIpAddress(const std::string& localIpAddress) { this->localIpAddress = localIpAddress; }
195+
void setBaseUrl(const std::string& baseUrl) {
196+
this->baseUrl = baseUrl;
197+
this->setBaseUrlParts();
198+
}
195199
void setBaseUrlParts() {
196200
auto splitted1 = UtilString::split(this->baseUrl, "://");
197201
if (splitted1.size() >= 2) {

include/ccapi_cpp/ccapi_session.h

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ class Session {
259259
Session(const Session&) = delete;
260260
Session& operator=(const Session&) = delete;
261261
Session(const SessionOptions& sessionOptions = SessionOptions(), const SessionConfigs& sessionConfigs = SessionConfigs(),
262-
EventHandler* eventHandler = nullptr, EventDispatcher* eventDispatcher = nullptr, ServiceContext* serviceContextPtr=nullptr)
262+
EventHandler* eventHandler = nullptr, EventDispatcher* eventDispatcher = nullptr, ServiceContext* serviceContextPtr = nullptr)
263263
: sessionOptions(sessionOptions),
264264
sessionConfigs(sessionConfigs),
265265
eventHandler(eventHandler),
@@ -268,9 +268,9 @@ class Session {
268268
#endif
269269
eventQueue(sessionOptions.maxEventQueueSize),
270270
serviceContextPtr(serviceContextPtr) {
271-
if (!this->serviceContextPtr){
272-
this->serviceContextPtr=new ServiceContext();
273-
}
271+
if (!this->serviceContextPtr) {
272+
this->serviceContextPtr = new ServiceContext();
273+
}
274274
CCAPI_LOGGER_FUNCTION_ENTER;
275275
#ifndef CCAPI_USE_SINGLE_THREAD
276276
if (this->eventHandler) {
@@ -906,7 +906,8 @@ class Session {
906906
virtual void setTimer(const std::string& id, long delayMilliseconds, std::function<void(const boost::system::error_code&)> errorHandler,
907907
std::function<void()> successHandler) {
908908
boost::asio::post(*this->serviceContextPtr->ioContextPtr, [this, id, delayMilliseconds, errorHandler, successHandler]() {
909-
std::shared_ptr<boost::asio::steady_timer> timerPtr(new boost::asio::steady_timer(*this->serviceContextPtr->ioContextPtr, boost::asio::chrono::milliseconds(delayMilliseconds)));
909+
std::shared_ptr<boost::asio::steady_timer> timerPtr(
910+
new boost::asio::steady_timer(*this->serviceContextPtr->ioContextPtr, boost::asio::chrono::milliseconds(delayMilliseconds)));
910911
timerPtr->async_wait([this, id, errorHandler, successHandler](const boost::system::error_code& ec) {
911912
if (this->eventHandler) {
912913
#ifdef CCAPI_USE_SINGLE_THREAD

include/ccapi_cpp/ccapi_session_options.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,9 @@ class SessionOptions CCAPI_FINAL {
5050
int httpMaxNumRedirect{1};
5151
long httpRequestTimeoutMilliseconds{10000};
5252
int httpConnectionPoolMaxSize{1}; // used to set the maximal number of http connections to be kept in the pool (connections in the pool are idle)
53-
long httpConnectionKeepAliveTimeoutSeconds{10}; // used to remove a http connection from the http connection pool if it has stayed idle for at least this amount of time
54-
bool enableOneHttpConnectionPerRequest{}; // create a new http connection for each request
53+
long httpConnectionKeepAliveTimeoutSeconds{
54+
10}; // used to remove a http connection from the http connection pool if it has stayed idle for at least this amount of time
55+
bool enableOneHttpConnectionPerRequest{}; // create a new http connection for each request
5556
#ifdef CCAPI_LEGACY_USE_WEBSOCKETPP
5657
#else
5758
long websocketConnectTimeoutMilliseconds{10000};

include/ccapi_cpp/service/ccapi_execution_management_service_ascendex.h

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@ class ExecutionManagementServiceAscendex : public ExecutionManagementService {
1414
this->baseUrlRest = sessionConfigs.getUrlRestBase().at(this->exchangeName);
1515
this->setHostRestFromUrlRest(this->baseUrlRest);
1616
this->setHostWsFromUrlWs(this->baseUrlWs);
17-
// try {
18-
// this->tcpResolverResultsRest = this->resolver.resolve(this->hostRest, this->portRest);
19-
// } catch (const std::exception& e) {
20-
// CCAPI_LOGGER_FATAL(std::string("e.what() = ") + e.what());
21-
// }
22-
// #ifdef CCAPI_LEGACY_USE_WEBSOCKETPP
23-
// #else
24-
// try {
25-
// this->tcpResolverResultsWs = this->resolverWs.resolve(this->hostWs, this->portWs);
26-
// } catch (const std::exception& e) {
27-
// CCAPI_LOGGER_FATAL(std::string("e.what() = ") + e.what());
28-
// }
29-
// #endif
17+
// try {
18+
// this->tcpResolverResultsRest = this->resolver.resolve(this->hostRest, this->portRest);
19+
// } catch (const std::exception& e) {
20+
// CCAPI_LOGGER_FATAL(std::string("e.what() = ") + e.what());
21+
// }
22+
// #ifdef CCAPI_LEGACY_USE_WEBSOCKETPP
23+
// #else
24+
// try {
25+
// this->tcpResolverResultsWs = this->resolverWs.resolve(this->hostWs, this->portWs);
26+
// } catch (const std::exception& e) {
27+
// CCAPI_LOGGER_FATAL(std::string("e.what() = ") + e.what());
28+
// }
29+
// #endif
3030
this->apiKeyName = CCAPI_ASCENDEX_API_KEY;
3131
this->apiSecretName = CCAPI_ASCENDEX_API_SECRET;
3232
this->apiAccountGroupName = CCAPI_ASCENDEX_API_ACCOUNT_GROUP;

include/ccapi_cpp/service/ccapi_execution_management_service_binance.h

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,19 @@ class ExecutionManagementServiceBinance : public ExecutionManagementServiceBinan
1717
this->baseUrlRest = sessionConfigs.getUrlRestBase().at(this->exchangeName);
1818
this->setHostRestFromUrlRest(this->baseUrlRest);
1919
this->setHostWsFromUrlWs(this->baseUrlWs);
20-
// try {
21-
// this->tcpResolverResultsRest = this->resolver.resolve(this->hostRest, this->portRest);
22-
// } catch (const std::exception& e) {
23-
// CCAPI_LOGGER_FATAL(std::string("e.what() = ") + e.what());
24-
// }
25-
// #ifdef CCAPI_LEGACY_USE_WEBSOCKETPP
26-
// #else
27-
// try {
28-
// this->tcpResolverResultsWs = this->resolverWs.resolve(this->hostWs, this->portWs);
29-
// } catch (const std::exception& e) {
30-
// CCAPI_LOGGER_FATAL(std::string("e.what() = ") + e.what());
31-
// }
32-
// #endif
20+
// try {
21+
// this->tcpResolverResultsRest = this->resolver.resolve(this->hostRest, this->portRest);
22+
// } catch (const std::exception& e) {
23+
// CCAPI_LOGGER_FATAL(std::string("e.what() = ") + e.what());
24+
// }
25+
// #ifdef CCAPI_LEGACY_USE_WEBSOCKETPP
26+
// #else
27+
// try {
28+
// this->tcpResolverResultsWs = this->resolverWs.resolve(this->hostWs, this->portWs);
29+
// } catch (const std::exception& e) {
30+
// CCAPI_LOGGER_FATAL(std::string("e.what() = ") + e.what());
31+
// }
32+
// #endif
3333
this->apiKeyName = CCAPI_BINANCE_API_KEY;
3434
this->apiSecretName = CCAPI_BINANCE_API_SECRET;
3535
this->setupCredential({this->apiKeyName, this->apiSecretName});

include/ccapi_cpp/service/ccapi_execution_management_service_binance_coin_futures.h

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@ class ExecutionManagementServiceBinanceCoinFutures : public ExecutionManagementS
1414
this->baseUrlRest = sessionConfigs.getUrlRestBase().at(this->exchangeName);
1515
this->setHostRestFromUrlRest(this->baseUrlRest);
1616
this->setHostWsFromUrlWs(this->baseUrlWs);
17-
// try {
18-
// this->tcpResolverResultsRest = this->resolver.resolve(this->hostRest, this->portRest);
19-
// } catch (const std::exception& e) {
20-
// CCAPI_LOGGER_FATAL(std::string("e.what() = ") + e.what());
21-
// }
22-
// #ifdef CCAPI_LEGACY_USE_WEBSOCKETPP
23-
// #else
24-
// try {
25-
// this->tcpResolverResultsWs = this->resolverWs.resolve(this->hostWs, this->portWs);
26-
// } catch (const std::exception& e) {
27-
// CCAPI_LOGGER_FATAL(std::string("e.what() = ") + e.what());
28-
// }
29-
// #endif
17+
// try {
18+
// this->tcpResolverResultsRest = this->resolver.resolve(this->hostRest, this->portRest);
19+
// } catch (const std::exception& e) {
20+
// CCAPI_LOGGER_FATAL(std::string("e.what() = ") + e.what());
21+
// }
22+
// #ifdef CCAPI_LEGACY_USE_WEBSOCKETPP
23+
// #else
24+
// try {
25+
// this->tcpResolverResultsWs = this->resolverWs.resolve(this->hostWs, this->portWs);
26+
// } catch (const std::exception& e) {
27+
// CCAPI_LOGGER_FATAL(std::string("e.what() = ") + e.what());
28+
// }
29+
// #endif
3030
this->apiKeyName = CCAPI_BINANCE_COIN_FUTURES_API_KEY;
3131
this->apiSecretName = CCAPI_BINANCE_COIN_FUTURES_API_SECRET;
3232
this->setupCredential({this->apiKeyName, this->apiSecretName});

include/ccapi_cpp/service/ccapi_execution_management_service_binance_us.h

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@ class ExecutionManagementServiceBinanceUs : public ExecutionManagementServiceBin
1414
this->baseUrlRest = sessionConfigs.getUrlRestBase().at(this->exchangeName);
1515
this->setHostRestFromUrlRest(this->baseUrlRest);
1616
this->setHostWsFromUrlWs(this->baseUrlWs);
17-
// try {
18-
// this->tcpResolverResultsRest = this->resolver.resolve(this->hostRest, this->portRest);
19-
// } catch (const std::exception& e) {
20-
// CCAPI_LOGGER_FATAL(std::string("e.what() = ") + e.what());
21-
// }
22-
// #ifdef CCAPI_LEGACY_USE_WEBSOCKETPP
23-
// #else
24-
// try {
25-
// this->tcpResolverResultsWs = this->resolverWs.resolve(this->hostWs, this->portWs);
26-
// } catch (const std::exception& e) {
27-
// CCAPI_LOGGER_FATAL(std::string("e.what() = ") + e.what());
28-
// }
29-
// #endif
17+
// try {
18+
// this->tcpResolverResultsRest = this->resolver.resolve(this->hostRest, this->portRest);
19+
// } catch (const std::exception& e) {
20+
// CCAPI_LOGGER_FATAL(std::string("e.what() = ") + e.what());
21+
// }
22+
// #ifdef CCAPI_LEGACY_USE_WEBSOCKETPP
23+
// #else
24+
// try {
25+
// this->tcpResolverResultsWs = this->resolverWs.resolve(this->hostWs, this->portWs);
26+
// } catch (const std::exception& e) {
27+
// CCAPI_LOGGER_FATAL(std::string("e.what() = ") + e.what());
28+
// }
29+
// #endif
3030
this->apiKeyName = CCAPI_BINANCE_US_API_KEY;
3131
this->apiSecretName = CCAPI_BINANCE_US_API_SECRET;
3232
this->setupCredential({this->apiKeyName, this->apiSecretName});

include/ccapi_cpp/service/ccapi_execution_management_service_binance_usds_futures.h

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@ class ExecutionManagementServiceBinanceUsdsFutures : public ExecutionManagementS
1414
this->baseUrlRest = sessionConfigs.getUrlRestBase().at(this->exchangeName);
1515
this->setHostRestFromUrlRest(this->baseUrlRest);
1616
this->setHostWsFromUrlWs(this->baseUrlWs);
17-
// try {
18-
// this->tcpResolverResultsRest = this->resolver.resolve(this->hostRest, this->portRest);
19-
// } catch (const std::exception& e) {
20-
// CCAPI_LOGGER_FATAL(std::string("e.what() = ") + e.what());
21-
// }
22-
// #ifdef CCAPI_LEGACY_USE_WEBSOCKETPP
23-
// #else
24-
// try {
25-
// this->tcpResolverResultsWs = this->resolverWs.resolve(this->hostWs, this->portWs);
26-
// } catch (const std::exception& e) {
27-
// CCAPI_LOGGER_FATAL(std::string("e.what() = ") + e.what());
28-
// }
29-
// #endif
17+
// try {
18+
// this->tcpResolverResultsRest = this->resolver.resolve(this->hostRest, this->portRest);
19+
// } catch (const std::exception& e) {
20+
// CCAPI_LOGGER_FATAL(std::string("e.what() = ") + e.what());
21+
// }
22+
// #ifdef CCAPI_LEGACY_USE_WEBSOCKETPP
23+
// #else
24+
// try {
25+
// this->tcpResolverResultsWs = this->resolverWs.resolve(this->hostWs, this->portWs);
26+
// } catch (const std::exception& e) {
27+
// CCAPI_LOGGER_FATAL(std::string("e.what() = ") + e.what());
28+
// }
29+
// #endif
3030
this->apiKeyName = CCAPI_BINANCE_USDS_FUTURES_API_KEY;
3131
this->apiSecretName = CCAPI_BINANCE_USDS_FUTURES_API_SECRET;
3232
this->setupCredential({this->apiKeyName, this->apiSecretName});

include/ccapi_cpp/service/ccapi_execution_management_service_bitfinex.h

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@ class ExecutionManagementServiceBitfinex : public ExecutionManagementService {
1414
this->baseUrlRest = CCAPI_BITFINEX_PRIVATE_URL_REST_BASE;
1515
this->setHostRestFromUrlRest(this->baseUrlRest);
1616
this->setHostWsFromUrlWs(this->baseUrlWs);
17-
// try {
18-
// this->tcpResolverResultsRest = this->resolver.resolve(this->hostRest, this->portRest);
19-
// } catch (const std::exception& e) {
20-
// CCAPI_LOGGER_FATAL(std::string("e.what() = ") + e.what());
21-
// }
22-
// #ifdef CCAPI_LEGACY_USE_WEBSOCKETPP
23-
// #else
24-
// try {
25-
// this->tcpResolverResultsWs = this->resolverWs.resolve(this->hostWs, this->portWs);
26-
// } catch (const std::exception& e) {
27-
// CCAPI_LOGGER_FATAL(std::string("e.what() = ") + e.what());
28-
// }
29-
// #endif
17+
// try {
18+
// this->tcpResolverResultsRest = this->resolver.resolve(this->hostRest, this->portRest);
19+
// } catch (const std::exception& e) {
20+
// CCAPI_LOGGER_FATAL(std::string("e.what() = ") + e.what());
21+
// }
22+
// #ifdef CCAPI_LEGACY_USE_WEBSOCKETPP
23+
// #else
24+
// try {
25+
// this->tcpResolverResultsWs = this->resolverWs.resolve(this->hostWs, this->portWs);
26+
// } catch (const std::exception& e) {
27+
// CCAPI_LOGGER_FATAL(std::string("e.what() = ") + e.what());
28+
// }
29+
// #endif
3030
this->apiKeyName = CCAPI_BITFINEX_API_KEY;
3131
this->apiSecretName = CCAPI_BITFINEX_API_SECRET;
3232
this->setupCredential({this->apiKeyName, this->apiSecretName});

include/ccapi_cpp/service/ccapi_execution_management_service_bitget.h

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@ class ExecutionManagementServiceBitget : public ExecutionManagementServiceBitget
1414
this->baseUrlRest = sessionConfigs.getUrlRestBase().at(this->exchangeName);
1515
this->setHostRestFromUrlRest(this->baseUrlRest);
1616
this->setHostWsFromUrlWs(this->baseUrlWs);
17-
// try {
18-
// this->tcpResolverResultsRest = this->resolver.resolve(this->hostRest, this->portRest);
19-
// } catch (const std::exception& e) {
20-
// CCAPI_LOGGER_FATAL(std::string("e.what() = ") + e.what());
21-
// }
22-
// #ifdef CCAPI_LEGACY_USE_WEBSOCKETPP
23-
// #else
24-
// try {
25-
// this->tcpResolverResultsWs = this->resolverWs.resolve(this->hostWs, this->portWs);
26-
// } catch (const std::exception& e) {
27-
// CCAPI_LOGGER_FATAL(std::string("e.what() = ") + e.what());
28-
// }
29-
// #endif
17+
// try {
18+
// this->tcpResolverResultsRest = this->resolver.resolve(this->hostRest, this->portRest);
19+
// } catch (const std::exception& e) {
20+
// CCAPI_LOGGER_FATAL(std::string("e.what() = ") + e.what());
21+
// }
22+
// #ifdef CCAPI_LEGACY_USE_WEBSOCKETPP
23+
// #else
24+
// try {
25+
// this->tcpResolverResultsWs = this->resolverWs.resolve(this->hostWs, this->portWs);
26+
// } catch (const std::exception& e) {
27+
// CCAPI_LOGGER_FATAL(std::string("e.what() = ") + e.what());
28+
// }
29+
// #endif
3030
this->apiKeyName = CCAPI_BITGET_API_KEY;
3131
this->apiSecretName = CCAPI_BITGET_API_SECRET;
3232
this->apiPassphraseName = CCAPI_BITGET_API_PASSPHRASE;

include/ccapi_cpp/service/ccapi_execution_management_service_bitget_futures.h

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@ class ExecutionManagementServiceBitgetFutures : public ExecutionManagementServic
1414
this->baseUrlRest = sessionConfigs.getUrlRestBase().at(this->exchangeName);
1515
this->setHostRestFromUrlRest(this->baseUrlRest);
1616
this->setHostWsFromUrlWs(this->baseUrlWs);
17-
// try {
18-
// this->tcpResolverResultsRest = this->resolver.resolve(this->hostRest, this->portRest);
19-
// } catch (const std::exception& e) {
20-
// CCAPI_LOGGER_FATAL(std::string("e.what() = ") + e.what());
21-
// }
22-
// #ifdef CCAPI_LEGACY_USE_WEBSOCKETPP
23-
// #else
24-
// try {
25-
// this->tcpResolverResultsWs = this->resolverWs.resolve(this->hostWs, this->portWs);
26-
// } catch (const std::exception& e) {
27-
// CCAPI_LOGGER_FATAL(std::string("e.what() = ") + e.what());
28-
// }
29-
// #endif
17+
// try {
18+
// this->tcpResolverResultsRest = this->resolver.resolve(this->hostRest, this->portRest);
19+
// } catch (const std::exception& e) {
20+
// CCAPI_LOGGER_FATAL(std::string("e.what() = ") + e.what());
21+
// }
22+
// #ifdef CCAPI_LEGACY_USE_WEBSOCKETPP
23+
// #else
24+
// try {
25+
// this->tcpResolverResultsWs = this->resolverWs.resolve(this->hostWs, this->portWs);
26+
// } catch (const std::exception& e) {
27+
// CCAPI_LOGGER_FATAL(std::string("e.what() = ") + e.what());
28+
// }
29+
// #endif
3030
this->apiKeyName = CCAPI_BITGET_FUTURES_API_KEY;
3131
this->apiSecretName = CCAPI_BITGET_FUTURES_API_SECRET;
3232
this->apiPassphraseName = CCAPI_BITGET_FUTURES_API_PASSPHRASE;

include/ccapi_cpp/service/ccapi_execution_management_service_bitmart.h

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@ class ExecutionManagementServiceBitmart : public ExecutionManagementService {
1414
this->baseUrlRest = sessionConfigs.getUrlRestBase().at(this->exchangeName);
1515
this->setHostRestFromUrlRest(this->baseUrlRest);
1616
this->setHostWsFromUrlWs(this->baseUrlWs);
17-
// try {
18-
// this->tcpResolverResultsRest = this->resolver.resolve(this->hostRest, this->portRest);
19-
// } catch (const std::exception& e) {
20-
// CCAPI_LOGGER_FATAL(std::string("e.what() = ") + e.what());
21-
// }
22-
// #ifdef CCAPI_LEGACY_USE_WEBSOCKETPP
23-
// #else
24-
// try {
25-
// this->tcpResolverResultsWs = this->resolverWs.resolve(this->hostWs, this->portWs);
26-
// } catch (const std::exception& e) {
27-
// CCAPI_LOGGER_FATAL(std::string("e.what() = ") + e.what());
28-
// }
29-
// #endif
17+
// try {
18+
// this->tcpResolverResultsRest = this->resolver.resolve(this->hostRest, this->portRest);
19+
// } catch (const std::exception& e) {
20+
// CCAPI_LOGGER_FATAL(std::string("e.what() = ") + e.what());
21+
// }
22+
// #ifdef CCAPI_LEGACY_USE_WEBSOCKETPP
23+
// #else
24+
// try {
25+
// this->tcpResolverResultsWs = this->resolverWs.resolve(this->hostWs, this->portWs);
26+
// } catch (const std::exception& e) {
27+
// CCAPI_LOGGER_FATAL(std::string("e.what() = ") + e.what());
28+
// }
29+
// #endif
3030
this->apiKeyName = CCAPI_BITMART_API_KEY;
3131
this->apiSecretName = CCAPI_BITMART_API_SECRET;
3232
this->apiMemoName = CCAPI_BITMART_API_MEMO;

0 commit comments

Comments
 (0)