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 receives data from the exchange and feeds it to Provider (port 8081). From there — to Detector, Advisor, and Studio.
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
# 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/dex/spot/BTCUSDT/h1?days=7"
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)