This guide will walk you through the initial steps to connect your Capital.com account to Autoview and execute your first test commands. Autoview allows you to automate your trading based on alerts from platforms like TradingView.
1. Choose Your Autoview Platform
Autoview offers two main platforms for executing trades based on alerts:
- Autoview Chrome Extension: This is a browser extension that runs directly in your Chrome browser. It requires your computer and the Chrome browser to be running for trades to execute. Direct Tradingview alert connection, no webhooks.
- Autoview Webhook Platform: This platform runs server-side and does not require your computer to be on for trades to execute, accepts webhooks from anywhere, including Tradingview, Trendspider, Python.
Please choose the platform that best suits your needs and follow the relevant setup guide:
- Side by Side Comparison
- How to install the Trading Extension
- How to Set up the Autoview Web Platform
2. Creating API Keys on Capital.com
To allow Autoview to trade on your behalf, you need to create API (Application Programming Interface) keys on your Capital.com account. API keys are essentially credentials that grant external applications specific permissions.
Capital.com offers IP whitelisting as an additional security measure. This restricts API key usage to specific IP addresses. We highly recommend using it. If you are using the web platform, you can get the IP for the zone you want your signals coming from. (You will officially select when adding the keys to Autoview.)
- Whitelisting & IP Addresses
- Visit Captial.com's official How To Generate an API Key guide
- Navigate to the API settings or API management section. You may find this under Account Settings or Security settings. A direct link might be: [Link to Broker API Key Creation/Management Page].
- Create a new API key. You will typically be provided with an API Key and an API Secret. The API Secret is usually shown only once, so make sure to copy it and store it securely immediately.
- When creating the keys, you will need to set permissions for what the keys are allowed to do. It is critically important for security to only grant the necessary permissions. For Autoview trading, you typically need permissions for placing and cancelling orders (trading) and potentially reading account balance and open positions. You should explicitly NOT grant withdrawal permissions.
- Note down both your API Key and API Secret.
3. Adding API Keys to Autoview
Once you have your API keys from Captial.com, you need to add them to your chosen Autoview platform.
- If using the Chrome Extension: Open the Autoview extension options, navigate to Captial.com in the left menu. Click the Add Account button in the top right corner. Input your API Key and API Secret into the designated fields. (Only name the keys if you plan on using multiple API keys, as you will need to call them in all of your commands using `a=` down the road)
- If using the Webhook Platform: Log in to the Web Platform and add your API Key and API Secret within the Captial.com exchange configuration. Naming your keys here is what allows you to link it to a specific webhook down the road.
4. Testing Your Connection
Now that your connection is verified, let's perform two small test commands on your live Captial.com account to ensure everything is working end-to-end.
Important: These commands will execute real trades whether you are in their sandbox or live account. Use a small quantity that is at or above the minimum allowed trade size on Captial.com to avoid errors like MIN_NOTIONAL. Consider placing the limit order at a price significantly away from the current market price so it doesn't fill immediately.
First, it is highly recommended to test your command syntax using the d=1 parameter in your alert message. This performs a "dry-run" where Autoview processes the command and shows you what it would have done, but doesn't send it to the exchange.
Once you are confident in your syntax, create an alert or send a webhook. In Tradingview we like to create single fire alerts on an active market like BTCUSD Futures. We set the trigger to be when the price is greater than 0. This will ensure it fires near instantly with the following command syntax:
- Place a Limit Buy Order:
- Extension: e=capital s=btcusd b=buy p=-5% q=1
- Webhook: s=btcusd b=buy p=-5% q=1
- Send this alert and check the Autoview log and your Captial.com account to confirm the limit order was placed successfully.
- Cancel the Order: After confirming the order was placed, trigger another alert with the command to cancel it:
- Extension: e=capital s=btcusd c=order
- Webhook: s=btcusd c=order
- Send this alert and check the Autoview log and your Captial.com account to confirm the order was cancelled successfully. Successfully completing these two tests means Autoview is connected and ready to execute commands on your Captial.com account based on your alerts.
- Next Steps You've successfully set up Autoview with Captial.com! To explore more advanced order types, command parameters like stop-loss, take-profit, and trailing stops, risk management strategies, and other features, please refer to our comprehensive:
- Building Autoview commands: A comprehensive guide
Comments
0 comments
Please sign in to leave a comment.