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)curl -X POST https://api.pipedream.com/v1/connect/{project_id}/actions/run \
-H "Content-Type: application/json" \
-H "X-PD-Environment: production" \
-H "Authorization: Bearer {access_token}" \
-d '{
"external_user_id": "{external_user_id}",
"id": "coinmarketcap-latest-quotes",
"configured_props": {
"coinmarketcap": { "authProvisionId": "apn_xxxxxxx" },
"id": "Id",
"slug": "Slug"
}
}'// accessToken: mint a short-lived token with the Connect SDK — see the MCP guide
const transport = new StreamableHTTPClientTransport(
new URL("https://remote.mcp.pipedream.net/v3"),
{
requestInit: {
headers: {
Authorization: `Bearer ${accessToken}`,
"x-pd-project-id": "{project_id}",
"x-pd-environment": "production",
"x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
"x-pd-app-slug": "coinmarketcap",
},
},
},
)
const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)
const { tools } = await mcp.listTools()
// listTools() hands your model this tool's input schema, so it can
// fill the arguments itself:
const result = await mcp.callTool({
name: "coinmarketcap-latest-quotes",
arguments: {
id: "Id",
slug: "Slug",
},
})SCHEMA
Inputs
Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.
| 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
- Source
- View on GitHub ↗