Setup OKX Broker Profile: Futures Position Size & Spot

·

Connecting your trading platform to a reliable broker is essential for seamless execution, accurate data flow, and efficient portfolio management. MultiCharts users looking to integrate with OKX, one of the leading cryptocurrency exchanges, can do so by configuring either an OKX Futures or OKX Spot broker profile. This guide walks you through the complete setup process, explains key settings, and highlights critical considerations for position sizing, order types, and troubleshooting common issues.

Whether you're trading futures contracts or spot crypto assets, understanding how MultiCharts interacts with OKX will help you avoid errors, optimize performance, and maintain precise control over your trades.

👉 Discover how to maximize your trading efficiency with advanced broker integrations


Configuring the OKX Futures Broker Profile

To begin trading futures on OKX via MultiCharts, you must first create a broker profile using your API credentials. Access the OKX Futures Settings window through Broker Profiles Overview > Managing Broker Profiles in MultiCharts.

Main Tab Settings

Connectivity Section

Ensure API permissions include trading and account access. Restrict IP binding if security is a priority.

Default Order Settings

Global Settings

Contracts Ratio Tab

Since MultiCharts does not support fractional shares or contracts natively, the Contracts Ratio feature bridges this gap for crypto trading.

For example:

This setting ensures compatibility between platform limitations and exchange requirements. Always verify the correct ratio for each symbol to avoid underfilled or rejected trades.


Understanding OKX Futures Orders and Positions

General Behavior

Supported Order Types

All standard order types are fully supported:

These execute as expected, with real-time feedback relayed through the Order and Position Tracker.

OCO Group Handling

OCO (One-Cancels-the-Other) groups are emulated by MultiCharts, meaning:

⚠️ Important Risk Note: There's a small window where both orders could execute if price hits both levels before cancellation is processed. This is known as slippage risk and should be factored into strategy design.

👉 Learn how professional traders manage order execution risks


Setting Up the OKX Spot Broker Profile

The process for configuring a spot trading account mirrors the futures setup but includes additional emulation layers due to wallet-based accounting.

Main Tab Configuration

Connectivity & Order Settings

Identical to futures:

Contracts Ratio for Spot

Just like futures, spot symbols require proper contract scaling:

Always confirm ratios match current exchange specifications to avoid trade rejection.

Open Positions Tab

Spot positions are emulated because OKX doesn’t provide direct position data.

Key functions:

⚠️ If trades occur outside MultiCharts (e.g., via web interface), the platform won’t recognize those changes unless manually synchronized.

Due to trading fees deducted from spot transactions, executed position sizes will be slightly smaller than intended. To align strategy positions with actual holdings, use the From Broker To Strategy MP Synchronizer tool after setup.

After configuration, select your broker profile for live trading by following the standard account selection procedure in MultiCharts.


Key Differences: OKX Spot vs. Futures

FeatureFuturesSpot
Position CalculationPartially provided by exchangeFully emulated by MultiCharts
Supported Stop OrdersYesNo (exchange limitation)
OCO ExecutionEmulatedEmulated
Margin Mode SupportIsolated/CrossN/A (no margin in standard spot)
Fees ImpactIncluded in P/L calcReduces position size directly

Troubleshooting Common Issues

Connection Failures

If the broker profile fails to connect:

  1. For futures: Ensure you’ve clicked Lookup in the Leverage tab.
  2. Check Order and Position Tracker → Logs:

    • "Timestamp outside recvWindow": Sync your PC clock via Adjust date/time > Sync now.
    • "Invalid API-key, IP, or permissions": Verify API details via email or regenerate keys in OKX.

Order Rejections

Review logs for specific error messages:

👉 Avoid common trading mistakes with smarter integration tools


Frequently Asked Questions (FAQ)

Q: Why are my spot positions smaller than expected?
A: Spot trades deduct fees directly from the asset amount. Since MultiCharts emulates positions, always account for commission impact and use synchronization tools.

Q: Can I trade stop orders on OKX Spot?
A: No. While limit and market orders are supported, stop orders are not available on the OKX Spot exchange.

Q: How does Contracts Ratio affect my trading?
A: It scales your order size between MultiCharts (integer-only) and OKX (fractional). Incorrect ratios lead to underfills or rejections—always verify per symbol.

Q: What happens if two OCO orders fill simultaneously?
A: Due to latency, both legs might execute before cancellation is processed. Monitor logs and consider tighter time windows or lower aggressiveness in volatile markets.

Q: Do I need separate API keys for Spot and Futures?
A: Not necessarily, but using distinct keys improves security and simplifies tracking usage across different profiles.

Q: How often should I sync my PC time?
A: At least daily, especially before high-frequency trading sessions. Time drift causes authentication failures due to strict API timestamp windows.


By carefully configuring your OKX broker profile—whether for futures or spot—you gain full control over trade execution within MultiCharts while maintaining compliance with exchange rules and technical constraints.