Use Cancel Order to cancel orders already placed on the exchange.

Cancel Order


Request

Key

Type

Value

Required

type

string

cancelorder

Yes

security

string

The trading pair to cancel

Yes

refno

string

The reference order id to cancel

Yes

Response

Key

Type

Value

Required

type

string

cancelorder

Yes

result

string

"OK" for successful cancellation. For unsuccessful cancellations, this field will be populated with the reason for the rejection

Yes

security

string

The trading pair to cancel

Yes

refno

string

The reference order id to cancel

Yes

# Request
{
  "type":"cancelorder",
  "security":"BTCUSD",
  "refno":"3XXF0329A0B0"
}

# Response - Success
{
  "result":"OK",
  "refno":"3XXF0329A0B0",
  "security":"BTCUSD",
  "type":"cancelorder"
}

# Response - Success
{
  "result":"order not found",
  "refno":"3XXF0329A0B0",
  "security":"BTCUSD",
  "type":"cancelorder"
}