TradingView Webhook API
Handle TradingView webhook
Changed onReceives webhook alerts from TradingView and queues them for asynchronous processing. Returns 202 Accepted with a requestId that can be used to check status.
post/rest/api/v1/webhooks/tradingview/accounts/{accountId}
Request
- Base URLhttps://api.metacopier.io
- AuthAPI key in header X-API-KEY
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
accountIdstring uuid required
Request body
string required
Response
OK
Example response
{
"attemptCount": 1,
"closedPositions": [
{
"positionId": "12345678",
"success": true,
"symbol": "EURUSD"
}
],
"code": "AMBIGUOUS_MATCH",
"hint": "Add 'force: true' to proceed or use more specific matching criteria",
"matchCount": 3,
"message": "Position opened successfully",
"originalRequestId": "req_xyz789",
"requestId": "req_abc123def456",
"status": "PROCESSING",
"success": true
}Changes
- info
endpoint added
- info