Skip to main content
PATCH
/
v2
/
strategies
/
{strategyId}
/
preferences
curl --request PATCH \
  --url 'https://api.glider.fi/v2/strategies/01JWZEE2MF30KVRMRX53N88VA4/preferences' \
  --header 'x-api-key: gldr_sk_your_api_key' \
  --header 'content-type: application/json' \
  --data '{ "swap": { "slippageBps": 300, "thresholdUsd": "5.00" } }'
{
  "success": true,
  "data": {
    "swap": {
      "slippageBps": 300,
      "priceImpactBps": null,
      "thresholdUsd": "5.00"
    }
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.glider.fi/llms.txt

Use this file to discover all available pages before exploring further.

Patches the strategy’s stored preference overrides. Swap settings live under the swap namespace: slippageBps, priceImpactBps, and thresholdUsd.
  • Auth: x-api-key header (required)
  • Required scope: strategies:write

Patch semantics

Patches are applied per inner field within swap:
  • Omitted field — preserve the current value
  • Explicit null — clear the field
  • Explicit value — set the field
Empty body {} and { "swap": {} } are both 200 no-ops.

Clearing all preferences

To remove every per-strategy override and fall back to the tenant defaults, send a PATCH with all swap fields set to null:
{
  "swap": {
    "slippageBps": null,
    "priceImpactBps": null,
    "thresholdUsd": null
  }
}
The strategy’s schedule is unaffected. There is no dedicated DELETE endpoint.

Schedule is rejected

This endpoint patches preferences only. To change the schedule, call PUT /v2/strategies/{strategyId}/schedule. Sending a schedule field here returns 400.

Cross-tenant access

Returns 404 — strategies you don’t own are not exposed.
curl --request PATCH \
  --url 'https://api.glider.fi/v2/strategies/01JWZEE2MF30KVRMRX53N88VA4/preferences' \
  --header 'x-api-key: gldr_sk_your_api_key' \
  --header 'content-type: application/json' \
  --data '{ "swap": { "slippageBps": 300, "thresholdUsd": "5.00" } }'
{
  "success": true,
  "data": {
    "swap": {
      "slippageBps": 300,
      "priceImpactBps": null,
      "thresholdUsd": "5.00"
    }
  }
}