TT CORE SDK 2.0.1.1
TT CORE SDK documentation
Loading...
Searching...
No Matches
sdk_options.h
Go to the documentation of this file.
1/***************************************************************************
2 *
3 * Unpublished Work Copyright (c) 2019-2020
4 * Trading Technologies International, Inc.
5 * All Rights Reserved Worldwide
6 *
7 * * * * S T R I C T L Y P R O P R I E T A R Y * * *
8 *
9 * WARNING: This program (or document) is unpublished, proprietary property
10 * of Trading Technologies International, Inc. and is to be maintained in
11 * strict confidence. Unauthorized reproduction, distribution or disclosure
12 * of this program (or document), or any program (or document) derived from
13 * it is prohibited by State and Federal law, and by local law outside of
14 * the U.S.
15 *
16 ***************************************************************************/
17#pragma once
18
19#include "environment.h"
21
22namespace ttsdk {
23
25 {
26 public:
28 const char* app_key_secret = nullptr;
29 bool use_onload = true;
30 int32_t lbm_affinity = -1;
31 bool log_to_console = false;
32 uint8_t num_price_threads = 2;
33 uint8_t num_order_threads = 2;
34 uint8_t num_algo_threads = 2;
35 bool enable_pnl = false;
36 bool use_indicative_pnl = false;
37 bool enable_synthetics = false;
38 bool spin_price_thread = true;
39 int32_t spin_price_core = 1;
40 int32_t price_wait_ms = 0;
41 bool price_config_check = false;
43 bool filter_accounts = false;
44 bool enable_epiq = false;
45 // unique identifier of this sdk instance - this value should remain
46 // the same through all runs of this instance since it identifies the application that
47 // is managing the orders and algos within the system, allowing working algos to be recovered in the
48 // case of the algo server application shutting down with working algos running. This
49 // value also allows the sdk to identify exchange orders that were managed by the application
50 // which have leave on restart set to false so they can be deleted by the sdk on restart
51 // 0 indicates not to use this feature
52 uint64_t sdk_instance_id = 0;
53 // enables extra order logging - note this will be done on the critical path processing
54 // so only enable it if you need to debug an issue with additional logging around
55 // the order event callbacks
56 bool order_debug_logging = false;
57 };
58
59}
Environment
Definition environment.h:6
@ NotSet
Definition environment.h:7
Environment environment
Definition sdk_options.h:27
uint8_t num_order_threads
Definition sdk_options.h:33
const char * app_key_secret
Definition sdk_options.h:28
uint8_t num_price_threads
Definition sdk_options.h:32
uint64_t sdk_instance_id
Definition sdk_options.h:52
ProfitLossCalculationType pnl_calc_type
Definition sdk_options.h:42