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
Initialize the SDK with the Constructor.
Sync strategy data by calling startDataSync.
Generate a trade route using getTradeData.
Generate a trade transaction, using either:
Sign and submit the unsigned transaction to the blockchain.
Last updated