Skip to content

Commit

Permalink
removed nftcalendar.io (#2540)
Browse files Browse the repository at this point in the history
Co-authored-by: Colin Delahunty <72827203+colin99d@users.noreply.github.com>
  • Loading branch information
jose-donato and colin99d authored Sep 13, 2022
1 parent 43dd40a commit 0f23910
Show file tree
Hide file tree
Showing 15 changed files with 499 additions and 1,284 deletions.
1,148 changes: 492 additions & 656 deletions data_sources_default.json

Large diffs are not rendered by default.

4 changes: 0 additions & 4 deletions i18n/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -591,10 +591,6 @@ en:
crypto/tools/il: calculate impermanent loss
crypto/nft/fp: collection sales/floor price
crypto/nft/collections: top ethereum collections
crypto/nft/today: today's NFT drops
crypto/nft/upcoming: upcoming NFT drops
crypto/nft/ongoing: Ongoing NFT drops
crypto/nft/newest: Recently NFTs added
crypto/nft/stats: collection stats
crypto/dd/_overview_: Overview
crypto/dd/_market_: Market
Expand Down
4 changes: 0 additions & 4 deletions openbb_terminal/cryptocurrency/nft/nft_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@

# Menu commands
from .opensea_view import display_collection_stats as stats
from .nftcalendar_view import display_nft_today_drops as today
from .nftcalendar_view import display_nft_upcoming_drops as upcoming
from .nftcalendar_view import display_nft_ongoing_drops as ongoing
from .nftcalendar_view import display_nft_newest_drops as newest

# Models
models = _models(os.path.abspath(os.path.dirname(__file__)))
81 changes: 0 additions & 81 deletions openbb_terminal/cryptocurrency/nft/nft_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

from openbb_terminal import feature_flags as obbff
from openbb_terminal.cryptocurrency.nft import (
nftcalendar_view,
nftpricefloor_model,
nftpricefloor_view,
opensea_view,
Expand All @@ -28,10 +27,6 @@ class NFTController(BaseController):
"""NFT Controller class"""

CHOICES_COMMANDS = [
"today",
"upcoming",
"ongoing",
"newest",
"stats",
"collections",
"fp",
Expand All @@ -56,10 +51,6 @@ def __init__(self, queue: List[str] = None):
def print_help(self):
"""Print help"""
mt = MenuText("crypto/nft/", 70)
mt.add_cmd("today")
mt.add_cmd("upcoming")
mt.add_cmd("ongoing")
mt.add_cmd("newest")
mt.add_cmd("stats")
mt.add_cmd("fp")
mt.add_cmd("collections")
Expand Down Expand Up @@ -168,75 +159,3 @@ def call_collections(self, other_args: List[str]):
num=ns_parser.limit,
export=ns_parser.export,
)

@log_start_end(log=logger)
def call_today(self, other_args: List[str]):
"""Process today command"""
parser = argparse.ArgumentParser(
add_help=False,
formatter_class=argparse.ArgumentDefaultsHelpFormatter,
prog="today",
description="Today's NFT drops [Source: nftcalendar.io]",
)
ns_parser = self.parse_known_args_and_warn(
parser, other_args, EXPORT_ONLY_RAW_DATA_ALLOWED, limit=5
)
if ns_parser:
nftcalendar_view.display_nft_today_drops(
num=ns_parser.limit,
export=ns_parser.export,
)

@log_start_end(log=logger)
def call_upcoming(self, other_args: List[str]):
"""Process upcoming command"""
parser = argparse.ArgumentParser(
add_help=False,
formatter_class=argparse.ArgumentDefaultsHelpFormatter,
prog="upcoming",
description="Upcoming's NFT drops [Source: nftcalendar.io]",
)
ns_parser = self.parse_known_args_and_warn(
parser, other_args, EXPORT_ONLY_RAW_DATA_ALLOWED, limit=5
)
if ns_parser:
nftcalendar_view.display_nft_upcoming_drops(
num=ns_parser.limit,
export=ns_parser.export,
)

@log_start_end(log=logger)
def call_ongoing(self, other_args: List[str]):
"""Process ongoing command"""
parser = argparse.ArgumentParser(
add_help=False,
formatter_class=argparse.ArgumentDefaultsHelpFormatter,
prog="ongoing",
description="Ongoing's NFT drops [Source: nftcalendar.io]",
)
ns_parser = self.parse_known_args_and_warn(
parser, other_args, EXPORT_ONLY_RAW_DATA_ALLOWED, limit=5
)
if ns_parser:
nftcalendar_view.display_nft_ongoing_drops(
num=ns_parser.limit,
export=ns_parser.export,
)

@log_start_end(log=logger)
def call_newest(self, other_args: List[str]):
"""Process newest command"""
parser = argparse.ArgumentParser(
add_help=False,
formatter_class=argparse.ArgumentDefaultsHelpFormatter,
prog="newest",
description="Newest's NFT drops [Source: nftcalendar.io]",
)
ns_parser = self.parse_known_args_and_warn(
parser, other_args, EXPORT_ONLY_RAW_DATA_ALLOWED, limit=5
)
if ns_parser:
nftcalendar_view.display_nft_newest_drops(
num=ns_parser.limit,
export=ns_parser.export,
)
111 changes: 0 additions & 111 deletions openbb_terminal/cryptocurrency/nft/nftcalendar_model.py

This file was deleted.

132 changes: 0 additions & 132 deletions openbb_terminal/cryptocurrency/nft/nftcalendar_view.py

This file was deleted.

6 changes: 2 additions & 4 deletions scripts/test_crypto_nft.openbb
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
crypto
nft
stats cryptopunks
today
upcoming
ongoing
newest
fp cryptopunks
collections
exit
Loading

0 comments on commit 0f23910

Please sign in to comment.