sammchardy / python-binance

Binance Exchange API python implementation for automated trading
https://python-binance.readthedocs.io/en/latest/
MIT License
6.01k stars 2.2k forks source link

Can we transfer asset in between spot and futures wallet? #626

Open avatar-lavventura opened 3 years ago

avatar-lavventura commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

@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.

kimchirichie commented 3 years ago

@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

avatar-lavventura commented 3 years ago

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

kimchirichie commented 3 years ago

@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 commented 3 years ago

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

avatar-lavventura commented 3 years ago

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

Superblue045 commented 7 months ago

futures_account_transfer