You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixed in another repo. Remove this cbpro and:
pip install git+git://github.com/coin-tracker/coinbasepro-python.git
should give you the working version - the stop order syntax has changed slightly, so need to adjust. The new repo has updated README, so use that example.
Currently using the below line of code to try and place a stop order
print(client.place_stop_order('ETH-USD','loss',1000.0,size=.001))
The resulting console output can be seen below
{'message': 'Invalid order_type stop'}
Checking my orders on Coinbase Pro confirms that no orders were placed.
The following two lines of code do however work
print(client.place_limit_order('ETH-USD','sell',4000.0,.001))
print(client.place_market_order('ETH-USD','sell',.001))
pip list shows cbpro as being version 1.1.4
The text was updated successfully, but these errors were encountered: