USDD 백서

bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 12쪽 중 6쪽

**Overview.** Real-time cross-chain core metrics for the USDD protocol.\ Typical use: a protocol dashboard snapshot.\ When not to use: for 24-hour deltas use §6.7; for `totalCollateralValue` use §6.7 (this endpoint does not return it); for history use §6.8–§6.10. **Endpoint.** <mark style="color:blue;">`GET /api/v1/market-site/overview`</mark> — Base URL & auth see §1. **Request parameters.** None. **Request example.** ```json curl "https://openapi.usdd.io/api/v1/market-site/overview" ``` **Response fields.** <table><thead><tr><th width="154.62109375">Field</th><th width="111.359375">Type</th><th width="115.34375">Existence</th><th width="109.890625">Unit</th><th>Description</th></tr></thead><tbody><tr><td>totalSupply</td><td>number</td><td>always</td><td>USDD</td><td>Total USDD circulating supply across all chains</td></tr><tr><td>totalSupplyValue</td><td>number</td><td>always</td><td>USD</td><td>Total value of USDD + sUSDD across all chains</td></tr><tr><td>tvl</td><td>number</td><td>always</td><td>USD</td><td>Protocol total collateral locked value</td></tr><tr><td>earnTvl</td><td>number</td><td>always</td><td>USD</td><td>Earn (DSR) module locked value</td></tr><tr><td>tronApy</td><td>number</td><td>always</td><td>decimal</td><td>Current DSR APY on TRON</td></tr><tr><td>ethApy</td><td>number</td><td>always</td><td>decimal</td><td>Current DSR APY on Ethereum (precision up to 29 digits)</td></tr><tr><td>bscApy</td><td>number</td><td>always</td><td>decimal</td><td>Current DSR APY on BNB Chain (precision up to 29 digits)</td></tr></tbody></table> **Response example.** ```json { "code": 0, "message": "SUCCESS", "data": { "totalSupply": 1228735758.44, "totalSupplyValue": 1520297361.08, "tvl": 2325598188.48, "earnTvl": 291561602.64, "tronApy": 0.04, "ethApy": 0.04000000189078800616471198737, "bscApy": 0.04000000189078800616471198737 } } ``` **Errors.** See §3. *** ### 6.7 Protocol Overview (with 24h change) <a href="#id-20" id="id-20"></a> **Overview.** Aggregated protocol metrics with 24-hour deltas. Authoritative source for `totalCollateralValue` and `earnSa`.\ Typical use: a dashboard that shows day-over-day movement.\ When not to use: for a plain real-time snapshot use §6.6. **Endpoint.** <mark style="color:blue;">`GET /api/v1/data-platform/overview/info`</mark> — Base URL & auth see §1. **Request parameters.** None. **Request example.** ```json curl "https://openapi.usdd.io/api/v1/data-platform/overview/info" ``` **Response fields.** <table><thead><tr><th width="190.2734375">Field</th><th width="110.0390625">Type</th><th width="115.80859375">Existence</th><th width="109.70703125">Unit</th><th>Description</th></tr></thead><tbody><tr><td>totalSupplyValue</td><td>string</td><td>always</td><td>USD</td><td>Total value of USDD + sUSDD across all chains</td></tr><tr><td>totalSupplyValueDailyChange</td><td>string</td><td>always</td><td>USD</td><td>Change versus the previous day of <code>totalSupplyValue</code></td></tr><tr><td>totalCollateralValue</td><td>string</td><td>always</td><td>USD</td><td>Total collateral value across all chains</td></tr><tr><td>totalCollateralValueDailyChange</td><td>string</td><td>always</td><td>USD</td><td>Change versus the previous day of <code>totalCollateralValue</code></td></tr><tr><td>earnTvl</td><td>string</td><td>always</td><td>USD</td><td>Earn module locked value</td></tr><tr><td>earnTvlDailyChange</td><td>string</td><td>always</td><td>USD</td><td>Change versus the previous day of <code>earnTvl</code></td></tr><tr><td>earnSa</td><td>string</td><td>always</td><td>USD</td><td>Cumulative investment profits generated across all Vaults on every chain</td></tr><tr><td>earnSaDailyChange</td><td>string</td><td>always</td><td>USD</td><td>Change versus the previous day of <code>earnSa</code></td></tr></tbody></table> **Response example.** ```json { "code": 0, "message": "SUCCESS", "data": { "totalSupplyValue": "1520295454.82", "totalSupplyValueDailyChange": "-4718213.19", "totalCollateralValue": "2314589444.69", "totalCollateralValueDailyChange": "-3657583.32", "earnTvl": "291561602.64", "earnTvlDailyChange": "-3009326.74", "earnSa": "17454150.49", "earnSaDailyChange": "44532.14" } } ``` **Errors.** See §3. `*DailyChange` values can be negative — that is normal. *** ### 6.8 DSR APY (current / average / history) <a href="#id-21" id="id-21"></a> **Overview.** Aggregate current and historical-average APY, plus a per-chain daily time series.\ Typical use: render an APY history chart.\ When not to use: for just the current APY use §6.3 or §6.6. **Endpoint.** <mark style="color:blue;">`GET /api/v1/market-site/overview/apy`</mark> — Base URL & auth see §1. **Request parameters.** None. **Request example.** ```json curl "https://openapi.usdd.io/api/v1/market-site/overview/apy" ``` **Response fields.** <table><thead><tr><th width="190.06640625">Field</th><th width="105.03515625">Type</th><th width="115.30859375">Existence</th><th width="112.15234375">Unit</th><th>Description</th></tr></thead><tbody><tr><td>averageApy</td><td>string</td><td>always</td><td>decimal</td><td>Cross-chain historical average APY</td></tr><tr><td>currentApy</td><td>string</td><td>always</td><td>decimal</td><td>Cross-chain current APY</td></tr><tr><td>items[]</td><td>array</td><td>always</td><td>—</td><td>Per-chain breakdown</td></tr><tr><td>items[].chain</td><td>string</td><td>always</td><td>enum</td><td><code>tron</code> / <code>eth</code> / <code>bsc</code></td></tr><tr><td>items[].currentApy</td><td>string</td><td>always</td><td>decimal</td><td>Current APY for the chain</td></tr><tr><td>items[].averageApy</td><td>string</td><td>always</td><td>decimal</td><td>Historical average APY for the chain</td></tr><tr><td>items[].items[]</td><td>array</td><td>always</td><td>—</td><td>Per-chain APY time series</td></tr><tr><td>items[].items[].statisticTime</td><td>number</td><td>always</td><td>epoch ms</td><td>Timestamp</td></tr><tr><td>items[].items[].apy</td><td>string</td><td>always</td><td>decimal</td><td>APY value at that point</td></tr></tbody></table> **Response example (truncated).** ```json { "code": 0, "message": "SUCCESS", "data": { "averageApy": "0.07510406", "currentApy": "0.04000000", "items": [ { "chain": "eth", "currentApy": "0.04000000189078800616471198737", "averageApy": "0.07572265", "items": [ { "statisticTime": 1757088000000, "apy": "0" }, { "statisticTime": 1759161600000, "apy": "0.11999999670235172999355199863" } ] } ] } } ``` **Errors.** See §3. Context tip (§2.6): the nested `items[].items[]` series can be long. *** ### 6.9 USDD Total Supply History <a href="#id-22" id="id-22"></a> **Overview.** Daily history of USDD and sUSDD supply across the three chains.\ Typical use: render a Total Supply line chart.\ When not to use: for the current value use §6.4 / §6.5. **Endpoint.** <mark style="color:blue;">`GET /api/v1/data-platform/overview/supply-value-history`</mark> — Base URL & auth see §1. **Request parameters.** None. **Request example.** ```json curl "https://openapi.usdd.io/api/v1/data-platform/overview/supply-value-history" ``` **Response fields.** `data` is an array; each element: <table><thead><tr><th width="131.91796875">Field</th><th width="115.4765625">Type</th><th width="115.23046875">Existence</th><th width="115.4140625">Unit</th><th>Description</th></tr></thead><tbody><tr><td>statisticTime</td><td>number</td><td>always</td><td>epoch ms</td><td>Timestamp</td></tr><tr><td>usdd</td><td>string[3]</td><td>always</td><td>USDD</td><td>USDD amount per chain, order <code>[tron, eth, bsc]</code></td></tr><tr><td>susdd</td><td>string[3]</td><td>always</td><td>sUSDD</td><td>sUSDD amount per chain, order <code>[tron, eth, bsc]</code></td></tr></tbody></table> **Response example (truncated).** ```json { "code": 0, "message": "SUCCESS", "data": [ { "statisticTime": 1737302400000, "usdd": ["10.00000", "0", "0"], "susdd": ["0", "0", "0"] } ] } ``` **Errors.** See §3. Context tip (§2.6): the array spans the full protocol history. *** ### 6.10 Total Collateral Value History <a href="#id-23" id="id-23"></a> **Overview.** Daily history of total collateral value across the three chains.\ Typical use: render a Collateral Value line chart.\ When not to use: for the current value use §6.7. **Endpoint.** <mark style="color:blue;">`GET /api/v1/data-platform/overview/collateral-value-history`</mark> — Base URL & auth see §1. **Request parameters.** None. **Request example.** ```bash curl "https://openapi.usdd.io/api/v1/data-platform/overview/collateral-value-history" ``` **Response fields.** `data` is an array; each element: <table><thead><tr><th width="149.890625">Field</th><th width="112.625">Type</th><th width="114.78515625">Existence</th><th width="111.4375">Unit</th><th>Description</th></tr></thead><tbody><tr><td>statisticTime</td><td>number</td><td>always</td><td>epoch ms</td><td>Timestamp</td></tr><tr><td>collateralValue</td><td>string[3]</td><td>always</td><td>USD</td><td>Collateral value per chain, order <code>[tron, eth, bsc]</code></td></tr></tbody></table> **Response example (truncated).** ```json { "code": 0, "message": "SUCCESS", "data": [ { "statisticTime": 1737331200000, "collateralValue": ["5.94", "0", "0"] } ] } ``` **Errors.** See §3. *** ### 6.11 Vault Configuration List <a href="#id-24" id="id-24"></a> **Overview.** Static contract-level configuration of all Vault types.\ Typical use: list Vault parameters (collateral ratio, stability fee, ceiling).\ When not to use: for real-time per-Vault state use §6.12. **Endpoint.** <mark style="color:blue;">`GET /api/v1/vault/collaterals`</mark> — Base URL & auth see §1. **Request parameters.** None. **Request example.** ```bash curl "https://openapi.usdd.io/api/v1/vault/collaterals" ``` **Response fields.** <table><thead><tr><th width="190.47265625">Field</th><th width="102.8984375">Type</th><th width="115.265625">Existence</th><th width="104.76953125">Unit</th><th>Description</th></tr></thead><tbody><tr><td>items[]</td><td>array</td><td>always</td><td>—</td><td>Vault list</td></tr><tr><td>items[].ilk</td><td>string</td><td>always</td><td>text</td><td>Vault identifier, e.g. <code>TRX-A</code>, <code>USDT-A</code></td></tr><tr><td>items[].minCollateralRatio</td><td>string</td><td>always</td><td>ratio</td><td>Minimum collateral ratio (<code>1.2</code> = 120%)</td></tr><tr><td>items[].stabilityFee</td><td>string</td><td>always</td><td>decimal</td><td>Annual stability fee (<code>0.005</code> = 0.5%)</td></tr><tr><td>items[].maxMinted</td><td>string</td><td>always</td><td>USDD</td><td>Debt ceiling</td></tr><tr><td>items[].dust</td><td>string</td><td>always</td><td>USDD</td><td>Dust Limit / Debt Floor — minimum USDD that can be minted per Vault</td></tr><tr><td>items[].curMinted</td><td>string</td><td>always</td><td>USDD</td><td>Currently minted USDD</td></tr><tr><td>items[].totalCollateral</td><td>string</td><td>always</td><td>USD</td><td>Total locked collateral value (not native units)</td></tr></tbody></table> Current Vault types: `TRX-A`, `TRX-B`, `TRX-C`, `USDT-A`, `STRX-A`, `WBTC-A`, `WBTC-B`. **Response example (truncated).** ```json { "code": 0, "message": "SUCCESS", "data": { "items": [ { "ilk": "TRX-A", "minCollateralRatio": "1.2", "stabilityFee": "0.005", "maxMinted": "400000000", "dust": "1000", "curMinted": "170405778.276294", "totalCollateral": "445798872.688855" } ] } } ``` **Errors.** See §3. A Vault with no usage returns `curMinted: "0"` and `totalCollateral: "0"` — empty ≠ error (§2.5). *** ### 6.12 Per-chain Collateral Snapshot <a href="#id-25" id="id-25"></a> **Overview.** Real-time collateral and supply state for a specific chain, with a per-Vault breakdown. Items include regular Vaults, PSM Vaults and Smart Allocator Vaults.\ Typical use: a per-chain Vault dashboard.\ When not to use: for static config use §6.11; for history use §6.13. **Endpoint.** <mark style="color:blue;">`GET /api/v1/data-platform/latest-collateral`</mark> — Base URL & auth see §1. **Request parameters.** <table><thead><tr><th width="118.39453125">Parameter</th><th width="88.68359375">In</th><th width="86.94921875">Type</th><th width="115.9375">Required</th><th width="100.01953125">Default</th><th>Description</th></tr></thead><tbody><tr><td>chain</td><td>query</td><td>string</td><td>yes</td><td>—</td><td><code>tron</code> / <code>eth</code> / <code>bsc</code></td></tr></tbody></table> **Request example.** ```bash curl "https://openapi.usdd.io/api/v1/data-platform/latest-collateral?chain=tron" ``` **Response fields — top level.** <table><thead><tr><th width="190.00390625">Field</th><th width="114.625">Type</th><th width="115.0234375">Existence</th><th width="105.05859375">Unit</th><th>Description</th></tr></thead><tbody><tr><td>apy</td><td>number</td><td>always</td><td>decimal</td><td>Current DSR APY on this chain</td></tr><tr><td>usddTotalSupply</td><td>number</td><td>always</td><td>USDD</td><td>USDD circulating supply on this chain</td></tr><tr><td>totalSupplyValue</td><td>number</td><td>always</td><td>USD</td><td>USDD + sUSDD value on this chain</td></tr><tr><td>totalSupplyValueDailyChange</td><td>number</td><td>always</td><td>USD</td><td>Change versus the previous day of <code>totalSupplyValue</code></td></tr><tr><td>totalCollateralValue</td><td>number</td><td>always</td><td>USD</td><td>Total collateral value on this chain</td></tr><tr><td>totalCollateralValueDailyChange</td><td>number</td><td>always</td><td>USD</td><td>Change versus the previous day of <code>totalCollateralValue</code></td></tr><tr><td>earnTvl</td><td>number</td><td>always</td><td>USD</td><td>Earn locked value on this chain</td></tr><tr><td>earnTvlDailyChange</td><td>number</td><td>always</td><td>USD</td><td>Change versus the previous day of <code>earnTvl</code></td></tr><tr><td>items[]</td><td>array</td><td>always</td><td>—</td><td>Per-Vault breakdown</td></tr></tbody></table> **Response fields — `items[]`.** <table><thead><tr><th width="189.43359375">Field</th><th width="132.0078125">Type</th><th width="119.3515625">Existence</th><th width="108.01171875">Unit</th><th>Description</th></tr></thead><tbody><tr><td>vaultType</td><td>string</td><td>always</td><td>text</td><td>Vault identifier, e.g. <code>TRX-A</code>, <code>PSM-USDT-A</code>, <code>SA001-A</code></td></tr><tr><td>chain</td><td>string</td><td>always</td><td>enum</td><td>Chain identifier</td></tr><tr><td>collateralType</td><td>number</td><td>always</td><td>1 / 2 / 3</td><td><code>1</code> = regular Vault, <code>2</code> = PSM, <code>3</code> = Smart Allocator</td></tr><tr><td>contractAddress</td><td>string</td><td>always</td><td>address</td><td>Vault contract address</td></tr><tr><td>mintedUSDD</td><td>number</td><td>always</td><td>USDD</td><td>Minted USDD</td></tr><tr><td>debt</td><td>number</td><td>always</td><td>USDD</td><td>Current debt including accumulated stability fees</td></tr><tr><td>lockedValue</td><td>number</td><td>always</td><td>USD</td><td>Locked collateral value</td></tr><tr><td>collateralRatio</td><td>number</td><td>always</td><td>ratio</td><td>Current collateral ratio</td></tr><tr><td>minCollateralRatio</td><td>string</td><td>always</td><td>ratio</td><td>Minimum collateral ratio</td></tr><tr><td>stabilityFee</td><td>string</td><td>always</td><td>decimal</td><td>Annual stability fee</td></tr><tr><td>line</td><td>string</td><td>always</td><td>USDD</td><td>Debt ceiling</td></tr><tr><td>apy</td><td>number | null</td><td>nullable</td><td>decimal</td><td>Vault APY; <code>null</code> for regular Vaults</td></tr><tr><td>estimatedAnnualEarnings</td><td>number | null</td><td>nullable</td><td>USD</td><td>Estimated annual earnings; <code>null</code> when not applicable</td></tr><tr><td>psmFee</td><td>string | null</td><td>nullable</td><td>decimal</td><td>PSM swap fee; <code>null</code> for non-PSM Vaults</td></tr></tbody></table> **Response example (truncated).** ```json { "code": 0, "message": "SUCCESS", "data": { "apy": 0.04, "usddTotalSupply": 1175039825.64, "totalSupplyValue": 1175039825.64, "totalSupplyValueDailyChange": 7633351.69, "totalCollateralValue": 1969026838.01, "totalCollateralValueDailyChange": 8788306.71, "earnTvl": 0, "earnTvlDailyChange": 0, "items": [ { "vaultType": "TRX-A", "chain": "tron", "collateralType": 1, "contractAddress": "TJ1VWPvFVq7sVsN7J7dWJVZz4SLT14qRUr", "mintedUSDD": 170176779.31, "debt": 170405778.28, "lockedValue": 445798872.69, "collateralRatio": 2.6161, "minCollateralRatio": "1.2", "stabilityFee": "0.00500000096840569341338778031", "line": "400000000", "apy": null, "estimatedAnnualEarnings": null, "psmFee": null } ] } } ``` **Errors.** See §3. Missing `chain` → `code: 1`; invalid `chain` → `code: 10002`. *** ### 6.13 Per-chain Historical Series <a href="#id-26" id="id-26"></a> **Overview.** Time-series data for a specific chain — used to render 7D / 1M / 6M / 1Y charts.\ Typical use: a per-chain history chart.\ When not to use: for the current snapshot use §6.12. **Endpoint.** <mark style="color:blue;">`GET /api/v1/data-platform/collateral-history`</mark> — Base URL & auth see §1. **Request parameters.** <table><thead><tr><th width="119.984375">Parameter</th><th width="90.390625">In</th><th width="95.25390625">Type</th><th width="109.71875">Required</th><th width="100.4453125">Default</th><th>Description</th></tr></thead><tbody><tr><td>chain</td><td>query</td><td>string</td><td>yes</td><td>—</td><td><code>tron</code> / <code>eth</code> / <code>bsc</code></td></tr><tr><td>interval</td><td>query</td><td>string</td><td>yes</td><td>—</td><td><code>WEEKLY</code> (7 days) / <code>MONTHLY</code> (1 month) / <code>BIANNUAL</code> (6 months) / <code>ANNUAL</code> (1 year)</td></tr></tbody></table> **Request example.** ```bash curl "https://openapi.usdd.io/api/v1/data-platform/collateral-history?chain=tron&interval=WEEKLY" ``` **Response fields.** `data.items` is an array; each element: <table><thead><tr><th width="151.796875">Field</th><th width="120.6171875">Type</th><th width="115.19921875">Existence</th><th width="110.21875">Unit</th><th>Description</th></tr></thead><tbody><tr><td>statisticTime</td><td>number</td><td>always</td><td>epoch ms</td><td>Timestamp</td></tr><tr><td>time</td><td>string | null</td><td>nullable</td><td>datetime</td><td>Human-readable time (UTC+8); the latest entry may be <code>null</code></td></tr><tr><td>collateralValue</td><td>number</td><td>always</td><td>USD</td><td>Collateral value at this point</td></tr><tr><td>debt</td><td>number</td><td>always</td><td>USDD</td><td>Debt amount</td></tr><tr><td>mintedUSDD</td><td>number</td><td>always</td><td>USDD</td><td>Minted USDD</td></tr><tr><td>usddTotalSupply</td><td>number</td><td>always</td><td>USDD</td><td>USDD circulating supply</td></tr><tr><td>totalSupplyValue</td><td>number</td><td>always</td><td>USD</td><td>USDD + sUSDD value</td></tr><tr><td>earnTvl</td><td>number</td><td>always</td><td>USD</td><td>Earn locked value</td></tr><tr><td>earnApy</td><td>number</td><td>always</td><td>decimal</td><td>APY at this point</td></tr></tbody></table> **Response example (truncated).** ```json { "code": 0, "message": "SUCCESS", "data": { "items": [ { "statisticTime": 1778515200000, "time": "2026-05-13 00:00 (UTC+8)", "collateralValue": 1913492361.67, "debt": 1137814656.28, "mintedUSDD": 1137814656.28, "usddTotalSupply": 1136731489.13, "totalSupplyValue": 1136731489.13, "earnTvl": 0, "earnApy": 0.04 } ] } } ``` **Errors.** See §3. Missing `chain`/`interval` → `code: 1`; invalid value → `code: 10002`. The latest `time` may be `null` — that is normal, not an error. *** ### 6.14 Smart Allocator Detail <a href="#id-27" id="id-27"></a> **Overview.** Allocation and earnings detail of USDD protocol reserves across DeFi platforms.\ Typical use: show where reserve funds are deployed and what they earn.\ When not to use: for cumulative profit (`e
프로젝트로 돌아가기