I'm trying to create orders for bitfinex, through their REST API. All the teams go through normally, only with Multiple New Orders ( https://api.bitfinex.com/v1/order/new/multi ) there are some incomprehensible problems. In response to the request, nothing comes - an empty string. In addition to "400 Bad Request" to achieve nothing. At the same time, the service itself does not react as well. The JSON string leaves me:

{"request": "/ v1 / order / new / multi", "orders": "[{[" symbol ":" LTCUSD "," amount ":" 0.2 "," price ":" 130 "," exchange ":" bitfinex "," side ":" sell "," type ":" exchange limit "]}, {[" symbol ":" LTCUSD "," amount ":" 0.3 "," price ":" 130 " , "exchange": "bitfinex", "side": "sell", "type": "exchange limit"]}] "," nonce ":" 20171203002030019 "}

I suspect that there is an error inside the array. I would like to look at the "working" line of this command, Google did not help.

1 answer 1

Wrote Delpi via JSONObject and JSON Array. They build a string from the question. The error, in fact, in the "[and]" in the designation of the array.

  • one
    @ Artem, not sure - is this the answer (the problem was in [])? Or is this addition to the question, and are you still looking for a solution? - PashaPash