Closed sanket-buyhatke closed 2 years ago
interesting.. on the website, only limit, stop and bracket are available. will try market via api. lets hope you resolve my installation issue no : 56 :-)
@sukhwant280 , the market order functionality is currently unavailable, hence the feature request (meaning you wont be able place market orders via API currently)
will update in documentation, once it is available.
thank you for your interest.
noted thanks
Hi @sukhwant280 , the market order functionality is live, pls refer to market orders
Describe the enhancement
Implementation of market order via API trading, would help place orders immediately and ensures the user is able to enter/exit their position irrespective of market condition.
Currently this is achieved by calling two functions (example for exiting BTC/USDT position):
bitbnsObj.getSellOrderBook('BTCUSDT')
bitbnsObj.placeOrders({'symbol': 'BTCUSDT', 'side': 'SELL', 'quantity': 0.1, 'rate': 33000})
this action could be achieved by just 1 action by user:
bitbnsObj.placeOrders({'symbol': 'BTCUSDT', 'side': 'SELL', 'type':'MARKET', 'quantity': 0.1})
note: rate is not considered in this case.