Idempotent order writes

Every request that places, modifies, cancels or closes an order or position accepts an Idempotency-Key header: the MT5 routes under /api/external/instances/:accountId/{orders,positions} (including close-by-symbol), the broker routes POST/PUT/DELETE /api/external/brokers/.../orders, and the v2 writes under /api/v2/connections/:id/{orders,positions}. Use a new random value (a UUID) for each order, and reuse it when you retry that order. The official SDK does this for you.

curl -X POST "$ATLAS_BASE_URL/api/external/instances/12345678/orders" \
  -H "Authorization: Bearer $ATLAS_API_KEY" \
  -H "Idempotency-Key: 6f1c2a2e-1d0b-4c55-9b7c-0d6a8f3e2b11" \
  -H "Content-Type: application/json" \
  -d '{"symbol":"EURUSD","type":"BUY","volume":0.1}'