Skip to main content
velora quote fetches a swap price from the Velora API and prints a readable summary, or the raw JSON with --json. It prices both Delta and Market; with the default --mode ALL the API returns whichever applies.

Tokens and amounts

Each token flag accepts a symbol or an address:
  • A symbol (DAI, USDC) resolves against the bundled token lists for the chain, and its decimals fill in automatically.
  • An address is used as-is. This includes the native placeholder 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE and the chain’s native currency symbol (ETH, MATIC), both of which map to the native token.
--amount is in human units (e.g. 1.5), not wei. For a SELL it is the source amount; for a BUY it is the destination amount. The CLI converts it using the relevant token’s decimals. When a token isn’t in the lists, set its decimals explicitly with --src-decimals / --dest-decimals; otherwise the command errors rather than guessing.

Options

Multi-word flags also accept a camelCase alias (e.g. --srcToken for --src-token), matching the --payload key names.
--side is matched case-insensitively and the documented forms are uppercase (SELL, BUY); the same goes for --mode (DELTA, MARKET, ALL).

Pricing modes

With --mode ALL (the default) the API returns one shape: a Delta intent when one is available, or a Market route otherwise. The summary’s path: line tells you which came back, and notes when Delta was unavailable and the quote fell back to Market. Force a single mode when you need it:

Crosschain quotes

Pass --dest-chain (differing from --chain) for a crosschain quote. These are Delta-only, so the command rejects --mode MARKET for them.

Reusable params with --payload

--payload <file> reads a JSON object whose camelCase keys mirror the flags, so you can pin the params that rarely change (like userAddress, apiKey, partner) in a file and pass only the trade specifics on the command line. A flag, when given, overrides the matching payload value; the payload fills in for any omitted flag.
trade.json
Allowed keys: amount, srcToken, destToken, srcDecimals, destDecimals, chain, destChain, side, mode, userAddress, partner, partnerFeeBps, maxImpact, maxUsdImpact, apiUrl, apiKey. Values may be strings, numbers, or booleans; unknown keys are rejected so typos surface early. (maxUsdImpact maps to the API’s maxUSDImpact.)

JSON output

--json prints the raw API response to stdout, so you can redirect it or pipe it on:
  • Install: set up the velora binary and an API key.
  • SDK: the library the CLI wraps, for building and submitting orders.
  • Delta API quote: the underlying endpoint and its full response shape.
Last modified on June 22, 2026