curl_stocks
Loading...
Searching...
No Matches
Classes | Functions
Stock

Classes

class  Stock
 Stores information about a stock and handles its functions. More...
 

Functions

 Stock::Stock ()
 Default constructor.
 
 Stock::Stock (Api *a, Plot *p, std::string const &s)
 Constructor.
 
void Stock::fetch (std::string const &function)
 Fetch historical stock data.
 
void Stock::display () const
 Plot stock data.
 

Detailed Description

Function Documentation

◆ display()

void Stock::display ( ) const

Plot stock data.

Here is the call graph for this function:

◆ fetch()

void Stock::fetch ( std::string const &  function)

Fetch historical stock data.

Parameters
functionDaily / Weekly / Monthly
Here is the call graph for this function:

◆ Stock() [1/2]

Stock::Stock ( )

Default constructor.

◆ Stock() [2/2]

Stock::Stock ( Api a,
Plot p,
std::string const &  s 
)

Constructor.

Parameters
aAPI handle for alphavantage and curl
pPlot handle for gnuplot
sStock symbol name