Markets

Quote opening a market

Says who pays the network fee to open a market and what it costs, after the same checks an open runs. When you pay and name the payer, it returns the transfer to send first, for an exact amount.

GET
/api/vaults/markets/open-quote

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, for example 8453 for Base.

venue*string

v4 for Uniswap V4 or aqua for 1inch Aqua.

tokenA*string

One token of the pair, as its 0x contract address. Either order works.

tokenB*string

The other token of the pair, as its 0x contract address.

fee*integer

The swap fee in hundredths of a basis point, so 3000 is 0.30%. Uniswap V4 takes 100, 500, 3000 or 10000, and 1inch Aqua any multiple of 100 up to 100000.

tickLower?integer

1inch Aqua only: the range's lower tick, a multiple of the fee's tick spacing.

tickUpper?integer

1inch Aqua only: the range's upper tick. The range must contain the current price.

payer?string

The wallet that pays the network fee, when the open asks you to pay it. The transfer must come from this wallet.

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/api/vaults/markets/open-quote?chainId=1&venue=v4&tokenA=string&tokenB=string&fee=1"
{  "chainId": 8453,  "venue": "v4",  "strategyId": "73086146705848958925038911468545957365231546973472400550838979085175874948157",  "open": false,  "payer": "aqua0",  "costWei": "4200000000000",  "amountWei": "0",  "nativeSymbol": "ETH",  "payment": null}
{  "error": "string",  "code": "string",  "message": "string",  "details": {},  "requestId": "string"}
{  "error": "string",  "code": "string",  "message": "string",  "details": {},  "requestId": "string"}