def downloadUrl(date):
    s = Template('http://www.batstrading.com/market_data/shortsales/$year/$month/$fName-dl?mkt=bzx')
    url = s.substitute(fName=date2fileName(date), year=date.year, month='%02d' % date.month)
    return url
dataset/ETHPy150Open sjev/trading-with-python/lib/bats.py/downloadUrl/original