Skip to main content

Monitoring & API

The Tenor API returns position data for the wallets of an organization and prepares the same actions as the dashboard. The API returns quotes and ready-to-sign transactions. Your wallets, Safes or custodian sign and send every transaction, and Tenor does not hold your private keys.

Monitoring​

The API returns, for every wallet in the organization:

  • Positions: fixed and variable lends and borrows, with size, collateral, health, liquidation price, maturity and auto-renewal setting.
  • PnL: the average rate of each position, and its realized and unrealized interest, in the token and in USD.
  • Fills and transactions: every fill a wallet took part in, and the effect of each confirmed transaction.
  • Markets and rates: supported markets, the live term structure across maturities, and the open offers behind each rate.
  • Offers: each resting offer with its live status, and whether the wallet can still fill the offer, covering authorizations, allowances and balances.

Reads and quotes are public, so a monitoring tool can read any wallet without an API key.

Actions​

With an API key, the API prepares every action for your wallets to sign:

  • Lend and borrow: at the market rate, or post the rest as an offer at your rate.
  • Exit: repay a borrow, resell a lend before maturity, or redeem a lend at maturity.
  • Manage collateral: add or remove collateral on existing positions.
  • Renew: roll a position into a later maturity, set auto-renewal, or move a variable borrow to a fixed rate.
  • Offers and passive quoting: post and cancel offer ladders, or quote a whole market from one rate curve.

The API simulates every transaction and runs the checks listed under Payloads before returning the payload, and builds the transactions for an EOA, a Safe or a smart account.

Access

API keys are issued by the Tenor team for your organization. Email contact@tenor.finance to get one.