Skip to content

Commit

Permalink
#94 Add Kyber Netork, Aave and Ren Tokens (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
pantunes committed Jun 18, 2020
1 parent 78e6ec5 commit 95e1ec9
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 0 deletions.
Binary file added xtcryptosignals/client/static/imgs/logos/KNC.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added xtcryptosignals/client/static/imgs/logos/LEND.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added xtcryptosignals/client/static/imgs/logos/REN.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
__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(
KNC=dict(
name="Kyber Network",
website="https://kyber.network",
twitter="https://twitter.com/kybernetwork",
),
LEND=dict(
name="Aave",
website="https://aave.com",
twitter="https://twitter.com/aaveaave",
),
REN=dict(
name="Ren",
website="https://renproject.io",
twitter="https://twitter.com/renprotocol",
),
)


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
9 changes: 9 additions & 0 deletions xtcryptosignals/settings_exchanges.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,12 @@
("LTO", "USDT"),
("LTO", "BTC"),
("LTO", "BNB"),
("REN", "USDT"),
("REN", "BTC"),
("KNC", "USDT"),
("KNC", "BTC"),
("LEND", "USDT"),
("LEND", "BTC"),
],
}
}
Expand Down Expand Up @@ -204,6 +210,9 @@
"HBAR": {"pair": "USDT", "name": BINANCE,},
"BTMX": {"pair": "USDT", "name": BITMAX,},
"LTO": {"pair": "USDT", "name": BINANCE,},
"KNC": {"pair": "USDT", "name": BINANCE,},
"LEND": {"pair": "USDT", "name": BINANCE,},
"REN": {"pair": "USDT", "name": BINANCE,},
"IDEX": {"pair": "ETH", "name": IDEX,},
"LQD": {"pair": "ETH", "name": BILAXY,},
"CARD": {"pair": "ETH", "name": HOTBIT,},
Expand Down

0 comments on commit 95e1ec9

Please sign in to comment.