Skip to main content
Python function: getLatestPrice()

Product Overview

Overview

Latest Price Snapshot provides a single unified function to retrieve the most recent price for any supported asset class — equities, ETFs, indices, cryptocurrencies, forex, options, and Jupiter DEX tokens (including tokenized equities and pre-IPO tokens). It returns one row per ticker with the price and a timestamp indicating when that price was observed. This is the simplest way to get a current price quote across Scalar Field’s full asset universe.

Data Pipeline

The function automatically routes each ticker to the appropriate real-time data source based on its asset class:

Fallback Behavior

If the real-time snapshot is unavailable for a ticker (e.g., outside of market hours), the system falls back to the most recent previous close.

Coverage

  • Equities/ETFs: 10,000+ U.S.-listed symbols.
  • Indices: Major U.S. indices (I:SPX, I:DJI, I:VIX, etc.).
  • Crypto: All major cryptocurrency pairs (X:BTCUSD, X:ETHUSD, etc.).
  • Forex: 1,750+ currency pairs (C:EURUSD, C:GBPUSD, etc.).
  • Options: Any valid OPRA symbol.
  • Jupiter DEX tokens: Any Jupiter-tradeable Solana token via J:<mint_address> tickers, including tokenized equities (xStocks) and pre-IPO tokens (SpaceX, OpenAI, Anthropic, Anduril). See Jupiter Data.

Querying the Data

Basic Usage

Parameters

Column Definitions

Latest Price Schema