API Documentation

Build trading bots, integrate market data, and automate your trading with our REST and WebSocket APIs.

REST API

Full-featured REST API with JSON responses for market data, order management, and account operations.

WebSocket

Real-time market data streaming via SignalR-powered WebSocket connections for orderbook updates and trade feeds.

API Keys

Generate API keys with granular permissions. Restrict by IP address and set individual rate limits.

Security

HMAC-SHA256 signed requests, mandatory CSRF tokens, and rate limiting protect every endpoint.

Key Endpoints

Overview of the most commonly used API endpoints. Full OpenAPI specification available for download.

GET/api/v1/marketsList all available trading pairs
GET/api/v1/markets/tickersCurrent ticker data for all pairs
GET/api/v1/markets/orderbookOrderbook depth for a pair
GET/api/v1/markets/trades/{pair}Recent trades for a pair
POST/api/v1/ordersCreate a new order
DELETE/api/v1/orders/{id}Cancel an existing order
GET/api/v1/orders/openList your open orders
GET/api/v1/balanceGet account balances
GET/api/v1/trades/historyTrade execution history

Quick Start

# Fetch current tickers
curl -X GET "https://backend.bcflex.com/api/v1/markets/tickers"

# Place a limit buy order (authenticated)
curl -X POST "https://backend.bcflex.com/api/v1/orders" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"pair":"BTC_USDT","side":"Buy","type":"Limit","price":95000,"amount":0.01}'