Good morning,
I am developing a python application that must operate short-term via binance-connector. I am not sure which client I should instantiate and which functions to use for the operation of borrowing and selling, and buying and repaying the loan. I would greatly appreciate any help.
You can use the Binance Python Connector to achieve what you need to do. You can have a look on the GitHub repo to find information on how to instantiate the Binance client and examples on how to use the provided functionality.
Regarding the operations you want to do:
Borrowing and Repaying: use the borrow_repay function with type="BORROW" or type="REPAY"
Buying and Selling: use the new_margin_order function with side="BUY" or side="SELL"
Hi dimitrisn
It seems that it is the method you told me, but when using it instead of returning JSON, it returns HTML, a page that says ‘something bad happened :(’. It is the way, thank you very much.
It seems that it is the method you told me, but when using it instead of returning JSON, it returns HTML, a page that says ‘something bad happened :(’. It is the way, thank you very much.