pulsecat / cexio

CEX.IO REST API library for Node
MIT License
9 stars 4 forks source link

Empty / blank responses when portfolio has empty currency or asset #5

Open kuzetsa opened 10 years ago

kuzetsa commented 10 years ago

This is mostly just a ping (Kind of a feature request, really)

I've been trying to decide if I want to try and squash this bug on my end or if I wanted it patched upstream so other projects can benefit from the fix as well:

https://github.com/kuzetsa/gekko/issues/4

I don't have time to fix the bug at this time...

It'd really be nice if there were placeholder "zero" responses whenever cex.io's API response was empty or blank due to an empty currency or asset.

xtuc commented 8 years ago

I've got the same error. I want to fix it. I'm recently using CEX.IO. Which fields should I initialize if not available in API response.

data.GHS should be an object with available: Integer. Same for data.BTC.