Amyth
AppMarketMarketplaceRanksLeaderboardDocs
Docs Home
OverviewSet Up a WalletGet USDC on SolanaYour First Vault
OverviewStrategy PresetsThe OptimizerDeposit & Withdraw
OverviewWire Your First AlertTroubleshooting
OverviewSubscribingBecoming a CreatorPublish Quality Gates
OverviewVault ArchitectureOnchain Risk RailsVerify a Vault
OverviewThe Master ChartNotifications & SharingLeaderboard
FAQ
Glossary
DocsWebhooksWire Your First Alert
Webhooks

Set Up Your Webhook Vault

Create a vault, copy the four webhook URLs, then plug them into whatever generates your trading signals: TradingView, an AI agent, a script, or any HTTP-capable system.

Part 1: Create a webhook vault

1

Connect your wallet

Go to the App page and click Connect Wallet.

2

Create a new webhook bot

Click the + button → select Webhook Bot.

3

Choose your market and leverage

Pick which asset to trade (SOL-PERP, BTC-PERP, or ETH-PERP) and set your max leverage. Each webhook vault trades a single market. Create separate vaults for multiple markets.

4

Sign and deposit

Sign the vault creation transaction, then deposit USDC (minimum $50).

5

Copy your webhook URLs

Your vault panel now shows four webhook URLs, one for each action (open long, close long, open short, close short). Click to copy.

Webhook URL format

Example webhook URL
https://amyth.trade/api/webhook/ingest?vault=YOUR_VAULT_PK&action=openlong&token=YOUR_AUTH_TOKEN

The action parameter is one of: openlong, closelong, openshort, closeshort. The token is unique to your vault and authenticates the request.

Option A: Wire to TradingView

For chart-based signals

1

Open your chart with your indicator

In TradingView, open the chart for the asset your vault trades. Apply your indicator or Pine Script strategy.

2

Create an alert with webhook enabled

Click Alerts (🔔) → Create Alert → configure the trigger condition → check Webhook URL → paste the appropriate Amyth URL.

3

Create separate alerts for each action

Create one alert with the "open long" URL for buy signals, another with "close long" for sells, etc. The webhook body is optional. Amyth reads the action from the URL.

ℹ️TradingView requires a paid plan

Webhook alerts need at least TradingView Pro. The free plan doesn't support custom webhook URLs.

Option B: Give URLs to an AI agent

For autonomous AI-driven trading

Hand your four webhook URLs to any AI agent (Claude, GPT, a custom LLM agent, an autonomous framework like AutoGPT or CrewAI). The agent can analyze markets and call the URLs to execute trades — without ever having access to your wallet or funds.

Why this is safe

• The agent only gets webhook URLs. No private keys, no wallet access, no withdrawal ability.

• Every trade the agent triggers goes through the same onchain validation: leverage caps, slippage limits, position size checks.

• If the agent goes rogue, the worst case is trades within your configured risk bounds. It can never move funds out of your vault.

• You can revoke access instantly by stopping the bot. All URLs become inactive.

Example: AI agent calling a webhook
import requests

# Your Amyth webhook URL (copied from the vault panel)
OPEN_LONG_URL = "https://amyth.trade/api/webhook/ingest?vault=...&action=openlong&token=..."

# Agent decides to go long based on its analysis
response = requests.get(OPEN_LONG_URL)

if response.status_code == 200:
    print("Trade submitted to vault")
else:
    print(f"Error: {response.text}")

Option C: Call from any HTTP client

Scripts, cron jobs, anything

The webhook URLs are standard HTTP GET endpoints. A curl command, a Python script, a Node.js service, a shell cron job. Anything that can make an HTTP request can trigger a trade.

Example: curl
curl "https://amyth.trade/api/webhook/ingest?vault=YOUR_PK&action=openshort&token=YOUR_TOKEN"

Testing your setup

Use the manual trigger button on your vault panel to fire a test signal without waiting for your external source. This verifies the full pipeline: API → onchain validation → Jupiter execution, in one click.

💡Start with the manual trigger

Before wiring up TradingView or an AI agent, use the manual trigger to confirm your vault is funded, the bot is running, and trades execute correctly. Then connect your external source.

Was this page helpful?
← PreviousWebhooksNext →Troubleshooting