Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions include/ccapi_cpp/ccapi_element.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef INCLUDE_CCAPI_CPP_CCAPI_ELEMENT_H_
#define INCLUDE_CCAPI_CPP_CCAPI_ELEMENT_H_
#pragma once

#include <map>
#include <string>

Expand Down Expand Up @@ -125,4 +125,3 @@ class Element {
};

} /* namespace ccapi */
#endif // INCLUDE_CCAPI_CPP_CCAPI_ELEMENT_H_
5 changes: 2 additions & 3 deletions include/ccapi_cpp/ccapi_event.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef INCLUDE_CCAPI_CPP_CCAPI_EVENT_H_
#define INCLUDE_CCAPI_CPP_CCAPI_EVENT_H_
#pragma once

#include <vector>

#include "ccapi_cpp/ccapi_logger.h"
Expand Down Expand Up @@ -115,4 +115,3 @@ class Event {
};

} /* namespace ccapi */
#endif // INCLUDE_CCAPI_CPP_CCAPI_EVENT_H_
5 changes: 2 additions & 3 deletions include/ccapi_cpp/ccapi_event_dispatcher.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef INCLUDE_CCAPI_CPP_CCAPI_EVENT_DISPATCHER_H_
#define INCLUDE_CCAPI_CPP_CCAPI_EVENT_DISPATCHER_H_
#pragma once

#include <stddef.h>

#include <atomic>
Expand Down Expand Up @@ -104,4 +104,3 @@ class EventDispatcher {
};

} /* namespace ccapi */
#endif // INCLUDE_CCAPI_CPP_CCAPI_EVENT_DISPATCHER_H_
5 changes: 2 additions & 3 deletions include/ccapi_cpp/ccapi_event_handler.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef INCLUDE_CCAPI_CPP_CCAPI_EVENT_HANDLER_H_
#define INCLUDE_CCAPI_CPP_CCAPI_EVENT_HANDLER_H_
#pragma once

#include "ccapi_cpp/ccapi_event.h"

namespace ccapi {
Expand Down Expand Up @@ -27,4 +27,3 @@ class EventHandler {
};

} /* namespace ccapi */
#endif // INCLUDE_CCAPI_CPP_CCAPI_EVENT_HANDLER_H_
5 changes: 2 additions & 3 deletions include/ccapi_cpp/ccapi_fix_connection.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef INCLUDE_CCAPI_CPP_CCAPI_FIX_CONNECTION_H_
#define INCLUDE_CCAPI_CPP_CCAPI_FIX_CONNECTION_H_
#pragma once

#include <string>
#include <variant>

Expand Down Expand Up @@ -125,4 +125,3 @@ class FixConnection {
};

} /* namespace ccapi */
#endif // INCLUDE_CCAPI_CPP_CCAPI_FIX_CONNECTION_H_
4 changes: 1 addition & 3 deletions include/ccapi_cpp/ccapi_hmac.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#ifndef INCLUDE_CCAPI_CPP_CCAPI_HMAC_H_
#define INCLUDE_CCAPI_CPP_CCAPI_HMAC_H_
#pragma once

#include <openssl/evp.h>
#include <openssl/hmac.h>
Expand Down Expand Up @@ -70,4 +69,3 @@ class Hmac {
};

} /* namespace ccapi */
#endif // INCLUDE_CCAPI_CPP_CCAPI_HMAC_H_
5 changes: 2 additions & 3 deletions include/ccapi_cpp/ccapi_http_connection.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef INCLUDE_CCAPI_CPP_CCAPI_HTTP_CONNECTION_H_
#define INCLUDE_CCAPI_CPP_CCAPI_HTTP_CONNECTION_H_
#pragma once

#include <string>

#include "ccapi_cpp/ccapi_logger.h"
Expand Down Expand Up @@ -37,4 +37,3 @@ class HttpConnection {
};

} /* namespace ccapi */
#endif // INCLUDE_CCAPI_CPP_CCAPI_HTTP_CONNECTION_H_
5 changes: 2 additions & 3 deletions include/ccapi_cpp/ccapi_http_retry.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef INCLUDE_CCAPI_CPP_CCAPI_HTTP_RETRY_H_
#define INCLUDE_CCAPI_CPP_CCAPI_HTTP_RETRY_H_
#pragma once

