bitbns-official / bitbnspy

MIT License
9 stars 6 forks source link

Bracket orders - listOpenBracketOrders shows completed orders #41

Closed its-mohnish closed 3 years ago

its-mohnish commented 3 years ago

Describe the problem:

A completed bracket order is shown in the response when listOpenBracketOrders is passed as type for getOrders

Observed Results:

Relevant code exceptions or logs

Code Sample, a copy-pastable example

bitbnsObj.getOrders({'side': 'listOpenBracketOrders', 'symbol': 'XRP', 'page': 0})

logs, a copy-pastable example

{
 'data': [
    {
       'entry_id': 44912,
       'type': 0, 
       'target_rate': 100, 
       'limit_rate': 81, 
       'status': 2, 
       'quantity': 0.25, 
       'coin': 1, 
       'trail': 0.02, 
       'order_id': 10865255, 
       'sl_id': 126268, 
       'entry_rate': 83, 
       'tried': 0, 
       'profit': 0, 
       'amt_total': 0
      },
       .
       .
   ]
}
atiprashant commented 3 years ago

This has been sorted