# Connections (/platform/account/connections)



[Connections](https://app.luxalgo.com/account/connections) is where you link outside accounts to LuxAlgo: your brokers and exchanges, Discord, and your TradingView username.

## Brokers and exchanges [#brokers-and-exchanges]

Broker connections are **read-only**. LuxAlgo reads your balances, positions and trades; nothing is ever traded on your behalf through these connections. Credentials are encrypted before they are stored, and you can revoke them from your broker at any time.

Once connected, your broker data shows up in:

* **Your profile**: balances and trading stats.
* **The chart**: your positions and trades, from **Connect broker** on the chart in [Vela](https://vela.luxalgo.com/chart).
* **Portfolio**: accounts held at your brokers, as last synced. Portfolio opens as a [workspace view](/platform/workspaces/tabs).
* **The Journal**: connected accounts can be pulled in so their fills sync on their own. See [Journal accounts](/platform/workspaces/journal/accounts#connect-a-broker).

### Connect a broker [#connect-a-broker]

<Steps>
  <Step title="Open Connections">
    Open [Connections](https://app.luxalgo.com/account/connections). Brokers are grouped under **Crypto**, **Stocks & options**, **Futures & prop trading** and **Anything else**.
  </Step>

  <Step title="Pick your broker">
    Select its tile. The dialog explains where to create the credential and which permission to choose.
  </Step>

  <Step title="Paste and connect">
    Paste the credential and select **Connect**. The broker then appears at the top of the list with its balance, trade count and last sync date.
  </Step>
</Steps>

What each broker asks for:

| Broker              | What you paste                                | Where it comes from                                                                                                                   |
| ------------------- | --------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
| Hyperliquid         | **Wallet address (0x…)**                      | Your wallet. No API key is needed: balances, positions and fills come from Hyperliquid's public data.                                 |
| Kraken              | **API key**, **API secret**                   | A read-only key with only **Query Funds** permission.                                                                                 |
| OKX                 | **API key**, **API secret**, **Passphrase**   | A key with **Read** permission only.                                                                                                  |
| Crypto.com          | **API key**, **API secret**                   | A Crypto.com Exchange key with **Read** permission only.                                                                              |
| Alpaca              | **API key ID**, **API secret**                | Your Alpaca dashboard. Live and paper keys both work; a paper key (ID starting with PK) syncs your paper account, marked **Paper**.   |
| Public              | **Secret key**                                | In Public, **Settings** then **Public API**.                                                                                          |
| Webull              | **App Key**, **App Secret**                   | Webull OpenAPI access, which you apply for in your Webull account (approval takes a day or two).                                      |
| Tradier             | **API access token**                          | Your Tradier account settings.                                                                                                        |
| Questrade           | **API refresh token**                         | A new token from the API centre (**Account settings** then **API access**). It rotates automatically after you connect.               |
| Trading212          | **API key**                                   | In the Trading212 app, **Settings** then **API**.                                                                                     |
| Interactive Brokers | **Flex Web Service token**, **Flex query ID** | A Flex Query in IBKR Account Management with the Trades, Open Positions and Cash Report sections, and the Flex Web Service turned on. |
| Topstep             | **TopstepX username**, **API key**            | For Topstep funded and express accounts: subscribe to API access in TopstepX and generate a personal API key.                         |

### Brokers you can't connect directly [#brokers-you-cant-connect-directly]

Some tiles have a dashed border. Those brokers can't be connected directly from LuxAlgo; selecting one opens **Import a statement**, already labelled with the broker's name, so its trades still reach your stats.

* **Region block · CSV only** means the exchange blocks requests from the region our servers run in, so its keys can't connect. Import a statement from it instead.
* When a broker you'd like connected directly opens with &#x2A;*Want … connected directly?**, select **Request it**. The number of traders asking is what we take to the broker.

### Import a statement [#import-a-statement]

For any broker, choose **Import a statement** under **Anything else**. Export a trade-history CSV from your broker, then choose the file or drag it in, or paste the CSV. Columns for symbol, side, quantity and price are required; anything else is optional. Add a **Label** if you like, then select **Import**. Imported trades feed the same stats as a connected broker.

The [Journal](/platform/workspaces/journal/accounts#import-a-file) has its own **Import file** path that recognizes many brokers' native export formats.

### Sync, errors and disconnecting [#sync-errors-and-disconnecting]

* **Sync now**: the refresh button beside a connection pulls the latest balances, positions and trades.
* **Sync error**: the connection stopped syncing, and the message beside it says what to do, such as connecting again with a fresh key.
* **Disconnect**: removes the connection from LuxAlgo, and your profile stats are recalculated without it. To revoke access completely, also delete the key or token at your broker.

## Discord [#discord]

Connecting Discord adds you to the LuxAlgo Discord server, our community for support and sharing setups, and gives you your plan's member roles.

<Steps>
  <Step title="Check your plan">
    Connecting needs an active LuxAlgo subscription. On the Free plan, or while a plan is paused, **Connect** is unavailable and **View plans** opens your Plan page. See [Plans](/platform/account/plans).
  </Step>

  <Step title="Connect">
    Under **Discord**, select **Connect**, then sign in to Discord and approve the request.
  </Step>

  <Step title="Done">
    You come back to Connections, which shows your Discord username.
  </Step>
</Steps>

Your roles follow your plan: when you change plans they're swapped for the new plan's, and when your subscription ends they're removed. To unlink, select **Disconnect**; your plan roles are removed.

## TradingView [#tradingview]

If you also chart on TradingView, enter your TradingView username here (**Connect**, then your **TradingView username**) and your plan's toolkits are added to your TradingView account automatically. This also needs an active LuxAlgo subscription. Select **Disconnect** to remove it.
