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.
Authorization
ApiKeyAuth 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
The chain's numeric id, for example 8453 for Base.
v4 for Uniswap V4 or aqua for 1inch Aqua.
One token of the pair, as its 0x contract address. Either order works.
The other token of the pair, as its 0x contract address.
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.
1inch Aqua only: the range's lower tick, a multiple of the fee's tick spacing.
1inch Aqua only: the range's upper tick. The range must contain the current price.
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"}Open a market
Opens a Uniswap V4 market for a pair and fee, or a 1inch Aqua range for a pair, fee and ticks, at the current market price, for any two tokens that have a price. It takes an API key issued to your integration, and when the open has a network fee for you to pay it answers 402 with the transfer to send first.
Open a market on Solana (Orca, Raydium)
Opens an Orca or Raydium market for a pair, with its strategy, at the price feed's price. A new market's setup is paid by your wallet: a 402 names the amount, and you call again with the payment.