danpaquin / coinbasepro-python

The unofficial Python client for the Coinbase Pro API
MIT License
1.82k stars 738 forks source link

{'message': 'Invalid order_type stop'} #368

Closed joseska closed 3 years ago

joseska commented 5 years ago

Hi. We have and error when try to make a stop order. the error is: {'message': 'Invalid order_type stop'}

thanks....

JonasSteur commented 4 years ago

This happens because stop isn't a valid order type. The only order types that exist are limit and market. To create a stop order some extra params need to be sent. The test currently in master is failing.

As I just encountered this myself while working on a project that uses this client I will create a PR with a fix.

https://github.com/danpaquin/coinbasepro-python/pull/370

mcardillo55 commented 3 years ago

370 Merged