API
Last updated
The Definitive API lets others build on Definitive’s yield and execution infrastructure. The API streamlines and standardizes multiple DeFi protocols within a single unified strategy interface. Today, with just a few lines of code, wallets, custodians, and aggregators can easily launch a DeFi Earn product for their users with Definitive’s powerful infra as foundational bedrock!
Checkout the API Docs below or view the OpenAI spec at https://api.definitive.fi/docs#/. Reach out to support@definitive.fi if you'd like to integrate and we can set you up with an API key.
Check out the detailed integration guide here.
Request a payload to sign and send to chain
/vaults/{id}/deposit/{address}
vault ID
user address
A map of the underlying tokens being deposited as address:amount
do not simulate the transaction
Optional. Slippage tolerance when converting underlying to shares
Get historical data for a vault monitor
/vaults/{id}/monitors/{type}/history
vault ID
monitor type
required if asset pair monitor
start timestamp
end timestamp
max datapoints
pagintation token
Get historical NAV of a vault for an address
/vaults/{id}/position/{address}/historical_nav
vault ID
user address
start timestamp
end timestamp
max datapoints
pagintation token
Request a payload to sign and send to chain
/vaults/{id}/withdraw/{address}
vault ID
user address
Optional. Specify additional withdrawal fee percentage.
Optional. Slippage tolerance when converting underlying to shares
Specify number of shares to withdraw.
Optional. Specify if the request is for one underlying asset.