/
SW
swap
/
Swap Coffee API
Search skmtc…
⌘K
Docs
Sign in
Sign in
APIs
Generators
Stacks
Projects
Docs
History
Schema
Checked 5h ago · Updated 5h ago
Details
Auth
4
get
List existing auth tokens
post
Create new auth token
delete
Delete existing auth token
patch
Edit existing auth token
Boosts
8
get
Returns pool's aggregated APR
get
Returns list of boosts for the pool
get
Returns user's earned boosts in given pool
post
Build transaction to create boost for pool in swap.coffee DEX
get
Get detailed info about boost. Works for Coffee DEX pools only
post
Build transaction to create stonfi farm position
delete
Build transaction to close farm position in stonfi
get
Returns status of new boost creation operation. Works for Coffee DEX pools only
Cashback
6
get
Get cashbacks info
post
Create new cashback distribution. For internal usage only
get
Get cashback info
patch
Update cashback information. For internal usage only
get
Get cashback total info for user
get
Get cashback promos rewards for user
Claim
5
get
Get account's claiming stats
post
Claim tokens
get
Get state of account claimings
get
Get claiming transaction execution result
post
Transfer available in claim-center tokens from one account to another. For internal usage only
Contests
7
get
Get contests
post
Create new contest. For internal usage only
get
Get contest
patch
Update existing contest. For internal usage only
get
Get user stats for contest
get
Get top users' stats for contest
post
Payout rewards for this contest in token. For internal usage only
DEX
4
get
Get address of the vault of the given asset
post
Build transaction to create vault for the given asset
get
Get dex pools by filter
post
Build transactions to create pool of the given asset pair
DexTrades
7
get
OHLCV candles for a token in a single pool (USD). Ascending by time.
get
Pools of a token with TVL and 24h volume. TVL-known pools first (TVL desc).
get
Recent trades for a token (latest first).
get
Volumes, trade counts and unique traders over a window.
get
Current USD price and market cap (FDV) of a token.
get
Relative price change over a window (single pool).
get
Tokens with trades within the last active_within seconds, with metrics per window.
Entity
16
get
Get supported blockchains. Currently only TON is supported.
get
Returns list of supported decentralized exchanges supported by the service in the given blockchain
get
Returns information about the given decentralized exchange for the given blockchain
get
Returns list of liquid staking pools
get
Returns staking pool for given address
get
Returns list of pools which correspond to the given params
delete
Clear pools metadata cache. For internal usage only
get
Returns trading metrics for pools
get
Returns information about the given liquidity pool for the given blockchain
post
Updates pool's data. For internal usage only
get
Returns list of pools associated with given token
get
Returns list of tokens supported by the service
get
Returns list of tokens supported by the service
get
Returns information about the given token for the given blockchain
get
Returns information about the given token by its symbol for the given blockchain
post
Returns prices for given tokens
LiquidityProvisioning
9
get
Return information about user's LP position in pool
post
Build transactions to provide liquidity to the given pool
delete
Build transaction to withdraw liquidity from the given pool
get
Returns pools on Coffee DEX that correspond to the pools of provided addresses
get
Returns list of pools from which user may migrate tokens
post
Build transaction to migrate LP to swap.coffee DEX
get
Returns list of pools that are possible for migration of LP.
get
Returns pool total supply
get
Returns status of liquidity provisioning operation
Partnership
10
get
Get raw transaction records with specified partner's referral address. Requires associated x-api-key.
get
Get partner settings. For internal usage only
post
Set partner settings. For internal usage only
delete
Delete partner settings. For internal usage only
get
Get token claiming global stats. Requires associated x-api-key.
get
Get token claiming user stats. Requires associated x-api-key.
post
Accrue token to claim center. Requires associated x-api-key.
post
Register new partner token for claiming center. For internal usage only.
patch
Increase total amount of existing partner token within claiming center. For internal usage only.
get
Get aggregated information about staking for specific user. Requires associated x-api-key.
Profile
4
get
Get historical account transactions on swap.coffee
post
Validate TON proof for given account address
get
Get account settings
post
Update account settings
Referral
8
get
Get account's referral info
post
Bind new referral
delete
Unbind existing referral. For internal usage only.
patch
Update referral's info. For internal usage only.
get
Get account's list of referrals
get
Get address for alias
post
Set referral address alias
delete
Delete address alias
Routing
8
post
Returns the best route for the given trade pair
post
Returns the best route for the given list of input tokens and output token
post
Returns the best route for the given trade pair using smart settings
post
Returns pre-built transactions for the given route. It is assumed that transactions will be signed and sent by the sender via wallet
post
Returns pre-built transaction for the given unstake request. It is assumed that transaction will be signed and sent by the sender via wallet
post
Returns pre-built transaction for the given stake request. It is assumed that transaction will be signed and sent by the sender via wallet
get
Get route transactions execution result
get
Get route transactions execution result
Staking
9
get
Get all stakings
get
Get staking transaction execution result
get
Get aggregated information about staking
get
Get aggregated information about staking for specific user
get
Get user's staking points
get
Get user's balances of staked tokens
post
Build transaction to create new staking position
post
Build transaction to extend existing position
delete
Build transaction to close position and withdraw all money
Statistics
1
get
Get generic statistic of dex aggregation.
Strategies
14
get
Check whether strategies wallet exists for given account address.
post
Get pre-built transaction for strategies wallet creation.
get
Checks whether user is eligible for using strategies
get
Get list of supported from-tokens for strategies
get
Get list of supported to-tokens for strategies for given from-token
get
Get strategy orders
get
Get strategy order
post
Get pre-built transaction for strategy order creation
delete
Get pre-built transaction for strategy order cancellation
delete
Cancel strategy order by id. For internal usage only.
delete
Cancel all strategy orders by proxy wallet. For internal usage only.
delete
Cancel all strategy orders by given token pair. For internal usage only.
delete
Cancel all strategy orders. For internal usage only.
post
Make a payout from strategy wallet to wallet's owner. For internal usage only.
Ton
2
get
Returns wallet version and revision
get
Get wallet balance in nanotons (1e-9 TON)
Yield
7
get
Returns list of pools which correspond to the given params
get
Returns detailed information about requested pool
get
Returns total TVL in USD across all yield pools which contain the given token
get
Returns LP token addresses of top 100 dex pools containing the given token, ordered by liquidity descending
get
Returns detailed information about user's position in the pool
post
Interact with yield pool
get
Returns status of interaction with yield pool operation
Entity
Get supported blockchains. Currently only TON is supported.
get
/v1/blockchains
Response
list of blockchains
ApiBlockchain[]
required
name
string
required
Example response
[ { "name": "ton" } ]