Trade

This method gives user balances and server's timestamp

Body JSON
{
	"method": "trade"
	"nonce": 4531235
        "idr": 100000,
	"price": 500000,
	"type": "buy"
}

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

Query Parameters

Headers

{
    "success": 1,
    "return": {
        "receive_btc": "0.00000000",
        "spend_rp": 0,
        "fee": 0,
        "remain_rp": 5000000,
        "order_id": 59632813
    }
}
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": "trade",
    "timestamp": "1578304294000",
    "recvWindow": "1578303937000",
        "pair" : "btc_idr",
        "type" : "sell",
        "price" : "107202000",
        "idr" : "",
        "btc" : "0.00313482"
}'

Last updated