Build powerful applications with the BCC nitro API
Get started with the BCC nitro API in seconds. All API requests require authentication via API key.
curl -H "X-API-Key: your-api-key" \
https://api.BCCnitro.com/v1/markets
import requests
headers = {"X-API-Key": "your-api-key"}
response = requests.get(
"https://api.BCCnitro.com/v1/markets",
headers=headers
)
print(response.json())
const response = await fetch('https://api.BCCnitro.com/v1/markets', {
headers: { 'X-API-Key': 'your-api-key' }
});
const data = await response.json();
console.log(data);
All API requests require an API key passed in the X-API-Key header.
X-API-Key: your-api-key
| Limit Type | Limit | Window |
|---|---|---|
| Requests | 1000 | Per minute |
| Orders | 100 | Per minute |
| WebSocket Connections | 10 | Per connection |
Log in to your dashboard and navigate to Settings > API Keys to generate your API key.
The API returns standard HTTP status codes to indicate success or failure.
| Code | Description | Meaning |
|---|---|---|
| 400 | Bad Request | The request was malformed or contains invalid parameters |
| 401 | Unauthorized | Missing or invalid API key |
| 403 | Forbidden | You do not have permission to access this resource |
| 404 | Not Found | The requested resource does not exist |
| 429 | Too Many Requests | Rate limit exceeded. Please wait and retry |
| 500 | Internal Server Error | Something went wrong on our end |
Returns a list of all trading pairs available on the platform.
[
{
"symbol": "BTCUSDT",
"baseAsset": "BTC",
"quoteAsset": "USDT",
"price": "67432.50",
"change": "+2.34",
"volume": "1250000000"
},
{
"symbol": "ETHUSDT",
"baseAsset": "ETH",
"quoteAsset": "USDT",
"price": "3521.80",
"change": "+1.89",
"volume": "850000000"
}
]
Get the current ticker for a specific trading pair.
| Parameter | Type | Required | Description |
|---|---|---|---|
| pair | string | Required | Trading pair symbol (e.g., BTCUSDT) |
{
"symbol": "BTCUSDT",
"price": "67432.50",
"high": "68100.00",
"low": "67050.00",
"volume": "1250000000",
"change": "+2.34"
}
Get the current order book for a trading pair.
| Parameter | Type | Required | Description |
|---|---|---|---|
| pair | string | Required | Trading pair symbol (e.g., BTCUSDT) |
| depth | integer | Optional | Number of orders to return (default: 100) |
{
"symbol": "BTCUSDT",
"bids": [
["67432.50", "1.500"],
["67431.00", "2.300"]
],
"asks": [
["67433.00", "0.800"],
["67435.00", "1.200"]
]
}
Create a new trading order on the platform.
| Parameter | Type | Required | Description |
|---|---|---|---|
| pair | string | Required | Trading pair symbol |
| side | string | Required | "buy" or "sell" |
| type | string | Required | "market" or "limit" |
| amount | number | Required | Order amount in base currency |
| price | number | Optional | Required for limit orders |
{
"pair": "BTCUSDT",
"side": "buy",
"type": "limit",
"amount": "0.5",
"price": "67000.00"
}
Retrieve a list of your orders with optional filters.
| Parameter | Type | Required | Description |
|---|---|---|---|
| status | string | Optional | Filter by status: open, filled, cancelled |
| pair | string | Optional | Filter by trading pair |
| limit | integer | Optional | Number of orders to return (default: 50) |
| offset | integer | Optional | Number of orders to skip |
Retrieve the details of a specific order by ID.
| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | Required | Order ID |
Cancel a specific open order by ID.
| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | Required | Order ID |
Get a quote for swapping one asset to another.
| Parameter | Type | Required | Description |
|---|---|---|---|
| from | string | Required | Source asset symbol |
| to | string | Required | Target asset symbol |
| amount | number | Required | Amount to swap |
| slippage | number | Optional | Max slippage percentage (default: 0.5) |
{
"from": "USDT",
"to": "BTC",
"fromAmount": "1000.00",
"toAmount": "0.0148",
"rate": "67432.50",
"slippage": "0.5",
"estimatedGas": "0.002",
"expiresAt": "2026-05-28T12:30:00Z"
}
Execute a swap between two assets.
| Parameter | Type | Required | Description |
|---|---|---|---|
| from | string | Required | Source asset symbol |
| to | string | Required | Target asset symbol |
| amount | number | Required | Amount to swap |
| slippage | number | Optional | Max slippage percentage (default: 0.5) |
| walletAddress | string | Required | Destination wallet address |
{
"status": "completed",
"fromAmount": "1000.00",
"toAmount": "0.0148",
"transactionHash": "0xabc123...def456",
"explorerUrl": "https://etherscan.io/tx/0xabc123...def456"
}
Get a list of all supported swap pairs.
[
{
"from": "USDT",
"to": "BTC",
"minAmount": "10",
"maxAmount": "100000"
},
{
"from": "USDT",
"to": "ETH",
"minAmount": "10",
"maxAmount": "50000"
},
{
"from": "BTC",
"to": "ETH",
"minAmount": "0.001",
"maxAmount": "100"
}
]
Retrieve a list of all your trading bots.
Create a new automated trading bot.
| Parameter | Type | Required | Description |
|---|---|---|---|
| name | string | Required | Bot name |
| type | string | Required | Bot strategy type (grid, dca, arbitrage) |
| config | object | Required | Bot configuration parameters |
| pair | string | Required | Trading pair symbol |
| amount | number | Required | Investment amount |
Update the configuration of an existing trading bot.
| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | Required | Bot ID |
Delete an existing trading bot.
| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | Required | Bot ID |
Get an overview of your portfolio including total value, available balance, locked funds, and PnL.
{
"totalValue": "32450.00",
"available": "15000.00",
"locked": "17450.00",
"pnl": "+5420.30"
}
Get detailed holdings across all your connected wallets.
[
{
"symbol": "BTC",
"name": "Bitcoin",
"amount": "0.25",
"value": "16858.13",
"chain": "bitcoin"
},
{
"symbol": "ETH",
"name": "Ethereum",
"amount": "5.50",
"value": "19369.90",
"chain": "ethereum"
}
]
Connect a new wallet to your account.
| Parameter | Type | Required | Description |
|---|---|---|---|
| walletType | string | Required | Type of wallet (trust_wallet, metamask, binance) |
| address | string | Required | Wallet address |
| chain | string | Required | Blockchain network |
Retrieve a list of all wallets connected to your account.
Disconnect a wallet from your account.
| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | Required | Wallet ID |
Retrieve the authenticated user's profile information.
Authenticate with email and password to receive an API token.
| Parameter | Type | Required | Description |
|---|---|---|---|
| string | Required | User email address | |
| password | string | Required | User password |
Connect to our WebSocket endpoint for real-time market data and order updates.
const ws = new WebSocket('wss://api.BCCnitro.com/ws?apiKey=your-api-key');
| Stream | Type | Description |
|---|---|---|
| markets | array of strings | Subscribe to ticker updates for specific pairs |
| orders | boolean | Subscribe to your order updates |
| portfolio | boolean | Subscribe to portfolio updates |
const ws = new WebSocket('wss://api.BCCnitro.com/ws?apiKey=your-api-key');
ws.onopen = () => {
ws.send(JSON.stringify({
type: "subscribe",
streams: {
markets: ["BTCUSDT", "ETHUSDT"],
orders: true,
portfolio: true
}
}));
};
ws.onmessage = (event) => {
const data = JSON.parse(event.data);
console.log("Update:", data);
};
We provide official client SDKs for the most popular programming languages. Use them to integrate with the BCC nitro API in minutes.
pip install BCC-nitro-sdk
npm install @BCCnitro/sdk
cargo add BCC-nitro-sdk
go get github.com/BCCnitro/sdk-go