Kraken
BetaCrypto — Major Exchanges
connectorType: "kraken"Kraken is a US-based cryptocurrency exchange known for its strong security practices and regulatory compliance. It offers spot, futures, and margin trading with competitive fees.
Connection Architecture
Kraken
WebSocket / REST→
Connector
libs/exchange-kraken→
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 + SecretData Format
JSONFeatures
Rate Limiter
Best for
- Kraken is well-suited for traders who prioritise regulatory safety and institutional-grade custody over raw execution speed.
- It is a strong choice for EUR- or USD-denominated spot strategies, medium-frequency trend-following on major pairs, and portfolio managers who require an auditable, compliant exchange for reporting.
- Barfinex users in regulated jurisdictions often pair Kraken with Binance for cross-venue signal validation.
Connect via code
1Environment variables (.env)
KRAKEN_API_KEY=your_key_here KRAKEN_API_SECRET=your_secret_here
2Connector configuration
// config/config.provider.json
{
"provider": {
"connectors": [
{
"connectorType": "kraken",
"enabled": true,
"key": "${KRAKEN_API_KEY}",
"secret": "${KRAKEN_API_SECRET}",
"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/kraken/spot/BTCUSDT/h1?days=7"
Available via Barfinex API
/api/candles/kraken/...
/api/trades/kraken/...
/api/orderbook/kraken/...
/api/account/kraken/...
/api/symbols/kraken/...
/api/assets/kraken/...
Studio graphical setup — in development, coming in the next release.
Important
Permissions required: Query Funds + Query Orders & Trades + Create & Modify Orders.
Kraken private API uses a tier-based rate limit: approximately 15–20 calls/min depending on account tier; exceeding this triggers temporary IP bans.
API keys on Kraken use a nonce-based replay-protection scheme — ensure system clocks are NTP-synchronised to avoid nonce ordering errors.
Futures trading requires a separate Kraken Futures account with its own API keys.