kmadac/bitstamp-python-client

Can we do a stop order or stop trail order?

Closed this issue · 6 comments

I couldnt find it in documention. If so please guide

Bitstamp API have exposed Buy/Sell limit order and Buy/Sell Market order and these are implemented already.
You can find it in source code here:

def buy_limit_order(self, amount, price, base="btc", quote="usd"):

Is this what you are looking for?

Nope.

On bitstamp you can make market, limit and stop orders. https://www.bitstamp.net/market/order/stop/

I want a way to make stop orders through the api

As this project is only wrapper of Bitstamp REST API and the API doesn't expose such functionality, we cannot add it. Once Bitstamp will add it I can add it as well in matter of hours.

Actually one follow-up question:

is there a way that we can include the limit_price in the limit order?

Bitstamp APi allows for the price amount and limit_price amount for the limit order. I'm not sure how we can include that in the python wrapper.

https://www.bitstamp.net/api/

limit_price argument wad added thorugh merge #30