Before you start
Keep your API key on your backend. The key needs:strategies:writeto validate, create, and update strategies.strategies:readto list strategies and read their configuration, performance, and version history.
1. Define and validate your first strategy
Allocations use CAIP-19 asset IDs. A strategy can contain from 1 through 50 assets. Each weight must be a positive percentage string with no more than two decimal places. All weights must total100.
Start with a private draft:
2. Create the strategy
strategyId. It identifies the strategy across all future
versions and is the value that distributors use.
3. Manage the strategy
Use these routes to operate your strategy:
For example, update the display metadata without changing the allocation:
name, description, and isPublic.
4. Change weights or add assets
Allocation versions are immutable. Publish a new version with the complete target allocation. The request is not a partial patch. If you omit an existing asset, it is not part of the new target. This example changes both weights and adds WBTC:GET /v2/strategies/{strategyId}/versions. To restore an old allocation,
publish that allocation again as a new version.
See Updating Strategies for the complete update
route reference.
5. Make the strategy public
After you review the strategy, setisPublic to true:
isPublic: true when you first create the strategy. Keeping
it private until review is safer because it prevents distribution of an
unfinished allocation.
When the strategy is public:
- Give distributors the
strategyId. They use their own Glider API key, not yours. - A distributor with
strategies:readcan read the strategy configuration. - A distributor with
enroll:writecan use thestrategyIdin the two-stage enrollment flow. - You can share its Glider page at
https://glider.fi/strategy/{strategyId}.
Public status does not guarantee placement in Glider’s curated or
top-performing collections. Curated placement is managed by Glider.
Top-performing placement depends on live strategy analytics. Contact Glider
if you want the strategy considered for a featured surface.
GET /v2/discovery/strategies. That endpoint returns the curated and
top_performing collections. A partner that already has your strategyId can
integrate the strategy directly without waiting for curated placement.