雅虎财经api,获取股票交易的货币

2024-04-24 20:30:22 发布

您现在位置:Python中文网/ 问答频道 /正文

与雅虎有可能获得一种交换货币吗?在

苹果正在NSM交换上。我想知道NSM是用哪种货币进行交易的。在

url = "http://finance.yahoo.com/d/quotes.csv?s=AAPL+PNDORA.CO&f=x"
ftpstream = urllib.request.urlopen(url)
csvfile = csv.reader(codecs.iterdecode(ftpstream, 'utf-8'))

for line in csvfile:
    print(line)

我用上面的代码用符号来交换股票。在


Tags: csvcsvfile苹果comhttpurlline货币