What is Breeze API?

Breeze API provides a simple and fast way to integrate Breeze’s risk-managed yield functionality into your application, offering the same familiar experience as traditional web2 APIs. With straightforward https endpoints and JSON responses, you can completely integrate Breeze into your existing app without requiring significant code rewrites or blockchain expertise from your development team. The API abstracts away the complexity of Solana blockchain interactions, allowing you to focus on building your user experience while leveraging Breeze’s sophisticated risk management and yield optimization features.

API Methods Overview

Portfolio Analytics

  • GET /user-yield/{user_id} - Get real-time portfolio value with optional currency conversion and filtering by fund or base asset.
  • GET /user-balances/{user_id} - Retrieve data about the earned yield by the user.

Transaction Generation

  • POST /deposit/ix - Generate Solana instructions for depositing funds into a Breeze fund.
  • POST /deposit/tx - Generate a complete, versioned serialized unsigned for depositing funds.
  • POST /withdraw/ix - Generate Solana instructions for withdrawing from a organization fund.
  • POST /withdraw/tx - Generate a complete, versioned serialized unsigned for withdrawing funds.
Best Practice: Always check current portfolio value before making transactions to ensure accurate calculations and optimal timing.