コード例 #1
0
 def get(code, is_name=False):
     try:
         data = bw.get(Code, code=code)
         if is_name:
             data = data.name
     except Exception as e:
         raise Exception(e)
     return data
コード例 #2
0
 def get_model(model_name, com_code, date):
     try:
         data = bw.get(ModelInfo,
                       model_name=model_name,
                       com_code=com_code,
                       date=date)
     except Exception as e:
         raise Exception(e)
     return data
コード例 #3
0
 def get(**kwargs):
     try:
         data = bw.get(Account, **kwargs)
     except Exception as e:
         raise Exception(e)
     return data
コード例 #4
0
 def get_trading_account(t_type, t_count):
     try:
         data = bw.get(Account, t_type=t_type, t_count=t_count)
     except Exception as e:
         raise Exception(e)
     return data
コード例 #5
0
 def get(**kwargs):
     try:
         data = bw.get(MyTrading, **kwargs)
     except Exception as e:
         raise Exception(e)
     return data
コード例 #6
0
 def get(**kwargs):
     try:
         data = bw.get(ModelingInfo, **kwargs)
     except Exception as e:
         raise Exception(e)
     return data
コード例 #7
0
 def get(**kwargs):
     try:
         data = bw.get(MarketData, **kwargs)
     except Exception as e:
         raise Exception(e)
     return data
コード例 #8
0
 def get(com_code):
     try:
         data = bw.get(Company, com_code=com_code)
     except Exception as e:
         raise Exception(e)
     return data