Bitmart Wallet Ai 标志

Bitmart Wallet Ai

组织
bitmartexchange
bitmart-wallet-ai

BitMart Web3 Wallet 技能(12 个端点):代币搜索、链详情、代币信息、K 线图、热门代币排行、xStock 排行、聪明钱盈亏排行、聪明钱地址分析/持仓/交易历史、地址余额、地址近期交易、兑换报价、批量价格。所有 API 均无需 API Key。用户询问代币价格、市场数据、聪明钱追踪、资产查询、近期交易或代币兑换报价时使用。

概览

发布者bitmartexchange
代码仓库bitmart-skills
技能名称bitmart-wallet-ai
星标数
33
复刻数
0
附带文件
仅含指令
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 指令自成一体

    模型所需的一切都包含在指令中,无需同步额外文件。

  • 开源

    由 bitmartexchange 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Bitmart Wallet Ai AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/bitmartexchange/bitmart-skills/tree/master/skills/bitmart-wallet-ai
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/bitmartexchange/bitmart-skills.git /tmp/bitmart-skills
mkdir -p .claude/skills
cp -r /tmp/bitmart-skills/skills/bitmart-wallet-ai .claude/skills/bitmart-wallet-ai
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Bitmart Wallet Ai,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Bitmart Wallet Ai。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Bitmart Wallet Ai 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

BitMart Web3 Wallet AI Skills

This document describes the BitMart Web3 Wallet capabilities exposed as AI skills.

Supported Chains

chainIdChainNative Coin Symbol
2001SolanaSOL
2002BSC (BNB Smart Chain)BNB
2003EthereumETH
2004ArbitrumETH
2007BaseETH

API Overview

  • Base URL: https://api-cloud.bitmart.com
  • Authentication: No API Key required, send HTTP requests directly
  • Request Method: POST, JSON body
  • Required Header: User-Agent: bitmart-skills/wallet/v2026.3.23 (SDK source identifier for analytics)
  • Response Format: { "success": bool, "code": "string", "message": "string", "data": ... }
  • Request Limit: 15 requests per second per IP, or you would be rate limited
EndpointPathDescription
token-search/web3/chain-web3-base-data-maintainer/v1/token/searchFuzzy search tokens by name or symbol
chain-detail/web3/chain-web3-base-data-maintainer/v1/chain/by-chainIdQuery chain details by platform chain ID
token-info/web3/chain-web3-base-data-maintainer/v1/token/query/by/token-idGet token details by platform token ID
kline/web3/chain-web3-market/v1/api/market/kline/historyToken K-line data (Solana chain only)
hot-ranking/web3/chain-web3-market/v1/api/market/trending/hotHot token trending ranking
xstock-ranking/web3/chain-web3-market/v1/api/market/rank/xstocksUS stock mapped token ranking
smart-money-rank/web3/chain-web3-smart-money/v1/api/smart-money/listSmart money 7-day P&L ranking
smart-money-info/web3/chain-web3-smart-money/v1/api/smart-money/infoSmart money address analysis, holdings and transaction history
address-balance/web3/chain-web3-assetmanager/v1/eoa/balance/listAddress token balance list
address-recent/web3/chain-web3-data-platform/evm/v2/transaction/address-recentAddress recent transactions (grouped by date)
swap-quote/web3/chain-web3-price/api/v1/token/price/swap-quoteToken Swap quote (quote only)
batch-price/web3/chain-web3-price/api/v1/token/price/batchBatch query token prices

Core Rules

1. Token Chain Dependency Rule

Tokens with the same symbol on different chains are different tokens (e.g., USDT-ETH ≠ USDT-BSC ≠ USDT-SOL), with different contract addresses, liquidity pools, and markets.

2. Swap Compatibility Rule

Two tokens can be swapped only if:

  • Both tokens are on the same chain
  • Or one is the native token and the other is a contract token on the same chain

Cross-chain Swap is not supported.

3. Token Resolution Workflow

All endpoints requiring token details must first get parameters through the following workflow:

User Input → token-search → token-info → Target Endpoint

Never hardcode or guess token addresses, chainId, or decimal places.

4. Native Token Address Handling (Important)

This is how different endpoints handle native token addresses:

contract field returned by token-info
chainIdChaincontract value
2001SolanaSo11111111111111111111111111111111111111111
2002BSC"" (empty)
2003Ethereum"" (empty)
2004Arbitrum"" (empty)
2007Base"" (empty)
tokenAddress field returned by address-balance

