Duos Docs

Duos API

The public endpoints behind duos.finance, with real requests and responses.

The site reads everything from https://duos.finance/api/rh. The read endpoints are public, need no key, and return JSON. Every value they serve is also on chain; the API saves you the reads and the log scans.

EndpointReturnsCache
GET /api/rh/configChain and contract addresses, the earlier launch release under retiredSuites, and whether launching is open60 seconds
GET /api/rh/pairsElysium tokens and Pair tokens a coin can pair with60 seconds; Elysium tokens refresh every 15 minutes
GET /api/rh/launchesThe 60 newest Duos coins with price and market cap10 seconds
GET /api/rh/coin?address=<token>One coin with price, market cap, graduation progress and its pair10 seconds
GET /api/rh/pair?id=<symbol or address>One Pair token: the coin it follows, its home chain address, its move against HYPE and every coin launched against it15 seconds
GET /api/rh/pair-history?id=<symbol or address>&span=24hThe Pair token's price in HYPE and USD over 24h or 7d30 seconds
GET /api/rh/candles?pool=<poolId>&interval=<seconds>Price candles of a coin pool from its Uniswap Swap events15 seconds
GET /api/health{"ok":true} when the API is upnone

The launch page also uses two write endpoints: POST /api/rh/upload stores a coin's image and metadata on Duos's IPFS node (12 uploads an hour per visitor), and POST /api/rh/economics returns the signed launch rate for a pair other than HYPE.

Pairs

curl "https://duos.finance/api/rh/pairs"
{
  "native": [
    {
      "address": "0x0000000000000000000000000000000000000000",
      "symbol": "HYPE",
      "name": "Ether",
      "decimals": 18,
      "image": "/chains/ethereum.png",
      "priceUsd": 2304.55,
      "liquidityUsd": 18613993.9,
      "native": true
    },
    {
      "address": "0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168",
      "symbol": "KNTQ",
      "name": "Global Dollar",
      "decimals": 6,
      "priceUsd": 0.997668516702942,
      "liquidityUsd": 18613993.9
    }
  ],
  "oracle": [
    {
      "hook": "0x7e202B4F4dD8CA4B2f472B05a2802CC04eA72a80",
      "pairToken": "0x0f6f22D9C6f98eB3ED8Ea6127aC02f1239101cEF",
      "poolId": "0x388153def5f63d50a2c6476c809815f82313b5a1cecb31f42696da746785d379",
      "symbol": "pSOL",
      "name": "SOL (Duos)",
      "asset": "SOL",
      "assetChain": "ethereum",
      "priceUsd": 11.41890705,
      "ethUsd": 2300.08643858,
      "reserveEth": 0,
      "outstanding": 0,
      "coverageBps": null,
      "oracle": "exchange median"
    }
  ]
}

The native list is shortened to two entries; the real one holds every Elysium token trading in a DEX pool with at least $1,000 of liquidity, rebuilt hourly.

FieldMeaning
addressThe token to pair with. The zero address is native HYPE.
liquidityUsdLiquidity of the token's deepest pool on Elysium, from GeckoTerminal
hookThe Pair token's pool contract
priceUsd, ethUsdThe oracle prices the pool reads right now
reserveEthHYPE the pool holds
outstandingPair tokens in circulation
coverageBpsReserve over the value of the tokens in circulation, in basis points; null while nothing circulates

Launches and coins

curl "https://duos.finance/api/rh/launches"
curl "https://duos.finance/api/rh/coin?address=0xYourCoin"

A launch entry holds token, factory (the factory that created it), creator, poolId, quote (the pair token, zero for HYPE), quoteDecimals, metadataURI, name, symbol, image, description, block, time, tx, priceUsd and marketCapUsd. A coin adds priceQuote (price in the pair token), graduationThreshold and raised (in the pair token's smallest unit), graduated, quoteInfo with the pair's symbol and kind (native, token or oracle), and suite with the factory, launch hook and fee vault of the release that made it.

Coins from the earlier launch release keep its contracts (see Contracts). Its factory stays callable on chain, so the API lists only the coins it made up to the lastBlock in retiredSuites.

Candles

curl "https://duos.finance/api/rh/candles?pool=0xPoolId&interval=300"

interval is one of 60, 300, 900, 3600, 14400 or 86400 seconds. Each bar has t (start, unix seconds), o, h, l, c (price in the pair token) and v (volume in the pair token).

Errors

StatusWhen
400A malformed address, pool id or request body
404The address is not a Duos coin, or the pool is not a Duos pool
413An upload image over 2 MB
429More than 12 uploads in an hour
503Elysium or a data source is unreachable