Native Documentation
  • introduction
    • What is Native
    • About Native V2
    • Benefits for Key Players
  • SOLUTION
    • Native Credit Pool
    • Native Swap Engine
  • CONCEPTS
    • Orderbook
    • Firm Quote Orders
    • Auto Sign Orders
    • Swap Fees
    • Slippage
    • Base and Listed Assets
    • Single-Sided Liquidity Pools
    • Total Available Liquidity
    • Liquidity Pairing
    • Liquidity Bootstrapping
    • Health Ratio
    • Earning Fees and Incentives
    • Credit-Based Swap
      • Collateral Factor
      • PMM Credit
      • Settlement and Liquidation
    • Market-Responsive Pricing
    • Risks
  • USER GUIDE
    • Add Liquidity
    • Pair Liquidity
    • Claim Rewards
    • Swap with Native
  • Build with Native
    • Swap Aggregators
      • Guide
      • FirmQuote Swap APIs
        • GET Orderbook
        • GET Indicative quote
        • GET Firm quote
    • Asset Issuers
      • For Pegged Assets
      • For General Assets
  • Resources
    • Addresses
    • Audits
    • Github
    • System Status
    • Business Source License
    • Media Kit
Powered by GitBook
On this page
  1. Build with Native
  2. Private Market Makers[june]
  3. PMM API

POST Request collateral removal

Last updated 10 months ago

Success response

{
    "success": true,
    "id": "ffa84899-3c76-4e2b-a720-10c5d9bc0da0"
}

Error responses

// Pending request
{
    "statusCode": 400,
    "message": "Pending request exists, please cancel previous request!",
    "error": "Bad Request"
}

Creates a collateral removal request and start the time delay. Note that Market Maker will be paused at this point from other activities.

post
Header parameters
apiKeystringRequired

The API key that was assigned to you by Native

Body
recipientstringRequired

The address of the market maker or the settler

Pattern: ^0x[a-fA-F0-9]{40}$
chainstring ยท enumRequired

Native blockchain name, eg: ethereum, bsc, etc

Example: ethereumPossible values:
traderstringRequired

The address of the trader

Pattern: ^0x[a-fA-F0-9]{40}$
Responses
201
Success
application/json
500
There was an exception with the server
post
POST /lend/v1/lend/request-collateral-removal HTTP/1.1
Host: newapi.native.org
apiKey: text
Content-Type: application/json
Accept: */*
Content-Length: 106

{
  "recipient": "text",
  "chain": "ethereum",
  "tokens": [
    {
      "tokenAddress": "text",
      "amount": "text"
    }
  ],
  "trader": "text"
}
{
  "status": "text",
  "readyAt": "2025-06-04T05:57:25.861Z",
  "expiresAt": "2025-06-04T05:57:25.861Z",
  "data": {}
}