Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"python.pythonPath": "/Library/Frameworks/Python.framework/Versions/3.9/bin/python3"
}
349 changes: 349 additions & 0 deletions Crypto Bot Vignette.ipynb

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions LICENSE → Crypto_bot_pkg/LICENSE
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
MIT License

Copyright (c) 2021 Programming-The-Next-Step-2021

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
Expand Down
1 change: 1 addition & 0 deletions README.md → Crypto_bot_pkg/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ The program will display the efficacy of the aforementioned algorithm if it woul

TO THE MOON!

branch crypto-selection trial
Empty file added Crypto_bot_pkg/RSI_OVERBOUGHT:
Empty file.
1 change: 1 addition & 0 deletions Crypto_bot_pkg/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from Crypto_bot_pkg.crypto_selection import crypto_bot
Binary file added Crypto_bot_pkg/__pycache__/__init__.cpython-39.pyc
Binary file not shown.
Binary file added Crypto_bot_pkg/__pycache__/config.cpython-39.pyc
Binary file not shown.
Binary file not shown.
22 changes: 22 additions & 0 deletions Crypto_bot_pkg/bot.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import websocket

cc = 'btcusd'
interval = '1m'
SOCKET = f"wss://stream.binance.com:9443/ws/{cc}t@trade"

def on_message(ws, message):
print("received message")
print(message)

def on_open(ws):
print('opened connection')

def on_close(ws):
print('closed connection')

ws = websocket.WebSocketApp(SOCKET, on_open=on_open, on_message = on_message, on_close = on_close)

ws.run_forever()

# ws = websocket.WebSocketApp(SOCKET, on_open=on_open, on_close=on_close, on_message=on_message)
# ws.run_forever()
2 changes: 2 additions & 0 deletions Crypto_bot_pkg/config.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
API_KEY = 'yourbinanceapikey'
API_SECRET = 'yourbinanceapisecret'
23 changes: 23 additions & 0 deletions Crypto_bot_pkg/crypto_selection.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt

#This is where I'll code the functions

class Crypto_bot:
"""
Documentation: A class where you can select your favorite cryptos, track them and use a trading bot
"""

def which_crypto():
"""
This is function 1
"""
print("This function will allow you to choose between BTC, ETH, ADA or DOGE coins")

def trade_bot():
"""
This is function 2
"""
print("This function will suggest you to sell or buy")

4 changes: 4 additions & 0 deletions Crypto_bot_pkg/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
python-binance
TA-Lib
numpy
websocket
12 changes: 12 additions & 0 deletions Crypto_bot_pkg/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import setuptools

# AlexisDaniels:
setuptools.setup(
name = "crypto bot",
version = 0.1,
author = "Alexis",
author_email = "alexis_daniels@hotmail.com",
description = "A package where you can keep track of your favorite cryptocurrencies and obtain buy/sell suggestion based on sentiment analysis of influencers",
license = 'MIT',
packages = setuptools.find_packages()
)
2 changes: 2 additions & 0 deletions build/lib/Crypto_bot_pkg/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from Crypto_bot_pkg.crypto_selection import which_crypto
from Crypto_bot_pkg.crypto_selection import trade_bot
17 changes: 17 additions & 0 deletions build/lib/Crypto_bot_pkg/crypto_selection.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
class crypto_bot:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

again, make it Crypto_bot

"""
A class where you can select your favorite cryptos, track them and use a trading bot
"""

def which_crypto():
"""
This is function 1

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

once you've made the function, don't forget to add parameters to the documentation

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes I'd second that!

"""
print("This function will allow you to choose between BTC, ETH, ADA or DOGE coins")

def trade_bot():
"""
This is function 2

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd suggest that you briefly explain what the function does in the documentation as well.

"""
print("This function will suggest you to sell or buy")

12 changes: 12 additions & 0 deletions build/lib/Crypto_bot_pkg/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import setuptools

# AlexisDaniels:
setuptools.setup(
name = "crypto bot",
version = 0.1,
author = "Alexis",
author_email = "alexis_daniels@hotmail.com",
description = "A package where you can keep track of your favorite cryptocurrencies and obtain buy/sell suggestion based on sentiment analysis of influencers",
license = 'MIT',
packages = setuptools.find_packages()
)
10 changes: 10 additions & 0 deletions crypto_bot.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Metadata-Version: 1.0
Name: crypto-bot
Version: 0.1
Summary: A package where you can keep track of your favorite cryptocurrencies and obtain buy/sell suggestion based on sentiment analysis of influencers
Home-page: UNKNOWN
Author: Alexis
Author-email: alexis_daniels@hotmail.com
License: MIT
Description: UNKNOWN
Platform: UNKNOWN
7 changes: 7 additions & 0 deletions crypto_bot.egg-info/SOURCES.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Crypto_bot_pkg/__init__.py
Crypto_bot_pkg/crypto_selection.py
Crypto_bot_pkg/setup.py
crypto_bot.egg-info/PKG-INFO
crypto_bot.egg-info/SOURCES.txt
crypto_bot.egg-info/dependency_links.txt
crypto_bot.egg-info/top_level.txt
1 change: 1 addition & 0 deletions crypto_bot.egg-info/dependency_links.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions crypto_bot.egg-info/top_level.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Crypto_bot_pkg
Binary file added dist/crypto_bot-0.1-py3.9.egg
Binary file not shown.
Empty file added newfile.txt
Empty file.