Skip to content

Latest commit

 

History

History
77 lines (52 loc) · 1.5 KB

README.md

File metadata and controls

77 lines (52 loc) · 1.5 KB

IEX Finance C++ Client

Build Status

C++ client to consume the IEX Finance API.

Usage

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

Compilation

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

Compiling Using CMake

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

Contributing

See CONTRIBUTING.

Copyright and License

Copyright (c) 2018, Rodolfo Bandeira and Contributors.

This project is licensed under the MIT License.

Data provided for free by IEX, see terms.