C++ client to consume the IEX Finance API.
IEX C++ Client
./main stock_symbol option
ex: ./main AMZN -p
options:
-c Company Information
-l Company Logo
-p Stock Latest Price
-s Stock Statistics
-r Stock Financial Reports
-d Stock Dividends
On Debian-based distributions you can install the required dependencies using the following command:
sudo apt-get install libjsoncpp-dev libcurl4-gnutls-dev
On MacOS using Homebrew:
brew install jsoncpp; brew install curl
g++ -o main main.cpp -lcurl -ljsoncpp -std=c++11
./main AMZN -p
Called Endpoint: https://api.iextrading.com/1.0/stock/AMZN/price
Stock Symbol: AMZN
Latest Price: $1952.07
Compile this project using standing CMake:
mkdir build
cd build
cmake ..
make
./main AMZN
Or, for an optimized build:
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release
make
./main AMZN
See CONTRIBUTING.
Copyright (c) 2018, Rodolfo Bandeira and Contributors.
This project is licensed under the MIT License.