TT CORE SDK 2.0.1.1
TT CORE SDK documentation
Loading...
Searching...
No Matches
algo_definition.h
Go to the documentation of this file.
1/***************************************************************************
2 *
3 * Unpublished Work Copyright (c) 2018-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 <stddef.h>
20#include "shared_ptr.h"
21#include "enums/MarketId.h"
22#include "enums/AlgoType.h"
23#include "enums/UserDataType.h"
24
25namespace ttsdk {
26
30 {
31 public:
32 virtual const char* GetDisplayName() const noexcept = 0;
33 virtual const char* GetName() const noexcept = 0;
34 virtual UserDataType GetDataType() const noexcept = 0;
35
36 explicit UserParamDefinition() {};
38 private:
40 UserParamDefinition& operator= (UserParamDefinition&) = delete;
42 UserParamDefinition& operator= (UserParamDefinition&&) = delete;
43 };
45
47 {
48 public:
49 virtual const char* GetDisplayName() const noexcept = 0;
50 virtual const char* GetId() const noexcept = 0;
51 virtual const char* GetBlockName() const noexcept = 0;
52 virtual const char* GetConnector() const noexcept = 0;
53 virtual ExportValueType GetDataType() const noexcept = 0;
54
55 explicit ExportValueDefinition() {};
57 private:
59 ExportValueDefinition& operator= (ExportValueDefinition&) = delete;
61 ExportValueDefinition& operator= (ExportValueDefinition&&) = delete;
62 };
64
66 {
67 public:
68 enum class ResponseCode
69 {
70 SUCCESS = 0,
71 FAILED = 1,
73 NOT_ALLOWED = 3,
75 NOT_FOUND = 5,
76 };
77
78 // Data members
79 virtual uint64_t GetAlgoDefinitionId() const noexcept = 0;
80 virtual const char* GetName() const noexcept = 0;
81 virtual AlgoType GetAlgoType() const noexcept = 0;
82 virtual const char* GetOpaqueData() const noexcept = 0;
83 virtual const char* GetAlgoVersion() const noexcept = 0;
84
85 virtual uint32_t GetParameterCount() const noexcept = 0;
86 virtual ttsdk::UserParamDefinitionPtr GetParameterDefinition(const uint32_t index) const noexcept = 0;
87
88 virtual uint32_t GetExportValueCount() const noexcept = 0;
89 virtual ttsdk::ExportValueDefinitionPtr GetExportValueDefinition(const uint32_t index) const noexcept = 0;
90
91 explicit AlgoDefinition() {};
93 private:
94 AlgoDefinition(const AlgoDefinition&) = delete;
95 AlgoDefinition& operator= (AlgoDefinition&) = delete;
97 AlgoDefinition& operator= (AlgoDefinition&&) = delete;
98 };
99
101}
virtual const char * GetOpaqueData() const noexcept=0
virtual uint32_t GetParameterCount() const noexcept=0
virtual uint64_t GetAlgoDefinitionId() const noexcept=0
virtual ttsdk::ExportValueDefinitionPtr GetExportValueDefinition(const uint32_t index) const noexcept=0
virtual AlgoType GetAlgoType() const noexcept=0
virtual uint32_t GetExportValueCount() const noexcept=0
virtual const char * GetName() const noexcept=0
virtual ttsdk::UserParamDefinitionPtr GetParameterDefinition(const uint32_t index) const noexcept=0
virtual const char * GetAlgoVersion() const noexcept=0
virtual const char * GetBlockName() const noexcept=0
virtual const char * GetDisplayName() const noexcept=0
virtual ExportValueType GetDataType() const noexcept=0
virtual const char * GetId() const noexcept=0
virtual const char * GetConnector() const noexcept=0
virtual const char * GetName() const noexcept=0
virtual const char * GetDisplayName() const noexcept=0
virtual UserDataType GetDataType() const noexcept=0
ExportValueType
AlgoType
Definition AlgoType.h:29