Automating TradingView Alerts to Hyperliquid

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.

:white_check_mark: 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.


:gear: How It Works

  1. Create a Webhook for Hyperliquid on TradingView To Anywhere.
  2. On your TradingView chart, click “Create Alert.”
  3. 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.

:white_check_mark: Examples:

Buy PIP/USDC Q=50%
Sell PIP/USDC P=18.41 Quantity=10
Cancel PURR/USDC
Balance USDC B=FREE
BALANCE PIP

:bulb: Tips:

  • Use / between trading pairs: BTC/USDT :white_check_mark: | BTCUSDT :x:
  • Commands are not case-sensitive
  • There must be no space between a parameter and its value: Q=10% :white_check_mark: | Q = 10% :x:

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 or OQ: Quantity (fixed or %)
  • P: Price (for limit orders)

:pushpin: 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.

:pushpin: Examples:

Cancel HYPE/USDC
Exit PIP/USDC

3. Check Balance

Use Balance, Bal, or Funds to check your spot balance.

  • TOTAL – Returns total balance
  • Free – Returns available (free) balance

:pushpin: Examples:

Balance B=TOTAL
Funds USDC b=free
Funds

:test_tube: 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!

Looking forward to the futures market support.
I understand that the dashboard takes a while to be developed for the futures market, but the trading alerts could already be working, couldn’t they? Just forward the message.

1 Like

Hello @iacryptoficial, it is coming very soon. We will keep you posted.