Native tokens on all chains return "" (empty string).

tokenAddress parameter for swap-quote endpoint
ChainInput MethodAPI Return Value
SolanaMust use So11111111111111111111111111111111111111111Kept as is
EVM Chains (ETH/BSC/ARB/Base)Pass "" empty stringConverted to 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee

Key Conclusions:

  • When swapping native tokens on EVM chains, pass empty string "" for tokenAddress
  • When swapping native tokens on Solana, must pass So11111111111111111111111111111111111111111 for tokenAddress

5. Address Balance Query

chainId is a required parameter. If the user does not specify a chain, must query all supported chains (2001-2004, 2007).


Common Token Address Reference

Native Tokens

ChainTokenAddress
SolanaSOLSo11111111111111111111111111111111111111111
EVM Chains GeneralNative Coin0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee

Common Contract Tokens (Testnet)

ChainTokenAddress
SolanaUSDCEPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
SolanaUSDTEs9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB
BSCUSDT0x55d398326f99059ff775485246999027b3197955
BSCUSDC0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d
ArbitrumUSDC0xaf88d065e77c8cc2239327c5edb3a432268e5831
BaseUSDC0x833589fcd6edb6e08f4c7c32d4f71b54bda02913

API Details

token-search

Fuzzy search tokens by name or symbol.

Request:

json
{
    "keyword": "TRUMP",
    "chainId": 2002
}
ParameterTypeRequiredDescription
keywordstringYesSearch keyword, matches token symbol and name
chainIdintegerNoPlatform internal chain ID (2001=Solana, 2002=BSC, 2003=Ethereum, etc.)

Response Key Fields:

  • tokenId: Platform internal token ID (required by downstream endpoints)
  • chainId: Platform internal chain ID
  • contract: Token contract address
  • symbol: Token symbol
  • tokenDecimal: Token decimal places
  • isDeposit/isWithdraw: Whether deposit/withdrawal is supported

token-info

Get complete token details by platform internal token ID.

Prerequisite: First get tokenId from token-search.

Request:

json
{
    "tokenId": "224987722"
}
ParameterTypeRequiredDescription
tokenIdstringYesInternal token ID (from token-search)

Response Key Fields:

  • tokenId: Platform internal token ID
  • chainId: Platform internal chain ID
  • contract: Token contract address
  • tokenDecimal: Token decimal places
  • isNativeToken: Whether it's a native token (1=yes)
  • type: Token type (e.g., spl-token)
  • name: Token name
  • symbol: Token symbol
  • tokenIcon: Token icon URL
  • isWithdraw: Whether withdrawal is supported (1=yes)
  • isDeposit: Whether deposit is supported (1=yes)
  • status: Token status
  • gasLimit: Gas limit
  • contractOwner: Contract owner address
  • source: Token source (e.g., pump_dot_fun)
  • createdAt: Token creation time (ISO 8601)
  • createTime: Token creation timestamp (milliseconds)

address-balance

Get token balance list for an address.

Limitations:

  • Only supports platform-managed addresses and EOA wallet addresses
  • Does not support external addresses or smart contract wallets
  • Response does not contain symbol or balance_usd

Request:

json
{
    "address": "0x4396e479fe8270487f301b7c5cc92e8cd59ef91a",
    "chainId": 2002,
    "pageIndex": 0,
    "pageSize": 100
}
ParameterTypeRequiredDescription
addressstringYesWallet address
chainIdintegerYesPlatform internal chain ID (must iterate 2001-2004, 2007 for complete info)
pageIndexintegerNoPage number, starting from 0
pageSizeintegerNoPage size

address-recent

Get recent transactions for an address, grouped by date.

Limitations:

  • Only supports platform-managed addresses and EOA wallet addresses
  • Does not support external addresses or smart contract wallets

Request:

json
{
    "addressChainPairs": [
        {
            "address": "2h4hhjuWxEo4uyzGAxzWvpdSotAozchjpfyefvVWvi8R",
            "tokenAddress": null,
            "chainId": "2001"
        }
    ],
    "tradeType": 0,
    "limit": "50"
}
ParameterTypeRequiredDescription
addressChainPairsarrayYesArray of address-chain pairs to query
addressChainPairs[].addressstringYesWallet address
addressChainPairs[].tokenAddressstring | nullNoToken contract address filter. Pass null to query all tokens under the address (filtered by chainId). Pass a specific token address to filter for that token only.
addressChainPairs[].chainIdstringYesPlatform internal chain ID (as string, e.g., "2001")
tradeTypeintegerNoTrade type filter: 0=all, 1=send, 2=receive, 3=trade
limitstringNoMax transactions per date group (e.g., "50")

