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
"
20
#include "
enums/ProfitLossCalculationType.h
"
21
22
namespace
ttsdk
{
23
24
struct
TTSDKOptions
25
{
26
public
:
27
Environment
environment
=
Environment::NotSet
;
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
;
42
ProfitLossCalculationType
pnl_calc_type
=
ProfitLossCalculationType::RiskWaterfall
;
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
}
ProfitLossCalculationType.h
environment.h
ttsdk
Definition
account.h:21
ttsdk::ProfitLossCalculationType
ProfitLossCalculationType
Definition
ProfitLossCalculationType.h:22
ttsdk::ProfitLossCalculationType::RiskWaterfall
@ RiskWaterfall
ttsdk::Environment
Environment
Definition
environment.h:6
ttsdk::NotSet
@ NotSet
Definition
environment.h:7
ttsdk::TTSDKOptions
Definition
sdk_options.h:25
ttsdk::TTSDKOptions::spin_price_core
int32_t spin_price_core
Definition
sdk_options.h:39
ttsdk::TTSDKOptions::environment
Environment environment
Definition
sdk_options.h:27
ttsdk::TTSDKOptions::enable_pnl
bool enable_pnl
Definition
sdk_options.h:35
ttsdk::TTSDKOptions::num_order_threads
uint8_t num_order_threads
Definition
sdk_options.h:33
ttsdk::TTSDKOptions::enable_synthetics
bool enable_synthetics
Definition
sdk_options.h:37
ttsdk::TTSDKOptions::use_onload
bool use_onload
Definition
sdk_options.h:29
ttsdk::TTSDKOptions::price_config_check
bool price_config_check
Definition
sdk_options.h:41
ttsdk::TTSDKOptions::app_key_secret
const char * app_key_secret
Definition
sdk_options.h:28
ttsdk::TTSDKOptions::num_price_threads
uint8_t num_price_threads
Definition
sdk_options.h:32
ttsdk::TTSDKOptions::use_indicative_pnl
bool use_indicative_pnl
Definition
sdk_options.h:36
ttsdk::TTSDKOptions::lbm_affinity
int32_t lbm_affinity
Definition
sdk_options.h:30
ttsdk::TTSDKOptions::price_wait_ms
int32_t price_wait_ms
Definition
sdk_options.h:40
ttsdk::TTSDKOptions::enable_epiq
bool enable_epiq
Definition
sdk_options.h:44
ttsdk::TTSDKOptions::filter_accounts
bool filter_accounts
Definition
sdk_options.h:43
ttsdk::TTSDKOptions::sdk_instance_id
uint64_t sdk_instance_id
Definition
sdk_options.h:52
ttsdk::TTSDKOptions::pnl_calc_type
ProfitLossCalculationType pnl_calc_type
Definition
sdk_options.h:42
ttsdk::TTSDKOptions::spin_price_thread
bool spin_price_thread
Definition
sdk_options.h:38
ttsdk::TTSDKOptions::log_to_console
bool log_to_console
Definition
sdk_options.h:31
ttsdk::TTSDKOptions::order_debug_logging
bool order_debug_logging
Definition
sdk_options.h:56
ttsdk::TTSDKOptions::num_algo_threads
uint8_t num_algo_threads
Definition
sdk_options.h:34
Header Files
sdk_options.h
Generated by
1.10.0