Skip to main content
POST
/
markets
/
strategy
/
update
Update strategy
curl --request POST \
  --url https://tars.loopscale.com/v1/markets/strategy/update \
  --header 'Content-Type: application/json' \
  --header 'User-Wallet: <user-wallet>' \
  --data '
{
  "strategy": "<string>",
  "collateralTerms": {
    "addCollateral": {},
    "removeCollateral": {},
    "updateCollateral": {},
    "updateAssetAllocation": [
      {
        "assetIdentifier": "<string>",
        "maxAllocationPct": "<string>"
      }
    ]
  },
  "updateParams": {
    "originationsEnabled": true,
    "liquidityBuffer": 123,
    "interestFee": 123,
    "originationFee": 123,
    "principalFee": 123,
    "originationCap": 123,
    "externalYieldSource": {
      "newExternalYieldSource": 123
    }
  }
}
'
[
  {
    "message": "<string>",
    "signatures": [
      {
        "publicKey": "<string>",
        "signature": "<string>"
      }
    ]
  }
]

Headers

User-Wallet
string
required

Wallet address of the lender managing the strategy.

payer
string

Optional fee payer. Defaults to the User-Wallet address when omitted.

Body

application/json
strategy
string
required

Onchain address of the strategy to update.

collateralTerms
object
updateParams
object

Response

One or more serialized transactions needed to apply the strategy update.

message
string
required

Base64-encoded versioned transaction message.

signatures
object[]
required