python-binance icon indicating copy to clipboard operation
python-binance copied to clipboard

Can we transfer asset in between spot and futures wallet?

Open avatar-lavventura opened this issue 5 years ago • 8 comments

client.transfer_spot_to_margin() function exists, but I coud not find any alternative for the futures.

Is there any function for futures as well such as:

client.transfer_spot_to_future() or client.transfer_future_to_spot()?

avatar-lavventura avatar Dec 05 '20 18:12 avatar-lavventura

Sure, yes I can open up a PR.

I wasn't able to find restapirequestimpl.py and requestclient.py files in the repo should I make changes in the client.py file?

avatar-lavventura avatar Dec 09 '20 22:12 avatar-lavventura

@kimchirichie Will it be considered to be added as a feature that would be added into the code? Or by purpose transferring asset(USDT) in between spot and futures is not implemented.

avatar-lavventura avatar Dec 10 '20 11:12 avatar-lavventura

@avatar-lavventura sorry i deleted that earlier comment realizing i was referring to a different library. however if there is a PR to add the asset transfer feature, I would gladly review and merge to the library

kimchirichie avatar Dec 15 '20 06:12 kimchirichie

@kimchirichie I don't understand why this is not supported on your end, which is a important feature in Futures trading.

avatar-lavventura avatar Dec 26 '20 13:12 avatar-lavventura

@avatar-lavventura i only recently became a collaborator of this library. i do not actively develop in this library, only merge low risk PR’s. If you would implement and open a PR for this feature, i will gladly merge this in.

kimchirichie avatar Jan 01 '21 02:01 kimchirichie

i just remembered #505 can you verify this works? i will merge when verified

kimchirichie avatar Jan 01 '21 03:01 kimchirichie

@kimchirichie I verify that it works, please the the PR(https://github.com/sammchardy/python-binance/pull/675)

avatar-lavventura avatar Feb 11 '21 15:02 avatar-lavventura

futures_account_transfer

Superblue045 avatar Mar 06 '24 05:03 Superblue045