gpt4 book ai didi

Python Datareader 证券交易所市场期权

转载 作者:太空宇宙 更新时间:2023-11-03 11:26:23 25 4
gpt4 key购买 nike

我正在使用 Datareader 从雅虎财经获取一些股票报价。我想获得 Euronext Paris Stock exchange market 的值(value),而不是标准值(value)(我认为是 NYSE 的)。

    import pandas.io.data as web
import time
today = time.strftime(\"%m/%d/%Y\")
valeur = web.DataReader('ING.PA',data_source='yahoo',start='1/1/2000',end=today)

Datareader 方法中是否有一个选项指示我想要 Euronext 收盘价?

我在 Yahoo Finance API 中看到,证券交易所有一个标签 x,可用于精确确定您想要获取值(value)的市场 (http://www.marketindex.com.au/yahoo-finance-api),但我看不到任何示例值传递给这个 x 标签来试试。而且我不知道我以后是否可以在 Datareader 中使用等效项。

我还找到了一个描述 google_exchange 代码的页面,该代码指示我正在寻找的代码(“EPA”),但我不知道如何在 DataReader 中转换它。 https://github.com/mdengler/stockquote/blob/master/stockquote.py

有人对此提供线索吗?提前致谢

最佳答案

代码中的后缀.PA表示你要获取的交易所,本例为巴黎。

看看Yahoo Finance根据您要从中获取数据的交易所,查看您可以使用的不同符号。然后在调用中使用适当的符号。

Symbol      Name            Last Trade  Type    Industry/Category   Exchange
ING.PA Ingenico Group 101.45 Stock Business Services PAR
ING.SW INGENICO GROUP 116.30 Stock EBS
IIE.F INGENICO GROUP 100.90 Stock Business Services FRA
IIE.SG INGENICO GROUP 102.88 Stock Business Services STU
INGIY Ingenico Group 23.05 Stock PNK
INGNV.PA Ingenico S.A. 98.33 Stock PAR
IIEF.EX INGENICO GROUP 115.49 Stock EUX
IIE.BE INGENICO GROUP 106.70 Stock Business Services BER

这是来自 Yahoo Finance API 的引述页面。

All listed companies have a stock ticker between 1 and 4 characters. E.g. Apple has the stock ticker AAPL. As there are multiple exchanges around the world, you must specify which exchange your code relates to by adding a suffix.

  • Australian listed companies require the suffix “.AX” to be added to the companies stock code (e.g. BHP.AX).
  • UK listed companies require the suffix “.L” to be added to the companies stock code (e.g. BLT.L).

关于Python Datareader 证券交易所市场期权,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32594460/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com