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

      /updateTrigger

      Prod Env
      https://api.aperture.finance
      Prod Env
      https://api.aperture.finance
      POST
      /updateTrigger

      Request

      Body Params application/json
      payloadSignature
      string 
      required
      Signature of the payload.
      >= 1 characters
      payload
      object 
      required
      ownerAddr
      string 
      required
      The owner address of the position; must be a checksum address.
      >= 1 characters
      chainId
      enum<number> 
      required
      The chain id of the network. Must be one of the chains supported by Aperture.
      Allowed values:
      1421615421613
      Example:
      1
      taskId
      number 
      required
      The task id of the trigger in Aperture's automation service.
      >= 0
      action
      optional
      If populated, update the action to details specified here; otherwise, action details remain unchanged.
      condition
      optional
      If populated, update the condition to details specified here; otherwise, condition details remain unchanged.
      expiration
      integer 
      required
      Unix timestamp in seconds when this trigger expires.
      > 0
      Example
      {
        "payloadSignature": "string",
        "payload": {
          "ownerAddr": "string",
          "chainId": 1,
          "taskId": 0,
          "action": {
            "type": "Close",
            "slippage": 0,
            "maxGasProportion": 1
          },
          "condition": {
            "type": "Time",
            "timeAfterEpochSec": 1
          },
          "expiration": 1
        }
      }

      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 POST 'https://api.aperture.finance/updateTrigger' \
      --header 'Content-Type: application/json' \
      --data-raw '{
          "payloadSignature": "string",
          "payload": {
              "ownerAddr": "string",
              "chainId": 1,
              "taskId": 0,
              "action": {
                  "type": "Close",
                  "slippage": 0,
                  "maxGasProportion": 1
              },
              "condition": {
                  "type": "Time",
                  "timeAfterEpochSec": 1
              },
              "expiration": 1
          }
      }'

      Responses

      🟢200The trigger has been successfully updated.
      application/json
      Body
      object {0}
      Example
      {}
      🟠400Bad Request
      🔴500Internal Server Error
      Previous
      /listTrigger
      Next
      /deleteTrigger
      Built with