
Use the Tenor API to power your operations
Integrate borrowing and lending directly in your operations. Create actions, request quotes, and request live market data.
- 1Quote
- 2Prepare
POST/v1/quotes
{
"chain_id": 8453,
"action": "borrow",
"market": "EURC/USDC",
"term": ,
"size": { "principal": }
}ResponseEdit a value, then press Run


- 1Quote
- 2Prepare
{
"chain_id": 8453,
"action": "borrow",
"market": "EURC/USDC",
"term": ,
"size": { "principal": }
}Best route5.46% fixed


- 2Prepare
{
"chain_id": 8453,
"wallet": "0x7a3f…c91e",
"quote_id": "qt_01J9K2",
"size": { "principal": "2000000" },
"collateral": { "token": "EURC", "amount": "2150000" }
}Execute these 2 transactions
1/2
approve(spender, amount)68 bytes payload2/2
borrowRoute(legs[2], maxRate)356 bytes payload- 1Quote
- 2Prepare
{
"chain_id": 8453,
"action": "lend",
"market": "EURC/USDC",
"term": ,
"size": { "principal": }
}Best route5.23% fixed
Desk A1.2M USDC5.24%
Desk B800k USDC5.21%
- 2Prepare
{
"chain_id": 8453,
"wallet": "0x7a3f…c91e",
"term": "3M",
"size": { "principal": "2000000" }
}Execute these 2 transactions
1/2
approve(spender, amount)68 bytes payload2/2
lendRoute(legs[2], minRate)356 bytes payload- 1Post
- 2Track
{
"chain_id": 8453,
"wallet": "0x7a3f…c91e",
"side": "lend",
"term": "6M",
"rate": ,
"size": { "principal": }
}Execute these 2 transactions
1/2
approve(spender, amount)68 bytes payload2/2
postOffer(maturity, rate, maxAssets)100 bytes payload- 2Track
X-Api-Key: tnr_live_•••• // watch it fill
Offer live · 5.40% · 40% filled
Filled800,000 of 2,000,000 USDC
Matures7 Apr 2027
- 1Request
- 2Replies
- 3Take
{
"chain_id": 8453,
"side": "borrow",
"market": "EURC/USDC",
"term": ,
"size": { "principal": },
"makers": { "all": true }
}


- 2Replies
- 3Take
X-Api-Key: tnr_live_•••• // makers answer with firm offers



- 3Take
{
"chain_id": 8453,
"wallet": "0x7a3f…c91e",
"offer_id": "e7a0…",
"size": { "principal": "2000000" },
"collateral": { "token": "EURC", "amount": "2150000" }
}Execute these 2 transactions
1/2
approve(spender, amount)68 bytes payload2/2
take(offerId, amount, collateral)100 bytes payloadAccess real-time market data
Access market data, historical transactions, rates, get live RFQ views of active offers.
- Markets by loan token and collateral
- Top-of-book fixed rates across maturities
- Lend and borrow liquidity by rate, with the spread
- Every fill for a wallet, by maturity
- Status, fills and position changes of one transaction
- Your requests for quote, or your inbox as a lender
- One request with the offers that answer it
- A maker's offers with their live status
- Positions by side, rate type and market
- Token balances for a wallet
- Approvals and authorizations still needed to trade
Create transaction payloads
Tenor's API handles transaction bundling, token approvals, signatures and wallet compatibility across EOAs, Safes, smart accounts and vaults. Each payload is simulated and checked against invariants while it is built, before it reaches your signer.
- Borrow and lend
/borrow/prepare, /lend/prepare - Repay and withdraw
/repay/prepare, /redeem/prepare - Add or remove collateral
/manage/prepare - Auto-renewal
/renew/prepare
Answer requests programmatically
Lenders can respond to requests for quote programmatically directly through the API.
Get access