-
Notifications
You must be signed in to change notification settings - Fork 0
Documentation #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
a38b33d
dffe7cd
2561ef7
95ed4a3
6ccc4d5
8768fc7
9de2c29
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| 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" | ||
| } |
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| from Crypto_bot_pkg.crypto_selection import crypto_bot |
| 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() |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| API_KEY = 'yourbinanceapikey' | ||
| API_SECRET = 'yourbinanceapisecret' |
| 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") | ||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| python-binance | ||
| TA-Lib | ||
| numpy | ||
| websocket |
| 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() | ||
| ) |
| 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 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| class 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 | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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") | ||
|
|
||
| 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() | ||
| ) |
| 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 |
| 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 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
|
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Crypto_bot_pkg |
There was a problem hiding this comment.
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