Base URL
| Network | Base URL |
|---|---|
| Testnet | https://api.testnet.aptoslabs.com/decibel |
| Mainnet | https://api.mainnet.aptoslabs.com/decibel |
Request Format
All endpoints areGET requests under /api/v1/ with query parameters. No request body is needed.
Example Request
Example Response
Available Endpoints
Market Data
| Endpoint | Description |
|---|---|
GET /api/v1/markets | List all available markets |
GET /api/v1/candlesticks | OHLCV candlestick data |
GET /api/v1/prices | Current prices, funding rates, and open interest |
GET /api/v1/trades | Recent trades for a market |
GET /api/v1/dex | DEX-level summary |
Account Data
| Endpoint | Description |
|---|---|
GET /api/v1/account_positions | Open positions for an account |
GET /api/v1/open_orders | Currently open orders |
GET /api/v1/orders | Orders (open and recent) |
GET /api/v1/account_overviews | Account equity, margin, and balances |
GET /api/v1/subaccounts | Trading Accounts for a user |
History
| Endpoint | Description |
|---|---|
GET /api/v1/trade_history | Historical trades |
GET /api/v1/order_history | Historical orders |
GET /api/v1/funding_rate_history | Historical funding rates |
GET /api/v1/account_fund_history | Deposit and withdrawal history |
GET /api/v1/asset_contexts | Asset context snapshots |
TWAP
| Endpoint | Description |
|---|---|
GET /api/v1/active_twaps | Active TWAP orders |
GET /api/v1/twap_history | TWAP order history |
Bulk Orders
| Endpoint | Description |
|---|---|
GET /api/v1/bulk_orders | Active bulk orders |
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 an account |
GET /api/v1/account_vault_performance | Vault performance for an account |
Analytics
| Endpoint | Description |
|---|---|
GET /api/v1/leaderboard | Trading leaderboard |
GET /api/v1/portfolio_chart | Portfolio value over time |
GET /api/v1/delegations | Delegation information |
SDK Alternative
For most use cases, the TypeScript SDK provides a more ergonomic interface. See TypeScript SDK Overview.Next Steps
Authentication
Required for all API access
Error Handling
Common errors and how to handle them

