POST Cancel settlement

Cancels the settlement request and unpause the market maker's trading activities.

post
Header parameters
apiKeystringRequired

The API key that was assigned to you by Native

Body
chainstring · enumRequired

Native blockchain name, eg: ethereum, bsc, etc

Example: ethereumPossible values:
recipientstringRequired

The address of the market maker or the settler

Pattern: ^0x[a-fA-F0-9]{40}$
traderstringRequired

The address of the trader

Pattern: ^0x[a-fA-F0-9]{40}$
Responses
201
Success
application/json
post
POST /lend/v1/lend/cancel-settlement HTTP/1.1
Host: newapi.native.org
apiKey: text
Content-Type: application/json
Accept: */*
Content-Length: 115

{
  "chain": "ethereum",
  "recipient": "text",
  "positionUpdates": [
    {
      "tokenAddress": "text",
      "amount": "text"
    }
  ],
  "trader": "text"
}
{
  "success": "text"
}

Example response

{
    "status": "success",
    "id": "b9292014-1e85-43e8-a635-8a4f1c5423b9"
}

Error responses

{
    "statusCode": 400,
    "message": "Settlement request not found",
    "error": "Bad Request"
}

Last updated