Automation for the RobotWealth cryptocurrency YOLO strategies
There is a pre-built win64 console app in the releases section, which can be scheduled to run daily.
- download
YoloKonsole.exe,appsettings.jsonand./setup-secrets.ps1and save to a new folder on your computer
-
Setup Secrets (First time only):
.\setup-secrets.ps1 -
Edit appsettings.json:
Adjust additional settings as desired
-
Run Application:
./YoloKonsole.exe
YoloKonsole.exe- Main applicationsetup-secrets.ps1- Configure your API keys and addresses securelyappsettings.json- Application configuration settingsREADME.md- This file
- Secrets are stored in
.\secretsunder the install directory with restricted permissions - Only your Windows user account can access the secret files
- Windows 10/11 x64
- .NET 9 installation required
- PowerShell 5.1+ (included with Windows)
If you get execution policy errors:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUserThis determines where the application will write logs to. Windows paths using \ must be escaped as \\ as below. The substitution token {Date} included in the path means that a new file will be written each day. You can omit this if you would prefer to have a single file.
{
"Logging": {
"PathFormat": "C:\\logs\\yolo-{Date}.log"
}
}This is the token that the application will trade in and out of. It defaults to USD but you could equally change to USDT etc. if preferred.
In case your account does not have margin trading or futures enabled, it is possible to configure accordingly via the AssetPermissions setting - possible settings of which are currently:
None
LongSpot
ShortSpot
Spot
PerpetualFutures
LongSpotAndPerp
SpotAndPerp
ExpiringFutures
AllThis setting determines the target weight when rebalancing positions that are outside the tolerance band (TradeBuffer).
The default setting of Center will rebalance to the ideal calculated asset weighting (the center of the tolerance band).
Setting this to Edge will rebalance to the nearest edge of the tolerance band instead. This can be optimal depending on broker fee structure, as price is theoretically nearly as likely to reverse away from the ideal weight as it is to continue.
For example, with a target weight of 10% and a TradeBuffer of 4%:
- The tolerance band is [6%, 14%]
- If current weight is 2% (below the band):
Centermode: rebalance to 10% (ideal weight)Edgemode: rebalance to 6% (lower edge)
- If current weight is 16% (above the band):
Centermode: rebalance to 10% (ideal weight)Edgemode: rebalance to 14% (upper edge)
Possible values:
Center (default)
Edge
This setting determines the placement of the limit price within the bid-ask price spread and can take any value between 0 and 1 (values greater than 1 will be treated as 1).
The default setting of 0.5 ensures that the limit price will always be placed exactly in the middle of the spread.
e.g. a setting of 0.618 would place the limit price for a buy order at the best bid price + 61.8% of the current bid-ask spread; conversely for a sell it would be the lowest ask price - 61.8% of the current bid-ask spread.
Limit price must be divisible by the intrument price step i.e. in the case where the spread equals the minimum price increment, an order will be submitted that matches the current best bid or ask price.
The application will submit an initial limit order at best bid/ask and then after the timeout period, cancel that and submit a market order.