- 操作 ID
actions.intent.GET_CRYPTOCURRENCY_PRICE
- 说明
- 获取特定加密货币的价格。
- 示例查询
- JSON-LD 示例
-
[ { "exampleValues": [ { "@context": "https://schema.googleapis.org", "@type": "MonetaryAmount", "currency": "USD", "validAt": "2018-01-01T00:00:00" } ], "name": "cryptocurrency", "schemaType": [ "https://schema.googleapis.org/MonetaryAmount" ] }, { "exampleValues": [ { "@context": "https://schema.googleapis.org", "@type": "MonetaryAmount", "currency": "USD", "validAt": "2018-01-01T00:00:00" } ], "name": "exchange", "schemaType": [ "https://schema.googleapis.org/MonetaryAmount" ] }, { "exampleValues": [ { "@context": "https://schema.googleapis.org", "@type": "MonetaryAmount", "currency": "USD", "validAt": "2018-01-01T00:00:00" } ], "name": "targetMonetarySpec", "schemaType": [ "https://schema.googleapis.org/MonetaryAmount" ] } ]
获取加密货币价格
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-28。
[null,null,["最后更新时间 (UTC):2025-07-28。"],[[["\u003cp\u003eThe \u003ccode\u003eactions.intent.GET_CRYPTOCURRENCY_PRICE\u003c/code\u003e action enables users to get the price of a specified cryptocurrency.\u003c/p\u003e\n"],["\u003cp\u003eUsers can trigger this action by asking for the value or price of a cryptocurrency, like "What is the value of Bitcoin?".\u003c/p\u003e\n"],["\u003cp\u003eThe action returns cryptocurrency price information utilizing schema.org's MonetaryAmount structure for currency, timestamp, and value.\u003c/p\u003e\n"],["\u003cp\u003eThe JSON-LD sample showcases how the action utilizes schema.org types like MonetaryAmount for representing cryptocurrency, exchange, and target monetary specifications.\u003c/p\u003e\n"]]],[],null,["# Get cryptocurrency prices\n\nAction ID\n: `actions.intent.GET_CRYPTOCURRENCY_PRICE`\n\nDescription\n: Get prices for a particular cryptocurrency.\n\nExample queries\n:\n\n #### en-US\n\n - What is the value of ExampleCryptocurrency?\n - Check the price of ExampleCryptocurrency.\n\nJSON-LD sample\n:\n\n ```carbon\n [\n {\n \"exampleValues\": [\n {\n \"@context\": \"https://schema.googleapis.org\",\n \"@type\": \"MonetaryAmount\",\n \"currency\": \"USD\",\n \"validAt\": \"2018-01-01T00:00:00\"\n }\n ],\n \"name\": \"cryptocurrency\",\n \"schemaType\": [\n \"https://schema.googleapis.org/MonetaryAmount\"\n ]\n },\n {\n \"exampleValues\": [\n {\n \"@context\": \"https://schema.googleapis.org\",\n \"@type\": \"MonetaryAmount\",\n \"currency\": \"USD\",\n \"validAt\": \"2018-01-01T00:00:00\"\n }\n ],\n \"name\": \"exchange\",\n \"schemaType\": [\n \"https://schema.googleapis.org/MonetaryAmount\"\n ]\n },\n {\n \"exampleValues\": [\n {\n \"@context\": \"https://schema.googleapis.org\",\n \"@type\": \"MonetaryAmount\",\n \"currency\": \"USD\",\n \"validAt\": \"2018-01-01T00:00:00\"\n }\n ],\n \"name\": \"targetMonetarySpec\",\n \"schemaType\": [\n \"https://schema.googleapis.org/MonetaryAmount\"\n ]\n }\n ]\n ```"]]