Skip to content

Commit

Permalink
Changed LICENSE and added disclaimers.
Browse files Browse the repository at this point in the history
  • Loading branch information
EmersonDove committed Mar 15, 2021
1 parent d677d34 commit ca9332f
Show file tree
Hide file tree
Showing 15 changed files with 404 additions and 663 deletions.
19 changes: 19 additions & 0 deletions Blankly/API_Interface.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
"""
Logic to provide consistency across exchanges
Copyright (C) 2021 Emerson Dove
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""


from Blankly.Coinbase_Pro.Coinbase_Pro_Tickers import Tickers as Coinbase_Pro_Ticker

import Blankly.Coinbase_Pro.Coinbase_Pro_Utils as Coinbase_Pro_Utils
Expand Down
18 changes: 18 additions & 0 deletions Blankly/BlanklyBot.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
"""
Inherited object to allow library interaction with a Blankly bot
Copyright (C) 2021 Emerson Dove
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""

from multiprocessing import Process, Manager


Expand Down
19 changes: 19 additions & 0 deletions Blankly/Coinbase_Pro/Coinbase_Pro.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
"""
Coinbase Pro exchange definitions and setup
Copyright (C) 2021 Emerson Dove
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""


from Blankly.Exchange import Exchange
from Blankly.Coinbase_Pro.Coinbase_Pro_API import API
from Blankly.API_Interface import APIInterface
Expand Down
18 changes: 18 additions & 0 deletions Blankly/Coinbase_Pro/Coinbase_Pro_API.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
"""
Calls to the Coinbase Pro API.
Copyright (C) 2021 Emerson Dove
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""

from requests.auth import AuthBase
import time, base64, hmac, hashlib, requests, Blankly.Utils, datetime as DT

Expand Down
18 changes: 18 additions & 0 deletions Blankly/Coinbase_Pro/Coinbase_Pro_Tickers.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
"""
Coinbase Pro ticker manager.
Copyright (C) 2021 Emerson Dove
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""

import _thread, json, time, Blankly.Utils, ssl
from websocket import create_connection

Expand Down
19 changes: 19 additions & 0 deletions Blankly/Coinbase_Pro/Coinbase_Pro_Utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
"""
Utils for creating objects related to interacting with Coinbase Pro.
Copyright (C) 2021 Emerson Dove
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""


class CoinbaseProUtils:
def __init__(self):
pass
Expand Down
18 changes: 18 additions & 0 deletions Blankly/Constants.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
"""
Definitions for constants used in the software.
Copyright (C) 2021 Emerson Dove
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""

""" BTC """
MINIMUM_BUY_SELL = .001
CURRENT_HIGHEST_USD = 42000
Expand Down
18 changes: 18 additions & 0 deletions Blankly/Exchange.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
"""
Inherited exchange object.
Copyright (C) 2021 Emerson Dove
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""

import json
"""
This class creates a boilerplate exchange.
Expand Down
18 changes: 18 additions & 0 deletions Blankly/ProfitManager.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
"""
Risk management or purchase management for recent buys.
Copyright (C) 2021 Emerson Dove
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""

from Utils import Utils
import Constants

Expand Down
10 changes: 5 additions & 5 deletions Blankly/Purchase.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
"""
Class to manage a purchase lifecycle - a way to determine individual information about each buy and sell
Copyright (C) <year> <name of author>
Class to manage a purchase lifecycle - a way to determine individual information about each buy and sell
Copyright (C) 2021 Emerson Dove
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
it under the terms of the GNU Lesser General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Affero General Public License
You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""

Expand Down
21 changes: 19 additions & 2 deletions Blankly/Server.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
""" ZeroRPC server for communicating with other languages or GUIs """
"""
ZeroRPC server for communicating with other languages or GUIs
Copyright (C) 2021 Emerson Dove
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""

from __future__ import print_function
from calc import calc as real_calc
import sys
Expand Down Expand Up @@ -73,7 +90,7 @@ def assign_model(self, exchange_name, model_name, currency, args=None):

def update_indicators(self, name):
for i in range(len(self.__exchanges)):
if (self.__exchanges[i].get_name() == name):
if self.__exchanges[i].get_name() == name:
return self.__exchanges[i].get_indicators()


Expand Down
18 changes: 18 additions & 0 deletions Blankly/TradingBot.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
"""
Main script for testing some internal library functions
Copyright (C) 2021 Emerson Dove
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""

import Keys
import Utils
import time
Expand Down
19 changes: 19 additions & 0 deletions Blankly/Utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
"""
Utils file for assisting with trades or market analysis.
Copyright (C) 2021 Emerson Dove
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""


import json, numpy, time
from sklearn.linear_model import LinearRegression
import iso8601
Expand Down
18 changes: 18 additions & 0 deletions Blankly/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
"""
__init__ file to give the module access to the libraries.
Copyright (C) 2021 Emerson Dove
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""

from Blankly.Coinbase_Pro.Coinbase_Pro import Coinbase_Pro as Coinbase_Pro
from Blankly.API_Interface import APIInterface as APIInterface
from Blankly.BlanklyBot import BlanklyBot as BlanklyBot
Loading

0 comments on commit ca9332f

Please sign in to comment.