Skip to content

AvapiCpp Source Tree

Antonio edited this page Feb 4, 2018 · 2 revisions

AvapiCpp include 2 sub-directories:

  • Avapi/
  • AvapiExample/

Avapi/

It is the Library folder and it is so organise:

  • libavapi.so: the Avapi dynamic library.
  • lib_avapi.hpp the library interface if you include this file you will have all the operation available in your application.
  • AvapiConnection.hpp the interface for the Rest Client
  • TIME_SERIES/ the interface for Time Series Data Operations
  • FOREIGN_EXCHANGE/ the interface for Foreign Exchange (FX) Operations
  • DIGITAL_CURRENCY/ the interface for Digital & Crypto Currencies Operations
  • TECHNICAL_INDICATOR/ the interface for Technical Indicators Operations
  • SECTOR/ the interface for Sector Performances Operations
  • jsmn/ Embedded library used for the json parsing

AvapiExample/

It is the Example folder and it is so organise:

  • Example.cpp every source file show how to use the related Alpha Vantage Operations.
  • Makefile a Make file to build all the example file.

To build and run the Examples:

1. Set your Alpha Vantage API Key in AvapiExample/

$ sed -i 's#Your Alpha Vantage API Key !!!!#<YourKEY>#g' ./*.cpp

you need to replace <YourKEY> with your Alpha Vantage API Key.

2. Copy the Lib Folder (Avapi/) in AvapiExample/ :

$ cp -r Avapi /home/abcd/AvapiExample

3. Get run make in AvapiExample/:

$ cd /home/abcd/AvapiExample
$ make all

4. Configure the path library and run your example:

$ export LD_LIBRARY_PATH=<LIB_PATH>:$LD_LIBRARY_PATH
$ ./DEMA_Example.cpp

you need to replace <LIB_PATH> with the Avapi path, in our example is: /home/abcd/AvapiExample/Avapi/.


Authors: Antonio Papa and Simone Giuliani

Email: if you have any queries or suggestions please send us an email: sgiuliani.apapa at gmail.com