Kardlane
API Reference

Resume the bot on a trade

POSThttps://api.kardlane.com/v1/trades/{id}/resume

Carry on from where it was paused. A trade paused before its rate requests went out starts asking vendors now.

Authorization#

Authorizationheaderrequired

Bearer token: Bearer <your project API key>. Create keys in the dashboard under your project’s Integration page.

Path parameters#

idstringrequired

The trade.

Body#

bystring

Who is resuming it.

Responses#

200Resumed.
409Not possible now — e.g. the bot is switched off for the project.
curl -X POST https://api.kardlane.com/v1/trades/6abea25d-0c1f-4a43-9d1e-3b5c2f0edad5/resume \
  -H "Authorization: Bearer $KARDLANE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "by": "ops@yourcompany.com"
  }'
{
  "tradeId": "6abea25d-0c1f-4a43-9d1e-3b5c2f0edad5",
  "status": "UPLOADED",
  "bot": {
    "state": "working",
    "pausedAt": null,
    "pausedBy": null,
    "pauseScope": null,
    "stoppedAt": null,
    "stoppedBy": null,
    "canPause": true,
    "canResume": false,
    "canStop": true,
    "resumeBlocked": null
  }
}