blinktrade / BlinkTradeJS

BlinkTrade JavaScript SDK and CLI
GNU General Public License v3.0
122 stars 46 forks source link

Invalid username/password in prod #48

Closed felipegtx closed 6 years ago

felipegtx commented 6 years ago

I'm getting the following error message even when using a fresh new API credential. Not sure what to do here.

image

The code is exactly this one.

cesardeazevedo commented 6 years ago

I think you forgot to pass the brokerId: 4 here?

felipegtx commented 6 years ago

That seems to do the trick. :)

I'm assuming this being required is something new since it used to work without it.

cesardeazevedo commented 6 years ago

Nothing new actually, if you don't pass the brokerId, it will use the brokerId 5, which is the blinktrade testnet for USD, now our beta versions will use brokerId 4 as default, but since you are using 0.0.15, it should fallback to 5 instead.

Also, there's no production environment for brokerId 5, so you can't use prod: true together with brokerId 5.

felipegtx commented 6 years ago

That's really weird. This thing used to work without it.

Well, the thing is that it works now. Thanks!