Base URL
All API requests are made to the following base URL:https://api.bigbrainape.com/v1/portfolio.
What you can do with the API
- Execute token swaps programmatically — submit swap orders, set slippage tolerances, and confirm transactions without touching the dashboard. (
POST /trades) - Fetch real-time and historical market data — retrieve live prices, OHLCV candles, liquidity depth, and volume statistics for any supported token. (
GET /market-data) - Read and manage your portfolio — query current holdings, historical performance, and unrealised PnL across all connected wallets. (
GET /portfolio) - Create, list, and delete alerts — set price and volume triggers and receive webhook or email notifications when conditions are met. (
POST /alerts,GET /alerts,DELETE /alerts/{id}) - Manage your API keys — list and generate API keys programmatically from your own tooling. (
GET /auth/api-keys,POST /auth/api-keys)
Request format
All requests that include a body must send JSON. Set theContent-Type header on every such request:
GET requests) are passed as standard URL query strings. Path parameters are embedded directly in the endpoint URL.
Response format
Every successful response from the API returns a JSON object with the following top-level shape:data field contains the resource or result specific to the endpoint you called. The timestamp field reflects the UTC time the response was generated on the server.
Error response format
When a request fails,success is false and the response includes an error object describing what went wrong:
code field to handle errors programmatically — it is a stable string identifier that will not change between API versions. The message field is human-readable and intended for logging or display.
Explore the API
Authentication
Learn how to generate API keys and authenticate your requests using Bearer tokens.
Rate Limits
Understand plan-based rate limits, response headers, and backoff strategies.
Portfolio
Read current holdings, historical performance, and PnL across your wallets.
Trades
Execute token swaps and query your trade history programmatically.
Market Data
Retrieve real-time prices, OHLCV candles, and liquidity statistics for any token.
Alerts
Create, list, and delete price and volume alerts with webhook or email delivery.