Strategies

List or look up strategies on a chain

Returns the strategies on a chain with their two asset vaults, or one strategy when `vault` and `strategyId` are given. Pass `asset0` and `asset1` to list one pair, with whether each strategy can route now.

GET
/api/vaults/strategies

Authorization

ApiKeyAuth
X-API-Key<token>

Your API key. Authorizing a swap or opening a market takes a key issued to your integration, and the shared key the docs fill in reads and quotes only.

In: header

Query Parameters

chainId*integer

The chain's numeric id. GET /api/vaults/chains lists them.

vault?string

Only this asset vault's strategies. Required with strategyId.

strategyId?string

Look up one strategy on vault instead of listing.

asset0?string

With asset1, only strategies on this token pair, each with whether it can route now.

asset1?string

With asset0, the pair's other token.

Response Body

application/json

application/json

curl -X GET "https://example.com/api/vaults/strategies?chainId=1"
{  "chainId": 8453,  "strategies": [    {      "strategyId": "38960560214548620419581884607967218229413556116830054641371650059665611327033",      "paused": false,      "legs": [        {          "vault": "0x256218A93992256F47c4735e1Fc070d90EaeA263",          "asset": "0x4200000000000000000000000000000000000006",          "symbol": "aqWETH",          "paused": false        },        {          "vault": "0xb367A4306087d3981B38C032464cD7E3A7a03A4E",          "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",          "symbol": "aqUSDC",          "paused": false        }      ]    }  ]}
{  "error": "string",  "code": "string",  "message": "string",  "details": {},  "requestId": "string"}