TT CORE SDK 2.0.1.1
TT CORE SDK documentation
Loading...
Searching...
No Matches
fill.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 "instrument.h"
21#include "execution_report.h"
22#include "shared_ptr.h"
23
24
25namespace ttsdk
26{
29 class Fill : public shared_base
30 {
31 public:
32 explicit Fill() {};
33 ~Fill() {};
34
35 virtual const char* GetOrderId() const noexcept = 0;
36 virtual uint64_t GetTimestamp() const noexcept = 0;
37 virtual ExecutionReportPtr GetExecutionReport() const noexcept = 0;
38 virtual InstrumentPtr GetInstrument() const noexcept = 0;
39
40 private:
41 Fill(const Fill&) = delete;
42 Fill& operator=(Fill&) = delete;
43 Fill(Fill&&) = delete;
44 Fill& operator=(Fill&&) = delete;
45 };
46 using FillPtr = shared_ptr<const Fill>;
47
49 {
50 public:
53 virtual size_t GetCount() const = 0;
54 virtual FillPtr GetFill(const uint32_t index) const = 0;
55 };
57
59 {
60 public:
69 virtual void OnDownloadComplete(const DownloadResult code,
70 HistoricalFillCollectionPtr orders, const char* message) = 0;
71 };
73
74
75}
an interface around the fill execution report
Definition fill.h:30
virtual ExecutionReportPtr GetExecutionReport() const noexcept=0
virtual uint64_t GetTimestamp() const noexcept=0
~Fill()
Definition fill.h:33
virtual InstrumentPtr GetInstrument() const noexcept=0
virtual const char * GetOrderId() const noexcept=0
virtual FillPtr GetFill(const uint32_t index) const =0
virtual ~HistoricalFillCollection()
Definition fill.h:52
virtual size_t GetCount() const =0
virtual ~IFillDownloadCallbackHandler()
Definition fill.h:68
virtual void OnDownloadComplete(const DownloadResult code, HistoricalFillCollectionPtr orders, const char *message)=0