Cancel Limit Order
https://api.dodoex.io/limit_order/cancel
POST
curl --location --request POST 'https://api.dodoex.io/limit_order/cancel?apikey=${apikey}' \
--header 'User-Agent: DODO-${your_id}' \
--data-raw '{
"network": "gor",
"address": "0x709f0d38142e7f8d95a21529b9ad576555bd6755",
"id": 33,
"signature": "0xd13b9ce1b72b606918bde9276d3bc10114f1b2dc743c996f",
"signkey": "888",
"signtime": 169212345
}'
name | param type | type | option | default | description |
---|---|---|---|---|---|
User-Agent | header | string | require | | Please define your id as User-Agent, so that when you request a problem we can help you, the recommended format is: DODO-[your custom id]
example: User-Agent: DODO-user123 |
apikey | query | string | require | | get through the developer platform |
id | body | integer | require | | order id |
network | body | string | require | | network name,enum:['ethereum', 'bsc', 'polygon', 'arbitrum','gor'] |
address | body | string | require | | your wallet address |
signature | body | string | require | | signature |
signkey | body | string | require | | sign key |
signtime | body | string | require | | sign unix timestamp |
const ethers = require("ethers");
const signtime = Math.floor(new Date().getTime() / 1000);
const signkey = `${process.env.CUSTOM_KEY} ${signtime}`;
const privateKey = Buffer.from(
process.env.YOUR_PK,
"hex"
);
(async () => {
const wallet = new ethers.Wallet(privateKey);
const address = await wallet.getAddress();
const signature = await wallet.signMessage(signkey);
console.log(signature)
})()
{
"code": 0,
"message": "success",
"data": null
}
name | type | description |
---|---|---|
code | integer | status code: 0: ok, 1000x: error |
message | string | status description |
data | object | |
Last modified 24d ago