Aperture API for UniV3 Automation
    Aperture API for UniV3 Automation
    • Aperture Finance UniV3 Automation API
    • /checkPositionApproval
      GET
    • /updatePositionPermit
      POST
    • /createTrigger
      POST
    • /listTrigger
      GET
    • /updateTrigger
      POST
    • /deleteTrigger
      POST
    • /checkUserLimit
      GET

      /listTrigger

      Prod Env
      https://api.aperture.finance
      Prod Env
      https://api.aperture.finance
      GET
      /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

      Shell
      JavaScript
      Java
      Swift
      Go
      PHP
      Python
      HTTP
      C
      C#
      Objective-C
      Ruby
      OCaml
      Dart
      R
      Request Request Example
      Shell
      JavaScript
      Java
      Swift
      curl --location --request GET 'https://api.aperture.finance/listTrigger?ownerAddr=&chainId=1&isLimitOrder='

      Responses

      🟢200Triggers listed successfully.
      application/json
      Body
      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
              }
          ]
      }
      🟠400Bad Request
      🔴500Internal Server Error
      Previous
      /createTrigger
      Next
      /updateTrigger
      Built with