bitvavo / java-bitvavo-api

Java wrapper for the Bitvavo API
ISC License
9 stars 14 forks source link

JSONException in markets method #3

Closed remcobIT closed 4 years ago

remcobIT commented 4 years ago

When I use markets method with parameter "BTC-EUR" this results in an exception on line 369 of Bitvavo class, because the response is not an array.

joeri-vv commented 4 years ago

You were right, some endpoints would return a jsonObject when specifying certain parameters. The functions mapping to these endpoints have been changed to allways return a JSONArray, containing exactly one item when the parameters are used.