Monitoring, API & SDK
Tenor Prime accounts get programmatic access to the same data and actions that power the dashboard, through the Tenor GraphQL API for queries and the Tenor SDK for transactions.
Monitoring
The GraphQL API aggregates onchain data from the Tenor indexer into a single query interface, so you can fetch positions, the current yield curve across maturities, and historical PnL.
You can monitor:
- Positions: active borrow and lend positions across every wallet and vault in the organization, including size, collateral, maturity, and renewal status.
- PnL: realized and unrealized profit and loss across positions.
- Transactions: historical transaction activity.
- Activity: actions taken by each role within the organization.
- Markets: supported markets and available liquidity.
- Rates: current and historical rates across maturities.
- Offers: available offers in the RFQ, with the current validity state of each one covering authorization, funding, and approval.
API access is whitelisted to partners. Reach out to contact@tenor.finance to request access.
SDK
The Tenor SDK is a TypeScript library for building and executing transactions on Tenor. It handles transaction bundling, token approvals, signature management, and wallet compatibility across EOA, Safe, and smart-account wallets.
The SDK covers:
- Borrow and lend: take offers at spot or place limit orders.
- Repay and withdraw: close positions and reclaim funds.
- Manage collateral: add or remove collateral on existing positions.
- Configure auto-renewal: enable fixed-to-fixed or fixed-to-variable rolling.
See the SDK reference for hooks, the ActionsBuilder, and the lower-level bundler.