API reference ยท TradingView
GET
/v1/tradingview/hooks/{hook_id}/alerts/{alert_id}Get an alert.
Read
Path parameters#
-
The TradingView link.
-
The alert.
Responses#
200OK
-
The alert.
-
Its link.
-
The account number.
-
What it did.
One of
processingplacedpartialdry_runduplicateskippedrefusedfailedrate_limited -
Why it placed nothing (or not all): a reason code.
-
That reason in words.
-
How the message was read: universal, pickmytrade, traderspost, pineconnector, text.
-
The market it named.
-
Its action.
-
The message as kept (credentials masked).
-
The sender's address, its end masked.
-
What it was to do: { legs } or { skip } or { refuse }.
-
What each leg did.
-
More about a refusal.
-
The alert this one repeats.
-
Refusals folded into this row (rate limits).
-
When it came.
-
When it was done.
401The request has no Authorization header.
{
"error": {
"type": "authentication",
"code": "missing_api_key",
"message": "No API key: send it as Authorization: Bearer <key>.",
"request_id": "req_0f9c2a7d8e1b4c6a9f3e5d7b1a2c4e6f",
"retryable": false,
"doc_url": "https://docs.phoenixperpsfunding.com/reference/errors#missing_api_key"
}
}403The key only works from the addresses you listed.
{
"error": {
"type": "permission",
"code": "ip_not_allowed",
"message": "This address is not on the key's allowlist.",
"request_id": "req_0f9c2a7d8e1b4c6a9f3e5d7b1a2c4e6f",
"retryable": false,
"doc_url": "https://docs.phoenixperpsfunding.com/reference/errors#ip_not_allowed"
}
}404The id is unknown, revoked, or belongs to another customer or environment.
{
"error": {
"type": "not_found",
"code": "tradingview_hook_not_found",
"message": "No TradingView link with that id.",
"request_id": "req_0f9c2a7d8e1b4c6a9f3e5d7b1a2c4e6f",
"retryable": false,
"doc_url": "https://docs.phoenixperpsfunding.com/reference/errors#tradingview_hook_not_found"
}
}429A request budget is used up (details.scope says which).
{
"error": {
"type": "rate_limit",
"code": "rate_limited",
"message": "Too many requests: slow down.",
"request_id": "req_0f9c2a7d8e1b4c6a9f3e5d7b1a2c4e6f",
"retryable": true,
"doc_url": "https://docs.phoenixperpsfunding.com/reference/errors#rate_limited"
}
}500An error we did not expect.
{
"error": {
"type": "server",
"code": "internal_error",
"message": "Something went wrong on our side.",
"request_id": "req_0f9c2a7d8e1b4c6a9f3e5d7b1a2c4e6f",
"retryable": true,
"doc_url": "https://docs.phoenixperpsfunding.com/reference/errors#internal_error"
}
}503The API is starting and has not loaded your keys yet.
{
"error": {
"type": "engine",
"code": "not_ready",
"message": "The API is starting. Try again in a moment.",
"request_id": "req_0f9c2a7d8e1b4c6a9f3e5d7b1a2c4e6f",
"retryable": true,
"doc_url": "https://docs.phoenixperpsfunding.com/reference/errors#not_ready"
}
}Errors#
Codes this endpoint can return. Match on the code, never on the message.