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

A fyb. More...

#include <fyb.h>

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

Public Member Functions

 Fyb ()
 Initializes a new instance of the Fyb class. More...
 
 ~Fyb ()
 Finalizes an instance of the Fyb 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...
 
void run ()
 Runs this object. More...
 
void execute (Poco::Timer &timer)
 Executes the given timer. More...
 
void executeTradeHistory (Poco::Timer &timer)
 Executes the trade history operation. More...
 
void executeOrderBook (Poco::Timer &timer)
 Executes the order book operation. More...
 
void executePendingOrders (Poco::Timer &timer)
 Executes the pending orders operation. More...
 
void executeOrderHistory (Poco::Timer &timer)
 Executes the order history operation. More...
 
- Public Member Functions inherited from trader::Api
virtual ~Api ()
 Finalizes an instance of the API class. More...
 

Static Public Member Functions

static AutoPtr< Interface::ConnectiongetConnection (const std::string &connectionId)
 Gets a connection. More...
 

Public Attributes

FybApi::EndPoints api
 The API.
 

Protected Member Functions

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

Protected Attributes

std::string _uri
 _URI of the document
 

Detailed Description

A fyb.

Constructor & Destructor Documentation

◆ Fyb() [1/2]

trader::Fyb::Fyb ( )

Initializes a new instance of the Fyb class.

◆ ~Fyb()

trader::Fyb::~Fyb ( )

Finalizes an instance of the Fyb class.

◆ Fyb() [2/2]

trader::Fyb::Fyb ( const Fyb )
protected

Initializes a new instance of the Fyb class.

Parameters
parameter1The first parameter.

Member Function Documentation

◆ execute()

void trader::Fyb::execute ( Poco::Timer &  timer)

Executes the given timer.

Parameters
timer[in,out] The timer.

◆ executeOrderBook()

void trader::Fyb::executeOrderBook ( Poco::Timer &  timer)

Executes the order book operation.

Parameters
timer[in,out] The timer.

◆ executeOrderHistory()

void trader::Fyb::executeOrderHistory ( Poco::Timer &  timer)

Executes the order history operation.

Parameters
timer[in,out] The timer.

◆ executePendingOrders()

void trader::Fyb::executePendingOrders ( Poco::Timer &  timer)

Executes the pending orders operation.

Parameters
timer[in,out] The timer.

◆ executeTradeHistory()

void trader::Fyb::executeTradeHistory ( Poco::Timer &  timer)

Executes the trade history operation.

Parameters
timer[in,out] The timer.

◆ getConnection()

AutoPtr< Interface::Connection > trader::Fyb::getConnection ( const std::string &  connectionId)
static

Gets a connection.

Parameters
connectionIdIdentifier for the connection.
Returns
The connection.

◆ invoke()

Dynamic::Var trader::Fyb::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
TimeoutExceptionThrown when a Timeout error condition occurs.
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=()

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

Assignment operator.

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

◆ run()

void trader::Fyb::run ( )

Runs this object.

◆ setParams()

void trader::Fyb::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: