Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

2.0 KB
Raw Blame

Market Data Workflow

Use this workflow when the user wants to look up token prices, discover tokens, or explore market data.

Reference command syntax in references/market-data.md.

Find a Token

If the user mentions a token by name or symbol, search for it first to get the correct asset ID:

mm token list search --query "USDC" --chain 1

To browse popular, trending, or top-gainer tokens on a chain:

mm token list popular --chain 1
mm token list trending --chain 1
mm token list top-gainer --chain 1

Use mm token networks to discover which chains support token data.

Get Token Metadata

Once you have the CAIP-19 asset ID, fetch detailed metadata:

mm token assets --asset-ids "eip155:1/erc20:0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48" --include-market-data --include-token-security-data

Get Spot Price

Fetch the current price for one or more tokens:

mm price spot --asset-ids "eip155:1/slip44:60"
mm price spot --asset-ids "eip155:1/slip44:60,eip155:137/slip44:966" --vs eur --market-data

Use mm price networks to discover supported CAIP-2 chain IDs and mm price currencies to list quote currencies.

Get Historical Price

Fetch historical price data for an asset:

mm price history --chain-id eip155:1 --asset-type slip44:60 --time-period 7d --interval daily

Common time periods: 1d, 7d, 30d, 2M, 1y, 3y. Intervals: 5m, hourly, daily.

For a custom date range, use --from and --to with Unix timestamps instead of --time-period.

Edge Cases

  • If the chain is not mentioned by the user, ask for the chain.
  • Use mm chains list to discover supported chain IDs.
  • If a token search returns no results, try broader chains or alternate names.
  • CAIP-19 asset IDs follow the format eip155:<chainId>/slip44:<coinType> for native tokens or eip155:<chainId>/erc20:<contractAddress> for ERC-20s.
  • Use --include-token-security-data on token assets to surface scam or risk signals before the user trades an unfamiliar token.