CryptoSlam!

NFT Sales

Introduction

The NFT Sales dataset by CryptoSlam! provides Non-Fungible Tokens (NFT) sales volume data in various blockchain marketplaces. This dataset covers 11 blockchains that have their own native Cryptocurrencies. The data starts in June 2017 and is delivered on a daily frequency. This dataset fetches the number of transactions, unique buyers, unique sellers, and the dollar volume of NFT transactions on all secondary marketplaces tracked by CryptoSlam, which includes owner-to-owner sales only (not initial sales from the product directly to the owners).

For more information about the NFT Sales dataset, including CLI commands and pricing, see the dataset listing.

About the Provider

CryptoSlam! is an NFT industry data aggregator backed by Mark Cuban. Features project analytics, NFT values, rarity, scarcity, most popular collections, activity history & more.

Getting Started

The following snippet demonstrates how to request data from the NFT Sales dataset:

self.symbol = self.AddCrypto("ETHUSD", Resolution.Daily, Market.Bitfinex).Symbol
self.dataset_symbol = self.AddData(CryptoSlamNFTSales, "ETH").Symbol
_symbol = AddCrypto("ETHUSD", Resolution.Daily, Market.Bitfinex).Symbol;
_datasetSymbol = AddData<CryptoSlamNFTSales>("ETH").Symbol;

Data Summary

The following table describes the dataset properties:

PropertyValue
Start DateJune 2017
Asset Coverage11 blockchains
Data DensitySparse
ResolutionDaily
TimezoneUTC

Supported Blockchains and Symbols

The following table shows the blockchains tracked in the NFT Sales dataset:

SymbolBlockchain RepresentedStart Date (yyyy-mm-dd)
AVAXAvalanche2021-09-01
CROCronos2021-12-18
ETHEthereum2017-06-23
FLOWFlow2020-07-28
FTMFantom2021-09-15
MATICPolygon2021-03-01
SOLSolana2021-08-05
THETATheta2021-06-24
WAVEWaves2021-06-03
WAXWax2020-03-16
XTZTezos2021-03-01

Data Point Attributes

The NFT Sales dataset provides CryptoSlamNFTSales objects, which have the following attributes:

Requesting Data

To add NFT Sales data to your algorithm, call the AddData method. Save a reference to the dataset Symbol so you can access the data later in your algorithm.

class CryptoSlamNFTSalesAlgorithm(QCAlgorithm):

    def Initialize(self) -> None:
        self.SetStartDate(2019, 1, 1)
        self.SetEndDate(2020, 6, 1)
        self.SetCash(100000)

        self.symbol = self.AddCrypto("ETHUSD", Resolution.Daily, Market.Bitfinex).Symbol
        self.dataset_symbol = self.AddData(CryptoSlamNFTSales, "ETH").Symbol
namespace QuantConnect
{
    public class CryptoSlamNFTSalesAlgorithm: QCAlgorithm
    {
        private Symbol _symbol, _datasetSymbol;

        public override void Initialize()
        {
            SetStartDate(2019, 1, 1);
            SetEndDate(2020, 6, 1);
            SetCash(100000);

            _symbol = AddCrypto("ETHUSD", Resolution.Daily, Market.Bitfinex).Symbol;
            _datasetSymbol = AddData<CryptoSlamNFTSales>("ETH").Symbol;
        }
    }
}

Accessing Data

To get the current NFT Sales data, index the current Slice with the dataset Symbol. Slice objects deliver unique events to your algorithm as they happen, but the Slice may not contain data for your dataset at every time step. To avoid issues, check if the Slice contains the data you want before you index it.

def OnData(self, slice: Slice) -> None:
    if slice.ContainsKey(self.dataset_symbol):
        data_point = slice[self.dataset_symbol]
        self.Log(f"{self.dataset_symbol} unique buyers at {slice.Time}: {data_point.UniqueBuyers}")
public override void OnData(Slice slice)
{
    if (slice.ContainsKey(_datasetSymbol))
    {
        var dataPoint = slice[_datasetSymbol];
        Log($"{_datasetSymbol} unique buyers at {slice.Time}: {dataPoint.UniqueBuyers}");
    }
}

To iterate through all of the dataset objects in the current Slice, call the Get method.

def OnData(self, slice: Slice) -> None:
    for dataset_symbol, data_point in slice.Get(CryptoSlamNFTSales).items():
        self.Log(f"{dataset_symbol} unique buyers at {slice.Time}: {data_point.UniqueBuyers}")
public override void OnData(Slice slice)
{
    foreach (var kvp in slice.Get<CryptoSlamNFTSales>())
    {
        var datasetSymbol = kvp.Key;
        var dataPoint = kvp.Value;
        Log($"{datasetSymbol} unique buyers at {slice.Time}: {dataPoint.UniqueBuyers}");
    }
}

Historical Data

To get historical NFT Sales data, call the History method with the dataset Symbol. If there is no data in the period you request, the history result is empty.

# DataFrame 
history_df = self.History(self.dataset_symbol, 100, Resolution.Daily)

# Dataset objects
history_bars = self.History[CryptoSlamNFTSales](self.dataset_symbol, 100, Resolution.Daily)
var history = History<CryptoSlamNFTSales>(_datasetSymbol, 100, Resolution.Daily);

For more information about historical data, see History Requests.

Remove Subscriptions

To remove a subscription, call the RemoveSecurity method.

self.RemoveSecurity(self.dataset_symbol)
RemoveSecurity(_datasetSymbol);

Example Applications

The NFT Sales dataset enables you to incorporate NFT sales information into your strategies. Examples include the following strategies:

  • Studying the correlation between the supply-demand trend of NFTs and the price changes of the underlying Cryptocurrencies.
  • Measuring the activity/popularity blockchains to provide insight on the future price movements of the underlying Cryptocurrencies.

You can also see our Videos. You can also get in touch with us via Discord.

Did you find this page helpful?

Contribute to the documentation: