Closed jevdiego closed 6 years ago
Noticed in the last few days that I'm receiving an unexpected response when placing a sell order on Liqui.
Here is my request code
var request = require('request'); request({ method: 'POST', url: 'https://api.coinigy.com/api/v1/addOrder', headers: { 'Content-Type': 'application/json', 'X-API-KEY': API_KEY, 'X-API-SECRET': API_SECRET }, body: "{ \"auth_id\":"+ auth_id +", \"exch_id\":" + exch_id + ", \"mkt_id\":" + mkt_id + ", \"order_type_id\":" + order_type_id + ", \"price_type_id\":" + price_type_id + ", \"limit_price\":" + rate + ", \"order_quantity\":" + quantity + "}" }, function (error, response, body) { winston.debug("[placeOrderSell] Response Received: ", body); }
This is what I'm receiving in the 'body':
<pre>Array ( [pair] => gno_eth [type] => sell [amount] => 0.13 [rate] => 1.26271351 ) </pre><pre>Array ( [success] => 1 [return] => Array ( [received] => 0.13 [remains] => 0 [order_id] => 0 [funds] => Array ( [gno] => 0.06676548478 [eth] => 2.9836044990406 ) ) ) </pre>{"data":{"internal_order_id":"XXXXXXXX"},"notifications":[]}
I've just removed the actual order ID.
Why is there data within a <pre> tag? According to the documentation, I should just be receiving a JSON reponse. Or have I missed something?
<pre>
Apologies, looks like this was inadvertently left in while debugging! Should be updated.
Ok thanks
Sorry, forgot to close
Noticed in the last few days that I'm receiving an unexpected response when placing a sell order on Liqui.
Here is my request code
This is what I'm receiving in the 'body':
I've just removed the actual order ID.
Why is there data within a
<pre>
tag? According to the documentation, I should just be receiving a JSON reponse. Or have I missed something?