Skip to main content

API

OKX

单个产品行情信息

  • 20/2s
GET https://www.okx.com/api/v5/market/ticker?instId=BTC-USDT-SWAP

获取指数行情

  • 20/2s
GET https://www.okx.com/api/v5/market/index-tickers?instId=BTC-USDT

法币汇率

GET https://www.okx.com/api/v5/market/exchange-rate
  • usd -> cny

Binance

### 全部价格
GET https://api.binance.com/api/v3/ticker/price
### 单个 Symbol 价格
GET https://api.binance.com/api/v3/ticker/price?symbol=ETHUSDC
### 多个 Symbols 价格
GET https://api.binance.com/api/v3/ticker/price?symbols=["ETHUSDC","ETHUSDT"]