Don't replace "-" when writing pair files
This commit is contained in:
parent
7faa7539b4
commit
0d1324718c
@ -109,7 +109,7 @@ def file_load_json(file):
|
||||
|
||||
|
||||
def pair_to_filename(pair: str) -> str:
|
||||
for ch in ['/', '-', ' ', '.', '@', '$', '+', ':']:
|
||||
for ch in ['/', ' ', '.', '@', '$', '+', ':']:
|
||||
pair = pair.replace(ch, '_')
|
||||
return pair
|
||||
|
||||
|
@ -71,9 +71,10 @@ def test_file_load_json(mocker, testdatadir) -> None:
|
||||
("ETHH20", 'ETHH20'),
|
||||
(".XBTBON2H", '_XBTBON2H'),
|
||||
("ETHUSD.d", 'ETHUSD_d'),
|
||||
("ADA-0327", 'ADA_0327'),
|
||||
("BTC-USD-200110", 'BTC_USD_200110'),
|
||||
("F-AKRO/USDT", 'F_AKRO_USDT'),
|
||||
("ADA-0327", 'ADA-0327'),
|
||||
("BTC-USD-200110", 'BTC-USD-200110'),
|
||||
("BTC-PERP:USDT", 'BTC-PERP_USDT'),
|
||||
("F-AKRO/USDT", 'F-AKRO_USDT'),
|
||||
("LC+/ETH", 'LC__ETH'),
|
||||
("CMT@18/ETH", 'CMT_18_ETH'),
|
||||
("LBTC:1022/SAI", 'LBTC_1022_SAI'),
|
||||
|
Loading…
Reference in New Issue
Block a user