AlgoStock Capital

Choose Your Broker, Define Your Edge

AlgoStock Capital integrates seamlessly with the industry's leading brokers. Choose the path that fits your trading style, from effortless API connections to the unparalleled power of a dedicated server.

Tradier BrokerageEasiest & Recommended

Connection: Direct API Key
Best For: The vast majority of traders, including beginners, who want a fast and easy setup.
Why we love it: The perfect balance of power and simplicity. Get commission-free trading, **free real-time data for testing**, and a simple API key setup. **This is the fastest path to automated trading.**

See Tradier Setup Guide

Interactive BrokersProfessional

Connection: Dedicated Server (VPS)
Best For: Serious traders seeking global market access and the lowest possible costs.
Why we love it: The ultimate choice for professionals. A dedicated server provides maximum speed and access to virtually any market in the world with industry-leading low costs.

See IBKR Pro Setup Guide

TradeStationIn Progress

Connection: Secure OAuth2 API
Best For: US Traders wanting a powerful, all-in-one platform.
Why we love it: A highly respected broker with a robust API. Our full integration is under active development and will be available soon!

Coming Soon

Alpaca Markets

Connection: Direct API Key
Best For: Users with an existing Alpaca Unlimited plan.
Why we love it: A simple, modern API. Please note that an "Unlimited" data subscription is required from Alpaca for our system to function with real-time data.

See API Setup Guide

Tradier: The 5-Minute Setup (Recommended)

This is our recommended path for most users. No technical skills required.

  1. Open a Tradier Account

    First, create your account directly on their website. Tradier offers both live and free paper trading (Sandbox) accounts. We highly recommend starting with the Sandbox to test everything safely.
    Click here to get started with the Tradier API.

  2. Get Your Sandbox API Keys

    After registering, log in to the Tradier Developer Portal. Navigate to the "API Access" or "Applications" section. Here, you will find two crucial pieces of information for your Sandbox account:
    • Your Access Token (this is your API Key).
    • Your Account ID (a long string starting with VA...).

  3. Connect to AlgoStock Capital

    You're almost there! Log in to your AlgoStock Capital account and go to the Settings page.
    1. Click "Add Tradier".
    2. Carefully copy and paste your Access Token into the "API Key" field and your Account ID into its field.
    3. Ensure the "Paper Trading (Sandbox) Account" box is checked.
    4. Click "Save" and then **"Set Active"**. Congratulations, you are ready to automate!

General API Key Setup

For brokers like Alpaca

  1. Generate API Keys

    Log in to your broker's dashboard, navigate to the API section, and generate a new set of keys (usually an API Key and a Secret Key).

  2. Connect to AlgoStock Capital

    Go to your Settings page in our app, click "Add Alpaca", paste your keys, and click "Set Active".

Interactive Brokers: The Professional Setup

This path offers maximum performance and requires a one-time, 20-minute setup of a private server (VPS). Follow these steps exactly.

Part 1: Your Private Server (VPS)

A VPS is a small, private Windows computer in the cloud that runs 24/7. It will host your connection software (IB Gateway), ensuring your bot is always online, secure, and fast.

  1. Rent Your Windows VPS

    We recommend a provider that offers affordable Windows servers, such as Vultr for ease of use or Contabo for the lowest cost.

    • During checkout, select a plan with **at least 2GB of RAM**.
    • For the Operating System / Image, choose **Windows Server 2019** or **2022**.
    • Note down the server's **IP Address** they provide after your order.

  2. Connect to Your VPS

    On your home computer, open the "Remote Desktop Connection" app. Enter the **IP Address** of your new server and connect using the username Administrator and the password provided by your host.

  3. Configure the Server Firewall (Crucial Step)

    Inside your new server, search for and open **"Windows Defender Firewall with Advanced Security"**.

    • On the left, click **"Inbound Rules"**. On the right, click **"New Rule..."**.
    • Select: **Port** -> Next -> **TCP**.
    • Select "Specific local ports" and enter the port your IB Gateway will use (e.g., 4002 for paper, 4001 for live). -> Next.
    • Select **"Allow the connection"** -> Next -> Leave all boxes checked -> Next.
    • Give it a name like `IB Gateway Access` and click **Finish**.

Part 2: IB Gateway Setup (Inside the VPS)

Now that your server is secure, let's set up the connection software.

  1. Install IB Gateway

    Inside your VPS, open the web browser, go to the Interactive Brokers website, download and install the latest version of **IB Gateway**.

  2. Configure the API

    Open IB Gateway and log in with your IBKR credentials. Then, go to Configure -> API -> Settings.

    • API access is enabled by default in new versions. You only need to configure access.
    • Uncheck the box: [ ] Read-Only API (to allow trading).
    • In the **Trusted IP Addresses** section, click "Create" and enter our platform's secure server IP: 91.98.230.127.
    • Note down the **Socket Port** number (e.g., 4002).
    Leave the IB Gateway running on your VPS. You can now close the Remote Desktop window.

Part 3: Final Connection

  1. Link to AlgoStock Capital

    Return to your AlgoStock Capital Settings page.
    1. Click "Add IBKR".
    2. Fill in the details:
    - Host: Your new VPS server's **IP Address**.
    - Port: The **Socket Port** number from the step above.
    - Client ID: 1
    3. Click "Save" and then **"Set Active"**. Your professional setup is now live!

Testing with Paper Trading

Test your strategies with realistic data before risking capital.

Tradier: Their Sandbox (paper trading) account provides **free real-time market data by default**. This makes it the ideal environment to test our platform's full capabilities realistically and at no cost.

Interactive Brokers: To get real-time data in your IBKR paper account, you must first have a funded live account with active market data subscriptions. According to IBKR support, you then need to enable data sharing by going to **Settings → Account Settings → Paper Trading Account** in your Client Portal and selecting "Yes" to share real-time market data. Please note this change can take up to 24 hours to activate.