コード例 #1
0
 async def sma_security(self) -> AsyncIterator[pb.Security]:
     request = pb.Request(port_code=None, date=None)
     data = self.stub.SMASecurity(request)
     async for x in data:
         yield x
コード例 #2
0
 async def sma_security_quote(self, date) -> AsyncIterator[pb.SecurityQuote]:
     """date实际为id,为了保持接口一致所以写为date"""
     request = pb.Request(port_code=None, date=date)
     data = self.stub.SMASecurityQuote(request)
     async for x in data:
         yield x
コード例 #3
0
 async def sma_benchmark(self, port_code, date) -> AsyncIterator[pb.Benchmark]:
     request = pb.Request(port_code=port_code, date=date)
     data = self.stub.SMABenchmark(request)
     async for x in data:
         yield x
コード例 #4
0
 async def sma_interest_tax(self, port_code, date) -> AsyncIterator[pb.InterestTax]:
     request = pb.Request(port_code=port_code, date=date)
     data = self.stub.SMAInterestTax(request)
     async for x in data:
         yield x
コード例 #5
0
 async def sma_detail_fee(self, port_code, date) -> AsyncIterator[pb.DetailFee]:
     request = pb.Request(port_code=port_code, date=date)
     data = self.stub.SMADetailFee(request)
     async for x in data:
         yield x
コード例 #6
0
 async def sma_transaction(self, port_code, date) -> AsyncIterator[pb.Transaction]:
     request = pb.Request(port_code=port_code, date=date)
     data = self.stub.SMATransaction(request)
     async for x in data:
         yield x
コード例 #7
0
 async def sma_holding(self, port_code, date) -> AsyncIterator[pb.Holding]:
     request = pb.Request(port_code=port_code, date=date)
     data = self.stub.SMAHolding(request)
     async for x in data:
         yield x
コード例 #8
0
 async def sma_income_asset(self, port_code, date) -> AsyncIterator[pb.IncomeAsset]:
     request = pb.Request(port_code=port_code, date=date)
     data = self.stub.SMAIncomeAsset(request)
     async for x in data:
         yield x
コード例 #9
0
 async def sma_balance_expanded(self, port_code, date) -> AsyncIterator[pb.BalanceExpanded]:
     request = pb.Request(port_code=port_code, date=date)
     data = self.stub.SMABalanceExpanded(request)
     async for x in data:
         yield x