trader/trading/Trader.cpp
size_t Trader::getSharesToSell(const std::string& symbol)
    {
        for (const Holding& hold : currentHoldings)
        {
            if (hold.getSymbol() == symbol)
            {
                return hold.getNumShares();
            }
        }

        return 0;
    }
// for now if we want to sell, sell all shares of 'symbol'
for now if we want to sell, sell all shares of 'symbol'
for now if we want to sell sell all shares of ' symbol '
size_t Trader::getSharesToSell(const std::string& symbol)
    {
        for (const Holding& hold : currentHoldings)
        {
            if (hold.getSymbol() == symbol)
            {
                return hold.getNumShares();
            }
        }
        return 0;
    }
size_t Trader :: getSharesToSell ( const std :: string & symbol ) { for ( const Holding & hold : currentHoldings ) { if ( hold . getSymbol ( ) == symbol ) { return hold . getNumShares ( ) ; } } return 0 ; }
for now if we want to sell, sell all shares of 'symbol'
for now if we want to sell sell all shares of ' symbol '