def home(request): new_claims = Service.getAllClaim() featured_claim = new_claims[0] hot_claims = Service.getAllClaim() help_titles = Service.getHelpTitleAsDict('home') help_descriptions = Service.getHelpDescriptionAsDict('home') return render(request, 'market/home.html', locals())
def portfolio(request): holdings = Service.getAllHolding(request.user.trader) help_titles = Service.getHelpTitleAsDict('home') help_descriptions = Service.getHelpDescriptionAsDict('home') waiting_orders = Service.getAllOrder(request.user.trader) return render(request, 'market/portfolio.html', locals())