OKX API
finance & crypto8 endpoints for public OKX data. Send your key in x-api-key; you pay for calls that run, and errors on our side are free. OKX API overview, examples and prices →
| endpoint | what it returns | parameters | cost | actions |
|---|---|---|---|---|
| GET/okx/ | OKX candles | inst +4 optional | 1 cr | docstry |
| GET/okx/ | OKX funding rate | inst +2 optional | 1 cr | docstry |
| GET/okx/ | OKX instruments | 3 optional | 1 cr | docstry |
| GET/okx/ | OKX open interest | 9 optional | 1 cr | docstry |
| GET/okx/ | OKX order book | inst +1 optional | 1 cr | docstry |
| GET/okx/ | OKX ticker | inst +1 optional | 1 cr | docstry |
| GET/okx/ | OKX market tickers | 7 optional | 1 cr | docstry |
| GET/okx/ | OKX recent trades | inst +3 optional | 1 cr | docstry |