Add USD to an agent allocation pool
curl --request POST \
--url https://mcp.echozero.app/api/v1/users/me/subscriptions/{agentId}/allocation/add \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-signature: <x-signature>' \
--header 'x-timestamp: <x-timestamp>' \
--data '
{
"amountUsd": 1.01
}
'import requests
url = "https://mcp.echozero.app/api/v1/users/me/subscriptions/{agentId}/allocation/add"
payload = { "amountUsd": 1.01 }
headers = {
"x-signature": "<x-signature>",
"x-timestamp": "<x-timestamp>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'x-signature': '<x-signature>',
'x-timestamp': '<x-timestamp>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({amountUsd: 1.01})
};
fetch('https://mcp.echozero.app/api/v1/users/me/subscriptions/{agentId}/allocation/add', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {
method: 'POST',
headers: {
'x-signature': '<x-signature>',
'x-timestamp': '<x-timestamp>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({amountUsd: 1.01})
};
fetch('https://mcp.echozero.app/api/v1/users/me/subscriptions/{agentId}/allocation/add', 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/users/me/subscriptions/{agentId}/allocation/add"
payload := strings.NewReader("{\n \"amountUsd\": 1.01\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-signature", "<x-signature>")
req.Header.Add("x-timestamp", "<x-timestamp>")
req.Header.Add("Authorization", "Bearer <token>")
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": {
"success": true,
"message": "<string>",
"subscription": {
"agent": "<string>",
"subscribedAt": "2023-11-07T05:31:56Z",
"subscriptionType": "AUTO_TRADING",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"tradeMode": "AUTO_TRADING",
"walletContext": "virtual",
"walletMode": "VIRTUAL",
"allocationMode": "PERCENTAGE_RANGE",
"allocationPercentageMin": 123,
"allocationPercentageMax": 123,
"allocationAmountUsd": 123,
"allocationAmountSol": 123,
"allocatedUsd": 123,
"inUseUsd": 123,
"withdrawableUsd": 123,
"currentBalanceUsd": 123,
"availableUsd": 123,
"inTradesUsd": 123,
"feeBufferUsd": 123,
"lockedInPositionsUsd": 123,
"venue": "JUPITER",
"hyperliquidTotalEquityUsd": 123,
"hyperliquidFreeMarginUsd": 123,
"bridgeStatus": "PENDING_BRIDGE",
"bridgeTransactionId": "<string>",
"pendingDeltaUsd": 123,
"minAllocationUsd": 123,
"minPerTradePercent": 123,
"recommendedPerTradePercent": 123,
"maxConcurrentPositions": 123,
"maxEntriesPerTrade": 123,
"allocationBalanceAudit": {
"depositedUsd": 123,
"realizedPnlUsd": 123,
"unrealizedPnlUsd": 123,
"lockedMarginUsd": 123,
"feeBufferUsd": 123,
"ledgerAvailableUsd": 123,
"dustUsd": 123,
"pendingDeltaUsd": 123,
"reconciliationStatus": "IN_SYNC",
"netRealizedProfitUsd": 123,
"pendingPlatformFeeUsd": 123,
"pendingCreatorFeeUsd": 123,
"estimatedSuccessFeeUsd": 123,
"estimatedPlatformFeeUsd": 123,
"estimatedCreatorFeeUsd": 123,
"netUserPayoutUsd": 123,
"venueEquityUsd": 123,
"venueFreeMarginUsd": 123,
"venueGapUsd": 123,
"bridgeStatus": "PENDING_BRIDGE"
},
"goLiveUponConfirmation": true,
"isPaused": true
},
"agentName": "<string>",
"agentImageUrl": "<string>",
"strategyCount": 123
}
}User
Add USD to an agent allocation pool
POST
/
api
/
v1
/
users
/
me
/
subscriptions
/
{agentId}
/
allocation
/
add
Add USD to an agent allocation pool
curl --request POST \
--url https://mcp.echozero.app/api/v1/users/me/subscriptions/{agentId}/allocation/add \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-signature: <x-signature>' \
--header 'x-timestamp: <x-timestamp>' \
--data '
{
"amountUsd": 1.01
}
'import requests
url = "https://mcp.echozero.app/api/v1/users/me/subscriptions/{agentId}/allocation/add"
payload = { "amountUsd": 1.01 }
headers = {
"x-signature": "<x-signature>",
"x-timestamp": "<x-timestamp>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'x-signature': '<x-signature>',
'x-timestamp': '<x-timestamp>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({amountUsd: 1.01})
};
fetch('https://mcp.echozero.app/api/v1/users/me/subscriptions/{agentId}/allocation/add', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {
method: 'POST',
headers: {
'x-signature': '<x-signature>',
'x-timestamp': '<x-timestamp>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({amountUsd: 1.01})
};
fetch('https://mcp.echozero.app/api/v1/users/me/subscriptions/{agentId}/allocation/add', 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/users/me/subscriptions/{agentId}/allocation/add"
payload := strings.NewReader("{\n \"amountUsd\": 1.01\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-signature", "<x-signature>")
req.Header.Add("x-timestamp", "<x-timestamp>")
req.Header.Add("Authorization", "Bearer <token>")
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": {
"success": true,
"message": "<string>",
"subscription": {
"agent": "<string>",
"subscribedAt": "2023-11-07T05:31:56Z",
"subscriptionType": "AUTO_TRADING",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"tradeMode": "AUTO_TRADING",
"walletContext": "virtual",
"walletMode": "VIRTUAL",
"allocationMode": "PERCENTAGE_RANGE",
"allocationPercentageMin": 123,
"allocationPercentageMax": 123,
"allocationAmountUsd": 123,
"allocationAmountSol": 123,
"allocatedUsd": 123,
"inUseUsd": 123,
"withdrawableUsd": 123,
"currentBalanceUsd": 123,
"availableUsd": 123,
"inTradesUsd": 123,
"feeBufferUsd": 123,
"lockedInPositionsUsd": 123,
"venue": "JUPITER",
"hyperliquidTotalEquityUsd": 123,
"hyperliquidFreeMarginUsd": 123,
"bridgeStatus": "PENDING_BRIDGE",
"bridgeTransactionId": "<string>",
"pendingDeltaUsd": 123,
"minAllocationUsd": 123,
"minPerTradePercent": 123,
"recommendedPerTradePercent": 123,
"maxConcurrentPositions": 123,
"maxEntriesPerTrade": 123,
"allocationBalanceAudit": {
"depositedUsd": 123,
"realizedPnlUsd": 123,
"unrealizedPnlUsd": 123,
"lockedMarginUsd": 123,
"feeBufferUsd": 123,
"ledgerAvailableUsd": 123,
"dustUsd": 123,
"pendingDeltaUsd": 123,
"reconciliationStatus": "IN_SYNC",
"netRealizedProfitUsd": 123,
"pendingPlatformFeeUsd": 123,
"pendingCreatorFeeUsd": 123,
"estimatedSuccessFeeUsd": 123,
"estimatedPlatformFeeUsd": 123,
"estimatedCreatorFeeUsd": 123,
"netUserPayoutUsd": 123,
"venueEquityUsd": 123,
"venueFreeMarginUsd": 123,
"venueGapUsd": 123,
"bridgeStatus": "PENDING_BRIDGE"
},
"goLiveUponConfirmation": true,
"isPaused": true
},
"agentName": "<string>",
"agentImageUrl": "<string>",
"strategyCount": 123
}
}Authorizations
bearer-jwtapi-key
User JWT access token issued by POST /api/auth/verify or POST /api/auth/social/verify. Routes that accept both auth modes declare api-key and bearer-jwt security schemes.
Headers
Required for API-key authenticated requests. HMAC-SHA256(secretKey, timestamp + METHOD + path + body) as lowercase hex. Omit only for JWT/OAuth session tokens or public routes.
Required with x-signature. Epoch milliseconds; rejected if drift exceeds 5 minutes. Omit only for JWT/OAuth session tokens or public routes.
Path Parameters
Body
application/json
USD amount to add
Required range:
x >= 0.01