{
  "x402Version": 2,
  "id": 72539,
  "slug": "saylorinnovations-api-perps-liquidation-price",
  "resource": "https://saylorinnovations.com/api/perps/liquidation-price",
  "description": "Perpetual futures liquidation price for a long or short at any leverage, with the percent move to liquidation, margin, position size and loss at liquidation.",
  "type": "http",
  "serviceName": "Saylor Innovations Data Desk",
  "mimeType": "application/json",
  "resourceType": "API",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "eip155:137",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "eip155:42161",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "So11111111111111111111111111111111111111112",
      "amount": "95830",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    }
  ],
  "outputSchema": {
    "type": "object",
    "properties": {
      "side": {
        "type": "string",
        "description": "Position direction: long or short"
      },
      "entry_price": {
        "type": "number",
        "description": "Entry price used"
      },
      "leverage": {
        "type": "number",
        "description": "Leverage used"
      },
      "margin_usd": {
        "type": "number",
        "description": "Margin posted for the position"
      },
      "position_usd": {
        "type": "number",
        "description": "Position notional value in USD"
      },
      "size_units": {
        "type": "number",
        "description": "Position size in units of the asset"
      },
      "liquidation_price": {
        "type": "number",
        "description": "Approximate price at which the position is liquidated"
      },
      "move_to_liquidation_percent": {
        "type": "number",
        "description": "Percent price move from entry to liquidation (negative for longs)"
      },
      "loss_at_liquidation_usd": {
        "type": "number",
        "description": "Approximate margin lost when liquidated, after the maintenance margin remainder"
      },
      "current_price": {
        "type": [
          "number",
          "null"
        ],
        "description": "Current price supplied"
      },
      "distance_from_current_percent": {
        "type": [
          "number",
          "null"
        ],
        "description": "Percent move from the current price to liquidation"
      },
      "already_liquidated": {
        "type": [
          "boolean",
          "null"
        ],
        "description": "True when the current price is already beyond the liquidation price"
      },
      "note": {
        "type": "string",
        "description": "Plain-language caveat about how to read and use the result"
      },
      "source": {
        "type": "string",
        "description": "Where the data or formula comes from"
      },
      "maintenance_margin_percent": {
        "description": "Maintenance margin rate assumed, in percent",
        "type": [
          "number",
          "null"
        ]
      },
      "fee_percent_assumed": {
        "description": "Closing fee buffer assumed, in percent",
        "type": [
          "number",
          "null"
        ]
      }
    },
    "required": [
      "liquidation_price",
      "move_to_liquidation_percent"
    ]
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "type": "http",
          "method": "GET",
          "queryParams": {
            "entry_price": "65000",
            "leverage": "10",
            "margin_usd": "500",
            "side": "long"
          }
        },
        "output": {
          "type": "json",
          "example": {
            "side": "long",
            "entry_price": 65000,
            "leverage": 10,
            "margin_usd": 500,
            "position_usd": 5000,
            "size_units": 0.07692308,
            "maintenance_margin_percent": 0.5,
            "fee_percent_assumed": 0.06,
            "liquidation_price": 58864,
            "move_to_liquidation_percent": -9.44,
            "loss_at_liquidation_usd": 475,
            "note": "Isolated-margin approximation for a linear USD-margined contract. Exchanges use tiered maintenance rates, funding and mark price, so check the venue before relying on it.",
            "source": "Isolated margin liquidation arithmetic"
          }
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "input": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "http"
              },
              "method": {
                "type": "string",
                "enum": [
                  "GET"
                ]
              },
              "queryParams": {
                "type": "object",
                "properties": {
                  "entry_price": {
                    "type": "string",
                    "description": "entry price"
                  },
                  "leverage": {
                    "type": "string",
                    "description": "leverage 1-200"
                  },
                  "margin_usd": {
                    "type": "string",
                    "description": "optional margin posted, default 100"
                  },
                  "side": {
                    "type": "string",
                    "description": "long or short"
                  }
                },
                "required": [
                  "entry_price",
                  "leverage",
                  "side"
                ]
              }
            },
            "required": [
              "type",
              "method"
            ],
            "additionalProperties": false
          },
          "output": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "json"
              },
              "example": {
                "type": "object",
                "properties": {
                  "side": {
                    "type": "string",
                    "description": "Position direction: long or short"
                  },
                  "entry_price": {
                    "type": "number",
                    "description": "Entry price used"
                  },
                  "leverage": {
                    "type": "number",
                    "description": "Leverage used"
                  },
                  "margin_usd": {
                    "type": "number",
                    "description": "Margin posted for the position"
                  },
                  "position_usd": {
                    "type": "number",
                    "description": "Position notional value in USD"
                  },
                  "size_units": {
                    "type": "number",
                    "description": "Position size in units of the asset"
                  },
                  "liquidation_price": {
                    "type": "number",
                    "description": "Approximate price at which the position is liquidated"
                  },
                  "move_to_liquidation_percent": {
                    "type": "number",
                    "description": "Percent price move from entry to liquidation (negative for longs)"
                  },
                  "loss_at_liquidation_usd": {
                    "type": "number",
                    "description": "Approximate margin lost when liquidated, after the maintenance margin remainder"
                  },
                  "current_price": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "Current price supplied"
                  },
                  "distance_from_current_percent": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "Percent move from the current price to liquidation"
                  },
                  "already_liquidated": {
                    "type": [
                      "boolean",
                      "null"
                    ],
                    "description": "True when the current price is already beyond the liquidation price"
                  },
                  "note": {
                    "type": "string",
                    "description": "Plain-language caveat about how to read and use the result"
                  },
                  "source": {
                    "type": "string",
                    "description": "Where the data or formula comes from"
                  },
                  "maintenance_margin_percent": {
                    "description": "Maintenance margin rate assumed, in percent",
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "fee_percent_assumed": {
                    "description": "Closing fee buffer assumed, in percent",
                    "type": [
                      "number",
                      "null"
                    ]
                  }
                },
                "required": [
                  "liquidation_price",
                  "move_to_liquidation_percent"
                ]
              }
            },
            "required": [
              "type"
            ]
          }
        },
        "required": [
          "input"
        ]
      }
    }
  },
  "tags": [
    "liquidation price calculator",
    "short liquidation price",
    "leverage liquidation distance",
    "bitcoin futures liquidation",
    "how far until liquidation"
  ],
  "sourceHost": "saylorinnovations.com",
  "lastUpdated": "2026-10-26T22:14:01.958Z",
  "quality": {},
  "metadata": {
    "serviceName": "Saylor Innovations Data Desk",
    "method": "GET",
    "mimeType": "application/json",
    "inputSchema": {
      "type": "object",
      "properties": {
        "entry_price": {
          "type": "string",
          "description": "entry price"
        },
        "leverage": {
          "type": "string",
          "description": "leverage 1-200"
        },
        "margin_usd": {
          "type": "string",
          "description": "optional margin posted, default 100"
        },
        "side": {
          "type": "string",
          "description": "long or short"
        }
      },
      "required": [
        "entry_price",
        "leverage",
        "side"
      ]
    },
    "exampleResponse": {
      "side": "long",
      "entry_price": 65000,
      "leverage": 10,
      "margin_usd": 500,
      "position_usd": 5000,
      "size_units": 0.07692308,
      "maintenance_margin_percent": 0.5,
      "fee_percent_assumed": 0.06,
      "liquidation_price": 58864,
      "move_to_liquidation_percent": -9.44,
      "loss_at_liquidation_usd": 475,
      "note": "Isolated-margin approximation for a linear USD-margined contract. Exchanges use tiered maintenance rates, funding and mark price, so check the venue before relying on it.",
      "source": "Isolated margin liquidation arithmetic"
    },
    "parameterLocation": "query",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "type": "http",
            "method": "GET",
            "queryParams": {
              "entry_price": "65000",
              "leverage": "10",
              "margin_usd": "500",
              "side": "long"
            }
          },
          "output": {
            "type": "json",
            "example": {
              "side": "long",
              "entry_price": 65000,
              "leverage": 10,
              "margin_usd": 500,
              "position_usd": 5000,
              "size_units": 0.07692308,
              "maintenance_margin_percent": 0.5,
              "fee_percent_assumed": 0.06,
              "liquidation_price": 58864,
              "move_to_liquidation_percent": -9.44,
              "loss_at_liquidation_usd": 475,
              "note": "Isolated-margin approximation for a linear USD-margined contract. Exchanges use tiered maintenance rates, funding and mark price, so check the venue before relying on it.",
              "source": "Isolated margin liquidation arithmetic"
            }
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "type": "object",
          "properties": {
            "input": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "const": "http"
                },
                "method": {
                  "type": "string",
                  "enum": [
                    "GET"
                  ]
                },
                "queryParams": {
                  "type": "object",
                  "properties": {
                    "entry_price": {
                      "type": "string",
                      "description": "entry price"
                    },
                    "leverage": {
                      "type": "string",
                      "description": "leverage 1-200"
                    },
                    "margin_usd": {
                      "type": "string",
                      "description": "optional margin posted, default 100"
                    },
                    "side": {
                      "type": "string",
                      "description": "long or short"
                    }
                  },
                  "required": [
                    "entry_price",
                    "leverage",
                    "side"
                  ]
                }
              },
              "required": [
                "type",
                "method"
              ],
              "additionalProperties": false
            },
            "output": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "const": "json"
                },
                "example": {
                  "type": "object",
                  "properties": {
                    "side": {
                      "type": "string",
                      "description": "Position direction: long or short"
                    },
                    "entry_price": {
                      "type": "number",
                      "description": "Entry price used"
                    },
                    "leverage": {
                      "type": "number",
                      "description": "Leverage used"
                    },
                    "margin_usd": {
                      "type": "number",
                      "description": "Margin posted for the position"
                    },
                    "position_usd": {
                      "type": "number",
                      "description": "Position notional value in USD"
                    },
                    "size_units": {
                      "type": "number",
                      "description": "Position size in units of the asset"
                    },
                    "liquidation_price": {
                      "type": "number",
                      "description": "Approximate price at which the position is liquidated"
                    },
                    "move_to_liquidation_percent": {
                      "type": "number",
                      "description": "Percent price move from entry to liquidation (negative for longs)"
                    },
                    "loss_at_liquidation_usd": {
                      "type": "number",
                      "description": "Approximate margin lost when liquidated, after the maintenance margin remainder"
                    },
                    "current_price": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "Current price supplied"
                    },
                    "distance_from_current_percent": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "Percent move from the current price to liquidation"
                    },
                    "already_liquidated": {
                      "type": [
                        "boolean",
                        "null"
                      ],
                      "description": "True when the current price is already beyond the liquidation price"
                    },
                    "note": {
                      "type": "string",
                      "description": "Plain-language caveat about how to read and use the result"
                    },
                    "source": {
                      "type": "string",
                      "description": "Where the data or formula comes from"
                    },
                    "maintenance_margin_percent": {
                      "description": "Maintenance margin rate assumed, in percent",
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "fee_percent_assumed": {
                      "description": "Closing fee buffer assumed, in percent",
                      "type": [
                        "number",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "liquidation_price",
                    "move_to_liquidation_percent"
                  ]
                }
              },
              "required": [
                "type"
              ]
            }
          },
          "required": [
            "input"
          ]
        }
      }
    },
    "examples": [
      {
        "label": "Unpaid discovery call",
        "method": "GET",
        "url": "https://saylorinnovations.com/api/perps/liquidation-price?entry_price=65000&leverage=10&side=long&margin_usd=500",
        "expectedStatus": 402
      }
    ],
    "cacheTtlSeconds": 0,
    "capabilities": [],
    "noAccountRequired": true,
    "noApiKeyRequired": true,
    "sideEffects": "Paid calls settle the advertised payment; see the provider contract for execution behavior.",
    "payment": {
      "protocol": "x402",
      "settlement": "direct-to-provider"
    },
    "provider": {
      "name": "Saylor Innovations",
      "host": "saylorinnovations.com",
      "manifestUrl": "https://saylorinnovations.com/.well-known/x402.json"
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": true,
  "featured": false,
  "provider": {
    "host": "saylorinnovations.com",
    "manifest_name": "Saylor Innovations Knowledge Base",
    "source": "submitted",
    "source_manifest_url": "https://saylorinnovations.com/.well-known/x402.json",
    "submitted_at": "2026-10-26T05:52:02.113Z"
  },
  "exampleResponse": {
    "side": "string",
    "entry_price": 0,
    "leverage": 0,
    "margin_usd": 0,
    "position_usd": 0,
    "size_units": 0,
    "liquidation_price": 0,
    "move_to_liquidation_percent": 0,
    "loss_at_liquidation_usd": 0,
    "current_price": 0,
    "distance_from_current_percent": 0,
    "already_liquidated": true,
    "note": "string",
    "source": "string",
    "maintenance_margin_percent": 0,
    "fee_percent_assumed": 0
  }
}