trader  v0.1a
A framework to build trading applications
krakenconfig.h
1 
2 #pragma once
3 
4 
5 namespace trader {
6 
7  class KrakenConfig : public Poco::RefCountedObject {
8  public:
9 
10  KrakenConfig();
11 
12  ~KrakenConfig();
13 
14  void readFile(const std::string& _fileName);
15 
16  void read(Poco::Dynamic::Var val);
17 
18  struct DataObject {
19 
20  void SetApi_key(std::string val)
21  {
22  api_key = val;
23  }
24 
25  bool isSetApi_key() {
26  return (api_key != "Empty");
27  }
28 
29  std::string api_key;
30 
31  void SetPrivate_key(std::string val)
32  {
33  private_key = val;
34  }
35 
36  bool isSetPrivate_key() {
37  return (private_key != "Empty");
38  }
39 
40  std::string private_key;
41 
42  DataObject()
43  : api_key("Empty")
44  , private_key("Empty")
45  {
46  }
47 
48  };
49 
50  DataObject dataObject;
51  }; //KrakenConfig
52 
53 } //trader
Definition: krakenconfig.h:7
Definition: krakenconfig.h:18
Definition: app.h:7