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 pairsGET
/api/v1/markets/tickersCurrent ticker data for all pairsGET
/api/v1/markets/orderbookOrderbook depth for a pairGET
/api/v1/markets/trades/{pair}Recent trades for a pairPOST
/api/v1/ordersCreate a new orderDELETE
/api/v1/orders/{id}Cancel an existing orderGET
/api/v1/orders/openList your open ordersGET
/api/v1/balanceGet account balancesGET
/api/v1/trades/historyTrade execution historyQuick 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}'