Skip to content

moconnell/yolo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yolo

Automation for the RobotWealth cryptocurrency YOLO strategies

Coverage Status

YOLO Console - Windows x64 Deployment

There is a pre-built win64 console app in the releases section, which can be scheduled to run daily.

Quick Start

  • download YoloKonsole.exe, appsettings.json and ./setup-secrets.ps1 and save to a new folder on your computer
  1. Setup Secrets (First time only):

    .\setup-secrets.ps1
  2. Edit appsettings.json:

    Adjust additional settings as desired

  3. Run Application:

    ./YoloKonsole.exe

Files Included

  • YoloKonsole.exe - Main application
  • setup-secrets.ps1 - Configure your API keys and addresses securely
  • appsettings.json - Application configuration settings
  • README.md - This file

Security Notes

  • Secrets are stored in .\secrets under the install directory with restricted permissions
  • Only your Windows user account can access the secret files

Requirements

  • Windows 10/11 x64
  • .NET 9 installation required
  • PowerShell 5.1+ (included with Windows)

Troubleshooting

If you get execution policy errors:

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

Logging/PathFormat

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"
  }
}

Yolo/BaseAsset

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.

Yolo/AssetPermissions

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

Yolo/RebalanceMode

This 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):
    • Center mode: rebalance to 10% (ideal weight)
    • Edge mode: rebalance to 6% (lower edge)
  • If current weight is 16% (above the band):
    • Center mode: rebalance to 10% (ideal weight)
    • Edge mode: rebalance to 14% (upper edge)

Possible values:

Center  (default)
Edge

Yolo/SpreadSplit

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.

Order Management

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.

About

Automation for the RobotWealth cryptocurrency YOLO strategies

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages