Skip to main content
POST
/
markets
/
strategy
/
create
Create strategy
curl --request POST \
  --url https://tars.loopscale.com/v1/markets/strategy/create \
  --header 'Content-Type: application/json' \
  --header 'payer: <payer>' \
  --data '
{
  "principalMint": "<string>",
  "lender": "<string>",
  "amount": 123,
  "originationsEnabled": true,
  "liquidityBuffer": 123,
  "interestFee": 123,
  "originationFee": 123,
  "originationCap": 123,
  "collateralTerms": [
    {
      "apy": 123,
      "indices": [
        {
          "collateralIndex": 123,
          "durationIndex": 123
        }
      ]
    }
  ],
  "marketInformation": "<string>",
  "externalYieldSourceArgs": {
    "newExternalYieldSource": 123,
    "createExternalYieldAccount": true
  }
}
'
[
  {
    "message": "<string>",
    "signatures": [
      {
        "publicKey": "<string>",
        "signature": "<string>"
      }
    ]
  }
]

Headers

payer
string
required

Wallet that pays transaction fees. If you normally use the same wallet as the lender, pass that wallet here.

Body

application/json
principalMint
string
required

Mint address of the principal asset the strategy will lend.

lender
string
required

Wallet that will own and fund the strategy.

amount
number
required

Initial principal amount to deposit into the strategy, in native token units.

originationsEnabled
boolean

Whether the strategy should accept new originations immediately.

liquidityBuffer
number

Amount of principal to reserve as idle liquidity.

interestFee
number

Interest fee charged by the strategy, in cBPS.

originationFee
number

Origination fee charged by the strategy, in cBPS.

originationCap
number

Maximum amount of principal that can be originated.

collateralTerms
object[]

Optional collateral-term presets to initialize on the strategy.

marketInformation
string

Optional verified market information account to bind to the strategy.

externalYieldSourceArgs
object

Response

One or more serialized transactions needed to create and fund the strategy.

message
string
required

Base64-encoded versioned transaction message.

signatures
object[]
required