SkillAgentSearch skills...

BalanceLimitGekko

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

Install / Use

npx skills add crypto49er/BalanceLimitGekko

Installs into whichever agent you are using.

About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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

Related Skills

View on GitHub
GitHub Stars10
CategoryDevelopment
Updated4y ago
Forks3

Languages

JavaScript

Security Score

75/100

Audited on Jun 14, 2022

No findings