Skip to content

Modified trader.js file to set Balance Limit to allow live trading on multiple Gekkos using one API key

License

Notifications You must be signed in to change notification settings

crypto49er/BalanceLimitGekko

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Balance Limit for Gekko

Video about this code: https://www.youtube.com/watch?v=bgug5i2NkqU

I modified the trader.js in Gekko so let's say you have $100 USD (or the fiat currency of your choice) and you only want Gekko to use $10, you just set that in the currentBalance variable. Now Gekko will only use $10 even though you have $100 available. The winning/losing trades will adjust the currentBalance so winning trades will allow Gekko to use what it won as part of the next trade and if it loses, it won't eat into your portfolio as the currentBalance variable will be adjusted based on how much it sold the crypto for.

The reason for this is to allow you to test multiple strategies live using the same API key. You will run into IP blacklist issues if you run too many Gekko bots from the same IP address if the exchange has a low rate limit, but you should be able to test 3 - 5 strategies easily with this modification.

Note: This trader.js also writes trades to a CSV file. You will need to install fs (npm i fs) in your Gekko folder. Instructions for that are in this video: https://www.youtube.com/watch?v=662t8cQ0DRk

About

Modified trader.js file to set Balance Limit to allow live trading on multiple Gekkos using one API key

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published