bitbns-official / bitbnspy

MIT License
9 stars 6 forks source link

ID for margin orders #40

Open its-mohnish opened 3 years ago

its-mohnish commented 3 years ago

Describe the problem:

When placing margin orders, the response does not return a ID.

Observed Results:

Relevant code exceptions or logs

Code Sample, a copy-pastable example

API_KEY, SECRET_KEY = "####", "####"
bitbnsObj = bitbns(API_KEY, SECRET_KEY)
bitbnsObj.placeMarginOrders({'symbol': 'BTC', 'side': 'placeOrder', 'type': 'BORROW', 'qnty': 0.00102, 'days': 1, 'rate': 0.000001})

logs, a copy-pastable example

{
 'status': 1, 
 'error': 'Successfully placed borrow order for Margin trading.', 
 'code': 200
}
atiprashant commented 3 years ago

id has been added now