Pendle · Schema

GenerateLimitOrderDataDto

Web3DeFiYield TokenizationCryptoPrincipal TokensYield TokensAMMLiquidity Pools

Properties

Name Type Description
chainId number Chain Id
YT string YT address
orderType number LimitOrderType { 0 : TOKEN_FOR_PT, 1 : PT_FOR_TOKEN, 2 : TOKEN_FOR_YT, 3 : YT_FOR_TOKEN }
token string Input token if type is TOKEN_FOR_PT or TOKEN_FOR_YT, output token otherwise
maker string Maker address
makingAmount string BigInt string of making amount, the amount of token if the order is TOKEN_FOR_PT or TOKEN_FOR_YT, otherwise the amount of PT or YT
impliedApy number Implied APY of this limit order
expiry string Timestamp of order's expiry, in seconds
View JSON Schema on GitHub

JSON Schema

GenerateLimitOrderDataDto.json Raw ↑
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "GenerateLimitOrderDataDto",
  "type": "object",
  "properties": {
    "chainId": {
      "type": "number",
      "description": "Chain Id"
    },
    "YT": {
      "type": "string",
      "description": "YT address"
    },
    "orderType": {
      "type": "number",
      "enum": [
        0,
        1,
        2,
        3
      ],
      "description": "LimitOrderType { 0 : TOKEN_FOR_PT, 1 : PT_FOR_TOKEN, 2 : TOKEN_FOR_YT, 3 : YT_FOR_TOKEN }"
    },
    "token": {
      "type": "string",
      "description": "Input token if type is TOKEN_FOR_PT or TOKEN_FOR_YT, output token otherwise"
    },
    "maker": {
      "type": "string",
      "description": "Maker address"
    },
    "makingAmount": {
      "type": "string",
      "description": "BigInt string of making amount, the amount of token if the order is TOKEN_FOR_PT or TOKEN_FOR_YT, otherwise the amount of PT or YT"
    },
    "impliedApy": {
      "type": "number",
      "description": "Implied APY of this limit order"
    },
    "expiry": {
      "type": "string",
      "description": "Timestamp of order's expiry, in seconds"
    }
  },
  "required": [
    "chainId",
    "YT",
    "orderType",
    "token",
    "maker",
    "makingAmount",
    "impliedApy",
    "expiry"
  ]
}