@echo off

set url="https://finance-services.msn.com/Market.svc/ChartAndQuotes?symbols={symbol}&chartType=1y&isEOD=True&isCS=true&isVol=true"

gsqlcmd import /merge db %url% /table=data /taskfile=symbols.txt /echoURL /add=Symbol={Symbol};LoadDate=Now() ^
        /referer=https://www.msn.com/en-us/money/ ^
        /rootPath=Quotes

if .%1.==./Q. goto :EOF

@pause
