quotes

Indicative quote against a specific live strategy

Indicative only. Nothing is signed, nothing moves. A signable price comes from the write path.

Simulated on-chain against the strategy as it stands right now. Coverage is real but partial, and the response says which case it is: a maker may gate a strategy on the caller holding an access licence token. This is the common case: sampling 500 catalogue positions without the quote_ready filter, 92 percent answered "Strategy is gated", 5 percent returned a price and 3 percent failed for other reasons. Those return UNPROCESSABLE with error: "Strategy is gated"; the rest return a live quote. The endpoint never returns a guessed price.

get/api/quote

Request

  • Base URL: https://yield.trdefi.com
  • URL: https://yield.trdefi.com/api/quote
  • Auth: none required

Query parameters

hashstring required

Strategy hash, 64 hex characters.

chainstring

Chain key. Defaults to ethereum.

amountstring required

Amount in token base units, as a string.

direction'aToB' | 'bToA'

Swap direction.

Response

Indicative quote

object required

Changes

No recorded changes to this operation across all 1 revision of this API.