Beta · Zugang auf Anfrage

DriftBot API

Integriere die DriftBot-Trading-Engine in deine eigene App. REST-API, JSON, Authentifizierung per API-Key. Diese Doku zeigt, wie es funktionieren wird — den Zugang gibt es aktuell auf Anfrage.

Authentifizierung

Jede Anfrage braucht deinen API-Key im Authorization-Header. Du bekommst den Key nach Freischaltung in deinem Konto.

curl https://api.driftbot.de/v1/coins \
  -H "Authorization: Bearer dk_live_dein_api_key"

GET /v1/coins — handelbare Coins

Liefert die verfügbaren Coins mit aktuellem Kurs und 24h-Volumen, sortiert nach Liquidität.

curl https://api.driftbot.de/v1/coins \
  -H "Authorization: Bearer dk_live_..."
Antwort
{
  "coins": [
    { "symbol": "BTC", "productId": "BTC-EUR", "priceEur": 63057.93, "volume24hEur": 25427862 },
    { "symbol": "ETH", "productId": "ETH-EUR", "priceEur": 1733.62, "volume24hEur": 9655801 }
  ]
}

POST /v1/bots — Bot erstellen

Startet einen Grid-Bot. Die Grid-Regel (Abstand pro Level ≥ 1,7 %) wird server-seitig geprüft.

curl -X POST https://api.driftbot.de/v1/bots \
  -H "Authorization: Bearer dk_live_..." \
  -H "Content-Type: application/json" \
  -d '{
    "productId": "ETH-EUR",
    "lowerPct": 8,
    "upperPct": 8,
    "gridLevels": 5,
    "tradeEur": 10,
    "mode": "sim"
  }'
Antwort
{
  "id": 42,
  "coin": "ETH-EUR",
  "mode": "sim",
  "gridLevels": 5,
  "tradeEur": 10,
  "status": "running"
}

Rate-Limits & Abrechnung

Abgerechnet wird pro Anfrage (pay-per-use, ab ~0,10 € / 100 Anfragen) oder als Enterprise-Flatrate. Faire Rate-Limits je nach Plan. Details & Zugang: API & Enterprise.