Cancel Order

Fetch orderbok data with latest bid and ask price

API endpoint

/api/cancelOrder

Request Samples

Response Samples

Content type

application/json

Params

{
    "securityAddress": "string",
    "currencyAddress": "string",
    "quantity": "string",
    "swapType": "string",
    "poolId": "string",
    "secret_key": "string",
    "orderRef": "string"
}

Sample body request

{
    "securityAddress": "0x7395e5201ed7a841d1a1b04e8c19ab80dd72ab81",
    "currencyAddress": "0x07865c6e87b9f70255377e024ace6630c1eaa37f",
    "quantity": "1",
    "swapType": "Sell",
    "poolId": "0xfe94f5cea565935aa092d66b8540b03a4de05872000000000000000000000860",
    "secret_key": "153eb0b3726764d204aedc9062974ee82edcca2bc536f3742149511d0e455306",
    "orderRef": "0x02b448270f09015cd96a96413621e8462fb7465b1860ecc24bab1a5cfef151f7"
}

Encryption of Secret key

Algorithm : AES-256-CBC
Secretkey (32 bytes data) = "verified@API"
initVector (16 bytes data) = walletAddress 

Response

{
    "status": ok
}

Last updated