Upload AI log
- POST
/capi/v2/order/uploadAiLog
Weight(IP): 1, Weight(UID): 1
Important rule
BUIDLs entering the live trading phase must provide an AI log (ai_log) containing:
- Model version
- Input and output data
- Order execution details
The AI log is required to verify AI involvement and compliance. If you fail to provide valid proof of AI involvement, we will disqualify your team and remove it from the rankings. Only approved UIDs on the official allowlist may submit AI log data.
Request parameters
| Parameter | Type | Required? | Description |
|---|---|---|---|
| orderId | Long | No | Order ID |
| stage | String | Yes | Stage identifier |
| model | String | Yes | Model name |
| input | JSON | Yes | Input parameters |
| output | JSON | Yes | Output results |
| explanation | String | Yes | A concise, explanatory summary of AI's behavior. Used to describe the AI’s analysis, reasoning, or output in natural language. The content should not exceed 500 words. |
Request example 1
curl -X POST "https://api-contract.weex.com/capi/v2/order/uploadAiLog" \
-H "ACCESS-KEY:*******" \
-H "ACCESS-SIGN:*" \
-H "ACCESS-PASSPHRASE:*" \
-H "ACCESS-TIMESTAMP:1659076670000" \
-H "locale:zh-CN" \
-H "Content-Type: application/json" \
-d '{
"orderId": null,
"stage": "Decision Making",
"model": "GPT-5-mini",
"input": {"prompt":"Summarize last 6h BTC/ETH correlation and give a directional signal."},
"output": {"response":"Sell ETH; correlation weakened, BTC showing dominance."},
"explanation": "Analysis of the past 6 hours of market data indicates a weakening correlation between BTC and ETH. BTC demonstrated relative strength and capital dominance, resulting in a directional signal favoring selling ETH."
}
'
Request example 2
curl -X POST "https://api-contract.weex.com/capi/v2/order/uploadAiLog" \
-H "ACCESS-KEY:*******" \
-H "ACCESS-SIGN:*" \
-H "ACCESS-PASSPHRASE:*" \
-H "ACCESS-TIMESTAMP:1659076670000" \
-H "locale:zh-CN" \
-H "Content-Type: application/json" \
-d '{
"orderId": null,
"stage": "Strategy Generation",
"model": "GPT-5-turbo",
"input": {
"prompt": "Predict BTC/USDT price trend for the next 3 hours.",
"data": {
"RSI_14": 36.8,
"EMA_20": 68950.4,
"FundingRate": -0.0021,
"OpenInterest": 512.3
}
},
"output": {
"signal": "Buy",
"confidence": 0.82,
"target_price": 69300,
"reason": "Negative funding + rising open interest implies short squeeze potential."
},
"explanation": "Low RSI and price near the EMA20 suggest weakening downside momentum. Negative funding with rising open interest points to short-side pressure and potential squeeze risk, indicating a bullish bias for BTC over the next three hours."
}'
Response parameters
| Parameter | Type | Description |
|---|---|---|
| code | String | Request status code, "00000" indicates success |
| msg | String | Request result description, "success" indicates success |
| requestTime | Long | Request timestamp (milliseconds) |
| data | String | Returned business data, "upload success" indicates upload successful |
Response example
{
"code": "00000",
"msg": "success",
"requestTime": 1763103201300,
"data": "upload success"
}