Table of Contents

Class TcgPlayerPricing

Namespace
TcgDex.Models
Assembly
TcgDex.CSharpSdk.dll

TCGplayer pricing, which reports one price block per printing.

[JsonConverter(typeof(TcgPlayerPricingConverter))]
public sealed record TcgPlayerPricing : IEquatable<TcgPlayerPricing>

Inheritance

Implements

Inherited Members

Remarks

The printing names are data, not schema — a card carries whichever keys apply to it (normal and reverse-holofoil on one card, holofoil on another). They are therefore exposed as a dictionary rather than as fixed properties, so a printing this SDK has never seen still round-trips.

Properties

Printings

Price blocks keyed by printing name, for example "normal", "holofoil" or "reverse-holofoil".

public IReadOnlyDictionary<string, TcgPlayerPrice> Printings { get; init; }

Property Value

IReadOnlyDictionary<string, TcgPlayerPrice>

Unit

Currency code; "USD" for this source.

public string? Unit { get; init; }

Property Value

string?

Updated

When these prices were last refreshed.

public DateTimeOffset? Updated { get; init; }

Property Value

DateTimeOffset?

this[string]

Gets the price block for a printing, or null when the card has no prices for it.

public TcgPlayerPrice? this[string printing] { get; }

Property Value

TcgPlayerPrice?