Skip to main content
POST
/
markets
/
quote
/
max
Get max quote
curl --request POST \
  --url https://tars.loopscale.com/v1/markets/quote/max \
  --header 'Content-Type: application/json' \
  --header 'user-wallet: <user-wallet>' \
  --data '{
  "durationType": 123,
  "duration": 123,
  "principalMint": "<string>",
  "collateralFilter": [
    {
      "amount": 123,
      "assetData": {
        "Spl": {
          "mint": "<string>"
        }
      }
    }
  ]
}'
[
  {
    "apy": 100000,
    "strategy": "9rQ8Q4tMUDhT",
    "collateralIdentifier": "So11111111111111111111111111111111111111112",
    "ltv": 600000,
    "lqt": 800000,
    "amount": 12000000000
  }
]

Headers

user-wallet
string
required

Wallet address of the requesting user

Body

application/json
durationType
number
required

Duration type enum (0 = days, 1 = weeks, 2 = months, 3 = minutes, 4 = years)

duration
number
required

Number of units of the specified durationType

principalMint
string
required

Token mint address of the principal

collateralFilter
object[]
required

Mapping from collateral mint to detailed collateral metadata

Response

Best matching quote per collateral asset

Array of quotes with collateral and strategies

apy
number

Annualized interest rate in 1/100th of a basis point

strategy
string

Lender who is offering the quote

collateralIdentifier
string

Collateral mint pubkey

ltv
number

Maximum initial loan to value in 1/100th of a basis point

lqt
number

Liquidation loan to value in 1/100th of a basis point

amount
number

Maximum amount that can be borrowed, in lamports

I