Barfinex
All exchanges
Polygon.io

Polygon.io

Coming SoonMarket Data Providers
connectorType: "polygon"

Real-time & historical market data for stocks, options, forex, crypto

Connection Architecture

Polygon.io
WebSocket / REST
Connector
libs/exchange-polygon
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 OnlyConsolidated Tape

Best for

  • Equity and options strategies requiring consolidated US market data unavailable from broker APIs.
  • Multi-asset researchers correlating US stock, forex, and crypto data in a single normalized feed.
  • Backtesting engines that need complete tick-level historical data across all US equity markets.

Connect via code

1Environment variables (.env)

POLYGON_API_KEY=your_key_here

2Connector configuration

// config/config.provider.json
{
  "provider": {
    "connectors": [
      {
        "connectorType": "polygon",
        "enabled": true,
        "key": "${POLYGON_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/polygon/spot/BTCUSDT/h1?days=7"

Available via Barfinex API

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

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

Important

This is a DATA ONLY connector — no order execution.
Real-time streaming requires a Starter plan or above; the free tier provides delayed data only.
Options data (chains, greeks) requires the Options add-on subscription.
Supported Markets
Spot
Websitepolygon.io
Connect in Studio(soon)
Exchange Website

Let’s Get in Touch

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