Important Notes:

  • When tokenAddress is null, the API returns transactions for all tokens associated with the address on the specified chain.
  • The API returns up to the most recent 6 months of data by default. There is no parameter to specify a custom date range.
  • chainId is required for each address-chain pair. If the user does not specify a chain, the agent must enumerate all supported chains (2001–2004, 2007) and query each one separately.

Response — Top-level:

Array of date groups, each containing:

FieldDescription
dateDate string (YYYY-MM-DD)
transactionListArray of transactions for this date

Response — Transaction Fields (transactionList[]):

FieldDescription
blockNumberBlock number
chainIdPlatform internal chain ID
txHashTransaction hash
transactionType"send", "receive", or "trade"
txTimeTransaction timestamp (milliseconds)
fromArray of sender entries
toArray of receiver entries
txStatus"success" or "fail"
txFeeTransaction fee
txFeeUsdTransaction fee (USD)
amountUsdTransaction amount (USD)
confirmBlockNumberConfirmation block number
orderIdOrder ID

Response — Address Entry Fields (from[] / to[]):

FieldDescription
addressWallet address
amountToken amount
amountUsdAmount (USD)
assetToken asset object (null if not applicable)

Response — Asset Fields (asset):

FieldDescription
symbolToken symbol
tokenAddressToken contract address
tokenIconToken icon URL
chainIconChain icon URL

swap-quote

Get token Swap price quote. Quote only, does not execute transaction.

Prerequisite: Get tokenId, contract, tokenDecimal, and chainId for both tokens from the token resolution workflow.

Request:

json
{
    "tokenInAddress": "",
    "tokenOutAddress": "0x55d398326f99059ff775485246999027b3197955",
    "tokenInId": "2002",
    "tokenOutId": "1169983",
    "amountIn": 1,
    "tokenInDecimals": 18,
    "tokenOutDecimals": 18,
    "slippage": 0.1,
    "fromChainId": 2002,
    "toChainId": 2002
}
ParameterTypeRequiredDescription
tokenInAddressstringYesSource token contract address (see native token address handling rules)
tokenOutAddressstringYesTarget token contract address
tokenInIdstringYesSource token platform internal ID
tokenOutIdstringYesTarget token platform internal ID
amountInnumberYesSwap amount (defaults to 100 if not specified by user)
tokenInDecimalsintegerYesSource token decimal places
tokenOutDecimalsintegerYesTarget token decimal places
slippagenumberYesSlippage tolerance (e.g., 0.1 = 10%)
fromChainIdintegerYesSource chain platform internal chain ID
toChainIdintegerYesTarget chain platform internal chain ID (must be same as fromChainId)

Response Key Fields:

  • amountIn: Input amount
  • amountOut: Expected output amount
  • tokenInPrice: Source token price (USD)
  • tokenOutPrice: Target token price (USD)
  • fee: Transaction fee

Note: If the swap-quote API returns an error, the possible reasons are: (1) the token pair or chain is not supported / no liquidity found, or (2) the API is rate-limited. In case of rate limiting, recommend the user to try again after 5 minutes.


batch-price

Batch query token prices.

Note:

  • tokenIds accepts two types of identifiers:
    • Native tokens: use the chainId value as the identifier (e.g., 2001 for SOL, 2002 for BNB, 2003 for ETH). This is a special convention — chainId doubles as tokenId for native tokens.
    • Contract tokens: use the platform-internal tokenId obtained from token-search (e.g., "224987722" for a specific token).
  • Do not confuse chainId (chain identifier) with tokenId (token identifier) — they happen to share the same value only for native tokens.

Request:

json
{
    "tokenIds": [2001, 2002, 2003, 2004, 2007],
    "latestOnly": true
}
ParameterTypeRequiredDescription
tokenIdsarrayYesArray of token identifiers. For native tokens, use the chainId as tokenId (e.g., 2001=SOL, 2002=BNB, 2003=ETH). For contract tokens, use the platform tokenId from token-search.
latestOnlybooleanNoWhether to return only latest price, default true

