rqalpha-mod-ctp icon indicating copy to clipboard operation
rqalpha-mod-ctp copied to clipboard

[bug] utils.py 的 make_underlying_symbol有个小错误

Open IcyCC opened this issue 6 years ago • 1 comments

def make_underlying_symbol(id_or_symbol):
    id_or_symbol = bytes2str(id_or_symbol)
    if six.PY2:
        return filter(lambda x: x not in '0123456789 ', id_or_symbol).upper()
    else:
        return ''.join(list(filter(lambda x: x not in '0123456789 ', 'rb1705'))).upper()

python3的所有的make_underlying_symbol 都会返回RB

IcyCC avatar Apr 19 '18 12:04 IcyCC

pr merged

Cuizi7 avatar Apr 19 '18 14:04 Cuizi7