View as Markdown
CoinMarketCap icon

CoinMarketCap ACTION

Get Latest Quotes

Returns the latest market quote for 1 or more cryptocurrencies. Use the ""convert"" option to return market values in multiple fiat and cryptocurrency conversions in the same call. At least one ""id"" or ""slug"" or ""symbol"" is required for this request. See the documentation
  • Action
  • Read only
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's CoinMarketCap account once, then configure and run Get Latest Quotes from your backend or agent.

import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "coinmarketcap-latest-quotes",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    coinmarketcap: { authProvisionId: "apn_xxxxxxx" },
    id: "Id",
    slug: "Slug",
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Get Latest Quotes inputs
Property Type Description
id Id string
One or more comma-separated cryptocurrency CoinMarketCap IDs. Example: 1,2
Optional
slug Slug string
Alternatively pass a comma-separated list of cryptocurrency slugs. Example: "bitcoin,ethereum"
Optional
symbol Symbol string
Alternatively pass one or more comma-separated cryptocurrency symbols. Example: "BTC,ETH".
Optional
convert Convert string
Optionally calculate market quotes in up to 120 currencies at once by passing a comma-separated list of cryptocurrency or fiat currency symbols. Each additional convert option beyond the first requires an additional call credit. A list of supported fiat options can be found at https://coinmarketcap.com/api/documentation/v1/#section/Standards-and-Conventions. Each conversion is returned in its own "quote" object.
Optional
convertId Convert ID string
Optionally calculate market quotes by CoinMarketCap ID instead of symbol. This option is identical to convert outside of ID format. Ex: Convert ID = 1,2781 would replace Convert = BTC,USD in your query. This parameter cannot be used when Convert is used.
Optional

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
coinmarketcap-latest-quotes
Version
0.1.4
App
CoinMarketCap
Authentication
API key
Read-only
Yes
Destructive
No
Open world
Yes