Response Key Fields:

  • tokenId: Platform internal chain ID
  • chainId: Platform internal chain ID
  • baseToken: Base token symbol
  • quoteToken: Quote token (USD)
  • price: Price (USD)
  • priceUsd: Price (USD)
  • generateTime: Price generation time

Supported Tokens:

tokenIdchainIdToken SymbolToken Name
20012001SOLSolana
20022002BNBBNB
20032003ETHEthereum
20042004ARBArbitrum
20072007BASEBase

chain-detail

Query chain details by platform internal chain ID.

Request:

json
{
    "chainId": 2001
}
ParameterTypeRequiredDescription
chainIdintegerYesPlatform internal chain ID

Response Contains Fields:

FieldDescription
chainIdPlatform internal chain ID
networkChainIdIndustry standard blockchain network chain ID (e.g., 501=Solana, 56=BSC, 1=Ethereum)
chainSeriesChain series (e.g., SVM, EVM)
chainNameFull chain name
shortNameChain short name (e.g., SOL)
exploreUrlBlock explorer URL
txUrlTransaction explorer URL
addressUrlAddress explorer URL
depositConfirmationsRequired deposit confirmations
withdrawConfirmationsRequired withdrawal confirmations
statusChain status

kline

Get token historical K-line data. Only supports Solana chain tokens.

Request:

json
{
    "interval": "5m",
    "tokenAddress": "Cz5YvHHpU1e3dqDQJHVdjVi7VSqvhu21A1GvxcTHMpLM",
    "startTime": "1773307582",
    "endTime": "1773393982"
}
ParameterTypeRequiredDescription
intervalstringYesCandlestick period: 1m, 5m, 15m, 30m, 1h, 2h, 4h, 1d
tokenAddressstringYesToken contract address
startTimestringYesStart timestamp (seconds)
endTimestringYesEnd timestamp (seconds)

hot-ranking / xstock-ranking

Get hot token / US stock mapped token ranking.

Request:

json
{
    "queryFields": [],
    "timezone": "5"
}
ParameterTypeRequiredDescription
queryFieldsarrayNoQuery field filter
timezonestringYesTime window: 1=1min, 2=5min, 3=1hour, 4=4hours, 5=24hours

Response (each token in data.list[]):

FieldDescription
tokenIdPlatform internal token ID
tokenSymbolToken symbol
tokenNameToken name
tokenAddressToken contract address
tokenIconUrlToken icon URL
chainIdPlatform internal chain ID
priceCurrent price (USD)
priceChangePrice change rate
priceChange24h24-hour price change rate
marketcapMarket cap
volumeTrading volume
liquidityLiquidity
holdersNumber of holder addresses
buyBuy count
sellSell count
rankRank position
createAtToken creation time
checkAudit/check status
sourceData source
pricesHistorical price points array

Note: The hot-ranking and xstock-ranking endpoints may ignore the pageSize parameter in the request and return all available results. Do not rely on pageSize to limit the response — always handle variable-length result arrays.


smart-money-rank

Get smart money 7-day P&L ranking.

All parameters are optional. If omitted, returns default ranking.

Request:

json
{
    "current": 1,
    "size": 20,
    "orderBy": "profit7d",
    "order": "desc",
    "filters": {
        "profitMin": 5,
        "profitMax": 50,
        "profitRateMin": 5,
        "profitRateMax": 50,
        "winRateMin": 50,
        "winRateMax": 100,
        "tradeCountMin": 10,
        "tradeCountMax": 200,
        "totalTradeAmountMin": 1000,
        "totalTradeAmountMax": 100000
    }
}
ParameterTypeRequiredDescription
currentintegerNoPage number, default 1
sizeintegerNoPage size, max 100
orderBystringNoSort field: profit7d, winRate7d, profitRate7d, tradeCount, totalTradeAmount, lastTradeTime
orderstringNoSort direction: desc / asc
filters.profitMinnumberNoMinimum 7-day profit amount
filters.profitMaxnumberNoMaximum 7-day profit amount
filters.profitRateMinnumberNoMinimum 7-day profit rate (%)
filters.profitRateMaxnumberNoMaximum 7-day profit rate (%)
filters.winRateMinnumberNoMinimum 7-day win rate (%)
filters.winRateMaxnumberNoMaximum 7-day win rate (%)
filters.tradeCountMinintegerNoMinimum trade count
filters.tradeCountMaxintegerNoMaximum trade count
filters.totalTradeAmountMinnumberNoMinimum total trade amount (USD)
filters.totalTradeAmountMaxnumberNoMaximum total trade amount (USD)

