Closed ghost closed 6 years ago
Hello,
Without limit price:
The equivalent of following picture
is the following code:
auth_client.buy(stop_price="9000", product_id="BTC-EUR", stop_type="entry", type="market", funds="1000")
The equivalent of following picture
is the following code:
auth_client.sell(stop_price="6000", product_id="BTC-EUR", stop="loss", type="market", size="0.02")
With limit price:
The equivalent of following picutre
is the following code:
auth_client.sell(stop_price="6000", product_id="BTC-EUR", stop="loss", size="0.02", price="5900")
Is that OK for you ?
Yes, excellent, thank you.
How to place a STOP order? gdax_client.sell() doesn't like the 'stop' or 'stop_price' keywords.
errors: sell() got an unexpected keyword argument 'stop' sell() got an unexpected keyword argument 'stop_price'
Please provide a BUY and SELL example, with a limit price too. Thanks.