cancelOrder

This method is for canceling an existing open order.

Parameter
Required
Value
Description

pair

Yes

btc_idr, ltc_btc, doge_btc, etc

Pair to get the information from

order_id

Yes

integer

Order ID

type

Yes

buy / sell

transaction type (buy or sell)

Body JSON
{
    "method": "cancelOrder",
    "timestamp": "1578304294000",
    "recvWindow": "1578303937000",
    "pair" : "btc_idr",
    "order_id" : "59977301",
    "type" : "buy"
}

POST https://us-central1-appgregator.cloudfunctions.net/indodax/method/

Query Parameters

Name
Type
Description

name*

String

qantor.co.id

connection_name*

String

crypto01

Headers

Name
Type
Description

x-api-key*

String

U2Fsd...

secret-key*

String

84c7373b....(your indodax secret key)

{
    "success": 1,
    "return": {
        "order_id": 666883,
        "type": "sell",
        "pair": "btc_idr",
        "balance": {
            "idr": "33605800",
            "btc": "0.00000000",
            "frozen_idr": "0",
            "frozen_btc": "0.00000000"
        }
    }
}
curl --location --request POST 'https://us-central1-appgregator.cloudfunctions.net/indodax/method/?name=qantor.co.id&connection_name=crypto01' \
--header 'secret-key: 84c7373...' \
--header 'x-api-key: U2Fsd...' \
--header 'Content-Type: application/json' \
--data-raw '{
    "method": "cancelOrder",
    "timestamp": "1578304294000",
    "recvWindow": "1578303937000",
    "pair" : "btc_idr",
    "order_id" : "59977301",
    "type" : "buy"
}'

Last updated