Exemplo n.º 1
0
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())
Exemplo n.º 2
0
 def get(self, request, format=None):
     Orders = Service.getAllOrder()
     serializer = OrderSerializer(Orders, many=True)
     return Response(serializer.data)