Alex
Supported Chains
Available on Stacks Mainnet.
Available Endpoints:
Click on the endpoint to jump to the section with full details
/getprice
GET
- Returns the swap quotation for a given token pair on Uniswap V3./getuserliquidity
GET
- Returns the balance of a particular token pair of accounts./getpoolliquidity
GET
- Returns the total liquidity for a specified pool./gettokenliquidity
GET
- Returns the individual token liquidity within the specified liquidity pool./gettokenidprice
GET
- Returns the USD price of the liquidity token of a particular pool./swap
POST
- Initiate a swap transaction on a specified DEX.
DEX IDs
Many endpoints have a parameter where you can provide a DEX ID.
Below is a list of DEX IDs related to Alex. For a complete list and more information, please see the DEX ID page.
Alex
Stacks
3100
Endpoint Details
/getprice
Returns the swap quotation for a given token pair.
GET
https://api.expand.network/dex/getprice
Query Parameter
rpc
String
Remote procedural call URL.
dexId*
String
amountIn*
String
Amount of token.
path*
String
Comma separated values of token addresses whose price is to be fetched.
/getuserliquidity
Returns the total liquidity (amount of liquidity pool token) that a user holds.
GET
https://api.expand.network/dex/getuserliquidity
Query Parameter
rpc
String
Remote procedural call URL.
dexId*
String
address*
String
Public address of liquidity provider.
poolId*
String
pool id of pair
/getpoolliquidity
Returns the total liquidity for a specified pool.
GET
https://api.expand.network/dex/getpoolliquidity
Query Parameter
rpc
String
Remote procedural call URL.
dexId*
String
poolId*
String
Pool Id whose liquidity is to be fetched.
/gettokenliquidity
Returns the individual token liquidity within the specified liquidity pool.
GET
https://api.expand.network/dex/gettokenliquidity
Query Parameter
rpc
String
Remote procedural call URL.
dexId*
String
poolId*
String
Pool Id whose liquidity is to be fetched.
/gettokenidprice
Returns the USD price of the liquidity token of a particular pool.
GET
https://api.expand.network/dex/gettokenidprice
Query Parameter
rpc
String
Remote procedural call URL.
dexId*
String
poolId*
String
Pool Id whose USD price of liquidity token is to be fetched.
/swap
Initiate a swap transaction on a specified DEX.
POST https://api.expand.network/dex/swap
Request Body
rpc
String
Remote procedural call URL.
dexId*
String
path*
String
Comma-separated values of token addresses, inside an array, to swap. Note: For assets other than XLM (Native token), the token issuer is required.
amountIn*
String
Amount of token to be swapped.
amountOutMin*
String
Minimum amount accepted as the result of swap.
from*
String
Address of the sender of the token.
slippage
String
Percentage of total swap value. By default, 1.
0 <= slippage value <= 10
Last updated