#include <future>
#include <string>

Expand Down Expand Up @@ -28,4 +28,3 @@ class HttpRetry {
};

} /* namespace ccapi */
#endif // INCLUDE_CCAPI_CPP_CCAPI_HTTP_RETRY_H_
5 changes: 2 additions & 3 deletions include/ccapi_cpp/ccapi_inflate_stream.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef INCLUDE_CCAPI_CPP_CCAPI_INFLATE_STREAM_H_
#define INCLUDE_CCAPI_CPP_CCAPI_INFLATE_STREAM_H_
#pragma once

#ifndef CCAPI_DECOMPRESS_BUFFER_SIZE
#define CCAPI_DECOMPRESS_BUFFER_SIZE (1 << 20)
#endif
Expand Down Expand Up @@ -100,4 +100,3 @@ class InflateStream {
};

} /* namespace ccapi */
#endif // INCLUDE_CCAPI_CPP_CCAPI_INFLATE_STREAM_H_
5 changes: 2 additions & 3 deletions include/ccapi_cpp/ccapi_jwt.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef INCLUDE_CCAPI_CPP_CCAPI_JWT_H_
#define INCLUDE_CCAPI_CPP_CCAPI_JWT_H_
#pragma once

#include "ccapi_cpp/ccapi_hmac.h"
#include "ccapi_cpp/ccapi_logger.h"
#include "ccapi_cpp/ccapi_macro.h"
Expand Down Expand Up @@ -30,4 +30,3 @@ class Jwt {
}
};
} // namespace ccapi
#endif // INCLUDE_CCAPI_CPP_CCAPI_JWT_H_
5 changes: 2 additions & 3 deletions include/ccapi_cpp/ccapi_logger.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef INCLUDE_CCAPI_CPP_CCAPI_LOGGER_H_
#define INCLUDE_CCAPI_CPP_CCAPI_LOGGER_H_
#pragma once

#ifdef _WIN32
#define CCAPI_LOGGER_FILE_SEPARATOR '\\'
#else
Expand Down Expand Up @@ -168,4 +168,3 @@ class Logger {
};

} /* namespace ccapi */
#endif // INCLUDE_CCAPI_CPP_CCAPI_LOGGER_H_
6 changes: 1 addition & 5 deletions include/ccapi_cpp/ccapi_macro.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#ifndef INCLUDE_CCAPI_CPP_CCAPI_MACRO_H_
#define INCLUDE_CCAPI_CPP_CCAPI_MACRO_H_
#pragma once

#ifndef CCAPI_PRINT_DOUBLE_PRECISION_DEFAULT
#define CCAPI_PRINT_DOUBLE_PRECISION_DEFAULT 10
Expand Down Expand Up @@ -1738,6 +1737,3 @@
#ifndef CCAPI_EM_CLIENT_ORDER_ID_SEQUENCE_NUMBER_PAD_TO_LENGTH
#define CCAPI_EM_CLIENT_ORDER_ID_SEQUENCE_NUMBER_PAD_TO_LENGTH 3
#endif

#endif
// INCLUDE_CCAPI_CPP_CCAPI_MACRO_H_
5 changes: 2 additions & 3 deletions include/ccapi_cpp/ccapi_market_data_message.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef INCLUDE_CCAPI_CPP_CCAPI_MARKET_DATA_MESSAGE_H_
#define INCLUDE_CCAPI_CPP_CCAPI_MARKET_DATA_MESSAGE_H_
#pragma once

#include "ccapi_cpp/ccapi_logger.h"
#include "ccapi_cpp/ccapi_util_private.h"

Expand Down Expand Up @@ -268,4 +268,3 @@ class MarketDataMessage {
};

} /* namespace ccapi */
#endif // INCLUDE_CCAPI_CPP_CCAPI_MARKET_DATA_MESSAGE_H_
5 changes: 2 additions & 3 deletions include/ccapi_cpp/ccapi_message.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef INCLUDE_CCAPI_CPP_CCAPI_MESSAGE_H_
#define INCLUDE_CCAPI_CPP_CCAPI_MESSAGE_H_
#pragma once

#include <chrono>
#include <vector>

Expand Down Expand Up @@ -315,4 +315,3 @@ class Message {
};

} /* namespace ccapi */
#endif // INCLUDE_CCAPI_CPP_CCAPI_MESSAGE_H_
5 changes: 2 additions & 3 deletions include/ccapi_cpp/ccapi_queue.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef INCLUDE_CCAPI_CPP_CCAPI_QUEUE_H_
#define INCLUDE_CCAPI_CPP_CCAPI_QUEUE_H_
#pragma once

#include <mutex>
#include <vector>

Expand Down Expand Up @@ -87,4 +87,3 @@ class Queue {
};

} /* namespace ccapi */
#endif // INCLUDE_CCAPI_CPP_CCAPI_QUEUE_H_
5 changes: 2 additions & 3 deletions include/ccapi_cpp/ccapi_request.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef INCLUDE_CCAPI_CPP_CCAPI_REQUEST_H_
#define INCLUDE_CCAPI_CPP_CCAPI_REQUEST_H_
#pragma once

#include <condition_variable>
#include <map>
#include <mutex>
Expand Down Expand Up @@ -318,4 +318,3 @@ class Request {
};

} /* namespace ccapi */
#endif // INCLUDE_CCAPI_CPP_CCAPI_REQUEST_H_
5 changes: 2 additions & 3 deletions include/ccapi_cpp/ccapi_session.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef INCLUDE_CCAPI_CPP_CCAPI_SESSION_H_
#define INCLUDE_CCAPI_CPP_CCAPI_SESSION_H_
#pragma once

#include "ccapi_cpp/ccapi_macro.h"

// start: enable exchanges for market data
Expand Down Expand Up @@ -1038,4 +1038,3 @@ class Session {
};

} /* namespace ccapi */
#endif // INCLUDE_CCAPI_CPP_CCAPI_SESSION_H_
5 changes: 2 additions & 3 deletions include/ccapi_cpp/ccapi_session_configs.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef INCLUDE_CCAPI_CPP_CCAPI_SESSION_CONFIGS_H_
#define INCLUDE_CCAPI_CPP_CCAPI_SESSION_CONFIGS_H_
#pragma once

#include <map>
#include <set>
#include <string>
Expand Down Expand Up @@ -440,4 +440,3 @@ class SessionConfigs {
};

} /* namespace ccapi */
#endif // INCLUDE_CCAPI_CPP_CCAPI_SESSION_CONFIGS_H_
5 changes: 2 additions & 3 deletions include/ccapi_cpp/ccapi_session_options.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef INCLUDE_CCAPI_CPP_CCAPI_SESSION_OPTIONS_H_
#define INCLUDE_CCAPI_CPP_CCAPI_SESSION_OPTIONS_H_
#pragma once

#include <optional>
#include <string>

Expand Down Expand Up @@ -64,4 +64,3 @@ class SessionOptions {
};

} /* namespace ccapi */
#endif // INCLUDE_CCAPI_CPP_CCAPI_SESSION_OPTIONS_H_
5 changes: 2 additions & 3 deletions include/ccapi_cpp/ccapi_subscription.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef INCLUDE_CCAPI_CPP_CCAPI_SUBSCRIPTION_H_
#define INCLUDE_CCAPI_CPP_CCAPI_SUBSCRIPTION_H_
#pragma once

#include <set>
#include <string>

Expand Down Expand Up @@ -193,4 +193,3 @@ class Subscription {
};

} /* namespace ccapi */
#endif // INCLUDE_CCAPI_CPP_CCAPI_SUBSCRIPTION_H_
5 changes: 2 additions & 3 deletions include/ccapi_cpp/ccapi_url.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef INCLUDE_CCAPI_CPP_CCAPI_URL_H_
#define INCLUDE_CCAPI_CPP_CCAPI_URL_H_
#pragma once

