Skip to content

Commit

Permalink
#293 Add Algorand Project (#294)
Browse files Browse the repository at this point in the history
* Add Algorand Project

* Update CHANGELOG.md
  • Loading branch information
pantunes authored Oct 28, 2021
1 parent 96397ad commit 37a3cc9
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
All changes will be registered here per release.

## [0.8.6] - Current date
Added `Algorand / ALGO` Project/Token.
Added `Dfinity / ICP` Project/Token.

## [0.8.6] - 2021-07-03
Expand Down
Binary file added xtcryptosignals/client/static/imgs/logos/ALGO.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 35 additions & 0 deletions xtcryptosignals/server/migrations/20211028181600_add_algorand.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
__author__ = "Paulo Antunes"
__copyright__ = "Copyright 2018, XTCryptoSignals"
__credits__ = [
"Paulo Antunes",
]
__license__ = "GPL"
__maintainer__ = "Paulo Antunes"
__email__ = "[email protected]"


from mongodb_migrations.base import BaseMigration
from xtcryptosignals.common.utils import use_mongodb
from xtcryptosignals.server.api.projects.models import Project
from xtcryptosignals.tasks import settings as s


PROJECTS = dict(
ALGO=dict(
name="Algorand",
website="https://algorand.com",
twitter="https://twitter.com/Algorand",
wikipedia="https://en.wikipedia.org/wiki/Algorand",
),
)


class Migration(BaseMigration):
@use_mongodb(db=s.MONGODB_NAME, host=s.MONGODB_HOST, port=s.MONGODB_PORT)
def upgrade(self):
for k, v in PROJECTS.items():
Project(**{**{"coin_or_token": k}, **v}).save()
print(f"Adding Project: {k}")

def downgrade(self):
pass
7 changes: 7 additions & 0 deletions xtcryptosignals/settings_exchanges.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@
("LTO", "BTC"),
("FTM", "USDT"),
("FTM", "BTC"),
("ALGO", "USDT"),
("ALGO", "BTC"),
("ONT", "USDT"),
("HBAR", "USDT"),
("HBAR", "BTC"),
Expand Down Expand Up @@ -335,6 +337,11 @@
"market_depth": {"exchange": BINANCE, "pairs": ["USDT", "BTC"]},
"is_defi": True,
},
"ALGO": {
"pair": "USDT",
"name": BINANCE,
"market_depth": {"exchange": BINANCE, "pairs": ["USDT", "BTC"]},
},
"EWT": {
"pair": "USDT",
"name": KUCOIN,
Expand Down

0 comments on commit 37a3cc9

Please sign in to comment.