Skip to content

liljaba1337/r6-marketplace

Repository files navigation

R6 Marketplace API Wrapper

A .NET wrapper for the Rainbow Six Siege Marketplace API.

Dotnet Framework GitHub License NuGet Version NuGet Downloads


Features

Pretty much all the requests have already been implemented.

Click here to view the list of all the completed features
  • Authentication flow
  • Retrieve item data by ID
  • Retrieve item sale history
  • Search items by name or filters
  • Retrieve account details (balance/inventory)
  • Retrieve orders (open/history)
  • Manage sale orders
  • Manage buy orders
  • Updates events handling
  • Token refresher

Planned / Completed improvements (what I'm focusing on right now)

  • Order / Item refactoring
  • Better filtering logic
  • Better filenaming
  • Advanced error handling
  • Optimized requests

Installation

With NuGet:

dotnet add package r6-marketplace

Or Visual Studio NuGet Package Manager:

Install-Package r6-marketplace

Usage


Example

using r6_marketplace;
using r6_marketplace.Endpoints;

namespace Example
{
    class Program
    {
        static async Task Main(string[] args)
        {
            r6_marketplace.R6MarketplaceClient client = new r6_marketplace.R6MarketplaceClient();
            await client.Authenticate("email", "password");

            int balance = await client.AccountEndpoints.GetBalance();

            var inventory = await client.AccountEndpoints.GetInventory(
                limit: 500
            );

            var totalValue = inventory.GetInventoryValue();
            Console.WriteLine($"Total value: {totalValue.TotalValue}");
            Console.WriteLine($"Total value without fees: {totalValue.TotalValueWithoutFee}");
        }
    }
}

Contributing

Contributions are welcome! If you find bugs or want to suggest improvements, feel free to open an issue or create a pull request! I'm completely open to all contributions, so don’t hesitate to reach out with anything you find!


License & Disclaimer

This project is licensed under the Apache 2.0 License.

"Ubisoft" and related marks are trademarks or registered trademarks of Ubisoft Entertainment. This project is not affiliated with, endorsed, or sponsored by Ubisoft Entertainment.