WAX Unity Web3 Suite
AtomicMarket
AtomicMarket
  • Getting Started
  • Installation
    • WebGL Installation
  • Examples
    • Unity examples
    • Available assets for trading
    • Filtered assets lists available for trading
    • AssetExample
    • AuctionExample
    • BuyOfferExample
    • SalesExample
  • API Docs
    • AtomicMarketApiFactory
    • Assets
      • AssetsApi
        • AssetDto
          • DataDto
            • BackedTokensDto
            • CollectionDto
            • SchemaDto
              • FormatDto
            • TemplateDto
            • ImmutableDataDto
        • AssetsDto
          • DataDto
            • BackedTokensDto
            • CollectionDto
            • SchemaDto
              • FormatDto
            • TemplateDto
              • ImmutableDataDto
      • AssetsUriParameterBuilder
    • Auctions
      • AuctionsApi
        • AuctionDto
          • DataDto
            • AssetDto
              • BackedTokensDto
              • SchemaDto
                • FormatDto
              • TemplateDto
                • ImmutableDataDto
              • BidsDto
              • CollectionDto
              • PriceDto
      • AuctionsDto
        • DataDto
          • AssetDto
            • BackedTokensDto
            • SchemaDto
              • FormatDto
            • TemplateDto
              • ImmutableDataDto
          • BidsDto
          • CollectionDto
          • PriceDto
      • AuctionsUriParameterBuilder
    • BuyOffers
      • BuyOffersApi
        • BuyOfferDto
          • DataDto
        • AssetDto
          • BackedTokensDto
          • SchemaDto
            • FormatDto
          • TemplateDto
            • ImmutableDataDto
        • CollectionDto
        • PriceDto
        • BuyOffersDto
          • DataDto
            • AssetDto
              • BackedTokensDto
              • SchemaDto
                • FormatDto
              • TemplateDto
                • ImmutableDataDto
            • CollectionDto
            • PriceDto
      • BuyOffersUriParameterBuilder
    • Config
      • ConfigApi
        • ConfigDto
          • DataDto
            • SupportedPairsDto
              • PairsDataDto
            • SupportedTokensDto
    • MarketPlaces
      • MarketPlacesApi
        • MarketplaceDto
          • DataDto
        • MarketplacesDto
          • DataDto
    • Offers
      • OffersApi
        • OfferDto
          • DataDto
            • AssetDto
              • BackedTokensDto
              • CollectionDto
              • SchemaDto
                • FormatDto
              • TemplateDto
                • ImmutableDataDto
        • OffersDto
          • DataDto
            • AssetDto
              • BackedTokensDto
              • CollectionDto
              • SchemaDto
                • FormatDto
              • TemplateDto
                • ImmutableDataDto
      • OffersUriParameterBuilder
    • Pricing
      • PricingApi
        • PricesDto
          • DataDto
        • AssetPricingDto
          • DataDto
        • TemplatesDto
          • DataDto
      • PricingUriParametersBuilder
    • Sales
      • SalesApi
        • SaleDto
          • DataDto
            • AssetDto
              • BackedTokensDto
              • SchemaDto
                • FormatDto
              • TemplateDto
                • ImmutableDataDto
            • CollectionDto
            • PriceDto
        • SalesDto
          • DataDto
            • AssetDto
              • BackedTokensDto
              • SchemaDto
                • FormatDto
              • TemplateDto
                • ImmutableDataDto
              • CollectionDto
              • PriceDto
      • SalesUriParameterBuilder
    • Stats
      • StatsApi
        • StatsDto
          • DataDto
        • AccountDto
          • DataDto
            • ResultDto
            • SymbolDto
        • AccountsDto
          • DataDto
            • ResultDto
            • SymbolDto
        • CollectionDto
          • DataDto
            • ResultDto
            • SymbolDto
        • CollectionsDto
          • DataDto
            • ResultDto
            • SymbolDto
        • GraphDto
          • DataDto
            • ResultDto
            • SymbolDto
        • SalesDto
          • DataDto
            • ResultDto
            • SymbolDto
        • SchemaDto
          • DataDto
            • ResultDto
            • SymbolDto
      • StatsUriParameterBuilder
    • Transfers
      • TransfersApi
        • TransfersDto
          • DataDto
            • AssetDto
              • BackedTokensDto
              • CollectionDto
              • SchemaDto
                • FormatDto
              • TemplateDto
                • ImmutableDataDto
      • TransfersUriParameterBuilder
    • Core
      • HttpRequestBuilder
      • HttpResponseMessageExtension
      • IUriParameterBuilder
    • LogsDto
      • DataDto
Powered by GitBook
On this page
Edit on GitHub
  1. Examples

SalesExample

Example showing how to query the Sales Endpoint

public async Task SalesExample()
{
    // Get all Sales for a specific collection
    var sales = await AtomicMarketApiFactory.Version1.SalesApi.Sales(new SalesUriParameterBuilder().WithCollectionName("somecollection"));

    // Iterate all Sales matching the collectionName
    foreach (var sale in sales.Data)
    {
        // Print diverse Data about the Collection
        Console.WriteLine(sale.Collection.CreatedAtBlock);
        Console.WriteLine(sale.Collection.AllowNotify);
        Console.WriteLine(sale.Collection.Author);
        Console.WriteLine(sale.Collection.Name);
        Console.WriteLine(sale.Collection.CollectionName);
        Console.WriteLine(sale.Collection.CreatedAtTime);
        Console.WriteLine(sale.Collection.MarketFee);


        // Print diverse Data about the Assets being part of this Collection
        foreach (var asset in sale.Assets)
        {
            Console.WriteLine(asset.AssetId);
            Console.WriteLine(asset.Burnable);
            Console.WriteLine(asset.BurnedAtBlock);
            Console.WriteLine(asset.BurnedAtTime);
            Console.WriteLine(asset.BurnedByAccount);
            Console.WriteLine(asset.Collection.Author);
            Console.WriteLine(asset.Collection.Name);
            Console.WriteLine(asset.Collection.CollectionName);
            Console.WriteLine(asset.Collection.CreatedAtBlock);
            Console.WriteLine(asset.Collection.CreatedAtTime);
            Console.WriteLine(asset.Contract);
            Console.WriteLine(asset.MintedAtTime);
            Console.WriteLine(asset.Name);
            Console.WriteLine(asset.TemplateMint);
        }
    }
}
PreviousBuyOfferExampleNextAPI Docs

Last updated 2 years ago

Page cover image