All
FAQ
Announcements
Product documents
Integrating OKX Signal Bot with Runbot.io
In essence, Runbot's platform is designed to simplify and amplify the trading experience, making it accessible and profitable for traders of all levels. How to connect Runbot and OKX? Don’t worry, it’s very easy and it should only take you a few minutes! To receive your Strategy Alerts directly on OKX and automate your trading, go to https://app.runbot.io/Bot/. Click "+ Create new Free webhook".Published on Nov 8, 2023Updated on Apr 1, 2025Product documentationFutures Grid
(For example: 1, 2, 3, 4.) Grid - Geometric grid: It keeps the same common ratio between each grid. (For example: 1, 2, 4, 8.) Leverage: The leverage used when trading contracts in the strategy. The maximum leverage currently allowed is 50x. Invested margin: The actual amount that was invested in this grid strategy.Published on Jun 17, 2022Updated on Nov 24, 2025Product documentationIntroduction to Trading bot Mode
The futures grid currently supports all USDT-margined contracts and will support crypto-margined contracts in the future. 2. Use cases of Futures Grid trading The essence of futures grid is "volatility arbitrage", so the strategy is suitable when the market is sideways or volatile with the price continuously fluctuate within a range.Published on Jan 9, 2023Updated on Jul 29, 2025Product documentationTrading Signal Bot FAQs
In essence, maxLag signifies the maximum duration you allow between sending a signal via TradingView (as reflected by the "timestamp" field in your alert) and the moment it's effectively received and processed by OKX. Maxlag in your alter message To address this situation, consider adjusting the maxLag value in your alert messages to a higher threshold. This extended limit should accommodate any potential delays more effectively.Published on Oct 9, 2023Updated on Jan 27, 2026FAQ136Spot cost price
On Day 1, you purchase 2 ETH at a price of 3000, and the last price is 3500. Average cost price Average cost price = (0 + 3000 * 2) / 2 = 3000 PnL = (3500-3000)*2 = 1000 PnL Ratio = (3500 - 3000)/3000 * 100% = 16.67% Cumulative Cost Price Cumulative Cost Price = (3000 * 2 - 0)/2 = 3000 PnL = 3500 * 2 - 3000 * 2 + 0 = 1000 PnL Ratio = 1000 / (3000 * 2 - 0) * 100% = 16.67% Scenario 2: On Day 2, you sell 1 ETH at a price of 3500, and the last price is now 4000.Published on Jun 17, 2022Updated on Nov 6, 2025Product documentationHow long does it take for a deposit to be completed?
Bundle verification: if you choose to transact on a Layer 2 network (such as Optimism, Base, or Arbitrum One), the transaction will be verified on Layer 2 and then bundled with other transactions as a single bundle for verification on Layer 1.Published on Oct 17, 2024Updated on Jan 1, 2026FAQ394Spot and futures cross margin mode
The current margin position is a short position—Its position asset is 30,000 USDT, Leverage is 10X, liability 2 BTC, with interest and fees temporarily ignored.1. Buy 2.5 BTC at the filled price of 10,000 USDT. This order uses position asset of 25,000 USDT to pay off the liability of 2 BTC. The remaining 0.5 BTC will be transferred to BTC single-currency account balance. Although the liability is paid off, the position is not closed yet with a position asset of 5,000 USDT.2.Published on Jun 17, 2022Updated on Nov 6, 2025Product documentationSpot DCA (Martingale)
For example, with a safety order amount = 100 USDT, multiplier = 2. Safety orders will be placed: 100 = (2^0 × 100) 200 = (2^1 × 100) 400 = (2^2 × 100), et cetera Price steps multiplier: Applied to the price step for placing the next safety order. It increases or decreases the price gap between safety orders. For example, with a price step = 1%, multiplier = 2.Published on Apr 27, 2023Updated on Aug 5, 2025Product documentationHow can I do spot trading with the Jupyter Notebook?
acctLv == "2": 14 print("Single-currency margin mode") 15 elif acctLv == "3": 16 print("Multi-currency margin mode") 17 elif acctLv == "4": 18 print("Portfolio margin mode")10.Published on Sep 29, 2023Updated on Sep 10, 2025FAQ543Futures DCA (Martingale)
For example, with a safety order amount = 100 USDT, multiplier = 2. Safety orders will be placed: 100 = (2^0 × 100) 200 = (2^1 × 100) 400 = (2^2 × 100), et cetera Price steps multiplier: Applied to the price step for placing the next safety order. It increases or decreases the price gap between safety orders. For example, with a price step = 1%, multiplier = 2.Published on Apr 27, 2023Updated on Oct 9, 2025Product documentationPortfolio margin mode: cross-margin trading (Risk Unit Merge)
Example: If the USDT-USD hedging volume is 10,000,000 USD, and USDT/USD = 0.985 (falling under tier 3), then MR9 is calculated as follows: Tier 1 factor value: 0.5% + (0.99 – 0.985) / 1% × (1% – 0.5%) = 0.75% Tier 2 factor value: 1.5% + (0.99 – 0.985)/ 1% × (2% – 1.5%) = 1.75% Tier 3 factor value: 2% + (0.99 – 0.985) / 1% × (3% – 2%) = 2.5% MR9 = 1,000,000 (max amount considered in tier 1) × 0.75% + 4,000,000 (max amount considered in tier 2) × 1.75% + 5,000,000 × 2.5% = 202,500 USDNote: For eachPublished on Dec 3, 2024Updated on Dec 4, 2025Product documentationAddress type upgrade FAQ
Example 1: Entry 1: (Standard) Address A Entry 2: (Universal) Address A These addresses will be merged to Entry 2, which allows withdrawals of any crypto selected for a specific network, based on compatibility. Example 2: Entry 1: (Standard) Address A Entry 2: (Universal) Address A Entry 3: (EVM) Address A These addresses will be merged to Entry 3, which allows withdrawals of any crypto selected for EVM compatible networks.How does the verification period works after the address type upgrade?Published on Aug 26, 2025Updated on Dec 30, 2025FAQ858Scheduled Maintenance Notice – March 20, 11:00 - 11:30 PM PST
restored within 2–3 minutes after the maintenance is completed.Published on Mar 16, 2026Updated on Mar 17, 2026AnnouncementsInterest Calculation
Interest-free quota Interest-free limit Asset Interest-free limit USDT 20000USDT+Max(0,Cross equity of USDC) USDC 5000 BTC 1 LTC 10 ETH 5 ETC 2000 XRP 5,000 EOS 500 BCH 5 BSV 5 TRX 30,000 LINK 50 DOT 50 ADA 500 ALGO 500 ATOM 20 CRV 100 FIL 10 DASH 2 IOST 10,000 IOTA 500 KNC 200 NEO 10 ONT 300 QTUM 100 THETA 100 SUSHI 30 SUN 20 XLM 1,000 UNI 20 XMR 2 XTZ 100 ZEC 2 YFI 0.01 YFII 0.1 Notes: The maximum interest-free range is calculated on a per-account basis, which means each main account or sub-accountPublished on Dec 16, 2020Updated on Nov 6, 2025Product documentationIceberg strategy
When the last market price exceeds 2*(Price variance), the previous order would be canceled, and a new one will be placed. When the total trading volume equals its total amount, the bot will stop the order and end its operation.Published on Jun 17, 2022Updated on Apr 1, 2025Product documentation