def sh_margin_details(date='', symbol='', start='', end='', retry_count=3, pause=0.001):
 date = (date if (date == '') else date.replace('-', ''))
 start = (start if (start == '') else start.replace('-', ''))
 end = (end if (end == '') else end.replace('-', ''))
 if ((start != '') & (end != '')):
  date = ''
 data = pd.DataFrame()
 ct._write_head()
 df = _sh_mx(data, date=date, start=start, end=end, symbol=symbol, retry_count=retry_count, pause=pause)
 return df

def sh_margin_details ( date = '' , symbol = '' , start = '' , end = '' , retry_count = 3 , pause = 0.001 ) : date = ( date if ( date == '' ) else date . replace ( '-' , '' ) ) start = ( start if ( start == '' ) else start . replace ( '-' , '' ) ) end = ( end if ( end == '' ) else end . replace ( '-' , '' ) ) if ( ( start != '' ) & ( end != '' ) ) : date = '' data = pd . DataFrame ( ) ct . _write_head ( ) df = _sh_mx ( data , date = date , start = start , end = end , symbol = symbol , retry_count = retry_count , pause = pause ) return df
parameters date:string 明细数据日期 format：yyyy-mm-dd 默认为空 symbol：string 标的代码，6位数字e .