trader  v0.1a
A framework to build trading applications
bittrex.h
1 // <copyright file="bittrex.h" company="FinSec Systems">
3 // Copyright (c) 2018 finsec.systems. All rights reserved.
4 // </copyright>
5 // <author>Viknash</author>
6 // <date>12/5/2018</date>
7 // <summary>Declares the Bittrex class</summary>
9 
10 #pragma once
11 
12 #include "api.h"
13 #include "app.h"
14 #include "bittrexapi.h"
15 #include "bittrexdatabase.h"
16 #include "db.h"
17 #include "interface.h"
18 #include "interfacehelper.h"
19 
20 
21 namespace trader
22 {
23 
24  namespace BittrexApi
25  {
27  class EndPoints;
28  };
29 
30 
31  namespace BittrexDatabase
32  {
34  class Tables;
35  };
36 
38  class Bittrex : public Api
39  {
40  public:
42  Bittrex();
43 
45  void run();
46 
48  ~Bittrex();
49 
58  Poco::Dynamic::Var invoke(const std::string &httpMethod, Poco::URI &uri);
59 
61 
62  Poco::AutoPtr< BittrexDatabase::Tables > dataBase;
63 
69  void setParams(const std::string&);
70 
71  protected:
77  Bittrex(const Bittrex &);
78 
86  Bittrex &operator=(const Bittrex &);
87  Poco::UInt32 configurationIdx;
88  };
89 
90 } // namespace trader
BittrexApi::EndPoints api
The API.
Definition: bittrex.h:60
A bittrex.
Definition: bittrex.h:38
Definition: bittrexapi.h:756
Definition: api.h:15
Poco::UInt32 configurationIdx
Zero-based index of the configuration.
Definition: bittrex.h:87
Poco::AutoPtr< BittrexDatabase::Tables > dataBase
The data base.
Definition: bittrex.h:62
Definition: app.h:7