Brokers
Discord Get started

Brokers

STG / DAS

Connect DAS Trader Pro (STG Markets or Cobra Trading) to TradeLabs: set the CMD API port in DAS, then add the account in the Brokers page.

STG / DAS connects through DAS Trader Pro running on the same computer as TradeLabs. DAS is a direct-access trading platform, and brokers like STG Markets and Cobra Trading each ship their own DAS client. TradeLabs talks to that client over a local loopback connection, so there is nothing to paste from a website. Keep the DAS client signed in and running, and TradeLabs sends stock trades to it. In the app the broker card is named STG / DAS.

What it tradesSupported
Stocks (including short selling and extended hours)Yes
OptionsNo
SpreadsNo
CryptoNo
RSA (reverse split arbitrage)No
Note

Each broker has its own DAS client. If you trade through both STG Markets and Cobra Trading, run both clients at the same time and add a separate account in TradeLabs for each, each on its own CMD API port.

Before you start

  • An account with a DAS-compatible broker (STG Markets or Cobra Trading), funded and approved.
  • DAS Trader Pro access granted by that broker. Access is separate from opening the account, so request it through your broker’s account portal or support.
  • The DAS Trader Pro client for your broker installed on this computer and able to log in on its own.
  • The TradeLabs Companion installed and running on the same computer.

DAS brokers specialize in stock trading with extended hours and short selling. Opening an account usually means submitting identity documents and a W-9, funding an initial deposit, and waiting for approval, then a separate request for DAS access. Minimums and timelines are set by the broker, so confirm them on the broker’s side before you plan around them.

Note

Live and paper accounts share the same setup. A paper account is usually your account number with a TR prefix, for example TR4860. Everything else in TradeLabs stays the same.

Set the CMD API port in DAS

TradeLabs reaches DAS through the CMD API port you set inside the DAS client. Configure that port in each DAS client you run.

  1. In DAS Trader Pro, open the Setup menu and open the Other Configuration settings.

  2. Find the CMD API port setting and give this client a port number. If you run more than one DAS client, each one needs a different port.

  3. Save the settings, then fully close and reopen DAS Trader Pro. The restart is required for the port change to take effect.

Heads up

Two DAS clients cannot share a CMD API port. If you run STG Markets and Cobra Trading together, give them different ports (for example 8888 and 8889) and enter the matching port for each account in TradeLabs. Any free port works; there is no fixed value you must use.

Connect it in the app

Once DAS is running with the CMD API port set, add the account in TradeLabs. TradeLabs connects to DAS on this computer and verifies the connection on its own, so there is no separate test step.

  1. Open the Brokers page, find the STG / DAS card, and click Add account.

  2. Fill in the connect form:

    • Account ID — your broker account number, for example CB4860 for Cobra or TR4860 for STG.
    • Password — your broker account password.
    • Account — your DAS account display name, for example TR4860. Optional.
    • Port — the CMD API port you set in DAS, for example 8888. Optional.
    • Sub-broker — pick the DAS-compatible sub-broker: STG, Cobra, or DAS. Optional.
  3. Click Save account. TradeLabs connects to DAS and checks the connection on its own.

The Brokers page in the app Click the STG / DAS card, then Add account, to open the connect form

The broker connect form in the app Enter your Account ID, password, port, and sub-broker, then click Save account

After you save, the account’s connection state shows on the Brokers page as Active, Idle, Warming, or Offline. To re-check the link later, open the account row menu and choose Check connection.

Trading notes

The STG integration reads stop loss and take profit as a percent of price. Set them as percent values, so a plain number like 100 means 100 percent.

STG-style brokers specialize in short selling, which can require the broker to locate shares first. When shares cannot be located, TradeLabs skips that trade rather than filling it. A larger dollar size per trade is located more often than a very small one.

Heads up

Short positions carry risk that can exceed your initial position. Decide your own stop loss policy before you trade live.

For paper trading, enter your TR account in the Account field and keep the rest of the form the same. In paper mode every short locate succeeds so every trade fills; live conditions can differ, so paper fills do not predict live fills exactly.

Fixing common problems

  • Cannot connect: confirm the DAS client is open and logged in, and that the Port in TradeLabs matches the CMD API port set in DAS.
  • Port change did nothing: fully close and reopen DAS after changing the CMD API port. The change only takes effect on restart.
  • Wrong port: the port you enter must be the CMD API port for that specific DAS client, not another client’s port.
  • Cannot log in to DAS itself: confirm your broker has activated DAS access on your account. TradeLabs cannot connect until the DAS client can log in on its own.
  • Trades skipped on live: DAS brokers require share locates, so a trade is skipped when no shares are available. A larger dollar size per trade reduces how often this happens.