Deletes the quote(s) from the orderbook that have not exceeded their deadline (max quotes quantity is 25). Please note that orders that have surpassed their deadline do NOT need to be cancelled. They are automatically removed from the orderbook and are unfillable on-chain. Cancelling orders does incur on-chain gas fees.
Used to fill quote(s) (max quotes quantity is 25). Only the size and quoteId for each quote are required. All quoteIds are returned either as 'success' or 'failed'. Each limit order that is trying to be filled is an "all or nothing" attempt.
Get all quotes for a specific option up to a specified size/qty. All orders will be ranked from best to worst according to price. Please note that this will not show the full state of the orderbook if the total market liquidity is greater than the size specified.
Publishes option quote(s) on-chain and into the orderbook (max quotes quantity is 200). Please note there is no gas that is paid to publish quotes. Deadline is the number of seconds the order is valid for. Price is normalized. For calls, price is denominated in the base token (ie 0.13 WETH), and for puts price is in denominated in the quote token but normalized using strike. For example, a put price of 0.13 => (234 USDC price / 1800 Strike ) is equivalent to 234 USDC if the strike is 1800. The takerAddress is optional and should only be populated if responding to an RFQ, otherwise omit.
{"failed": [ {"reason":"Quote deadline is invalid (cannot be less than 10 sec)","quote": {"base":"WETH","quote":"USDC","expiration":"03NOV23","strike":1700,"type":"P","side":"bid","remainingSize":3,"provider":"0x3ba638...fb25e","taker":"0x0000000000000000000000000000000000000000","price":".15","deadline":184,"quoteId":"0x3ba638...fb25e","ts":1698952534 } } ],"exists": [ {"base":"WETH","quote":"USDC","expiration":"03NOV23","strike":1700,"type":"P","side":"bid","remainingSize":3,"provider":"0x3ba638...fb25e","taker":"0x0000000000000000000000000000000000000000","price":".15","deadline":184,"quoteId":"0x3ba638...fb25e","ts":1698952534 } ]}