OKX logo
Sferica Integration

Automate OKX Trading

Automate OKX perpetual futures and spot trading from TradingView and TrendSpider alerts via the Sferica connector — no coding required.

CRYPTO
FUTURES

Overview

OKX is one of the largest crypto derivatives exchanges by daily volume. Sferica integrates OKX Futures through Tickerly, supporting USDT-margined perpetuals with full order-type coverage and leverage controls. The connector handles cross and isolated margin, hedge or one-way position mode, and reduce-only flags per Sferica strategy configuration.

Key Features

  • USDT-margined perpetual futures

  • Deep liquidity on majors and altcoins

  • Cross and isolated margin per strategy

  • Hedge and one-way position modes

  • Live trade mirroring to Sferica leaderboard

Setup in 3 Steps

  1. Generate OKX API credentials

    In OKX, open Account → API and create a new V5 API key with Trade permission for Perpetual Futures. Keep Withdraw off. OKX requires you to set a custom passphrase when creating the key — pick one and save it (this is separate from your account password). At the end you receive three values: API key, secret key, and passphrase. The secret displays only once.

  2. Create the OKX connector in Sferica

    In your Sferica dashboard, open TradingView Connector Configurations and create a new connector with OKX Futures selected. Paste the API key, secret, and passphrase. Sferica returns a unique pointer string that links your TradingView alerts to this OKX account.

  3. Create the TradingView alert

    Open a Sferica strategy detail page, click through to the chart on TradingView, and create an alert. Use the alert message structure documented in "Setting Up TradingView Alerts" and include the pointer from step 2 — that's what routes the alert through Sferica to your OKX account. Once saved, every alert executes automatically.

Frequently Asked Questions

Does Sferica support OKX spot?

Currently the OKX integration covers OKX Futures (perpetuals). Spot is not part of the connector at this time.

What asset classes are supported?

USDT-margined perpetual futures across majors and altcoins available on OKX Futures.

Can I use sub-accounts?

Yes. Generate API keys on a Sferica-dedicated OKX sub-account to isolate Sferica trades from manual activity.

Ready to automate OKX?

Start a 14-day free trial or browse the live-tracked strategies running on OKX right now.