bitbns-official / bitbnspy

MIT License
9 stars 6 forks source link

Order status for stop loss orders #43

Closed its-mohnish closed 3 years ago

its-mohnish commented 3 years ago

Describe the problem:

orderStatus function does not retrieve data for stop loss orders

Steps to reproduce:

  1. Place a stop loss order
  2. Use the id to check for order status

Observed Results:

Relevant code exceptions or logs

Code Sample, a copy-pastable example

bitbnsObj.buyStopLoss('USDT', 1, 80, 79)
bitbnsObj.orderStatus('USDT', 147718)

logs, a copy-pastable example

{
 'data': 'Successfully placed order for stop loss buy', 
 'status': 1, 
 'error': None, 
 'id': 147718, 
 'code': 200
}
{
 'data': [], 
 'status': 0, 
 'error': 'Nothing to show', 
 'code': 417
}
atiprashant commented 3 years ago

Only after a stop loss order gets executed, it will be visible in your open order or order status. Use listStopLoss order for order details of placed order