#include <regex>
#include <string>

Expand Down Expand Up @@ -120,4 +120,3 @@ class Url {
};

} /* namespace ccapi */
#endif // INCLUDE_CCAPI_CPP_CCAPI_URL_H_
5 changes: 2 additions & 3 deletions include/ccapi_cpp/ccapi_util.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef INCLUDE_CCAPI_CPP_CCAPI_UTIL_H_
#define INCLUDE_CCAPI_CPP_CCAPI_UTIL_H_
#pragma once

#include <chrono>
#include <sstream>

Expand All @@ -8,4 +8,3 @@ namespace ccapi {
typedef std::chrono::time_point<std::chrono::system_clock, std::chrono::nanoseconds> TimePoint;

} /* namespace ccapi */
#endif // INCLUDE_CCAPI_CPP_CCAPI_UTIL_H_
5 changes: 2 additions & 3 deletions include/ccapi_cpp/ccapi_util_private.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef INCLUDE_CCAPI_CPP_CCAPI_UTIL_PRIVATE_H_
#define INCLUDE_CCAPI_CPP_CCAPI_UTIL_PRIVATE_H_
#pragma once

#ifdef _WIN32
#define timegm _mkgmtime
#endif
Expand Down Expand Up @@ -1877,4 +1877,3 @@ V mapGetWithDefault(const C<K, V, Args...>& m, const K& key, const V defaultValu
}

} /* namespace ccapi */
#endif // INCLUDE_CCAPI_CPP_CCAPI_UTIL_PRIVATE_H_
5 changes: 1 addition & 4 deletions include/ccapi_cpp/ccapi_ws_connection.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#ifndef INCLUDE_CCAPI_CPP_CCAPI_WS_CONNECTION_H_
#define INCLUDE_CCAPI_CPP_CCAPI_WS_CONNECTION_H_
#pragma once

#include <string>
#include <variant>
Expand Down Expand Up @@ -164,5 +163,3 @@ class WsConnection {
};

} /* namespace ccapi */

#endif // INCLUDE_CCAPI_CPP_CCAPI_WS_CONNECTION_H_
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef INCLUDE_CCAPI_CPP_SERVICE_CCAPI_EXECUTION_MANAGEMENT_SERVICE_H_
#define INCLUDE_CCAPI_CPP_SERVICE_CCAPI_EXECUTION_MANAGEMENT_SERVICE_H_
#pragma once

#ifdef CCAPI_ENABLE_SERVICE_EXECUTION_MANAGEMENT
#include <sys/stat.h>

Expand Down Expand Up @@ -373,4 +373,3 @@ class ExecutionManagementService : public Service {

} /* namespace ccapi */
#endif
#endif // INCLUDE_CCAPI_CPP_SERVICE_CCAPI_EXECUTION_MANAGEMENT_SERVICE_H_
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef INCLUDE_CCAPI_CPP_SERVICE_CCAPI_EXECUTION_MANAGEMENT_SERVICE_ASCENDEX_H_
#define INCLUDE_CCAPI_CPP_SERVICE_CCAPI_EXECUTION_MANAGEMENT_SERVICE_ASCENDEX_H_
#pragma once

#ifdef CCAPI_ENABLE_SERVICE_EXECUTION_MANAGEMENT
#ifdef CCAPI_ENABLE_EXCHANGE_ASCENDEX
#include "ccapi_cpp/service/ccapi_execution_management_service.h"
Expand Down Expand Up @@ -520,4 +520,3 @@ class ExecutionManagementServiceAscendex : public ExecutionManagementService {
} /* namespace ccapi */
#endif
#endif
#endif // INCLUDE_CCAPI_CPP_SERVICE_CCAPI_EXECUTION_MANAGEMENT_SERVICE_ASCENDEX_H_
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef INCLUDE_CCAPI_CPP_SERVICE_CCAPI_EXECUTION_MANAGEMENT_SERVICE_BINANCE_H_
#define INCLUDE_CCAPI_CPP_SERVICE_CCAPI_EXECUTION_MANAGEMENT_SERVICE_BINANCE_H_
#pragma once

