Get a priceRead what one thing is trading at on OKX right now: the last traded price, the best bid and ask, and how far it has moved in the last 24 hours, as an amount and as a percentage, so a price alert needs no arithmetic of its own. Works on spot pairs and on futures alike. No API key required.
List pricesTake a snapshot of a whole OKX market at once and order it: the day's biggest gainers, the biggest fallers, or simply what is busiest. Narrow it to one quote currency to compare like with like, every USDT pair against every other. Use it for a daily market digest. No API key required.
Get price historyGet an instrument's price over time as candles: open, high, low, close and volume for each minute, hour, day, week or month, plus how it moved across the whole window in one summary. Leave the dates empty for the most recent candles, or pick a window years back: OKX splits recent and archived candles across two endpoints and this reads across both. No API key required.
Get the order bookRead the orders currently resting on both sides of an instrument, with the spread, the mid price and the volume stacked on each side already worked out. Use it to judge how much can be traded before the price moves. No API key required.
List recent tradesList the trades that have just executed on an instrument, newest first, with how much of the volume was buying and how much was selling. Use it to see where the pressure is coming from rather than only where the price ended up. No API key required.
List instrumentsList what OKX has listed on a market, with the rules each one trades under: its smallest order, its tick size, its leverage cap and, for a dated contract, when it settles. Search it by name to find how OKX spells a pair before filtering on it elsewhere. No API key required.
Get an index priceRead an OKX index: the reference price it computes from several exchanges rather than from its own order book, and the price its contracts settle against. Use it when you want the market's price for an asset rather than one venue's, and get the 24-hour move with it. No API key required.
Get index sourcesShow where an OKX index price comes from: which exchanges feed it, what each of them is quoting, and how much each one counts for. Use it to explain an index price, or to spot one venue drifting away from the rest. No API key required.
Get a mark priceRead the mark price of a contract: the price OKX values open positions at, and the one liquidations are measured against. It is deliberately not the last traded price, so compare the two when a market looks stretched. No API key required.
Get the funding rateRead the next funding payment on a perpetual contract: the rate, when it settles, and which side pays, as a plain true/false rather than a sign you have to interpret. Funding is what keeps a perpetual near spot, so a persistently high rate is the market telling you it is crowded on one side. No API key required.
Get funding rate historyList what funding actually cost on a perpetual over a window, settlement by settlement, with the average across them. Use it to work out the real carrying cost of holding a position, which the current rate alone never shows. OKX keeps about three months. No API key required.
Get open interestRead how much is open on a contract: the size of every position still outstanding, in contracts, in coins and in US dollars. Leave the contract empty for a whole derivatives market at once, ranked by size, with the total beside it. Rising open interest with a rising price means new money; falling means positions closing. No API key required.
Get OKX trading volumeRead how much OKX itself traded in the last 24 hours, across everything it lists. One number for the size of the venue, for a market report or a week-on-week comparison. No API key required.
Check for OKX maintenanceCheck whether OKX is in maintenance or about to be, and what it affects. The answer carries two plain flags, one for maintenance under way and one for maintenance scheduled, so a workflow can hold off without reading any dates. No API key required.