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. A trigger the caller can read that has no event yet answers an empty list.
Request
curl --request GET \ \ --url 'https://api.testnet.polyester.com/v1/triggers/59VD7Lar/events?eventType=FIRED&limit=100&subaccountId=45LUmqjT' \ --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": "61000.25",
"fireRefusalReason": "UNKNOWN_SYMBOL",
"subaccountId": "45LUmqjT",
"symbol": "BTC-USDT",
"triggerId": "59VD7Lar",
"triggerType": "STOP_LOSS",
"tsNs": "1735689600000000000"
}
],
"nextPageToken": "eyJvZmZzZXQiOjIwMH0"
}Optional TriggerEventType enum name, for example FIRED. Omit to return 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 fired the trigger: for a stop-loss or take-profit, the price that crossed its trigger price; for a trailing stop, its trailing trigger threshold when it fired; for a ladder, the level's price. A market child order's slippage cap is measured from it. A decimal string in quote asset units per base asset unit, for example '60000'. Absent for time-scheduled triggers such as TWAP.
61000.25Why the attempt named by child_seq was refused while the trigger stayed live. Set only on EVENT_FIRE_REFUSED; other event types leave it unset.
UNKNOWN_SYMBOLPublic 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 | HTTP status | Connect code | Error | When |
|---|---|---|---|---|
| unauthenticated | 401 | unauthenticated | Unauthenticated | Authentication required. |
| permission-denied | 403 | permission_denied | Permission Denied | Permission denied. |
| invalid-argument | 400 | invalid_argument | Invalid Argument | Invalid argument. |
| not-found | 404 | not_found | Not Found | Not found. |
| unavailable | 503 | unavailable | Unavailable | Service unavailable. |