Username: Password:

Author Topic: Gunbot Autoconfig 3.3.3+  (Read 1062 times)

Offline Kruste

  • Trust: (0)
  • Rookie
  • *
  • Posts: 13
  • be strong to be useful
    • View Profile
Gunbot Autoconfig 3.3.3+
« on: August 20, 2017, 12:54:52 PM »
This was originally coded for me only, but since my position is "get rich together" i post it here.
I didnīt code for 15 years and just started Python and coded this at the same day, so donīt judge my code - help ;)
So if you have ideas, or wanna help with the code, please feel free to contribute!

So feel free to contribute on Github!

For now the code is for 3.3.3 - 3.3.5, since i got M M M M M M M M MONSTER BAGS and donīt use GB for now.
Will add 4.x as soon as i use it ;)

Iīm on holiday next week, so iīll get into coding again the week after next :)


#GUNBOT AUTOCONFIG
v.1.0
Alpha version!

-------------------------------------------------
by Krustenviech
Mail: krustenviech@gmail.com
Tele: https://t.me/Krustenviech
-------------------------------------------------

Automaticly create a Gunbot config with the top volume coins on Bittrex.

-------------------------------------------------
can do now:
  • search for top volume BTC_XXX pairs from Bittrex
  • write them to a txt file with the new config syntax for Gunbot 3.3.3+

-------------------------------------------------
todo:
  • read old config
  • write config file
  • add just new coins into config file
  • sell override config for old coins
  • add schedule ("add new coins every day at 07:00")
  • let user chose which strategies to take for top coins
  • let user write his own strategies for "old coin selling"
  • adding coinmarketcap.info
  • adding Poloniex

Link:
-----------------------------------------------------------
https://github.com/Krustenviech/gunbot_autoconfig

-----------------------------------------------------------
If you like it and i could help you, please buy me a coffee :)

BTC:12Qy1qxd5RqwCc47cPtRL4off1KPFKzKom
ETH:0xd01295bB1845A8d7e1643702E42ceC2e9e96dF9F
DOGE:DSPWNsYfxju3y3vKC1R1ByYFFzT3Sif1bo

Offline Kruste

  • Trust: (0)
  • Rookie
  • *
  • Posts: 13
  • be strong to be useful
    • View Profile
Re: Gunbot Autoconfig 3.3.3+
« Reply #1 on: August 20, 2017, 01:04:28 PM »
iīm working on v. 1.2 right now, which reads the old config and writes the new pairs into it.

Caution:
I didn't test this one yet, so please use it at own risk.

The code can already be found here:
https://github.com/Krustenviech/gunbot_autoconfig/blob/master/1.2/Trex1.2.py

Code: [Select]
# -*- coding: utf-8 -*-
#
#GUNBOT AUTOCONFIG v.1.1 Alpha version!
#
# by Krustenviech Mail: krustenviech@gmail.com Tele: https://t.me/Krustenviech
#
#if this helped you, how about a coffee for me?
# BTC: 12Qy1qxd5RqwCc47cPtRL4off1KPFKzKom
# ETH: 0xd01295bB1845A8d7e1643702E42ceC2e9e96dF9F
#
#more info: https://github.com/Krustenviech/gunbot_autoconfig

#!/usr/bin/env python

import urllib2
import json

GET_MARKET_SUMMARIES = "https://bittrex.com/api/v1.1/public/getmarketsummaries"
override = {'GAIN': 0.6, 'HIGH_BB': 60, 'LOW_BB': -40, 'DOUBLE_UP': 'true'} #Override settings for old pairs u want to sell off, please enter uīr own, if u wish so.

json_marketsummaries = urllib2.urlopen(GET_MARKET_SUMMARIES)
marketsummaries = json.load(json_marketsummaries)

######### TOP COIN ###########
markt = marketsummaries["result"]

######################################################################################################################### NEW
conf = json.loads(open('config.js').read())
conf['pairs']['bittrex'] = {}

######################################################################################################################### Vorher FEHLERANALYSE?

for pair in marketsummaries["result"]:
    if pair["MarketName"].startswith("BTC-") and pair["BaseVolume"] > 200:
        conf['pairs']['bittrex'][pair["MarketName"]] = {'strategy': 'bb', 'override': {}}

######################################################################################################################### Paare die nicht neu sind "override" ?

 #       for e in balances:
  #          if float(balances[e]) > 0 and e != 'BTC':
   #             if 'BTC_' + e not in conf['pairs']['bittrex']:
    #                conf['pairs']['bittrex']['BTC_' + e] = {'strategy': 'bb', 'override': override}
######################################################################################################################### ? Balances

        with open('config.js', 'w') as f:
            f.write(json.dumps(conf, sort_keys=False, indent=4))

print "#################"
print "#Config updated!#"
print "#################"

