session

$0.005 per call

Whether the US market is open, what that means for the xStock's OKX price, and whether the token is tradable on-chain right now.

Parameters#

NameTypeDescription
symbolstring, requiredNVDA, SPY or TSLA (NVDAx and wNVDAx forms accepted)

Request#

The first call answers 402; pay and repeat it. See How x402 payments work.

curl -i "https://api.roundlot.0xo.in/v1/session?symbol=SPY"

Response#

Read on 25 Sep 2026 at 03:54 UTC, overnight in New York:

JSON
{
  "symbol": "SPY",
  "underlying": "SPDR S&P 500 ETF Trust",
  "usEquityMarket": {
    "phase": "closed", "reason": "overnight",
    "nowNewYork": "2026-09-24 23:54 ET",
    "nextOpen": "2026-09-25T13:30:00.000Z",
    "nextClose": "2026-09-25T20:00:00.000Z",
    "earlyClose": false
  },
  "okx": { "instId": "XSPY-USDT", "state": "live", "tradesAroundTheClock": true,
    "pricing": "last close plus market estimate" },
  "token": { "address": "0x90a2a4c76b5d8c0bc892a69ea28aa775a8f2dd48", "paused": false,
    "multiplier": 1.005714560286254, "pendingMultiplier": null },
  "onchain": { "pool": "0x07c40850D14064D20eB0AfDEf9574675392f2c11", "inRangeLiquidity": true, "tradable": true },
  "warnings": ["US market is not in regular hours: OKX prices are last close plus a market estimate, not a live underlying price."],
  "data": { "network": "eip155:196" }
}

Phases, hours and holidays are in Market sessions.

Errors#

CodeHTTPWhen
invalid_input400symbol is missing; no payment is asked for
unknown_symbol400The symbol isn't NVDA, SPY or TSLA
rate_limited429More than 60 requests a minute from your IP
payments_unavailable503The facilitator isn't reachable; the free catalog still works
upstream_error502X Layer RPC or OKX market data failed; try again

None of these are charged.

Last updated 25 Sep 2026

Roundlot

Pay-per-call market data and trade plans for tokenized equities on X Layer. Built for OKX Dev Day 2026.

Payments settle on X Layer testnet. Data and trade plans are X Layer mainnet. Not investment advice.