Ghost Automation

TradingView Alerts to Bitunix: Ghost Setup Guide

How to send TradingView alerts to Bitunix for automated crypto perpetuals trading: API key connection, bracket orders, step-by-step setup.

What You Need

Bitunix account - A funded Bitunix account with perpetuals trading enabled.
Bitunix API key and API secret - Generated from your Bitunix account settings. You need both the key and the secret. The secret is shown only once at creation.
A paid TradingView plan - Webhooks require a paid plan. Essential, the entry tier, is enough.
Two-factor authentication on TradingView - TradingView only allows webhook alerts when 2FA is enabled on your TradingView account. Without it the alert saves but never sends a webhook.
Ghost subscription - QuantCrawler Elite or Ghost-only subscription with a Bitunix ticker configured.

Generate Your Bitunix API Key

1

Open API Management

Log in to Bitunix and go to Account Settings > API Management.

2

Create API Key

Click "Create API Key" and give it a label (e.g., "Ghost").

3

Enable Futures Trading only

Enable Futures Trading permission. Do not enable withdrawal permission. It is not needed.

4

Copy your credentials immediately

Copy the API key and API secret immediately: the secret cannot be retrieved after this screen.

Connect Bitunix to Ghost

1

Open Broker Connections

Go to Ghost Dashboard > Broker Connections > Bitunix.

2

Paste your credentials

Paste your API key and API secret.

3

Verify connection

Ghost verifies the credentials and shows your Bitunix account balance when connected.

4

Credentials are encrypted

Your API secret is encrypted at rest and is never shown again after connection.

JSON Payload Example (BTC/USDT Perpetual)

Paste this into the TradingView alert message field. Replace sl and tp with your actual levels. The {{close}} template variable is filled automatically by TradingView with the current bar price.

{ "action": "buy", "entry": {{close}}, "sl": 61000.00, "tp": 65000.00 }

Use "action": "sell" to open a short, or "action": "close" to close the open position.

Supported Pairs on Bitunix via Ghost

SymbolAssetContract Type
BTC/USDTBitcoinPerpetual
ETH/USDTEthereumPerpetual
SOL/USDTSolanaPerpetual

Additional pairs may be available. Check Ghost's Bitunix ticker configuration for the full list.

Frequently Asked Questions

Does Ghost work with Bitunix spot trading or only perpetuals?

Ghost currently supports Bitunix perpetuals (futures contracts). Spot trading on Bitunix is not currently supported via Ghost.

Does enabling withdrawal permission on my Bitunix API key create a security risk?

Do not enable withdrawal permission. Ghost only needs Futures Trading permission to place and manage orders. Keeping withdrawals disabled means Ghost cannot move funds out of your account even if the API key were compromised.

What leverage does Ghost use for Bitunix orders?

Ghost sends orders at your account's default leverage setting on Bitunix. To change leverage, adjust it in your Bitunix account for each trading pair before connecting to Ghost.

How do I close a Bitunix perpetual position via TradingView alert?

Send action: "close" or "exit" in your webhook payload. Ghost will send a close order to Bitunix for the full position size on that ticker.

Can I run long and short on Bitunix via Ghost?

Yes. Send action: "buy" or "long" to open a long position, and action: "sell" or "short" to open a short. Ghost tracks your position and manages the SL/TP brackets accordingly.

My Bitunix alerts stopped firing. Do I need a new API key?

Check the alert first. TradingView alerts on the Essential and Plus tiers expire on a timer; Premium is the first tier that offers an alert with no expiry. An expired alert sends no webhook, so Ghost never logs one and no order reaches Bitunix. The API key is usually fine. Restart the alert in TradingView.

Continue Learning

Risk Disclosure: Trading involves substantial risk of loss and is not suitable for all investors. This content is for educational purposes only and does not constitute financial advice.

Last updated: November 2026

© 2026 QuantCrawler. Not financial advice. Trading involves substantial risk of loss.