bitfinexcom / bitfinex-api-go

BITFINEX Go trading API - Bitcoin, Litecoin, and Ether exchange
https://www.bitfinex.com/
MIT License
309 stars 220 forks source link

Querying an empty order list throws an error #229

Open dominiks96 opened 3 years ago

dominiks96 commented 3 years ago

Issue type

Brief description

When using the Client.Orders.All() function when there are no orders present it returns an error "data slice too short for order: []interface {}{}". In my opinion it should just return an empty list, or at least a "dedicated" error I can check for.

Steps to reproduce

Additional Notes:

-