TT CORE SDK 2.0.1.1
TT CORE SDK documentation
Loading...
Searching...
No Matches
account.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#include <stddef.h>
19#include "shared_ptr.h"
20
21namespace ttsdk {
22
23 class Account : public shared_base
24 {
25 public:
26 virtual ~Account() {};
27 virtual uint64_t GetAccountId() const = 0;
28 virtual const char* GetName() const = 0;
29 virtual uint64_t GetCompanyId() const = 0;
30 virtual uint64_t GetBrokerId() const = 0;
31 virtual bool IsTradingAllowed() const = 0;
32
33 protected:
34 Account() {};
35
36 Account(Account&&) = delete;
38 };
40
42 {
43 public:
44 virtual ~AccountCollection() {};
45 virtual size_t GetCount() const = 0;
46 virtual AccountPtr GetAccount(const uint32_t index) const = 0;
47 virtual AccountPtr GetAccount(const char* const name) const = 0;
48
49 protected:
55 };
57
58
59
60
61}
virtual AccountPtr GetAccount(const uint32_t index) const =0
AccountCollection & operator=(const AccountCollection &)=delete
virtual ~AccountCollection()
Definition account.h:44
AccountCollection(AccountCollection &&)=delete
virtual size_t GetCount() const =0
virtual AccountPtr GetAccount(const char *const name) const =0
AccountCollection(const AccountCollection &)=delete
virtual uint64_t GetBrokerId() const =0
virtual uint64_t GetCompanyId() const =0
Account(Account &&)=delete
virtual uint64_t GetAccountId() const =0
virtual ~Account()
Definition account.h:26
Account & operator=(Account &&)=delete
virtual const char * GetName() const =0
virtual bool IsTradingAllowed() const =0