Skip to content

This PowerShell script continuously transfers a percentage of profits automatically on a Binance Futures account, from Futures to Spot wallet, at a predefined interval.

Notifications You must be signed in to change notification settings

joostgysemans/autoTransfer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 

Repository files navigation

🌼 AutoTransfer

(from WH scripts collection)

success

failure

re-attempt

discord

What it does:

  • this PowerShell script continuously transfers a percentage of profits automatically on a Binance Futures account, from Futures to Spot wallet, at a predefined interval.
  • if the following conditions are true:
    • Current used margin (open orders are taken into account here) is less than the defined maximum (marginUsedPercentMax < maxMarginUsedPercent from the json file)
    • The remaining balance after the transfer is more than the defined minimum remaining balance (($totalBalance - $percentsOfProfit/100 * $profit) is > minRemainingBalance)
    • profit in the past X hours is positive.
  • checks for transfers within the past X hours when script starts, and doesn't perform a transfer if found any.
  • transfers the defined percentage of the profit ($percentsOfProfit * $profit) to Spot and sends Discord message.
  • if any of the conditions are false, then sends discord alert and tries again once an hour.
  • sleeps for X $hours and repeats ad infinitum.

Instructions:

  • drop the script file and the json settings file into the same folder with your bot.
  • define the following in autoTransfer.json file
    • profitPercent: the percentage of the profit of the past X hours you want transferred.
    • minRemainingBalance: minimum remaining balance after the transfer.
    • maxMarginUsedPercent: maximum used margin above which transfers should not occur (this includes the open orders).
    • hours: the period in hours of how often to perform transfers.
    • proxy: (optional) IP proxy and port to use (example "http://25.12.124.35:2763"). Leave blank if no proxy used (""). Get proxy IPs here.
  • submit any issues or enhancement ideas on the Issues page.

Tips:

  • USDT (TRC20): TNuwZebdZmoDxrJRxUbyqzG48H4KRDR7wB
  • BTC: 1PV97ppRdWeXw4TBXddAMNmwnknU1m37t5
  • USDT/ETH (ERC20): 0x56b2239c6bde5dc1d155b98867e839ac502f01ad

About

This PowerShell script continuously transfers a percentage of profits automatically on a Binance Futures account, from Futures to Spot wallet, at a predefined interval.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • PowerShell 100.0%