Skip to main content
Create a new automation rule for your treasury operations.

Request Body

{
  "accountId": "string",
  "strategyId": "string",
  "type": "sweep" | "rebalance" | "yield",
  "status": "active" | "paused",
  "conditions": {
    "trigger": "balance_threshold" | "time_based" | "apy_change",
    "value": "string"
  },
  "actions": {
    "type": "transfer" | "deposit" | "withdraw",
    "params": {}
  }
}

Response

Returns the created rule.
{
  "rule": {
    "id": "string",
    "accountId": "string",
    "status": "active",
    "createdAt": "timestamp"
  }
}