Home - liljaba1337/r6-marketplace GitHub Wiki

Welcome to the r6-marketplace wiki!

Table of Contents

Links

Installation

# Command Line
dotnet add package r6-marketplace
# Visual Studio NuGet Package Manager
Install-Package r6-marketplace

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}");
        }
    }
}

Methods

Important

Endpoints

ItemInfoEndpoints

TransactionsEndpoints

AccountEndpoints

SearchEndpoints

Events

AccountEvents

TokenRefresher


Q&A

Q: Do I need to provide my account credentials?

A: Yes. Ubisoft requires authorization for all requests. However, advanced users can use their existing token instead of providing credentials. If you don’t need selling or buying functions, I recommend creating an alternate account.

Q: Do I need to have marketplace access on my account?

A: Not for all methods. Only the selling and buying (and maybe inventory) methods require marketplace access.


The design was inspired by danielwerg/r6api.js!