Refresh trade quote
curl --request POST \
--url https://mcp.echozero.app/api/v1/ai/trades/quote/refresh \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"confirmationId": "conf_abc123"
}
'import requests
url = "https://mcp.echozero.app/api/v1/ai/trades/quote/refresh"
payload = { "confirmationId": "conf_abc123" }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({confirmationId: 'conf_abc123'})
};
fetch('https://mcp.echozero.app/api/v1/ai/trades/quote/refresh', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({confirmationId: 'conf_abc123'})
};
fetch('https://mcp.echozero.app/api/v1/ai/trades/quote/refresh', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://mcp.echozero.app/api/v1/ai/trades/quote/refresh"
payload := strings.NewReader("{\n \"confirmationId\": \"conf_abc123\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"success": true,
"data": {
"confirmationId": "<string>",
"action": "BUY",
"title": "<string>",
"description": "<string>",
"quote": {
"quoteId": "<string>",
"inputToken": {
"address": "<string>",
"symbol": "<string>",
"decimals": 123,
"name": "<string>",
"logoUri": "<string>",
"priceUsd": 123,
"priceChange24h": 123
},
"outputToken": {
"address": "<string>",
"symbol": "<string>",
"decimals": 123,
"name": "<string>",
"logoUri": "<string>",
"priceUsd": 123,
"priceChange24h": 123
},
"inputAmount": "<string>",
"outputAmount": "<string>",
"inputAmountUsd": 123,
"outputAmountUsd": 123,
"priceImpactPct": 123,
"totalFeesUsd": 123,
"exchangeRate": 123,
"slippageBps": 123,
"expiresAt": "2023-11-07T05:31:56Z"
},
"status": "PENDING_CONFIRMATION",
"createdAt": "2023-11-07T05:31:56Z",
"isVirtual": true,
"warning": "<string>",
"agentAnalysis": "<string>",
"confirmedAt": "2023-11-07T05:31:56Z",
"transactionHash": "<string>",
"botId": "<string>"
}
}{
"success": false,
"error": {
"code": "NOT_FOUND",
"message": "Resource not found"
}
}{
"success": false,
"error": {
"code": "NOT_FOUND",
"message": "Resource not found"
}
}{
"success": false,
"error": {
"code": "NOT_FOUND",
"message": "Resource not found"
}
}AI
Refresh trade quote
Mirrors GraphQL refreshTradeQuote.
POST
/
api
/
v1
/
ai
/
trades
/
quote
/
refresh
Refresh trade quote
curl --request POST \
--url https://mcp.echozero.app/api/v1/ai/trades/quote/refresh \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"confirmationId": "conf_abc123"
}
'import requests
url = "https://mcp.echozero.app/api/v1/ai/trades/quote/refresh"
payload = { "confirmationId": "conf_abc123" }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({confirmationId: 'conf_abc123'})
};
fetch('https://mcp.echozero.app/api/v1/ai/trades/quote/refresh', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({confirmationId: 'conf_abc123'})
};
fetch('https://mcp.echozero.app/api/v1/ai/trades/quote/refresh', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://mcp.echozero.app/api/v1/ai/trades/quote/refresh"
payload := strings.NewReader("{\n \"confirmationId\": \"conf_abc123\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"success": true,
"data": {
"confirmationId": "<string>",
"action": "BUY",
"title": "<string>",
"description": "<string>",
"quote": {
"quoteId": "<string>",
"inputToken": {
"address": "<string>",
"symbol": "<string>",
"decimals": 123,
"name": "<string>",
"logoUri": "<string>",
"priceUsd": 123,
"priceChange24h": 123
},
"outputToken": {
"address": "<string>",
"symbol": "<string>",
"decimals": 123,
"name": "<string>",
"logoUri": "<string>",
"priceUsd": 123,
"priceChange24h": 123
},
"inputAmount": "<string>",
"outputAmount": "<string>",
"inputAmountUsd": 123,
"outputAmountUsd": 123,
"priceImpactPct": 123,
"totalFeesUsd": 123,
"exchangeRate": 123,
"slippageBps": 123,
"expiresAt": "2023-11-07T05:31:56Z"
},
"status": "PENDING_CONFIRMATION",
"createdAt": "2023-11-07T05:31:56Z",
"isVirtual": true,
"warning": "<string>",
"agentAnalysis": "<string>",
"confirmedAt": "2023-11-07T05:31:56Z",
"transactionHash": "<string>",
"botId": "<string>"
}
}{
"success": false,
"error": {
"code": "NOT_FOUND",
"message": "Resource not found"
}
}{
"success": false,
"error": {
"code": "NOT_FOUND",
"message": "Resource not found"
}
}{
"success": false,
"error": {
"code": "NOT_FOUND",
"message": "Resource not found"
}
}Authorizations
Headers
HMAC-SHA256 signature: HMAC-SHA256(secretKey, timestamp + METHOD + path + body). Required for API-key authenticated requests (JWT/OAuth session auth is exempt).
Request timestamp in epoch milliseconds. Required with x-signature for API-key auth. Rejected if drift exceeds 5 minutes.
Body
application/json
Trade confirmation id to refresh
⌘I