🤖Trading Bot Setup

This page is dedicated to the API Trading Bot and its endpoints.

Activate the Trading Bot

  • Use the approve endpoint to assign permissions to the gas wallet to spend the tokens to be traded. If you plan go short, please approve BTCBEAR1X (Polygon/Optimism/Arbitrum), ETHBEAR1X (Polygon/Optimism/Arbitrum) or MATICBEAR1X (Polyogn) to activate permissions for shorts and when approving those, use platform=toros. Shorts are only available for the following chains and tokens:

    • Polygon: WETH, WMATIC, and WBTC

    • Optimism and Arbitrum: WETH and WBTC

    Note: Those assets must be enabled on dHEDGE vault as allowed assets first from the official UI.

  • Use the setSide endpoint to activate the trading bot.

  • Specify the strategy side (long/short/neutral) and the asset you want to trade.

Integrate with Trading View

  • Buy Signal Alerts: Copy the setSide endpoint to your Trading View strategy alert and paste it into the webhook URL with side=long.

  • Sell Signal Alerts: Copy the setSide endpoint to your Trading View strategy alert and paste it into the webhook URL with side=neutral.

  • Short Signal Alerts: Copy the setSide endpoint to your Trading View strategy alert and paste it into the webhook URL with side=short.

Last updated