/api/v1 for market data, account data, history, analytics, rewards, and referral workflows.
Authentication Scope
Most production traffic is expected to include:Authorization: Bearer <KEY>Origin: <your app origin>
Base URL
| Network | Base URL |
|---|---|
| Testnet | https://api.testnet.aptoslabs.com/decibel |
| Mainnet | https://api.mainnet.aptoslabs.com/decibel |
Request Format
- Endpoints are rooted at
/api/v1/... - Current public methods are
GETandPOST - Most endpoints use query/path parameters; no generic request body format applies globally
Example Request
Example Response
Available Endpoints
The list below is aligned to runtime routes inrust/trading-api/src/http/routes.rs.
Market Data
| Endpoint | Description |
|---|---|
GET /api/v1/markets | List available markets |
GET /api/v1/candlesticks | OHLCV candlestick data |
GET /api/v1/prices | Latest market prices/funding/open interest |
GET /api/v1/trades | Recent trades |
GET /api/v1/dex | DEX registration/metadata |
GET /api/v1/contracts | Contract metadata |
GET /api/v1/contract_specs | Contract spec metadata |
GET /api/v1/orderbook | Order book snapshot |
Account and Trading
| Endpoint | Description |
|---|---|
GET /api/v1/account_positions | Account positions |
GET /api/v1/open_orders | Open orders |
GET /api/v1/orders | Orders (open/recent) |
GET /api/v1/account_overviews | Account overview and margins |
GET /api/v1/subaccounts | Subaccounts |
GET /api/v1/user_fee_rates | Current maker/taker rates, fee tier, full fee schedule, and 30-day daily volume history |
History
| Endpoint | Description |
|---|---|
GET /api/v1/trade_history | Trade history |
GET /api/v1/order_history | Order history |
GET /api/v1/funding_rate_history | Funding rate history |
GET /api/v1/account_fund_history | Account funding history |
GET /api/v1/asset_contexts | Asset context snapshots |
GET /api/v1/withdraw_queue | Withdrawal queue history/state |
TWAP and Bulk Orders
| Endpoint | Description |
|---|---|
GET /api/v1/active_twaps | Active TWAP orders |
GET /api/v1/twap_history | TWAP order history |
GET /api/v1/bulk_orders | Bulk order states |
GET /api/v1/bulk_order_fills | Bulk order fill history |
GET /api/v1/bulk_order_status | Bulk order status |
Vaults
| Endpoint | Description |
|---|---|
GET /api/v1/vaults | List all vaults |
GET /api/v1/account_owned_vaults | Vaults owned by account |
GET /api/v1/account_vault_performance | Vault performance for an account |
Analytics and Points
| Endpoint | Description |
|---|---|
GET /api/v1/leaderboard | Trading leaderboard |
GET /api/v1/points_leaderboard | Points leaderboard |
GET /api/v1/portfolio_chart | Portfolio chart |
GET /api/v1/delegations | Delegation info |
GET /api/v1/daily_stats | Daily stats |
GET /api/v1/predeposits/rewards | Predeposit rewards |
GET /api/v1/points/trading/account | Trading points for account |
GET /api/v1/points/trading/amps | Trading amps for account |
GET /api/v1/points/tier | User tier info |
GET /api/v1/points/amps | Owner amps summary |
GET /api/v1/points/global | Global points stats |
GET /api/v1/streaks/account | Account streak stats |
Referral and Affiliate
| Endpoint | Description |
|---|---|
GET /api/v1/referrals/account/{account} | Referral info by account |
GET /api/v1/referrals/users | User referrals |
GET /api/v1/referrals/stats/{account} | Referral stats by account |
GET /api/v1/referrals/code/{code} | Validate referral code |
POST /api/v1/referrals/redeem | Redeem referral code |
GET /api/v1/affiliates/codes/{account} | Affiliate codes owned by account |
GET /api/v1/affiliates/earnings/{account} | Affiliate earnings by account |
Backward-Compatible Aliases
| Endpoint | Canonical Endpoint |
|---|---|
GET /api/v1/user_positions | /api/v1/account_positions |
GET /api/v1/user_fund_history | /api/v1/account_fund_history |
GET /api/v1/user_owned_vaults | /api/v1/account_owned_vaults |
GET /api/v1/user_vault_performance | /api/v1/account_vault_performance |
SDK Alternative
For most application use cases, prefer the TypeScript SDK. See TypeScript SDK Overview.Related
Authentication
Credential setup and auth headers
Error Handling
Status codes and error payloads

