Skip to content

stock_snapshot_market_value

Latest market value snapshot for one or more stocks.

FreeValueStandardPro

Code Example

rust
let data = tdx.stock_snapshot_market_value(&["SPY"]).await?;
for t in &data {
    println!("date={} market_bid={:.4} market_ask={:.4} market_price={:.4}",
        t.date, t.market_bid, t.market_ask, t.market_price);
}
python
data = tdx.stock_snapshot_market_value(["SPY"])
for t in data:
    print(f"date={t.date} market_bid={t.market_bid:.4f} "
          f"market_ask={t.market_ask:.4f} market_price={t.market_price:.4f}")
typescript
const data = tdx.stockSnapshotMarketValue(['SPY']);
for (const t of data) {
    console.log(`date=${t.date} market_bid=${t.market_bid} market_ask=${t.market_ask} market_price=${t.market_price}`);
}
cpp
auto data = client.stock_snapshot_market_value({"SPY"});
for (const auto& t : data) {
    printf("date=%d market_bid=%.4f market_ask=%.4f market_price=%.4f\n",
        t.date, t.market_bid, t.market_ask, t.market_price);
}

Parameters

symbolsstring[]required
One or more ticker symbols
venuestringoptional
Data venue filter
min_timestringoptional
Minimum time of day as milliseconds from midnight ET

Response

Vec<MarketValueTick> with market value fields. The exact fields depend on the data available for the requested symbols.

Sample Response

json
[
  {"date": 20260402, "market_bid": 258.50, "market_ask": 258.55, "market_price": 258.52}
]

Market bid, ask, and price for each requested symbol.

Notes

  • Accepts multiple symbols in a single call.
  • Returns an array of MarketValueTick records (typed per SDK).

Released under the Apache-2.0 License.