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
Use as a library in a Java Project
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'
Choose Between Different Providers
import io .adabox .dextreme .provider .ApiProvider ;
ApiProvider apiProvider = new ApiProvider ();
import io .adabox .dextreme .provider .KoiosProvider ;
KoiosProvider koiosProvider = new KoiosProvider ("<API_TOKEN>" );
import io .adabox .dextreme .provider .BlockfrostProvider ;
BlockfrostProvider blockfrostProvider = new BlockfrostProvider ("<BF_PROJECT_ID>" );
Get Sundaeswap ADA/iBTC Liquidity Pool Pair
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 );
📐 Contributing