Skip to main content
POST
/
markets
/
creditbook
/
sell
Sell ledger
curl --request POST \
  --url https://tars.loopscale.com/v1/markets/creditbook/sell \
  --header 'Content-Type: application/json' \
  --header 'user-wallet: <user-wallet>' \
  --data '
{
  "loan": "<string>",
  "oldStrategy": "<string>",
  "newStrategy": "<string>",
  "sellParams": {
    "ledgerIndex": 123,
    "expectedSalePrice": 123,
    "assetIndexGuidance": [
      123
    ]
  }
}
'
{
  "message": "<string>",
  "signatures": [
    {
      "publicKey": "<string>",
      "signature": "<string>"
    }
  ]
}

Headers

user-wallet
string
required

Wallet address of the lender selling the ledger.

payer
string

Optional fee payer. Defaults to user-wallet when omitted.

Body

application/json
loan
string
required
oldStrategy
string
required
newStrategy
string
required
sellParams
object
required

Response

Serialized transaction for selling the targeted ledger.

message
string
required

Base64-encoded versioned transaction message

signatures
object[]
required