TriggersService
List Trigger Events
List append-only trigger events for a trigger, including child-order actions, with optional event-category filtering and reverse-time pagination.
Request
curl --request GET \ \ --url 'https://api.testnet.polyester.com/v1/triggers/9155001234567/events?eventType=FIRED&limit=100&pageToken=eyJvZmZzZXQiOjEwMH0&subaccountId=6789012345678' \ --header 'Accept: */*' \ --header 'X-API-KEY-ID: YOUR_API_KEY_ID' \ --header 'X-API-TIMESTAMP: YOUR_API_TIMESTAMP' \ --header 'X-API-SIGNATURE: YOUR_API_SIGNATURE'
Responses
{
"events": [
{
"cancelReason": "USER_REQUEST",
"childOrderId": "5USXJZmk",
"childSeq": 1,
"eventType": "FIRED",
"firePx": "0.005",
"subaccountId": "45LUmqjT",
"symbol": "BTC-USDT",
"triggerId": "59VD7Lar",
"triggerType": "STOP_LOSS",
"tsNs": "1735689600000000000"
}
],
"nextPageToken": "eyJvZmZzZXQiOjIwMH0"
}Optional TriggerEventType enum name. EVENT_UNSPECIFIED returns all events.
Opaque keyset cursor returned by the previous response.
Why an admitted trigger was canceled.
USER_REQUESTChild order ID created by this event, if any.
5USXJZmkChild sequence number for multi-child trigger strategies.
1Event category.
FIREDWhy an admitted trigger failed.
Price that caused a conditional trigger to fire, in quote units scaled by 1e9. Absent for time-scheduled triggers such as TWAP.
0.005Public account or sub-account ID associated with the trigger.
45LUmqjTTrading symbol numeric identifier.
BTC-USDTTrigger ID associated with the event.
59VD7LarTrigger type at the time of the event.
STOP_LOSSEvent timestamp in nanoseconds since epoch (UTC).
1735689600000000000Opaque cursor for the next page. Empty when no more results exist.
eyJvZmZzZXQiOjIwMH0| Key | Status | Error | When |
|---|---|---|---|
| unauthenticated | 401 | Unauthenticated | Authentication required. |
| permission-denied | 403 | Permission Denied | Permission denied. |
| invalid-argument | 400 | Invalid Argument | Invalid argument. |
| not-found | 404 | Not Found | Not found. |
| unavailable | 503 | Unavailable | Service unavailable. |