Libannhoo_md_sdk  1.6.1
for index, tick(entrust and trade), and snapshot with solar flare
 All Classes Namespaces Files Functions Variables Pages
ah_md_spi.h
Go to the documentation of this file.
1 
8 #ifndef __AH_MD_SPI_H__
9 #define __AH_MD_SPI_H__
10 
11 #include "ah_md_common.h"
12 #include <memory>
13 
18 namespace annhoo {
19 /* inheritance from this class */
26 class IAHMdSpi {
27 public:
32  {
33  }
34 
38  virtual ~IAHMdSpi()
39  {
40  }
41 
42 public:
48  virtual void OnIndexCB(AHIndex* index) = 0;
49 
55  virtual void OnTickCB(AHTick* data, uint16_t type) = 0;
56 
62  virtual void OnSnapshotCB(AHSnapshot* snapshot) = 0;
63 };
64 } // namespace annhoo
65 #endif
This is the main interface to use library libAHQuotes.
Definition: ah_md_spi.h:26
annhoo quotes struct.
virtual ~IAHMdSpi()
Frees the IAHMdSpi object.
Definition: ah_md_spi.h:38
virtual void OnIndexCB(AHIndex *index)=0
Callback for AHIndex.
Contains data defined for index.
Definition: ah_md_common.h:40
virtual void OnSnapshotCB(AHSnapshot *snapshot)=0
Callback for AHSnapshot.
IAHMdSpi()
Constucts a IAHMdSpi.
Definition: ah_md_spi.h:31
Contains data defined for snapshot.
Definition: ah_md_common.h:67
virtual void OnTickCB(AHTick *data, uint16_t type)=0
Callback for AHEntrust or AHTrade.