Skip to content

Instantly share code, notes, and snippets.

View fatherofluqmaan's full-sized avatar
💭
I may be slow to respond.

fatherofluqmaan fatherofluqmaan

💭
I may be slow to respond.
View GitHub Profile
"config" : {
"base_currency" : "xxxx",
"quote_currency" : "xxxx",
"live" : 1,
"sellatloss" : 1,
"selllowerpcnt" : -15,
"nosellminpcnt" : -5,
"nosellmaxpcnt" : 5,
"trailingstoplosstrigger" : 10,
"trailingstoploss" : -1.5,
#!/usr/bin/env bash
# Script created by @fatherofluqmaan using Bash
# Utilising Interlace (created by Codingo), pycryptobot (created by Michael Whittle), notify (Created by projectdiscovery)
dte=$(date +"%Y-%m-%d %T")
dt=$(date +"%Y-%m-%d")
inF="./short-pairs.txt"
c=$(< "short-pairs.txt" wc -l)
a="$c"
#!/usr/bin/env bash
# Script created by @fatherofluqmaan using Bash
# Utilising Interlace (s: https://github.com/codingo/Interlace)
# pycryptobot (s: https://github.com/whittlem/pycryptobot)
# notify (s: https://github.com/projectdiscovery/notify)
dte=$(date +"%Y-%m-%d %T")
dt=$(date +"%Y-%m-%d")
inF="./pairs.txt"
c=$(< "pairs.txt" wc -l)
# to highlight the reason -6% happened, 2 trades, one approx. -13% & one approx. ~8%
--------------------------------------------------------------------------------
| Python Crypto Bot |
--------------------------------------------------------------------------------
| Release : v3.2.4 |
--------------------------------------------------------------------------------
| Bot Mode : TEST - test trades using dummy funds :) |
| Bot Started : 2021-08-12 22:02:04.217214 |
================================================================================
@fatherofluqmaan
fatherofluqmaan / Strategy.py
Last active August 12, 2021 23:22
Another strategy.py and config.json that brings back lower profits on the sims, but may be a safer option for smaller but consistent gains on some of the pairs
from datetime import datetime
from pandas import DataFrame
from models.PyCryptoBot import PyCryptoBot
from models.AppState import AppState
from models.helper.LogHelper import Logger
class Strategy():
def __init__(self, app: PyCryptoBot=None, state: AppState=AppState, df: DataFrame=DataFrame, iterations: int=0) -> None:
if not isinstance(df, DataFrame):
raise TypeError("'df' not a Pandas dataframe")
@fatherofluqmaan
fatherofluqmaan / BOT-STATS-Tracker.sh
Last active August 9, 2021 07:46
A script to run the tracker for each bot I have running in their subsequent directories, grep out just the all time stats and send notification via Telegram using the Notify tool. The reason that the directory is changed to is due to an error I receive when trying to call the bot from a different directory
#!/usr/bin/env bash
while true; do
clear
theDate=$(date +"%Y-%m-%d %T")
echo "[+] Bot Stats Tracker running..."
echo "Getting stats for bots $theDate" | notify -silent
sleep 1
@fatherofluqmaan
fatherofluqmaan / config.json
Last active August 18, 2021 10:04
custom coding from the Strategy.py file. The code is only that which has been changed
{
"coinbasepro" : {
"api_url" : "https://api.pro.coinbase.com",
"api_key_file" : "coinbase.key",
"config" : {
"live" : 0,
"sellatloss" : 0,
"sellatresistance" : 0,
"buymaxsize" : 50,
"trailingstoploss" : -1.5,
@fatherofluqmaan
fatherofluqmaan / single-simbot-script.sh
Last active August 12, 2021 23:28
A Bash script to run a single pair and save the outputs in to files, one with the raw run info, another with just the datetime, pair, and granularity, and another with an additional suffix of your choice added. A single simulation can be ran using just the pycrypto bot, however, other than the log, there wasn't a clean output that could be viewe…
#!/usr/bin/env bash
rm -f short-simbot-run.txt
echo "[+] enter the following:"
echo "Coinbase pair that you want to run (format ETH-EUR, QNT-USD, LINK-GBP)"
read -r pre
echo "Granularity (86400,21600,3600,900)"
read -r grn
@fatherofluqmaan
fatherofluqmaan / multi-simbot-script.sh
Last active September 9, 2021 23:32
A script to run all pairs on Coinbase Pro with the pycryptobot created by Michael Whittle
#!/usr/bin/env bash
rm short-simbot-run.txt
dte=$(date +"%Y-%m-%d %T")
dt=$(date +"%Y-%m-%d")
c=$(< "pairs.txt" wc -l)
a="$c"
simst='2021-07-25'
simen='2021-08-05'