Developers

Strategies

How strategies take investment, queue and pay redemptions, and get delisted, for managers who run one through the API.

On this page

A strategy is a trading sub-account that other people invest in. Investors get shares; the manager trades the strategy's money. The API and the SDKs call strategies vaults: the calls are vault_*, the signed types VaultInvestV3, VaultRedeemV3 and VaultBurnLpToken, and fields such as vault_id.

This page is for managers who run their strategy through the API. The calls are under Strategies in the reference.

Creating one

  1. In the Grvt web app, open Invest → Become a Strategy Manager. This is open to approved accounts only.
  2. Seed the strategy with at least 1,000 USD in its quote currency.
  3. Switch to the strategy sub-account, log in with an API key for it, and trade as you would on any sub-account.

A strategy differs from a normal sub-account in three ways:

  • Fixed leverage. Every position opens at the strategy's fixed initial leverage (5x), and set_initial_leverage is rejected. The de-risk level, where Grvt starts reducing positions before liquidation, is also fixed, at 2x maintenance margin (the minimum margin before liquidation).
  • No transfers. transfer to or from a strategy fails. Money comes in only through vault_invest and leaves only through redemptions.
  • Extra margin for urgent redemptions. When the strategy places orders, the value of its urgent redemption requests (How redemptions are paid) is added to its initial margin (the margin needed to hold its positions and orders). sub_account_summary shows this as vault_im_additions. If it pushes the requirement above equity, the strategy can only place orders that reduce risk.

Shares and share price

share price = strategy equity (USD) / shares outstanding

Strategy equity is the strategy's balances plus its positions at mark price, so it includes unrealized profit and loss. Investing buys shares at the current price. Redeeming sells them back at the price when the redemption is paid, not when it was requested; the investor then pays the strategy's performance fee on their profit (the manager's own shares pay none). The manager can invest and redeem in their own strategy, and can burn their own shares with vault_burn_tokens, which raises the price for everyone else.

Investing (vault_invest) needs the vault investor (or admin) permission on the investor's main account; investing from a sub-account also needs the transfer permission there. See Accounts and permissions.

How redemptions are paid

An investor asks to redeem with vault_redeem, and the request joins the strategy's redemption queue. Grvt pays from the queue automatically. As manager, you keep enough free money in the strategy for it to do so.

Each strategy has a minimum and a maximum redemption period, set by the manager (up to 7 and 28 days). A request's age decides its category, shown as age_category in vault_redemption_queue:

CategoryAgeWhat happens
PRE_MINunder the minimum periodWaits. Listed separately under pre_min, not paid yet.
NORMALpast the minimum periodPaid automatically when the strategy has room.
URGENT90% or more of the maximum periodPaid before every normal request; adds to the strategy's margin.
OVERDUEpast the maximum periodForce-redeemed (Forced redemption).

Urgent requests are paid first, then normal ones, each oldest first. One exception: among normal requests, when the smallest one is at most a fifth of the oldest one, the smallest goes first. The queue response is already in payment order.

On every mark-price update, Grvt pays the request at the head of the queue if the strategy's auto-redeemable balance covers it:

auto-redeemable = available balance − barrier × initial margin
available balance = margin balance − initial margin − max(unrealized PnL, 0)

Unrealized PnL is the profit or loss on open positions. Initial margin counts twice, so Grvt keeps back (1 + barrier) × initial margin in total, plus any unrealized profit. The barrier is a multiplier you set, between 0.8 and 2.0: a higher barrier keeps more money back for open positions. The queue response gives the current auto_redeemable_balance, share_price, and the share counts waiting (pending_redemption_token_count) and urgent (urgent_redemption_token_count).

Watch out: if the head request is bigger than the auto-redeemable balance, nothing behind it is paid either.

Example: small requests jumping ahead

Normal requests of 1k, 50k, 100k, 20k, 10k and 25k (oldest first) are paid 1k, 10k, 50k, 20k, 100k, 25k. After 1k, the 10k is a fifth of the 50k at the head, so it jumps ahead. Then the 20k is a fifth of the 100k, so it jumps ahead too.

Forced redemption

A request past the maximum period is paid even if the auto-redeemable balance does not cover it, one request per strategy at a time. Grvt only does this if the strategy's equity stays above its maintenance margin with a safety buffer, so the payment can't put the strategy in danger of liquidation.

When it can't pay, the request stays in the queue, and the manager and investor are notified about once an hour until it is paid. To unblock it, raise equity (invest more, take profit) or lower margin (close positions).

Delisting

Grvt delists a strategy automatically when its share price falls below a minimum, for example after a liquidation. A delisted strategy:

  • takes no new investment and cannot change its settings, including the redemption periods;
  • can only place orders that reduce risk;
  • stops automatic redemption; forced redemption continues, so investors are paid out over time.

Delisting cannot be undone. To keep the share price up, invest more or burn shares.

Permissions on business accounts

WhoCan
Admin on the strategy sub-account (Trading Admin, shown as "Strategy Admin" on a strategy)trade, add users, change strategy settings
Trade on the strategy sub-accounttrade
Admin on the main account ("Funding Admin")everything above, plus invest, redeem and burn shares
Vault investor on the main account ("Strategy Investor")invest and redeem from the main account

No transfer or withdraw permission lets you transfer in or out of a strategy: money moves only through investing and redemptions. Investing from a sub-account needs both the vault investor permission and that sub-account's transfer permission (Shares and share price).

esc

↑ ↓ move↵ open⇧↵ open .mdTry an error code like 2002

Keyboard shortcuts

⌘ K
Search the docs
/
Search
l
Next code language (Python → TypeScript → Go → Rust → curl → WebSocket)
j / k
Next / previous page
t
Light / dark theme
?
This help
Esc
Close dialogs and drawers