Get cryptocurrency prices

  • The actions.intent.GET_CRYPTOCURRENCY_PRICE action enables users to get the price of a specified cryptocurrency.

  • Users can trigger this action by asking for the value or price of a cryptocurrency, like "What is the value of Bitcoin?".

  • The action returns cryptocurrency price information utilizing schema.org's MonetaryAmount structure for currency, timestamp, and value.

  • The JSON-LD sample showcases how the action utilizes schema.org types like MonetaryAmount for representing cryptocurrency, exchange, and target monetary specifications.

Action ID
actions.intent.GET_CRYPTOCURRENCY_PRICE
Description
Get prices for a particular cryptocurrency.
Example queries
JSON-LD sample
[
  {
    "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"
    ]
  }
]