Hyperliquid is a powerful platform for trading digital assets, and with TradingView To Hyperliquid, you can now automate your TradingView alerts directly to it. Whether you’re opening trades, canceling orders, or checking your balance, this integration makes it seamless — no coding required.
What You Can Automate
The TradingView to Hyperliquid integration allows you to:
- Open spot trades
- Cancel or exit pending orders
- Check account balances
You can automate these actions using alerts from your TradingView strategies or indicators. You can also manually trigger trades using the Alert Detector TTA extension.
How It Works
- Create a Webhook for Hyperliquid on TradingView To Anywhere.
- On your TradingView chart, click “Create Alert.”
- Paste the webhook URL in the notification section and use any of the supported command formats listed below in the alert message section.
That’s it! Your strategy is now connected to Hyperliquid.
Command Syntax
The general format for sending commands is:
Command Symbol Param=Value
Example: Sell BTC/USDT Q=0.05
You can send up to 5 commands per alert, each on a new line.
Examples:
Buy PIP/USDC Q=50%
Sell PIP/USDC P=18.41 Quantity=10
Cancel PURR/USDC
Balance USDC B=FREE
BALANCE PIP
Tips:
- Use
/
between trading pairs:BTC/USDT
|
BTCUSDT
- Commands are not case-sensitive
- There must be no space between a parameter and its value:
Q=10%
|
Q = 10%
Several parameters can be customized within commands to control trade execution as follows:
- Q: Quantity of the asset to trade in tokens or percentage. For example, ‘Q=50’ or Q=80%.
- OQ: Overrides Q to specify the Opening Quantity. For example, ‘OQ=50’ or OQ=80%.
-
- P: Order price (for limit orders) as actual price or percentage. For instance, ‘P=50000’ sets a buy limit at $50,000. P=2% sets a buy limit 2% below the market price.
Supported Commands
1. Open an Order
Use any of the following to open a trade:
- Buy, Long, or 1
- Sell, Short, or -1
Optional Parameters:
Q
orOQ
: Quantity (fixed or %)P
: Price (for limit orders)
Examples:
Long PIP/USDC Q=50%
This command buys PIP with 50% of your account balance.
Sell PURR/USDC P=18.41 Q=10
This command sets a sell limit order at the price of 18.41 for 10 PURR
2. Cancel or Exit Orders
Use Cancel
or Exit
to cancel pending limit or trigger orders.
Examples:
Cancel HYPE/USDC
Exit PIP/USDC
3. Check Balance
Use Balance
, Bal
, or Funds
to check your spot balance.
TOTAL
– Returns total balanceFree
– Returns available (free) balance
Examples:
Balance B=TOTAL
Funds USDC b=free
Funds
Test Before You Go Live
We recommend testing your alert with a small quantity first to confirm everything works as expected. You can monitor logs from your webhook dashboard on TradingViewTo.
Happy Trading!