orderHistory
This method gives the list of order history (buy and sell).
Parameter
Required
Value
Description
pair
Yes
btc_idr, ltc_btc, doge_btc, etc
Pair to get the information from
count
no
100
number of transaction which will be displayed
from
no
0
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": {
"orders": [
{
"order_id": "59639504",
"type": "buy",
"price": "100207000",
"submit_time": "1578648363",
"finish_time": "1578649332",
"status": "cancelled",
"order_idr": "336058",
"remain_idr": "336058"
},
{
"order_id": "59636253",
"type": "sell",
"price": "107202000",
"submit_time": "1578645288",
"finish_time": "1578645297",
"status": "filled",
"order_btc": "0.00313482",
"remain_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": "orderHistory",
"timestamp": "1578304294000",
"recvWindow": "1578303937000",
"count" : "",
"from" : "",
"pair" : "btc_idr"
}'var axios = require('axios');
var data = JSON.stringify({
"method": "orderHistory",
"timestamp": "1578304294000",
"recvWindow": "1578303937000",
"count": "",
"from": "",
"pair": "btc_idr"
});
var config = {
method: 'post',
url: 'https://us-central1-appgregator.cloudfunctions.net/indodax/method/?name=qantor.co.id&connection_name=crypto01',
headers: {
'secret-key': '84c7373...',
'x-api-key': 'U2Fsd...',
'Content-Type': 'application/json'
},
data : data
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://us-central1-appgregator.cloudfunctions.net/indodax/method/?name=qantor.co.id&connection_name=crypto01',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS =>'{
"method": "orderHistory",
"timestamp": "1578304294000",
"recvWindow": "1578303937000",
"count" : "",
"from" : "",
"pair" : "btc_idr"
}',
CURLOPT_HTTPHEADER => array(
'secret-key: 84c7373...',
'x-api-key: U2Fsd...',
'Content-Type: application/json'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
Last updated