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
Generate Your Bitunix API Key
Open API Management
Log in to Bitunix and go to Account Settings > API Management.
Create API Key
Click "Create API Key" and give it a label (e.g., "Ghost").
Enable Futures Trading only
Enable Futures Trading permission. Do not enable withdrawal permission. It is not needed.
Copy your credentials immediately
Copy the API key and API secret immediately: the secret cannot be retrieved after this screen.
Connect Bitunix to Ghost
Open Broker Connections
Go to Ghost Dashboard > Broker Connections > Bitunix.
Paste your credentials
Paste your API key and API secret.
Verify connection
Ghost verifies the credentials and shows your Bitunix account balance when connected.
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.
Use "action": "sell" to open a short, or "action": "close" to close the open position.
Supported Pairs on Bitunix via Ghost
| Symbol | Asset | Contract Type |
|---|---|---|
| BTC/USDT | Bitcoin | Perpetual |
| ETH/USDT | Ethereum | Perpetual |
| SOL/USDT | Solana | Perpetual |
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