/listTrigger
GET
/listTriggerRequest
Query Params
ownerAddr
string
required
The owner address of the position; must be a checksum address.
chainId
number
required
The chain id of the network. Must be one of the chains supported by Aperture.
Example:
1
isLimitOrder
string
required
If true, only list triggers for limit order fulfillment; otherwise, list all triggers except for limit order fulfillment.
Request samples
Responses
Triggers listed successfully.(200)
Bad Request(400)
Internal Server Error(500)
Triggers listed successfully.
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
triggers
array [object {8}]
required
The list of triggers.
taskId
number
required
The task id of the trigger in Aperture's automation service.
>= 0
nftId
string
required
The nonfungible token id of the position.
>= 1 characters
status
enum<string>
required
The status of the trigger.
Allowed values:
CREATEDSTARTEDCOMPLETEDINVALIDDELETED
lastFailedMessage
string
optional
If populated, the failure message of the last failed trigger.
limitOrderInfo
object
optional
condition
required
The condition which triggers the action. If a trigger is successfully created with a condition that is already met at the time of trigger creation, then the action is immediately eligible to be triggered.
action
required
expiration
integer
required
Unix timestamp in seconds when this trigger expires.
> 0
Example
{
"triggers": [
{
"taskId": 0,
"nftId": "string",
"status": "CREATED",
"lastFailedMessage": "string",
"limitOrderInfo": {
"inputTokenAmountAtCreation": {
"address": "string",
"rawAmount": "string"
},
"outputTokenAmountAtClosure": {
"address": "string",
"rawAmount": "string"
},
"earnedFeeInputToken": "string",
"earnedFeeOutputToken": "string",
"feeTier": "LOWEST",
"tickLower": 0,
"tickUpper": 0
},
"condition": {
"type": "Time",
"timeAfterEpochSec": 1
},
"action": {
"type": "Close",
"slippage": 0,
"maxGasProportion": 1
},
"expiration": 1
}
]
}
Last modified: a year ago