Get signals sent directly to your server
To receive real-time TrendFi trade signals directly on your server, follow these steps:
{
"id": "b0a81649-3305-4012-a3e7-3270d7bd1532",
"date": "2024-01-22",
"type": "crypto",
"ticker": "BTC",
"price": 65293.44,
"buy": true,
"sell": false,
"short": false,
"cover": false,
"reason": "Reason for trade",
"token": "your-webhook-token"
}
{
id: string - Unique ID for each trade.
date: string - Date in YYYY-MM-DD format.
type: string - Trade type, either "crypto" or "stock".
ticker: string - 3 or 4 letter ticker symbol.
price: float - Price in USD.
buy: boolean - Enter a long position.
sell: boolean - Exit a long position.
short: boolean - Enter a short position.
cover: boolean - Exit a short position.
reason: string - Trade reason generated by AI.
token: string - Your webhook token for verification (will be null if you haven't generated one).
}
When receiving webhook requests, verify the token included in the request body matches the token you generated in your settings. This ensures the request is genuinely from TrendFi and prevents unauthorized access to your endpoint. If you haven't generated a token, the token field will be null.
You can now integrate with Discord! Submit your Discord webhook URL in the Settings, and we'll automatically format signals for Discord.