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.json
and./setup-secrets.ps1
and 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
.\secrets
under 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 CurrentUser
This 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
All
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.