HomeMarketsPortfolioProtocolDocsAPISecurity
PUBLIC READ API

API reference

The ArcCredit HTTP API is read-only. It exposes normalized market and account state for dashboards, analytics, partner integrations and monitoring. Transaction submission remains wallet-to-contract.

RESTJSONOpenAPI 3.1Version v1

Quickstart

Production deployments serve the API under the same origin at /api. The Nginx config included in this release proxies those requests to the local Node service.

curl -s https://arc.aitradebox.com/api/v1/market | jq
GET/health

Service and Arc chain connectivity health. Does not expose the configured RPC URL.

200API can reach Arc and chain ID matches 5042.
502Upstream RPC error.
GET/v1/meta

Protocol API version, chain, release version and configured Pool identity.

GET/v1/assets

Canonical assets known to the API, including token address, decimals and protocol role.

GET/v1/market

Current aggregate market state.

totalAssetsUsdcSupplier assets plus receivable interest, normalized to decimal USDC.
availableLiquidityUsdcUSDC currently available for withdrawal or borrowing.
utilizationDecimal ratio, e.g. 0.72 = 72%.
supplyApr / borrowAprDecimal annualized rates, e.g. 0.051 = 5.1%.
pausedWhether new-risk actions are paused.
liquidationsPausedWhether liquidation emergency mode is active.
GET/v1/account/:address

Read an account’s supplied USDC, debt, borrow power, health factor and collateral balances.

{
  "address": "0x…",
  "supplyUsdc": "12500.0",
  "debtUsdc": "4200.0",
  "healthFactor": "1.84",
  "maxBorrowUsd": "7700.0",
  "collateral": { "WETH": "4.25", "cirBTC": "0.0" }
}

Error format

{
  "error": "human-readable message",
  "code": "OPTIONAL_MACHINE_CODE",
  "requestId": "optional request id"
}

400 is used for invalid addresses or parameters, 429 for rate limits, 503 when the Pool is not configured, and 502 for upstream RPC failures.

Try the API

Choose an endpoint to send a live request.