trader  v0.1a
A framework to build trading applications
api.h
1 // <copyright file="api.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 API class</summary>
9 
10 #pragma once
11 
12 namespace trader
13 {
14 
15  class Api
16  {
17  public:
19  virtual ~Api(){};
20 
29  virtual Poco::Dynamic::Var invoke(const std::string &httpMethod, Poco::URI &uri) = 0;
30 
36  virtual void setParams(const std::string&) {}
37  };
38 } // namespace trader
virtual ~Api()
Finalizes an instance of the API class.
Definition: api.h:19
Definition: api.h:15
virtual void setParams(const std::string &)
Sets the parameters.
Definition: api.h:36
virtual Poco::Dynamic::Var invoke(const std::string &httpMethod, Poco::URI &uri)=0
Executes the given operation on a different thread, and waits for the result.
Definition: app.h:7