/listTrigger
/listTrigger
Request
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 : 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
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 {7}
optional
condition
oneOf {4}
oneOf, must be valid against exactly one of the subschemas
action
oneOf {4}
oneOf, must be valid against exactly one of the subschemas
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
}
]
}
Modified at 10 months ago