Thx to @whizter for helping with file handling!
« Last Edit: August 21, 2017, 07:07:10 PM by Kruste »

Offline dobcrypto

  • Local Moderator
  • Trust: (+1)
  • Junior Member
  • ****
  • Posts: 278
  • Russian - native language
    • View Profile
Re: Gunbot Autoconfig 3.3.3+
« Reply #2 on: August 20, 2017, 01:41:30 PM »
Cool. Its for Linux only?
Telegram @dobcrypto
To get a 10% discount, tell the author a code "dobyGun"
My channel: http://www.youtube.com/dobcryptocurrency

Offline Kruste

  • Trust: (0)
  • Rookie
  • *
  • Posts: 13
  • be strong to be useful
    • View Profile
Re: Gunbot Autoconfig 3.3.3+
« Reply #3 on: August 20, 2017, 01:57:58 PM »
Cool. Its for Linux only?
Nope. All platforms.

Offline dobcrypto

  • Local Moderator
  • Trust: (+1)
  • Junior Member
  • ****
  • Posts: 278
  • Russian - native language
    • View Profile
Re: Gunbot Autoconfig 3.3.3+
« Reply #4 on: August 20, 2017, 02:02:36 PM »
Cool. Its for Linux only?
Nope. All platforms.
Then it's more cool =)
Waiting for 4.0.4.
Telegram @dobcrypto
To get a 10% discount, tell the author a code "dobyGun"
My channel: http://www.youtube.com/dobcryptocurrency

Offline GuyTheGuy

  • Trust: (+2)
  • Contributor
  • **
  • Posts: 143
  • Lunar Crypto
    • View Profile
  • Telegram: @GuyTheGuy
Re: Gunbot Autoconfig 3.3.3+
« Reply #5 on: August 23, 2017, 12:22:29 AM »
Is this the same thing as gunfigurator?
Contact for any questions or inquiries:
Telegram: https://t.me/GuyTheGuy
One and Only Discord Help Server:  https://discord.gg/Z7qsaqk

Offline uhw4ke

  • Trust: (0)
  • Rookie
  • *
  • Posts: 6
    • View Profile
Re: Gunbot Autoconfig 3.3.3+
« Reply #6 on: September 02, 2017, 06:36:50 AM »
Can't wait for 4.0.5! :)

Offline olli84

  • Trust: (0)
  • Rookie
  • *
  • Posts: 5
    • View Profile
Re: Gunbot Autoconfig 3.3.3+
« Reply #7 on: September 16, 2017, 10:18:00 AM »
Hey there,

spoke to Kruste few days ago. He doesn't want to develop this nice tool for more features.

I love it and use it.

I would be very happy if anyone can give me a hint how this tool can override settings for old pairs, that are not in config anymore? I would use it to sell the old ones.

Thanks a lot,
Olli

Offline overttherainbow

  • Trust: (0)
  • Rookie
  • *
  • Posts: 16
    • View Profile
Re: Gunbot Autoconfig 3.3.3+
« Reply #8 on: October 02, 2017, 01:41:58 AM »
Can anyone link to places where I could learn about good configuration for v504 (especially interested in bb strategies) or share their thoughts on good configuration for v504?

Or are there any groups on Telegram for such things? (bar Gunthy Elite)

Thank you

Offline paramecie

  • Trust: (0)
  • Junior Member
  • **
  • Posts: 259
    • View Profile
Re: Gunbot Autoconfig 3.3.3+
« Reply #9 on: October 02, 2017, 02:14:51 AM »
I'm not sure there is a "good configuration". It depends how much of main currency you have (1$ or 1000 BTC?), how long your bot will run, on which system (reliable 24/7/365 or not), which risks you're ready to take, and what is your strategy for bags/loss that *will* happen - how patient you are, and how much you can afford to loose...

You've to make this conversion with yourself, I think.
The forum can only reply to specific technical questions.

Offline overttherainbow

  • Trust: (0)
  • Rookie
  • *
  • Posts: 16
    • View Profile
Re: Gunbot Autoconfig 3.3.3+
« Reply #10 on: October 02, 2017, 05:04:49 AM »
I'm not sure there is a "good configuration". It depends how much of main currency you have (1$ or 1000 BTC?), how long your bot will run, on which system (reliable 24/7/365 or not), which risks you're ready to take, and what is your strategy for bags/loss that *will* happen - how patient you are, and how much you can afford to loose...

You've to make this conversion with yourself, I think.
The forum can only reply to specific technical questions.

Thank you very much. I'm aware of polluting the forum with "dirty" questions, so in an effort to avert that can you, or anyone for that matter, direct me to a place where it is encouraged to discuss and share ideas for configurations? Or even an individual offering a paid service (not criptonauta as I believe he is finished) for setting configurations?