Update wallet strategy
curl --request PATCH \
--url https://sandbox.groundtech.co/v2/wallets/{id}/strategy \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"requestId": "c3d4e5f6-0000-4000-8000-000000000001",
"allocations": {
"usdt": [
{
"yieldSourceId": "cash",
"pct": 100
}
]
}
}
'import requests
url = "https://sandbox.groundtech.co/v2/wallets/{id}/strategy"
payload = {
"requestId": "c3d4e5f6-0000-4000-8000-000000000001",
"allocations": { "usdt": [
{
"yieldSourceId": "cash",
"pct": 100
}
] }
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
requestId: 'c3d4e5f6-0000-4000-8000-000000000001',
allocations: {usdt: [{yieldSourceId: 'cash', pct: 100}]}
})
};
fetch('https://sandbox.groundtech.co/v2/wallets/{id}/strategy', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox.groundtech.co/v2/wallets/{id}/strategy",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'requestId' => 'c3d4e5f6-0000-4000-8000-000000000001',
'allocations' => [
'usdt' => [
[
'yieldSourceId' => 'cash',
'pct' => 100
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandbox.groundtech.co/v2/wallets/{id}/strategy"
payload := strings.NewReader("{\n \"requestId\": \"c3d4e5f6-0000-4000-8000-000000000001\",\n \"allocations\": {\n \"usdt\": [\n {\n \"yieldSourceId\": \"cash\",\n \"pct\": 100\n }\n ]\n }\n}")
req, _ := http.NewRequest("PATCH", url, payload)
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))
}HttpResponse<String> response = Unirest.patch("https://sandbox.groundtech.co/v2/wallets/{id}/strategy")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"requestId\": \"c3d4e5f6-0000-4000-8000-000000000001\",\n \"allocations\": {\n \"usdt\": [\n {\n \"yieldSourceId\": \"cash\",\n \"pct\": 100\n }\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.groundtech.co/v2/wallets/{id}/strategy")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"requestId\": \"c3d4e5f6-0000-4000-8000-000000000001\",\n \"allocations\": {\n \"usdt\": [\n {\n \"yieldSourceId\": \"cash\",\n \"pct\": 100\n }\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"id": "b1c2d3e4-0000-4000-8000-000000000001",
"label": "Corporate Treasury",
"createdAt": "2025-09-01T00:00:00Z",
"status": "idle",
"failureReason": null,
"depositAddresses": {
"arbitrum": "0xAbC1230000000000000000000000000000000001",
"base": "0xAbC1230000000000000000000000000000000001",
"ethereum": "0xAbC1230000000000000000000000000000000001",
"polygon": "0xAbC1230000000000000000000000000000000001",
"solana": "7vFgKxM3bP4oEFbqkPmA5E2rYJ8HqKz8abc1"
},
"balance": {
"totalUsd": "100.000000",
"withdrawableUsd": "100.000000",
"reservedUsd": "0.000000",
"earnedUsd": "5.000000"
},
"positions": [
{
"id": "syrup-usdc",
"kind": "yield_source",
"label": "Syrup USDC",
"valueUsd": "40.000000",
"pct": 40
},
{
"id": "morpho-gauntlet-usdc",
"kind": "yield_source",
"label": "Morpho Gauntlet USDC Prime",
"valueUsd": "30.000000",
"pct": 30
},
{
"id": "morpho-steakhouse-usdc",
"kind": "yield_source",
"label": "Morpho Steakhouse USDC Prime",
"valueUsd": "30.000000",
"pct": 30
}
],
"strategyAllocations": {
"usdc": [
{
"yieldSourceId": "syrup-usdc",
"targetWeightBps": 4000
},
{
"yieldSourceId": "morpho-gauntlet-usdc",
"targetWeightBps": 3000
},
{
"yieldSourceId": "morpho-steakhouse-usdc",
"targetWeightBps": 3000
}
],
"usdt": [
{
"yieldSourceId": "cash",
"targetWeightBps": 10000,
"token": "usdt",
"chain": "ethereum"
}
]
}
}{
"error": "Allocation percentages must sum to 100",
"code": "validation_error"
}{
"error": "Unauthenticated request",
"message": "Missing or invalid bearer token"
}{
"error": "Wallet not found",
"code": "wallet_not_found"
}{
"error": "requestId has already been used with a different payload",
"code": "request_id_conflict"
}{
"error": "Rate limit exceeded",
"code": "rate_limited"
}{
"error": "Internal server error",
"code": "internal_error"
}Wallets
Update wallet strategy
Replaces the included token strategy groups and preserves omitted groups. Idempotent on requestId — if a strategy update with the same requestId and identical allocations already exists, the current wallet is returned. If requestId was used with different allocations, a 409 request_id_conflict is returned.
PATCH
/
v2
/
wallets
/
{id}
/
strategy
Update wallet strategy
curl --request PATCH \
--url https://sandbox.groundtech.co/v2/wallets/{id}/strategy \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"requestId": "c3d4e5f6-0000-4000-8000-000000000001",
"allocations": {
"usdt": [
{
"yieldSourceId": "cash",
"pct": 100
}
]
}
}
'import requests
url = "https://sandbox.groundtech.co/v2/wallets/{id}/strategy"
payload = {
"requestId": "c3d4e5f6-0000-4000-8000-000000000001",
"allocations": { "usdt": [
{
"yieldSourceId": "cash",
"pct": 100
}
] }
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
requestId: 'c3d4e5f6-0000-4000-8000-000000000001',
allocations: {usdt: [{yieldSourceId: 'cash', pct: 100}]}
})
};
fetch('https://sandbox.groundtech.co/v2/wallets/{id}/strategy', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox.groundtech.co/v2/wallets/{id}/strategy",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'requestId' => 'c3d4e5f6-0000-4000-8000-000000000001',
'allocations' => [
'usdt' => [
[
'yieldSourceId' => 'cash',
'pct' => 100
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandbox.groundtech.co/v2/wallets/{id}/strategy"
payload := strings.NewReader("{\n \"requestId\": \"c3d4e5f6-0000-4000-8000-000000000001\",\n \"allocations\": {\n \"usdt\": [\n {\n \"yieldSourceId\": \"cash\",\n \"pct\": 100\n }\n ]\n }\n}")
req, _ := http.NewRequest("PATCH", url, payload)
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))
}HttpResponse<String> response = Unirest.patch("https://sandbox.groundtech.co/v2/wallets/{id}/strategy")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"requestId\": \"c3d4e5f6-0000-4000-8000-000000000001\",\n \"allocations\": {\n \"usdt\": [\n {\n \"yieldSourceId\": \"cash\",\n \"pct\": 100\n }\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.groundtech.co/v2/wallets/{id}/strategy")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"requestId\": \"c3d4e5f6-0000-4000-8000-000000000001\",\n \"allocations\": {\n \"usdt\": [\n {\n \"yieldSourceId\": \"cash\",\n \"pct\": 100\n }\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"id": "b1c2d3e4-0000-4000-8000-000000000001",
"label": "Corporate Treasury",
"createdAt": "2025-09-01T00:00:00Z",
"status": "idle",
"failureReason": null,
"depositAddresses": {
"arbitrum": "0xAbC1230000000000000000000000000000000001",
"base": "0xAbC1230000000000000000000000000000000001",
"ethereum": "0xAbC1230000000000000000000000000000000001",
"polygon": "0xAbC1230000000000000000000000000000000001",
"solana": "7vFgKxM3bP4oEFbqkPmA5E2rYJ8HqKz8abc1"
},
"balance": {
"totalUsd": "100.000000",
"withdrawableUsd": "100.000000",
"reservedUsd": "0.000000",
"earnedUsd": "5.000000"
},
"positions": [
{
"id": "syrup-usdc",
"kind": "yield_source",
"label": "Syrup USDC",
"valueUsd": "40.000000",
"pct": 40
},
{
"id": "morpho-gauntlet-usdc",
"kind": "yield_source",
"label": "Morpho Gauntlet USDC Prime",
"valueUsd": "30.000000",
"pct": 30
},
{
"id": "morpho-steakhouse-usdc",
"kind": "yield_source",
"label": "Morpho Steakhouse USDC Prime",
"valueUsd": "30.000000",
"pct": 30
}
],
"strategyAllocations": {
"usdc": [
{
"yieldSourceId": "syrup-usdc",
"targetWeightBps": 4000
},
{
"yieldSourceId": "morpho-gauntlet-usdc",
"targetWeightBps": 3000
},
{
"yieldSourceId": "morpho-steakhouse-usdc",
"targetWeightBps": 3000
}
],
"usdt": [
{
"yieldSourceId": "cash",
"targetWeightBps": 10000,
"token": "usdt",
"chain": "ethereum"
}
]
}
}{
"error": "Allocation percentages must sum to 100",
"code": "validation_error"
}{
"error": "Unauthenticated request",
"message": "Missing or invalid bearer token"
}{
"error": "Wallet not found",
"code": "wallet_not_found"
}{
"error": "requestId has already been used with a different payload",
"code": "request_id_conflict"
}{
"error": "Rate limit exceeded",
"code": "rate_limited"
}{
"error": "Internal server error",
"code": "internal_error"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Wallet ID
Body
application/json
Response
Strategy updated successfully
Compact wallet lifecycle and active-workflow status.
Available options:
creating, idle, withdrawal_active, rebalance_active, withdrawal_and_rebalance_active, failed Deposit addresses keyed by chain name.
Show child attributes
Show child attributes
Example:
{ "arbitrum": "0xAbC1230000000000000000000000000000000001", "base": "0xAbC1230000000000000000000000000000000001", "ethereum": "0xAbC1230000000000000000000000000000000001", "polygon": "0xAbC1230000000000000000000000000000000001", "solana": "7vFgKxM3bP4oEFbqkPmA5E2rYJ8HqKz8abc1" }
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Desired strategy targets grouped by stablecoin. Each returned group uses basis-point weights that sum to 10000.
Show child attributes
Show child attributes
⌘I