aluna-crypto / alunajs

Standardizing Crypto Trading APIs across multiple exchanges.
MIT License
0 stars 0 forks source link

Bitmex / Order Place - Improve invalid amount error handling #100

Closed arboleya closed 2 years ago

arboleya commented 2 years ago

This error should not be a request-error but an order-invalid-amount.

error

It seems we can improve this switch to include it:

https://github.com/alunacrypto/alunajs/blob/9a6ad3be58a709c4d9f2993cee7ae03e0b57b931/src/exchanges/bitmex/modules/authed/order/place.ts#L149-L166