bitbns-official / bitbnspy

MIT License
9 stars 6 forks source link

adding market order functionality #48

Closed sanket-buyhatke closed 2 years ago

sanket-buyhatke commented 3 years ago

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.

sukhwant280 commented 3 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 :-)

sanket-buyhatke commented 3 years ago

@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.

sukhwant280 commented 3 years ago

noted thanks

sanket-buyhatke commented 2 years ago

Hi @sukhwant280 , the market order functionality is live, pls refer to market orders