Skip to content

Get Quote

read-only · idempotent

Get current price for a symbol.

When QUOTE session is enabled and the symbol is subscribed, returns real-time bid/ask prices (source: “live_quote”). Otherwise falls back to last fill price from TRADE session (source: “last_fill”).

RESPONSE FIELDS:

  • bid/ask: Real-time prices (live_quote source only)
  • spread: Bid-ask spread in pips (live_quote source only)
  • price: Last fill price (last_fill source only)
  • source: “live_quote” or “last_fill”
  • staleness_seconds: Seconds since last update
  • staleness_warning: Present when quote is older than threshold

USAGE:

  • Provide symbol parameter (e.g., “EURUSD”, “XAUUSD”)
  • Use subscribe_quotes first if you need live prices for a symbol
  • Check staleness_seconds to verify data freshness

This is a read-only operation with no risk checks.

ParameterTypeRequiredDescription
symbolstringYesSymbol to get quote for (e.g., ‘EURUSD’, ‘XAUUSD’)