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
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
def get(**kwargs): try: data = bw.get(Account, **kwargs) except Exception as e: raise Exception(e) return data
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
def get(**kwargs): try: data = bw.get(MyTrading, **kwargs) except Exception as e: raise Exception(e) return data
def get(**kwargs): try: data = bw.get(ModelingInfo, **kwargs) except Exception as e: raise Exception(e) return data
def get(**kwargs): try: data = bw.get(MarketData, **kwargs) except Exception as e: raise Exception(e) return data
def get(com_code): try: data = bw.get(Company, com_code=com_code) except Exception as e: raise Exception(e) return data