- Pull Liquidity Pools from DEX APIs or On-chain using Blockfrost / Koios
- Explore the Best Prices for Swaps by comparing between all supported DEXs
- Build Swap Datums across multiple DEXs
- Query Token Pairs Price Charts
- For Maven, add the following dependency to project's pom.xml
<dependency>
<groupId>io.adabox</groupId>
<artifactId>dextreme-sdk</artifactId>
<version>1.0.5</version>
</dependency>
- For Gradle, add the following dependency to build.gradle
compile group: 'io.adabox', name: 'dextreme-sdk', version: '1.0.5'
- API
import io.adabox.dextreme.provider.ApiProvider;
ApiProvider apiProvider = new ApiProvider();
- Koios
import io.adabox.dextreme.provider.KoiosProvider;
KoiosProvider koiosProvider = new KoiosProvider("<API_TOKEN>");
- Blockfrost
import io.adabox.dextreme.provider.BlockfrostProvider;
BlockfrostProvider blockfrostProvider = new BlockfrostProvider("<BF_PROJECT_ID>");
import io.adabox.dextreme.DexFactory;
import io.adabox.dextreme.dex.base.DexType;
import static io.adabox.dextreme.model.AssetType.ADA;
import static io.adabox.dextreme.model.AssetType.iBTC;
Dex sundaeSwapDex = DexFactory.getDex(DexType.Sundaeswap, blockfrostProvider);
Asset assetA = ADA.getAsset();
Asset assetB = iBTC.getAsset();
List<LiquidityPool> liquidityPoolList = sundaeSwapDex.getLiquidityPools(assetA, assetB);