v1

latestOpenAPI 3.1.02026-07-2639148131.7 KB
creditbook

Swap collateral

Enables safe rebalancing of collateral by withdrawing a selected asset, executing CPIs (e.g. swaps or liquidity provision), and depositing a new asset in its place.

post/markets/creditbook/swap_collateral

Headers

Idempotent-Keystring nullable

Optional idempotency key; a retried write with the same key replays the original response

Request body

cpiLutsstring[]
cpiSignersstring[]
loanstring required

Response

Single versioned transaction message and signatures