POST Cancel settlement
Header parameters
apiKeystringRequired
The API key that was assigned to you by Native
Body
chainstring · enumRequiredExample:
Native blockchain name, eg: ethereum, bsc, etc
ethereum
Possible values: recipientstringRequiredPattern:
The address of the market maker or the settler
^0x[a-fA-F0-9]{40}$
traderstringRequiredPattern:
The address of the trader
^0x[a-fA-F0-9]{40}$
Responses
201
Success
application/json
500
There was an exception with the server
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