CONNECT APP
Build with Token Metrics
Data Analytics
- API key
MCP
Give your agent Token Metrics tools
Every Token Metrics action is exposed as an MCP tool on Pipedream's remote server. Point a client at it with your end user's ID and Connect resolves that user's Token Metrics account for each tool call — you store no tokens.
// 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": "token_metrics",
},
},
},
)
const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)
const { tools } = await mcp.listTools()
// e.g. run Get AI Reports:
const result = await mcp.callTool({
name: "token_metrics-get-ai-reports",
arguments: {
tokenId: ["Token IDs"],
tokenName: ["Token Names"],
},
})# access_token: mint a short-lived token with the Connect SDK — see the MCP guide
headers = {
"Authorization": f"Bearer {access_token}",
"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": "token_metrics",
}
async with streamablehttp_client("https://remote.mcp.pipedream.net/v3", headers=headers) as (read, write, _):
async with ClientSession(read, write) as session:
await session.initialize()
tools = await session.list_tools()
# e.g. run Get AI Reports:
result = await session.call_tool("token_metrics-get-ai-reports", {
"tokenId": ["Token IDs"],
"tokenName": ["Token Names"],
})API PROXY
Call the Token Metrics API directly
For an endpoint with no pre-built tool, the Connect proxy forwards your request to the Token Metrics API with the connected user's credentials attached. You store no tokens and write no refresh logic.
const resp = await pd.proxy.get({
externalUserId: "{external_user_id}", // any stable ID for this user in your system
accountId: "apn_xxxxxxx",
url: "https://api.tokenmetrics.com/v2/tokens",
})
// Any allowed Token Metrics endpoint works here. Pipedream attaches the
// connected account's credentials to the outgoing request.# The path segment is the target URL, URL-safe base64 encoded:
# https://api.tokenmetrics.com/v2/tokens
curl "https://api.pipedream.com/v1/connect/{project_id}/proxy/aHR0cHM6Ly9hcGkudG9rZW5tZXRyaWNzLmNvbS92Mi90b2tlbnM?external_user_id={external_user_id}&account_id=apn_xxxxxxx" \
-H "Authorization: Bearer {access_token}" \
-H "x-pd-environment: production"SDK
Run Token Metrics actions from your backend
Connect a user's Token Metrics account once, then run Get AI Reports on their behalf from your own code — TypeScript, Python, or plain HTTP.
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: "token_metrics-get-ai-reports",
externalUserId: "{external_user_id}", // any stable ID for this user in your system
configuredProps: {
token_metrics: { authProvisionId: "apn_xxxxxxx" },
tokenId: ["Token IDs"],
tokenName: ["Token Names"],
},
})from pipedream import Pipedream
pd = Pipedream(
client_id="{oauth_client_id}",
client_secret="{oauth_client_secret}",
project_id="{project_id}",
project_environment="production",
)
result = pd.actions.run(
id="token_metrics-get-ai-reports",
external_user_id="{external_user_id}", # any stable ID for this user in your system
configured_props={
"token_metrics": {"authProvisionId": "apn_xxxxxxx"},
"tokenId": ["Token IDs"],
"tokenName": ["Token Names"],
},
)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": "token_metrics-get-ai-reports",
"configured_props": {
"token_metrics": { "authProvisionId": "apn_xxxxxxx" },
"tokenId": ["Token IDs"],
"tokenName": ["Token Names"]
}
}'TOOLS
Token Metrics actions
On-demand operations your product or agent can configure and run on behalf of a connected user.
-
Get AI Reports
actionRetrieve AI-generated reports providing comprehensive analyses of cryptocurrency tokens, including deep dives, investment analyses, and code reviews. See the documentationRead-onlyv0.1.1 -
Get Correlation
actionGet the Top 10 and Bottom 10 correlation of tokens with the top 100 market cap tokens. See the documentationRead-onlyv0.1.1 -
Get Crypto Investors
actionGet the latest list of crypto investors and their scores. See the documentationRead-onlyv0.1.1 -
Get Daily OHLCV
actionGet daily OHLCV (open, high, low, close, volume) data for tokens. See the documentationWritev0.1.1 -
Get Fundamental Grades
actionGet the latest Fundamental Grade insights for a token, including grade class, community score, exchange score, VC score, tokenomics score, and DeFi scanner score. See the documentationRead-onlyv0.1.1 -
Get Fundamental Grades Historical
actionGet historical Fundamental Grade insights for a token, including grade class, community score, exchange score, VC score, tokenomics score, and DeFi scanner score over time. See the documentationRead-onlyv0.1.1 -
Get Hourly OHLCV
actionGet hourly OHLCV (open, high, low, close, volume) data for tokens. See the documentationWritev0.1.1 -
Get Hourly Trading Signals
actionGet the hourly AI generated trading signals for long and short positions for all tokens. See the documentationRead-onlyv0.1.1 -
Get Indices
actionGet active and passive crypto indices with performance and market data. See the documentationRead-onlyv0.1.1 -
Get Indices Holdings
actionThis endpoint returns the current holdings of the given Index, along with their respective weight in %. See the documentationWritev0.1.1 -
Get Indices Performance
actionThe Indices Performance endpoint provides historical performance data for a given index, including cumulative return on investment (ROI) over time. This data is useful for analyzing index trends and evaluating investment performance. See the documentationWritev0.1.1 -
Get Market Metrics
actionGet the Market Analytics from Token Metrics. They provide insight into the full Crypto Market, including the Bullish/Bearish Market indicator. See the documentationRead-onlyv0.1.1 -
Get Moonshot Tokens
actionGet the AI-curated token picks (Moonshots) with high breakout potential based on grades, sentiment, volume, and on-chain data to help users trade smarter and faster. See the documentationRead-onlyv0.1.1 -
Get Price
actionGet token prices based on the provided token ids. See the documentationRead-onlyv0.1.1 -
Get Price Prediction
actionGet price prediction of a crypto asset under different market cap scenarios. See the documentationRead-onlyv0.1.1 -
Get Quantmetrics
actionGet the latest quantitative metrics for tokens. Note that Token Metrics pricing data starts on 2019-01-01 for most tokens. More historical data will be available soon. See the documentationRead-onlyv0.1.1 -
Get Resistance & Support
actionGet the historical levels of resistance and support for each token. See the documentationRead-onlyv0.1.1 -
Get Scenario Analysis
actionGet the price prediction based on different Crypto Market scenario. See the documentationWritev0.0.1 -
Get Technology Grades
actionGet Technology Grade insights for a token, including activity score, security score, repository score, collaboration score, and DeFi scanner score. See the documentationRead-onlyv0.1.1 -
Get Technology Grades Historical
actionGet historical Technology Grade data for a token, including activity score, security score, repository score, collaboration score, and DeFi scanner score over time. See the documentationRead-onlyv0.1.1 -
Get TM Grades
actionGet the latest TM Grade for a token, including trader grade change, quant grade, signals, momentum, and 24-hour percentage changes for both TM Grade and Trader Grade. See the documentationRead-onlyv0.1.1 -
Get TM Grades Historical
actionGet historical TM Grade data for a token, including trader grade change, quant grade, signals, momentum, and 24-hour percentage changes for both TM Grade and Trader Grade over time. See the documentationRead-onlyv0.1.1 -
Get Tokens
actionGet the list of coins and their associated TOKEN_ID supported by Token Metrics, along with key market data such as contract address, current price, market cap, trading volume, supply metrics, and 24-hour price change. See the documentationRead-onlyv0.1.1 -
Get Top Market Cap Tokens
actionGet the list of coins for top market cap. See the documentationRead-onlyv0.1.1 -
Get Trading Signals
actionGet the AI generated trading signals for long and short positions for all tokens. See the documentationRead-onlyv0.1.1
EVENTS
Token Metrics triggers
Event sources your backend can deploy for users and receive through a webhook.
No Token Metrics triggers are available yet.
- App slug
- token_metrics
- Authentication
- API key
- Categories
- Data Analytics
- Actions
- 25
- Triggers
- 0
- API proxy
- Available