Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
POST cancel order
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)
200
Example
{ "orderHash": "<string>" }
ethereum
bsc
Cancel order params with hash and signature
Deadline in seconds
x >= 0
Maker wallet or contract address
Order hash (id in bytes32)
Signature of the limit order typed data (using signTypedData_v4)
Cancel order