DEX Aggregator
Coming SoonDecentralized Exchanges
connectorType: "dex"Aggregated DEX liquidity (Uniswap, SushiSwap, etc.)
Connection Architecture
DEX Aggregator
WebSocket / REST→
Connector
libs/exchange-dex-aggregator→
Provider
:8081/api→
Detector
Advisor
Studio
The connector feeds exchange data to Provider. Detector receives market data, Studio receives read views, and Advisor sees only signed candidate evidence.
Technologies
Transport
WebSocketREST
Authentication
Wallet Address + RPC URLData Format
JSONFeatures
On-chainNo Server-side Execution
Best for
- Early-stage token analysts monitoring new DEX pair launches and liquidity pool formation before CEX listings.
- MEV and arbitrage researchers tracking on-chain price divergences between DEX pools and CEX markets.
- DeFi portfolio managers monitoring pool TVL, fee APR, and impermanent loss across multiple protocols.
Connect via code
1Environment variables (.env)
DEX_WALLET_ADDRESS=your_wallet_here DEX_RPC_URL=your_rpc_here
2Connector configuration
// config/config.provider.json
{
"provider": {
"connectors": [
{
"connectorType": "dex",
"enabled": true,
"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
Public verification 1. Configure credentials in the private Provider environment. 2. Verify connector status in the internal Studio/Provider console. 3. Use Barfinex public pages to inspect market data. Operator Provider commands and tokens remain in internal runbooks only.
Available via Barfinex API
/api/candles/dex/...
/api/trades/dex/...
/api/orderbook/dex/...
/api/account/dex/...
/api/symbols/dex/...
/api/assets/dex/...
Studio graphical setup — in development, coming in the next release.
Important
Server-side data ingestion (prices, pools, volumes) is fully supported.
Order execution requires a browser wallet and CANNOT be automated on the server side — this is a fundamental constraint of DEX architecture.
RPC node costs apply for high-frequency on-chain data; a dedicated RPC endpoint (Alchemy, Infura, QuickNode) is strongly recommended.
Supported Markets
Spot
Connect in Studio(soon)