curl --request POST \
--url 'https://api.glider.fi/v2/strategies' \
--header 'x-api-key: gldr_sk_your_api_key' \
--header 'Content-Type: application/json' \
--data '{
"name": "Balanced Growth",
"description": "Multi-chain balanced allocation strategy",
"allocation": {
"assets": [
{ "assetId": "eip155:1/erc20:0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48", "weight": "60" },
{ "assetId": "eip155:1/erc20:0xdac17f958d2ee523a2206206994597c13d831ec7", "weight": "40" }
]
},
"schedule": {
"type": "interval",
"frequency": "daily"
},
"preferences": {
"swap": {
"slippageBps": 300,
"priceImpactBps": 300,
"thresholdUsd": "5.00"
}
}
}'
const response = await fetch("https://api.glider.fi/v2/strategies", {
method: "POST",
headers: {
"x-api-key": "gldr_sk_your_api_key",
"Content-Type": "application/json",
},
body: JSON.stringify({
name: "Balanced Growth",
allocation: {
assets: [
{ assetId: "eip155:1/erc20:0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48", weight: "60" },
{ assetId: "eip155:1/erc20:0xdac17f958d2ee523a2206206994597c13d831ec7", weight: "40" },
],
},
schedule: { type: "interval", frequency: "daily" },
preferences: { swap: { slippageBps: 300, thresholdUsd: "5.00" } },
}),
});
{
"success": true,
"data": {
"strategyId": "01JWZEE2MF30KVRMRX53N88VA4",
"name": "Balanced Growth",
"description": "Multi-chain balanced allocation strategy",
"allocation": {
"assets": [
{ "assetId": "eip155:1/erc20:0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48", "weight": "60" },
{ "assetId": "eip155:1/erc20:0xdac17f958d2ee523a2206206994597c13d831ec7", "weight": "40" }
]
},
"schedule": {
"type": "interval",
"frequency": "daily"
},
"preferences": {
"swap": {
"slippageBps": 300,
"priceImpactBps": null,
"thresholdUsd": "5.00"
}
},
"isPublic": false,
"version": 1,
"createdAt": "2026-04-17T12:00:00.000Z"
}
}
{
"success": false,
"error": {
"code": "API_400",
"message": "Strategy validation failed: ...",
"details": ["Allocation weights must sum to 100"]
}
}
V2 Integrator API
Create Strategy
Creates a new strategy with an initial allocation version.
POST
/
v2
/
strategies
curl --request POST \
--url 'https://api.glider.fi/v2/strategies' \
--header 'x-api-key: gldr_sk_your_api_key' \
--header 'Content-Type: application/json' \
--data '{
"name": "Balanced Growth",
"description": "Multi-chain balanced allocation strategy",
"allocation": {
"assets": [
{ "assetId": "eip155:1/erc20:0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48", "weight": "60" },
{ "assetId": "eip155:1/erc20:0xdac17f958d2ee523a2206206994597c13d831ec7", "weight": "40" }
]
},
"schedule": {
"type": "interval",
"frequency": "daily"
},
"preferences": {
"swap": {
"slippageBps": 300,
"priceImpactBps": 300,
"thresholdUsd": "5.00"
}
}
}'
const response = await fetch("https://api.glider.fi/v2/strategies", {
method: "POST",
headers: {
"x-api-key": "gldr_sk_your_api_key",
"Content-Type": "application/json",
},
body: JSON.stringify({
name: "Balanced Growth",
allocation: {
assets: [
{ assetId: "eip155:1/erc20:0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48", weight: "60" },
{ assetId: "eip155:1/erc20:0xdac17f958d2ee523a2206206994597c13d831ec7", weight: "40" },
],
},
schedule: { type: "interval", frequency: "daily" },
preferences: { swap: { slippageBps: 300, thresholdUsd: "5.00" } },
}),
});
{
"success": true,
"data": {
"strategyId": "01JWZEE2MF30KVRMRX53N88VA4",
"name": "Balanced Growth",
"description": "Multi-chain balanced allocation strategy",
"allocation": {
"assets": [
{ "assetId": "eip155:1/erc20:0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48", "weight": "60" },
{ "assetId": "eip155:1/erc20:0xdac17f958d2ee523a2206206994597c13d831ec7", "weight": "40" }
]
},
"schedule": {
"type": "interval",
"frequency": "daily"
},
"preferences": {
"swap": {
"slippageBps": 300,
"priceImpactBps": null,
"thresholdUsd": "5.00"
}
},
"isPublic": false,
"version": 1,
"createdAt": "2026-04-17T12:00:00.000Z"
}
}
{
"success": false,
"error": {
"code": "API_400",
"message": "Strategy validation failed: ...",
"details": ["Allocation weights must sum to 100"]
}
}
Creates a strategy from a flat list of asset allocations with a rebalance
schedule and optional swap preferences. Allocations are validated before the
strategy is persisted.
- Auth:
x-api-keyheader (required) - Scope:
strategies:write
eip155:1/erc20:0xa0b8...). Allocation
weights are string percentages that must sum to 100.
Schedule and preferences are stored separately and can be updated independently
via PUT /v2/strategies/:id/schedule and PATCH /v2/strategies/:id/preferences.
Common error responses:
400when the request body or allocation is invalid401whenx-api-keyheader is missing or the key is invalid403when the API key lacks thestrategies:writescope500on unexpected server errors
curl --request POST \
--url 'https://api.glider.fi/v2/strategies' \
--header 'x-api-key: gldr_sk_your_api_key' \
--header 'Content-Type: application/json' \
--data '{
"name": "Balanced Growth",
"description": "Multi-chain balanced allocation strategy",
"allocation": {
"assets": [
{ "assetId": "eip155:1/erc20:0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48", "weight": "60" },
{ "assetId": "eip155:1/erc20:0xdac17f958d2ee523a2206206994597c13d831ec7", "weight": "40" }
]
},
"schedule": {
"type": "interval",
"frequency": "daily"
},
"preferences": {
"swap": {
"slippageBps": 300,
"priceImpactBps": 300,
"thresholdUsd": "5.00"
}
}
}'
const response = await fetch("https://api.glider.fi/v2/strategies", {
method: "POST",
headers: {
"x-api-key": "gldr_sk_your_api_key",
"Content-Type": "application/json",
},
body: JSON.stringify({
name: "Balanced Growth",
allocation: {
assets: [
{ assetId: "eip155:1/erc20:0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48", weight: "60" },
{ assetId: "eip155:1/erc20:0xdac17f958d2ee523a2206206994597c13d831ec7", weight: "40" },
],
},
schedule: { type: "interval", frequency: "daily" },
preferences: { swap: { slippageBps: 300, thresholdUsd: "5.00" } },
}),
});
{
"success": true,
"data": {
"strategyId": "01JWZEE2MF30KVRMRX53N88VA4",
"name": "Balanced Growth",
"description": "Multi-chain balanced allocation strategy",
"allocation": {
"assets": [
{ "assetId": "eip155:1/erc20:0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48", "weight": "60" },
{ "assetId": "eip155:1/erc20:0xdac17f958d2ee523a2206206994597c13d831ec7", "weight": "40" }
]
},
"schedule": {
"type": "interval",
"frequency": "daily"
},
"preferences": {
"swap": {
"slippageBps": 300,
"priceImpactBps": null,
"thresholdUsd": "5.00"
}
},
"isPublic": false,
"version": 1,
"createdAt": "2026-04-17T12:00:00.000Z"
}
}
{
"success": false,
"error": {
"code": "API_400",
"message": "Strategy validation failed: ...",
"details": ["Allocation weights must sum to 100"]
}
}
⌘I