Strategy Creation
A step-by-step guide to creating and managing strategies using the Glider API.
This guide will walk you through the complete process of creating, signing, starting, and evaluating strategies using the Glider API.
Create a Strategy
Let’s create a basic strategy with a 70/30 asset weighting between UNI and LINK tokens. You’ll need to create a strategy by sending a POST request to the /strategies/create
endpoint.
The response will include a strategyId
which is the unique identifier for your strategy.
Sign the Strategy's Session Key
To authenticate ownership of the strategy and provide Glider access to manage the assets within the strategy, you need to sign a message with the owner’s wallet. First, get the message to sign.
Sign the message with the owner’s wallet. Depending on your use case, you can sign the message directly with Viem or with wallet providers like Privy.
Once you have the signature, send it to the API:
Fund the Strategy
Before starting the strategy, you need to fund it with some assets. Let’s deposit 0.2 ETH:
Start the Strategy
Now that you’ve created, signed, and funded the strategy, you can start it to begin the automation:
Check the Strategy Status
You can check the status of your strategy at any time: