trader  v0.1a
A framework to build trading applications
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
trader::Bittrex Class Reference

A bittrex. More...

#include <bittrex.h>

Inheritance diagram for trader::Bittrex:
Inheritance graph
[legend]
Collaboration diagram for trader::Bittrex:
Collaboration graph
[legend]

Public Member Functions

 Bittrex ()
 Initializes a new instance of the Bittrex class. More...
 
void run ()
 Runs this object. More...
 
 ~Bittrex ()
 Finalizes an instance of the Bittrex class. More...
 
Poco::Dynamic::Var invoke (const std::string &httpMethod, Poco::URI &uri)
 Executes the given operation on a different thread, and waits for the result. More...
 
void setParams (const std::string &)
 Sets the parameters. More...
 
- Public Member Functions inherited from trader::Api
virtual ~Api ()
 Finalizes an instance of the API class. More...
 

Public Attributes

BittrexApi::EndPoints api
 The API.
 
Poco::AutoPtr< BittrexDatabase::TablesdataBase
 The data base.
 

Protected Member Functions

 Bittrex (const Bittrex &)
 Initializes a new instance of the Bittrex class. More...
 
Bittrexoperator= (const Bittrex &)
 Assignment operator. More...
 

Protected Attributes

Poco::UInt32 configurationIdx
 Zero-based index of the configuration.
 

Detailed Description

A bittrex.

Constructor & Destructor Documentation

◆ Bittrex() [1/2]

trader::Bittrex::Bittrex ( )

Initializes a new instance of the Bittrex class.

◆ ~Bittrex()

trader::Bittrex::~Bittrex ( )

Finalizes an instance of the Bittrex class.

◆ Bittrex() [2/2]

trader::Bittrex::Bittrex ( const Bittrex )
protected

Initializes a new instance of the Bittrex class.

Parameters
parameter1The first parameter.

Member Function Documentation

◆ invoke()

Dynamic::Var trader::Bittrex::invoke ( const std::string &  httpMethod,
Poco::URI &  uri 
)
virtual

Executes the given operation on a different thread, and waits for the result.

Parameters
httpMethodThe HTTP method.
uri[in,out] URI of the document.
Returns
A Poco::Dynamic::Var.
Exceptions
ApplicationExceptionThrown when an Application error condition occurs.
Parameters
httpMethodThe HTTP method.
uri[in,out] URI of the document.
Returns
A Dynamic::Var.

Implements trader::Api.

◆ operator=()

Bittrex& trader::Bittrex::operator= ( const Bittrex )
protected

Assignment operator.

Parameters
parameter1The first parameter.
Returns
A shallow copy of this object.

◆ run()

void trader::Bittrex::run ( )

Runs this object.

◆ setParams()

void trader::Bittrex::setParams ( const std::string &  paramString)
virtual

Sets the parameters.

Parameters
parameter1The first parameter.
Exceptions
Poco::NotFoundExceptionThrown when the requested element is not present.
Parameters
paramStringThe parameter string.

Reimplemented from trader::Api.


The documentation for this class was generated from the following files: