Skip to content

adabox-aio/dextreme-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dextreme SDK

Supported DEXs

Features

  • 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

Add dependency

  • 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

  • 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>"); 

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

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages