#include "DataFormats.h" void dumpBarList(const BarList &bars) { for(unsigned int i = 0; i < bars.size(); i++) { std::cout << ' ' << itoa(i) << ", (open: " << dtoa(bars[i].open) << ", high: " << dtoa(bars[i].high) << ", low: " << dtoa(bars[i].low) << ", close: " << dtoa(bars[i].close) << ", startTime: " << ctimeString(bars[i].startTime) << ", volume: " << itoa(bars[i].volume) << ", printCount: " << itoa(bars[i].printCount) << ')' << std::endl; } } void dumpCorporateActions(const CorporateActions &corporateActions) { for(unsigned int i = 0; i < corporateActions.splits.size(); i++) { std::cout << ' ' << itoa(i) << ", (date: " << ctime(&corporateActions.splits[i].date) << ", splitFactor: " << corporateActions.splits[i].splitFactor << ')' << std::endl; } } void dumpFundamentalData(const FundamentalData &fundamentalData) { std::cout << "FundamentalData" << std:: endl << '(' << std::endl << " companyName: " << fundamentalData.companyName << std::endl << " listedExchange: " << fundamentalData.listedExchange << std::endl << " dividend: " << fundamentalData.dividend << std::endl << " earnings: " << fundamentalData.earnings << std::endl << " high52Week: " << fundamentalData.high52Week << std::endl << " low52Week: " << fundamentalData.low52Week << std::endl << " putVolume: " << fundamentalData.putVolume << std::endl << " callVolume: " << fundamentalData.callVolume << std::endl << " peRatio: " << fundamentalData.peRatio << std::endl << " beta: " << fundamentalData.beta << std::endl << " yield: " << fundamentalData.yield << std::endl << " marketCap: " << fundamentalData.marketCap << std::endl << " sharesOutstanding: " << fundamentalData.sharesOutstanding << std::endl << " epsNetIncome: " << fundamentalData.epsNetIncome << std::endl << " income: " << fundamentalData.income << std::endl << " revenues: " << fundamentalData.revenues << std::endl << " assets: " << fundamentalData.assets << std::endl << " debt: " << fundamentalData.debt << std::endl << ')' << std::endl; }