Pendle · Schema

LimitOrderResponse

Web3DeFiYield TokenizationCryptoPrincipal TokensYield TokensAMMLiquidity Pools

Properties

Name Type Description
id string Hash of the order
signature string Signature of order, signed by maker
chainId number Chain id
salt string BigInt string of salt. Salt is a random generated number to distinguish between orders.Because of some technical reason, this number must be dividable by 12421
expiry string BigInt string of expiry, in second
nonce string BigInt string of nonce
type number LimitOrderType { 0 : TOKEN_FOR_PT, 1 : PT_FOR_TOKEN, 2 : TOKEN_FOR_YT, 3 : YT_FOR_TOKEN }
token string Token used by user to make order
yt string YT address
maker string Maker address
receiver string Receiver 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
currentMakingAmount string BigInt string of remaining making amount, the unit is the same as makingAmount
lnImpliedRate string BigInt string of lnImpliedRate. Natural logarithm of the implied rate
failSafeRate string BigInt string of failSafeRate
permit string Bytes string for permit
orderFilledStatus object Order filled status
isActive boolean
isCanceled boolean
createdAt string
orderState object Order state
fullyExecutedTimestamp string Fully filled timestamp
canceledTimestamp string Canceled timestamp
latestEventTimestamp string Timestamp of latest event
sy string SY address
pt string PT address
makerBalance string Min(maker balance, maker allowance). How much token the maker has available to use for this order
failedMintSy boolean Simulate result of the order to mint sy
failedMintSyReason string Error reason of the order to mint sy
orderBookBalance string Bigint string of amount shown on order book
makingToken string Making token address
takingToken string Taking token address
status string LimitOrderStatus
View JSON Schema on GitHub

JSON Schema

LimitOrderResponse.json Raw ↑
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "LimitOrderResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Hash of the order"
    },
    "signature": {
      "type": "string",
      "description": "Signature of order, signed by maker"
    },
    "chainId": {
      "type": "number",
      "description": "Chain id"
    },
    "salt": {
      "type": "string",
      "description": "BigInt string of salt. Salt is a random generated number to distinguish between orders.Because of some technical reason, this number must be dividable by 12421"
    },
    "expiry": {
      "type": "string",
      "description": "BigInt string of expiry, in second"
    },
    "nonce": {
      "type": "string",
      "description": "BigInt string of nonce"
    },
    "type": {
      "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": "Token used by user to make order"
    },
    "yt": {
      "type": "string",
      "description": "YT address"
    },
    "maker": {
      "type": "string",
      "description": "Maker address"
    },
    "receiver": {
      "type": "string",
      "description": "Receiver 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"
    },
    "currentMakingAmount": {
      "type": "string",
      "description": "BigInt string of remaining making amount, the unit is the same as makingAmount"
    },
    "lnImpliedRate": {
      "type": "string",
      "description": "BigInt string of lnImpliedRate. Natural logarithm of the implied rate"
    },
    "failSafeRate": {
      "type": "string",
      "description": "BigInt string of failSafeRate"
    },
    "permit": {
      "type": "string",
      "description": "Bytes string for permit"
    },
    "orderFilledStatus": {
      "description": "Order filled status",
      "allOf": [
        {
          "$ref": "#/components/schemas/OrderFilledStatusResponse"
        }
      ]
    },
    "isActive": {
      "type": "boolean"
    },
    "isCanceled": {
      "type": "boolean"
    },
    "createdAt": {
      "format": "date-time",
      "type": "string"
    },
    "orderState": {
      "description": "Order state",
      "allOf": [
        {
          "$ref": "#/components/schemas/OrderStateResponse"
        }
      ]
    },
    "fullyExecutedTimestamp": {
      "format": "date-time",
      "type": "string",
      "description": "Fully filled timestamp"
    },
    "canceledTimestamp": {
      "format": "date-time",
      "type": "string",
      "description": "Canceled timestamp"
    },
    "latestEventTimestamp": {
      "format": "date-time",
      "type": "string",
      "description": "Timestamp of latest event"
    },
    "sy": {
      "type": "string",
      "description": "SY address"
    },
    "pt": {
      "type": "string",
      "description": "PT address"
    },
    "makerBalance": {
      "type": "string",
      "description": "Min(maker balance, maker allowance). How much token the maker has available to use for this order"
    },
    "failedMintSy": {
      "type": "boolean",
      "description": "Simulate result of the order to mint sy"
    },
    "failedMintSyReason": {
      "type": "string",
      "description": "Error reason of the order to mint sy"
    },
    "orderBookBalance": {
      "type": "string",
      "description": "Bigint string of amount shown on order book"
    },
    "makingToken": {
      "type": "string",
      "description": "Making token address"
    },
    "takingToken": {
      "type": "string",
      "description": "Taking token address"
    },
    "status": {
      "type": "string",
      "enum": [
        "FILLABLE",
        "PARTIAL_FILLABLE",
        "FAILED_TRANSFER_TOKEN",
        "EMPTY_MAKER_BALANCE",
        "CANCELLED",
        "FULLY_FILLED",
        "EXPIRED"
      ],
      "description": "LimitOrderStatus"
    }
  },
  "required": [
    "id",
    "signature",
    "chainId",
    "salt",
    "expiry",
    "nonce",
    "type",
    "token",
    "yt",
    "maker",
    "receiver",
    "makingAmount",
    "currentMakingAmount",
    "lnImpliedRate",
    "failSafeRate",
    "permit",
    "orderFilledStatus",
    "isActive",
    "isCanceled",
    "createdAt",
    "sy",
    "pt",
    "makerBalance",
    "failedMintSy",
    "failedMintSyReason",
    "orderBookBalance",
    "makingToken",
    "takingToken",
    "status"
  ]
}