一条提示词即可开始。
把提示词发给你的智能体
# 任务:基于 DataMaxi+ API 开发
Base URL https://api.datamaxiplus.com/api/v1
认证 发送请求头 X-DTMX-APIKEY: <key> (从环境变量 DATAMAXI_API_KEY 读取,切勿硬编码)
计费 每次付费调用都从与 MCP 共用的同一个预付 USD 余额中扣除。
1 点额度 = $0.0001。仅成功的响应计费。
充值 DataMaxi+ 控制台 -> Billing (充值档位:$10, $25, $100, $500, $1000;无订阅)
## 必须处理的错误
402 Payment Required {"error": "insufficient balance, top up to continue"}
or {"error": "balance expired, top up to continue"}
-> 停止重试,提醒用户充值,然后继续。
429 Too Many Requests -> 按 Retry-After 请求头等待;不计费。
5xx -> 退避重试;不计费。
每个响应都带有 x-ratelimit-limit / x-ratelimit-remaining / x-ratelimit-reset。
## REST 接口(每次成功调用的价格)
GET /funding-rate/latest $0.0001 / call 必填:exchange, symbol
GET /ticker $0.0001 / call 必填:exchange, symbol, market
GET /premium $0.0001 / call
GET /open-interest $0.0001 / call 必填:exchange, symbol
GET /open-interest/list $0.0001 / call
GET /wallet-status $0.0001 / call 必填:asset
GET /forex $0.0001 / call 必填:symbol
GET /cex/fees $0.0001 / call
GET /listings/historical $0.0001 / call
GET /cex/announcements $0.0001 / call
GET /telegram/channels $0.0001 / call
GET /margin-borrow $0.0001 / call 必填:asset
GET /cex/symbol/volume $0.0001 / call 必填:base
GET /cex/symbol/oi $0.0001 / call 必填:base
GET /cex/symbol/oi-stats $0.0001 / call 必填:base
GET /cex/symbol/liquidation $0.0001 / call 必填:base
GET /cex/candle $0.0005 / call 必填:exchange, symbol
GET /liquidation $0.0005 / call 必填:exchange, symbol
GET /liquidation/feed $0.0005 / call
GET /liquidation/heatmap $0.0005 / call
GET /liquidation/stats $0.0005 / call
GET /liquidation/map $0.0005 / call
GET /liquidation/symbol-history $0.0005 / call 必填:symbol
GET /open-interest/summary $0.0005 / call
GET /open-interest/overview $0.0005 / call
GET /naver-trend $0.0005 / call 必填:symbol
GET /telegram/messages $0.0005 / call
GET /funding-rate/history $0.0005 / call 必填:exchange, symbol
GET /cex/token/updates $0.0005 / call
GET /open-interest/history-aggregated $0.002 / call 必填:token_id
GET /index-price $0.002 / call 必填:asset
## WebSocket
wss://api.datamaxiplus.com/ws/v1/<channel> 同样的 X-DTMX-APIKEY 请求头 每连接分钟 $0.0001
频道:announcement/listing, forex, funding-rate, liquidation, liquidation/feed, open-interest, premium, ticker/futures, ticker/spot
完整文档:https://docs.datamaxiplus.com/api/getting-started
获取 API 密钥
# .env DATAMAXI_API_KEY=<your key>
充值余额
浏览接口
→示例
| 日期 | 调用 |
|---|---|
| 10月19日 | 12 |
| 10月20日 | 16.86 |
| 10月21日 | 16.76 |
| 10月22日 | 16.96 |
| 10月23日 | 20.32 |
| 10月24日 | 20.51 |
| 10月25日 | 16.44 |
| 10月26日 | 15.32 |
| 10月27日 | 17.24 |
| 10月28日 | 15.94 |
| 10月29日 | 13.7 |
| 10月30日 | 16.63 |
| 10月31日 | 20.81 |
| 11月1日 | 20.64 |
| 11月2日 | 20.64 |
| 11月3日 | 24.26 |
| 11月4日 | 25.23 |
| 11月5日 | 21.16 |
| 11月6日 | 18.84 |
| 11月7日 | 19.32 |
| 11月8日 | 16.29 |
| 11月9日 | 11.32 |
| 11月10日 | 11.26 |
| 11月11日 | 13.45 |
| 11月12日 | 12 |
| 11月13日 | 10.87 |
| 11月14日 | 14.29 |
| 11月15日 | 16.31 |
| 11月16日 | 13.31 |
| 11月17日 | 11.44 |
funding-rate/latest
指定交易所和交易对的资金费率
$0.0001 / 次
示例
| 日期 | 调用 |
|---|---|
| 10月19日 | 8.05 |
| 10月20日 | 6.39 |
| 10月21日 | 8.22 |
| 10月22日 | 7.5 |
| 10月23日 | 3.31 |
| 10月24日 | 2.87 |
| 10月25日 | 6.14 |
| 10月26日 | 6.57 |
| 10月27日 | 6.1 |
| 10月28日 | 10.55 |
| 10月29日 | 15.75 |
| 10月30日 | 16.05 |
| 10月31日 | 16.04 |
| 11月1日 | 19.42 |
| 11月2日 | 20.22 |
| 11月3日 | 16.35 |
| 11月4日 | 14.83 |
| 11月5日 | 16.79 |
| 11月6日 | 15.86 |
| 11月7日 | 13.38 |
| 11月8日 | 15.87 |
| 11月9日 | 20.32 |
| 11月10日 | 20.56 |
| 11月11日 | 20.38 |
| 11月12日 | 23.99 |
| 11月13日 | 25.63 |
| 11月14日 | 21.94 |
| 11月15日 | 19.37 |
| 11月16日 | 19.95 |
| 11月17日 | 17.39 |
premium
跨交易所价差
$0.0001 / 次
示例
| 日期 | 调用 |
|---|---|
| 10月19日 | 6.37 |
| 10月20日 | 4.6 |
| 10月21日 | -0.0029 |
| 10月22日 | -0.42 |
| 10月23日 | 3.02 |
| 10月24日 | 3.45 |
| 10月25日 | 2.57 |
| 10月26日 | 6.02 |
| 10月27日 | 9.7 |
| 10月28日 | 8.1 |
| 10月29日 | 6.12 |
| 10月30日 | 7.8 |
| 10月31日 | 7.46 |
| 11月1日 | 3.22 |
| 11月2日 | 2.16 |
| 11月3日 | 5.27 |
| 11月4日 | 5.93 |
| 11月5日 | 5.14 |
| 11月6日 | 9.11 |
| 11月7日 | 14.59 |
| 11月8日 | 15.31 |
| 11月9日 | 15.12 |
| 11月10日 | 18.46 |
| 11月11日 | 19.84 |
| 11月12日 | 16.23 |
| 11月13日 | 14.33 |
| 11月14日 | 16.26 |
| 11月15日 | 15.72 |
| 11月16日 | 13.06 |
| 11月17日 | 15.06 |
open-interest/summary
市场持仓量快照
$0.0005 / 次
示例
| 日期 | 调用 |
|---|---|
| 10月19日 | 10.07 |
| 10月20日 | 10.51 |
| 10月21日 | 14.33 |
| 10月22日 | 14.42 |
| 10月23日 | 12.42 |
| 10月24日 | 14.05 |
| 10月25日 | 15.42 |
| 10月26日 | 11.37 |
| 10月27日 | 7.14 |
| 10月28日 | 7.04 |
| 10月29日 | 5.56 |
| 10月30日 | 0.81 |
| 10月31日 | -0.3 |
| 11月1日 | 2.95 |
| 11月2日 | 3.61 |
| 11月3日 | 2.44 |
| 11月4日 | 5.46 |
| 11月5日 | 9.42 |
| 11月6日 | 8.21 |
| 11月7日 | 5.95 |
| 11月8日 | 7.42 |
| 11月9日 | 7.46 |
| 11月10日 | 3.24 |
| 11月11日 | 1.56 |
| 11月12日 | 4.44 |
| 11月13日 | 5.33 |
| 11月14日 | 4.27 |
| 11月15日 | 7.71 |
| 11月16日 | 13.38 |
| 11月17日 | 14.55 |
liquidation/feed
实时爆仓
$0.0005 / 次