Skip to main content
POST
/
api
/
{blockchain}
/
orders
/
cancel
TypeScript
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json'},
  body: JSON.stringify({deadline: 1, maker: '<string>', orderHash: '<string>', signature: '<string>'})
};

fetch('https://swap.ggp.gg/api/{blockchain}/orders/cancel', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
curl --request POST \
--url https://swap.ggp.gg/api/{blockchain}/orders/cancel \
--header 'Content-Type: application/json' \
--data '
{
"deadline": 1,
"maker": "<string>",
"orderHash": "<string>",
"signature": "<string>"
}
'
import requests

url = "https://swap.ggp.gg/api/{blockchain}/orders/cancel"

payload = {
"deadline": 1,
"maker": "<string>",
"orderHash": "<string>",
"signature": "<string>"
}
headers = {"Content-Type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
{
  "orderHash": "<string>"
}
{
"code": 400,
"error": "string"
}
{
"code": 408,
"error": "string"
}
{
"code": 500,
"error": "string"
}

Path Parameters

blockchain
enum<string>
required
Available options:
ethereum,
bsc,
arbitrum

Body

application/json

Cancel order params with hash and signature

deadline
integer<int64>
required

Deadline in seconds

Required range: x >= 0
maker
string
required

Maker wallet or contract address

orderHash
string
required

Order hash (id in bytes32)

signature
string
required

Signature of the limit order typed data (using signTypedData_v4)

Response

Cancel order

orderHash
string
required

Order hash (id in bytes32)