2

当您从 Alpha Vantage API 进行 Quote Endpoint 调用时,例如 ( https://www.alphavantage.co/query?function=GLOBAL_QUOTE&symbol=MSFT&apikey=demo ),您不会获得货币。

我如何知道响应中列出的价格使用了哪种货币?

示例响应:

{
    "Global Quote": {
        "01. symbol": "MSFT",
        "02. open": "162.8235",
        "03. high": "163.2200",
        "04. low": "161.8250",
        "05. price": "162.2000",
        "06. volume": "10067390",
        "07. latest trading day": "2020-01-10",
        "08. previous close": "162.0900",
        "09. change": "0.1100",
        "10. change percent": "0.0679%"
    }
}
4

2 回答 2

1

Whichever exchange the company is listed on lists the price in their currency of choice. That is the currency that is returned.


For example in the API call above, the currency will be in USD since MSFT is listed on the NASDAQ (An exchange in the United States)

However, a call like for ticker BP.LON will result in the currency being in GBX since the ticker is listed on the London exchange.

https://www.alphavantage.co/query?function=GLOBAL_QUOTE&symbol=BP.LON&apikey=XXX

于 2020-01-10T18:04:41.967 回答
0

这个有一个货币字段:

https://www.alphavantage.co/query?function=SYMBOL_SEARCH&keywords=IH2O.L&apikey=XXX

但是滥用搜索确实有点奇怪。此外,在英国股票的情况下显示的货币可能是错误的,因为大多数英国股票都以 GBX 列出(便士而不是英镑)......

于 2020-07-19T00:18:18.720 回答