Response (each address in data.records[]):

FieldDescription
walletAddressSmart money wallet address
rankRank position
profit7d7-day profit amount
profitRate7d7-day profit rate (%)
winRate7d7-day win rate (%)
tradeCountTotal trade count
buyCountBuy count
sellCountSell count
totalTradeAmountTotal trade amount (USD)
avgBuyAmountAverage buy amount
lastTradeTimeLast trade timestamp
latestTradeTokenLatest trade token address
latestTradeTokenNameLatest trade token name
profitTrend7d7-day profit trend array (dailyProfit, dailyProfitRate per day)
bestProfitTokenBest profit token array (address, name, profitRate, profit)
chainIdPlatform internal chain ID
followWhether current user follows this address
walletRemarkWallet remark/tag
updateTimeLast update time
createTimeRecord creation time
notifyWhether notifications are enabled

smart-money-info

Get smart money address analysis, holdings, and transaction history.

Limitation: walletAddress must be provided by the user.

Request:

json
{
    "walletAddress": "As7HjL7dzzvbRbaD3WCun47robib2kmAKRXMvjHkSMB5"
}
ParameterTypeRequiredDescription
walletAddressstringYesSmart money wallet address (must be provided by user)

Response — Top-level Fields:

FieldDescription
walletAddressWallet address
walletBalanceTotal wallet balance (USD)
walletSolBalanceSOL balance
followWhether current user follows this address
walletRemarkWallet remark/tag
marketDistributionMarket distribution data

Response — Address Analysis Fields (profitInfo):

FieldDescription
profitInfo.profit7d7-day profit
profitInfo.profitRate7d7-day profit rate
profitInfo.winRate7d7-day win rate
profitInfo.tradeInfoTrade info summary
profitInfo.topProfitTop profit details
profitInfo.profitRateDistributionProfit rate distribution
profitInfo.profitTrend7d7-day profit trend array

Response — Holdings Fields (proportion[]):

FieldDescription
tokenAddressToken contract address
tokenNameToken name
tokenIconToken icon URL
tokenIdPlatform internal token ID
chainIdPlatform internal chain ID
quantityHolding quantity
balanceHolding value (USD)
priceCurrent price
holdingPercentageHolding percentage
priceChangeRatePrice change rate

Response — Transaction History Fields (tradeHistory[]):

FieldDescription
tokenAddressToken contract address
tokenSymbolToken symbol
tokenIconToken icon
tokenIdPlatform internal token ID
chainIdPlatform internal chain ID
tradeDirectionBUY or SELL
tradeTimeTrade timestamp
quantityTrade quantity
totalUSDTrade amount (USD)
priceExecution price
txHashTransaction hash
profitTrade profit

About Tokens with Same Name

When the user-specified token is ambiguous and there are multiple tokens with exactly matching names, you must ask the user to confirm which token. Clearly state each token's chain name and token type.


Error Handling

Response Format

All endpoints return the same response structure:

json
{
  "success": false,
  "code": "error_code",
  "message": "Human-readable error description",
  "data": null
}

When success is false, check the code and message fields for details.

Common Error Scenarios

ScenarioTypical ResponseAction
Invalid/missing parametersuccess: false with descriptive messageCheck required fields and types
Token not foundEmpty data or data: nullVerify tokenId/address via token-search first
Chain not supportedError in messageCheck supported chains (2001-2004, 2007)
Rate limited (>15 req/s)HTTP 429 or error responseBack off, wait 5 seconds, retry (max 3 times)
Cloudflare interceptionHTTP 403/503 with HTML body (not JSON)This is a Cloudflare WAF block, not an API error. Do not parse as JSON. Check IP reputation (VPN/cloud IPs may be challenged). Wait 30-60 seconds and retry. Do not auto-retry more than 3 times.
Server errorHTTP 500+Retry once after 2 seconds; if persistent, inform user

Cloudflare Handling

BitMart API is behind Cloudflare CDN. If you receive HTTP 403/503 and the response body contains "Cloudflare", "cf-", or an HTML challenge page (instead of JSON):

  1. This is a Cloudflare interception, not a BitMart API error — do not parse as JSON
  2. Check if too many requests were sent in a short window
  3. Wait 30-60 seconds before retrying
  4. Do not auto-retry more than 3 times
  5. If persistent, suggest the user check their network environment (VPN, proxy, cloud IP)

Important — Cloudflare Error 1010 (Non-curl clients):