#ifdef CCAPI_ENABLE_SERVICE_EXECUTION_MANAGEMENT
#ifdef CCAPI_ENABLE_EXCHANGE_BINANCE
#ifndef CCAPI_BINANCE_CREATE_ORDER_PATH
Expand Down Expand Up @@ -53,4 +53,3 @@ class ExecutionManagementServiceBinance : public ExecutionManagementServiceBinan
} /* namespace ccapi */
#endif
#endif
#endif // INCLUDE_CCAPI_CPP_SERVICE_CCAPI_EXECUTION_MANAGEMENT_SERVICE_BINANCE_H_
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef INCLUDE_CCAPI_CPP_SERVICE_CCAPI_EXECUTION_MANAGEMENT_SERVICE_BINANCE_BASE_H_
#define INCLUDE_CCAPI_CPP_SERVICE_CCAPI_EXECUTION_MANAGEMENT_SERVICE_BINANCE_BASE_H_
#pragma once

#ifdef CCAPI_ENABLE_SERVICE_EXECUTION_MANAGEMENT
#if defined(CCAPI_ENABLE_EXCHANGE_BINANCE_US) || defined(CCAPI_ENABLE_EXCHANGE_BINANCE) || defined(CCAPI_ENABLE_EXCHANGE_BINANCE_USDS_FUTURES) || \
defined(CCAPI_ENABLE_EXCHANGE_BINANCE_COIN_FUTURES)
Expand Down Expand Up @@ -873,4 +873,3 @@ class ExecutionManagementServiceBinanceBase : public ExecutionManagementService
} /* namespace ccapi */
#endif
#endif
#endif // INCLUDE_CCAPI_CPP_SERVICE_CCAPI_EXECUTION_MANAGEMENT_SERVICE_BINANCE_BASE_H_
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef INCLUDE_CCAPI_CPP_SERVICE_CCAPI_EXECUTION_MANAGEMENT_SERVICE_BINANCE_COIN_FUTURES_H_
#define INCLUDE_CCAPI_CPP_SERVICE_CCAPI_EXECUTION_MANAGEMENT_SERVICE_BINANCE_COIN_FUTURES_H_
#pragma once

#ifdef CCAPI_ENABLE_SERVICE_EXECUTION_MANAGEMENT
#ifdef CCAPI_ENABLE_EXCHANGE_BINANCE_COIN_FUTURES
#include "ccapi_cpp/service/ccapi_execution_management_service_binance_derivatives_base.h"
Expand Down Expand Up @@ -43,4 +43,3 @@ class ExecutionManagementServiceBinanceCoinFutures : public ExecutionManagementS
} /* namespace ccapi */
#endif
#endif
#endif // INCLUDE_CCAPI_CPP_SERVICE_CCAPI_EXECUTION_MANAGEMENT_SERVICE_BINANCE_COIN_FUTURES_H_
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef INCLUDE_CCAPI_CPP_SERVICE_CCAPI_EXECUTION_MANAGEMENT_SERVICE_BINANCE_DERIVATIVES_BASE_H_
#define INCLUDE_CCAPI_CPP_SERVICE_CCAPI_EXECUTION_MANAGEMENT_SERVICE_BINANCE_DERIVATIVES_BASE_H_
#pragma once

#ifdef CCAPI_ENABLE_SERVICE_EXECUTION_MANAGEMENT
#if defined(CCAPI_ENABLE_EXCHANGE_BINANCE_USDS_FUTURES) || defined(CCAPI_ENABLE_EXCHANGE_BINANCE_COIN_FUTURES)
#include "ccapi_cpp/service/ccapi_execution_management_service_binance_base.h"
Expand Down Expand Up @@ -72,4 +72,3 @@ class ExecutionManagementServiceBinanceDerivativesBase : public ExecutionManagem
} /* namespace ccapi */
#endif
#endif
#endif // INCLUDE_CCAPI_CPP_SERVICE_CCAPI_EXECUTION_MANAGEMENT_SERVICE_BINANCE_DERIVATIVES_BASE_H_
Loading
Loading