Closed xulngx closed 3 years ago
For this you should find the endpoint address from the official API documentation. For Query Isolated Margin Account Info (USER_DATA) it is:
GET /sapi/v1/margin/isolated/account (HMAC SHA256)
Then try to add it to client.py. See other functions to know which prefix/variable represents /sapi/
. Also a PR is nice if everything works.
Thanks a lot!!! It works fine for me, just add a function in client.py file.
mind creating a PR for the community?
Yes sure! I’m really glad that I can help, I’ll work on that😁
I see that the new get isolated account endpoint has just been merged into master. Great stuff thanks!
There are a few other issues that mean python-binance doesn't yet have what is needed to trade on isolated margin. I'm proposing creating a PR for the following over the coming days. ...
isIsolated
parameter that enables us to trade the isolated margin accounts. e.g. https://binance-docs.github.io/apidocs/spot/en/#margin-account-new-order-trade. But these parameters are not exposed in the python-binance docstrings and docs. I think they will work out of the box but will test them and make sure it is clear in the docs.@kimchirichie Do you want a PR for this?
I've now added the Binance isolated margin endpoints I need.
And I have updated the docs for isolated margin.
I'll post a PR now and you can review if you want to include @kimchirichie
It's PR #622
merged!
Great. Thanks @kimchirichie Do you have a plan for when to do the next Pypi release? For now I will import from master branch.
@ttamg 0.7.7 was released 4 days ago. thanks for waiting
Describe the bug I want to add isolated margin account_info and order functions myself but I don’t know how to do that. Can anyone help me please!!!
Expected behavior Add isolated margin account info and order functions.
Environment (please complete the following information): Ubuntu 16 Python 3.7 Python-binance