API Adjustments for OKX Users Supporting USDC Index Integration

ยท

Dear OKX Users,

To accommodate the integration of the USDC index, the following API adjustments will take effect during the maintenance window from 8:30 AM to 8:40 AM UTC on April 10, 2023. These updates ensure seamless trading and data retrieval for both USD and USDC-based instruments.

๐Ÿ‘‰ Explore OKX's latest API enhancements


Key API Adjustments

REST API Updates

Trade, Account, and Public Data Endpoints

EndpointRequest Parameter (uly)Response Parameter (uly)Adjustment
GET /trade/orders-pendingโœ“โœ—Filters orders by specified index (USD/USDC)
GET /trade/orders-historyโœ“โœ—7-day order history now index-specific
GET /trade/orders-history-archiveโœ“โœ—3-month archive supports index isolation
GET /trade/fillsโœ“โœ—Transaction details segregated by index
GET /public/mark-priceโœ“โœ—Returns mark price for requested index

Key Change: For USDC derivatives, response parameters will reflect the corresponding USDC index (e.g., BTC-USDC).


Market Data Endpoints

Index Services

EndpointNew Support
GET /market/index-tickersquoteCcy=USDC and USDC indices
GET /market/index-candlesUSDC index candlestick data
GET /market/index-componentsUSDC index constituent data

Example: Requesting BTC-USDC returns data exclusively for the USDC index.


Grid Trading Updates

EndpointResponse Parameter (uly)
GET /grid/orders-algo-pendingโœ“
GET /grid/orders-algo-historyโœ“
GET /grid/orders-algo-detailsโœ“

Note: Grid bots now return the corresponding USDC index in responses.


WebSocket Channel Modifications

ChannelSubscription Parameter (instId)Push Notification (uly)
index-candle30mโœ“โœ—
index-tickersโœ“โœ—
instrumentsโœ—โœ“
opt-summaryโœ—โœ“

๐Ÿ‘‰ Master OKX WebSocket integrations


Core Keywords

  1. USDC Index Integration
  2. API Adjustments
  3. OKX Trading
  4. REST API Updates
  5. WebSocket Channels
  6. Grid Trading Bots

FAQ Section

Q: How does the USDC index affect existing USD positions?

A: All existing positions remain unchanged. New API calls must specify the desired index (USD/USDC).

Q: Can I retrieve mixed USD/USDC data in a single request?

A: No. Each request must target either USD or USDC indices exclusively.

Q: When will historical data reflect these changes?

A: Data segmentation applies retroactively to all records after the update.

Q: Are WebSocket subscriptions backward-compatible?

A: Yes, but new subscriptions should specify the index parameter.


Implementation Notes

  1. Fee Structure: Separate maker/taker rates for USD and USDC instruments
  2. Portfolio Margining: Isolated calculations per index
  3. Liquidation Data: Index-specific reporting

For developers: Update API clients to handle index-specific responses and implement proper parameter validation.

OKX remains committed to providing transparent, efficient trading infrastructure through these technical enhancements.