Exemplo n.º 1
0
 def GetPositions(self,
                  portfolio,
                  with_returns=False,
                  inline_transactions=False):
     query = PositionQuery()
     query.returns = with_returns
     query.transactions = inline_transactions
     return self.client.GetPositionFeed(portfolio, query=query).entry
Exemplo n.º 2
0
 def GetPosition(self,
                 portfolio,
                 ticker,
                 with_returns=False,
                 inline_transactions=False):
     query = PositionQuery()
     query.returns = with_returns
     query.transactions = inline_transactions
     return self.client.GetPosition(portfolio_id=portfolio.portfolio_id,
                                    ticker_id=ticker,
                                    query=query)
Exemplo n.º 3
0
 def GetPosition(self, portfolio, ticker, with_returns=False, inline_transactions=False):
   query = PositionQuery()
   query.returns = with_returns
   query.transactions = inline_transactions
   return self.client.GetPosition(
       portfolio_id=portfolio.portfolio_id, ticker_id=ticker, query=query)
Exemplo n.º 4
0
 def GetPositions(self, portfolio, with_returns=False, inline_transactions=False):
   query = PositionQuery()
   query.returns = with_returns
   query.transactions = inline_transactions
   return self.client.GetPositionFeed(portfolio, query=query).entry