TriggersService
Resume Trigger
Resume a paused trigger by trigger ID. Supported for stop-loss, take-profit and trailing-stop triggers; ladder and TWAP triggers support only cancel and answer TRIGGER_NOT_MODIFIABLE.
Request
curl --request POST \ \
--url 'https://api.testnet.polyester.com/v1/triggers/59VD7Lar/resume?symbol=BTC-USDT' \
--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' \
--header 'Content-Type: application/json' \
--data '{
"subaccountId": "45LUmqjT",
"symbol": "BTC-USDT",
"triggerId": "59VD7Lar"
}'Responses
{
"status": "CREATED",
"triggerId": "59VD7Lar",
"tsNs": "1735689600000000000"
}Trigger ID (base58 public ID)
Optional trading pair symbol, e.g. BTC-USDT, as an alternative to symbol in the body. When both are given they must be the same.
Optional public subaccount ID for authorization. When omitted, subaccount-scoped API keys use their bound subaccount; other callers use their authenticated root account.
Optional trading pair symbol, e.g. BTC-USDT. Omit it to use the trigger's own pair; another listed pair is rejected with TRIGGER_SYMBOL_MISMATCH, and a pair that is not listed with UNKNOWN_SYMBOL.
Trigger ID to resume.
Current trigger status after resuming.
CREATEDResumed trigger ID.
59VD7LarServer timestamp in nanoseconds since epoch (UTC).
1735689600000000000| 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. |