Performing Trades

Carbon DeFi orders are built as an individual concentrated pools of one directional liquidity. Given that, when trading on carbon DeFi, you would need to indicate the orders you would like to use in order to fulfill your trade.

The SDK uses it's trade-matching algorithm to generate trade routes through Carbon DeFi strategies.

To Trade

  1. Initialize the SDK with the Constructor.

  2. Sync strategy data by calling startDataSync.

  3. Generate a trade route using getTradeData.

  4. Generate a trade transaction, using either:

  5. Sign and submit the unsigned transaction to the blockchain.

Last updated