Barfinex
All exchanges
Coinglass

Coinglass

Coming SoonMarket Data Providers
connectorType: "coinglass"

Crypto derivatives data and analytics

Connection Architecture

Coinglass
WebSocket / REST
Connector
libs/exchange-coinglass
Provider
:8081/api
Detector
Advisor
Studio

The connector receives data from the exchange and feeds it to Provider (port 8081). From there — to Detector, Advisor, and Studio.

Technologies

Transport
WebSocketREST
Authentication
API Key
Data Format
JSON
Features
Data OnlyDerivatives Analytics

Best for

  • Liquidation cascade monitors tracking cumulative long/short liquidation levels across exchanges in real time.
  • Funding rate arbitrage strategies identifying persistent funding imbalances between perpetual markets.
  • Systemic risk dashboards watching open interest concentration and leverage ratios as macro warning indicators.

Connect via code

1Environment variables (.env)

COINGLASS_API_KEY=your_key_here

2Connector configuration

// config/config.provider.json
{
  "provider": {
    "connectors": [
      {
        "connectorType": "coinglass",
        "enabled": true,
        "key": "${COINGLASS_API_KEY}",
        "markets": [
          { "marketType": "spot", "symbols": [{ "name": "BTCUSDT" }] }
        ],
        "subscriptions": [
          { "type": "PROVIDER_MARKETDATA_CANDLE", "symbols": ["BTCUSDT"], "intervals": ["min1", "h1"], "active": true },
          { "type": "PROVIDER_MARKETDATA_TRADE", "symbols": ["BTCUSDT"], "active": true },
          { "type": "PROVIDER_MARKETDATA_ORDERBOOK", "symbols": ["BTCUSDT"], "active": true }
        ]
      }
    ]
  }
}

3Verify and query data

# Verify connection
curl -H "Authorization: Bearer $PROVIDER_API_TOKEN" \
  https://localhost:8081/api/exchanges/runtime-proof

# Candles (last 7 days)
curl -H "Authorization: Bearer $PROVIDER_API_TOKEN" \
  "https://localhost:8081/api/candles/coinglass/spot/BTCUSDT/h1?days=7"

Available via Barfinex API

/api/candles/coinglass/...
/api/trades/coinglass/...
/api/orderbook/coinglass/...
/api/account/coinglass/...
/api/symbols/coinglass/...
/api/assets/coinglass/...

Studio graphical setup — in development, coming in the next release.

Important

This is a DATA ONLY connector — no order execution.
Historical data beyond 30 days and high-frequency endpoints require a paid API plan.
Some advanced metrics (per-exchange liquidation heatmaps) are exclusively available on premium tiers.
Supported Markets
SpotFutures
Connect in Studio(soon)
Exchange Website

Let’s Get in Touch

Have questions or want to explore Barfinex? Send us a message.