How do I automate my trades?

Published on Oct 1, 2024Updated on Nov 6, 20244 min read5

We offer a wide range of tools and trading bots, for automated trading, including:

  • Trading Bots: pre-built and customizable bots for strategies like grid trading, arbitrage, and market making. Visit here for more info on the Trading bot Marketplace.

  • API Access: for users who want to develop their custom trading algorithms.

  • Copy Trading: follow and automatically replicate the trades of successful traders.

  • Liquid Marketplace: enhances trading efficiency by providing a deep and liquid order book.

How can I use trading bots?

  1. Get to the Bot Marketplace: on our navigation menu, hover over Trade and then select Trading bots. You'll be seeing all of our bots here. If you’re familiar with bot trading, you can create the bot you want by selecting the bot and selecting Create.

    Scroll down and select Bot Marketplace. Here you'll see all the trading bots currently running.

  2. Select a bot: at the moment, you can select and view the running bots from Smart portfolio, Recurring buy, Spot grid, and Future grid. You can sort these bots by Profit and Loss rate, number of copies or maximum drawdown.

    To learn more about each bot’s strategy, simply hover over the bot you're interested in and select Copy.

    You'll then be able to view the parameters of the bot you selected. If you want to copy them, select Copy this bot.

  3. Select the bot’s parameters: you'll then see a new tab, with all the parameters set. Simply enter the amount you want to trade and launch the bot by selecting Create. You can customize the parameters by selecting Create custom parameters.

    Note: when you copy an existing bot and retain its parameters, you'll be notified if the original bot creator stops the bot or modifies its parameters. If you run a bot with custom parameters, however, it'll be treated as a bot launched by you.

  4. Launch the bot: check the details of your order in the Order Confirmation window. If you want to proceed, select Confirm.

    By default, the bot’s settings will be shared to the marketplace if you launch a bot and set the parameters on your own. If you don’t want to share them, you can go to Settings and disable the sharing option.

Gather all of the details that you need in regards to the trading bots here.

How do I use OKX's API for custom trading strategies?

  1. Generate API keys: in your OKX account settings, generate API keys with appropriate permissions.

  2. Set up your development environment: use programming languages like Python, JavaScript, or others to create your trading bot.

  3. Connect to the API: utilize OKX’s API documentation to connect your bot to the exchange.

  4. Develop and test your strategy: write your trading logic, backtest it with historical data, and test in a simulated environment.

  5. Deploy and monitor: once satisfied with the performance, deploy the bot and monitor its activity regularly.

Explore our API documentation here to bolster your trading performance.

How do I use copy trading?

  1. Find a trader to follow: browse the list of available traders and review their performance and strategies.

  2. Allocate funds: decide the amount of funds you want to allocate for copy trading.

  3. Follow the trader: enable copy trading to start replicating the chosen trader’s actions.

  4. Monitor performance: regularly check the performance of your copy trading account and make adjustments as needed.

Find out more about copy trading and how you can explore it here.

How do I utilize the Liquid Marketplace for automated trading?

  1. Access the Liquid Marketplace: log in to your OKX account and navigate to the Liquid Marketplace section.

  2. Set up automated strategies: use trading bots or API access to develop and deploy your automated strategies within the Liquid Marketplace.

  3. Monitor market depth: leverage the deep order book to ensure your automated strategies can execute efficiently without significant slippage.

  4. Optimize trades: continuously adjust your strategies based on real-time market data and liquidity conditions.

Learn more about Liquid Marketplace and why you should use it here.