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 | The order ID returned from your WEEX order API |
| stage | String | Yes | The trading stage where AI participated (e.g., "Strategy Generation") |
| model | String | Yes | The name or version of the AI model used (e.g., "GPT-4-turbo") |
| input | JSON | Yes | The prompt, query, or input text given to the AI model. If the input includes attachments (e.g., files, images), please provide links |
| output | JSON | Yes | The AI model's generated output, including predictions or decision recommendations. For inference models, show the inference process |
| explanation | String | Yes | A concise explanation summarizing the AI's analysis and reasoning in natural language. Maximum length: 1000 characters |
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"
}