What’s New in V2
Trigger V2 unifies two products that previously had separate APIs: limit orders (Trigger V1) and DCA (the Recurring V1 API). Here is what changes if you are migrating from either.Limit orders: Trigger V1 vs V2
DCA: Recurring V1 vs Trigger V2
DCA integrators are coming from the Recurring API, which is now unmaintained. What changes under Trigger V2:Order Families
The API has two order families that share the same vault, authentication, and deposit flow.Price Orders
Execute a swap when the USD price of a token crosses a threshold. See Create Order.DCA (Dollar-Cost Averaging)
Split a single deposit into multiple swaps that execute on a fixed schedule. See DCA.How It Works
Each wallet gets a single vault (a Privy-managed custodial account). When you create orders, tokens are deposited from your wallet into your vault. The vault holds funds for all your active orders.- Authenticate: Sign a challenge with your wallet to receive a JWT token
- Set up your vault and deposit: Resolve your vault (or register one on first use), then craft and sign a deposit that funds the order
- Create an order: Submit a price order or a DCA order with the signed deposit
- Monitor: Track order state, fills, and events for price orders or DCA orders
- Manage: Update or cancel price orders, or cancel DCA orders
Base URL
x-api-key header. Authenticated endpoints additionally require a JWT token via the Authorization: Bearer <token> header.
Get an API key
FAQ
How do I get my funds back from an order?
How do I get my funds back from an order?
Can I edit an order after creating it?
Can I edit an order after creating it?
Why is the output amount not guaranteed?
Why is the output amount not guaranteed?
What is the minimum order size?
What is the minimum order size?
What happens if my JWT expires while I have open orders?
What happens if my JWT expires while I have open orders?
What is an OCO order?
What is an OCO order?
What is an OTOCO order?
What is an OTOCO order?
What is a DCA order?
What is a DCA order?
time_based) or only within a price band (price_conditional). Each round must currently be worth at least 10 USD. See DCA.How do I stop a DCA order and get unspent funds back?
How do I stop a DCA order and get unspent funds back?
What is a price-conditional DCA?
What is a price-conditional DCA?
[minPriceUsd, maxPriceUsd]. While the price is out of band, the round waits and reschedules to the next interval. See Price-conditional orders.What is the default slippage?
What is the default slippage?
Can I set a trigger based on market cap?
Can I set a trigger based on market cap?
triggerPriceUsd). Market cap targeting is a convenience feature on the jup.ag frontend — it converts the market cap to a USD price before submitting to the API. To replicate this, divide the target market cap by the token’s total supply to get the per-token USD price.Are my pending orders visible to MEV bots?
Are my pending orders visible to MEV bots?
Does Trigger V2 support integrator fees?
Does Trigger V2 support integrator fees?