Cloudflare may block requests from HTTP libraries that use default "bot-like" User-Agent strings (e.g., Python-urllib/3.x, Go-http-client/1.1, Java/...). The symptom is HTTP 403 with error code 1010.

This does not affect curl (which sends a recognized User-Agent by default), but will affect:

  • Python urllib / urllib3 without custom User-Agent
  • Go net/http default client
  • Any HTTP library that sends a generic or empty User-Agent

Solution: Always include the User-Agent header in every request (e.g., bitmart-skills/wallet/v2026.3.23). Ensure your HTTP client actually sends this header and does not override it with a default value.

python
# Python requests — correct
import requests
r = requests.post(url, json=body, headers={"User-Agent": "bitmart-skills/wallet/v2026.3.23"})

# Python urllib — correct
import urllib.request
req = urllib.request.Request(url, data=json.dumps(body).encode(),
    headers={"Content-Type": "application/json", "User-Agent": "bitmart-skills/wallet/v2026.3.23"})
resp = urllib.request.urlopen(req)

curl Examples

Public endpoint (token-search)

bash
curl -s -X POST 'https://api-cloud.bitmart.com/web3/chain-web3-base-data-maintainer/v1/token/search' \
  -H "Content-Type: application/json" \
  -H "User-Agent: bitmart-skills/wallet/v2026.3.23" \
  -d '{"keyword":"TRUMP","chainId":2001}'

Public endpoint (batch-price — native tokens)

bash
curl -s -X POST 'https://api-cloud.bitmart.com/web3/chain-web3-price/api/v1/token/price/batch' \
  -H "Content-Type: application/json" \
  -H "User-Agent: bitmart-skills/wallet/v2026.3.23" \
  -d '{"tokenIds":[2001,2002,2003],"latestOnly":true}'

Public endpoint (address-balance)

bash
curl -s -X POST 'https://api-cloud.bitmart.com/web3/chain-web3-assetmanager/v1/eoa/balance/list' \
  -H "Content-Type: application/json" \
  -H "User-Agent: bitmart-skills/wallet/v2026.3.23" \
  -d '{"address":"0x4396e479fe8270487f301b7c5cc92e8cd59ef91a","chainId":2002,"pageIndex":0,"pageSize":100}'

Public endpoint (swap-quote)

bash
curl -s -X POST 'https://api-cloud.bitmart.com/web3/chain-web3-price/api/v1/token/price/swap-quote' \
  -H "Content-Type: application/json" \
  -H "User-Agent: bitmart-skills/wallet/v2026.3.23" \
  -d '{"tokenInAddress":"","tokenOutAddress":"0x55d398326f99059ff775485246999027b3197955","tokenInId":"2002","tokenOutId":"1169983","amountIn":1,"tokenInDecimals":18,"tokenOutDecimals":18,"slippage":0.1,"fromChainId":2002,"toChainId":2002}'

Other Rules

  • Token Price Query: Query hot-ranking and batch-price endpoints sequentially. Use the first result that returns an exact match (symbol or name,chainId(if valid),tokenId(if valid) matches exactly). If neither returns an exact match, inform the user that the token price is not currently available.
  • Must verify chainId matches before calling swap-quote
  • If user does not specify swap amount, default amountIn = 100
  • K-line data only supports Solana tokens
  • Response data only includes platform-managed tokens and addresses

常见问题

Bitmart Wallet Ai AI 技能有什么作用?

BitMart Web3 Wallet 技能(12 个端点):代币搜索、链详情、代币信息、K 线图、热门代币排行、xStock 排行、聪明钱盈亏排行、聪明钱地址分析/持仓/交易历史、地址余额、地址近期交易、兑换报价、批量价格。所有 API 均无需 API Key。用户询问代币价格、市场数据、聪明钱追踪、资产查询、近期交易或代币兑换报价时使用。

为什么在 TypingMind 中使用 Bitmart Wallet Ai?

因为您只需安装一次,就能搭配任何模型使用。Bitmart Wallet Ai 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Bitmart Wallet Ai?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/bitmartexchange/bitmart-skills/tree/master/skills/bitmart-wallet-ai。TypingMind 会读取其中的 SKILL.md,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Bitmart Wallet Ai?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Bitmart Wallet Ai 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Bitmart Wallet Ai 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Bitmart Wallet Ai AI 技能免费吗?

bitmartexchange 已在 GitHub 上发布了该技能。请查看代码仓库了解许可条款。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