# All Prices

The All Prices data model describes a list of card prices based on date.

Parent file: AllPrices
Parent property: data

# Price Providers

MTGJSON currently has affiliated with the following markets to keep a history of price data and the following examples are formatted for the data model:

# File Structure Overview

{
  "<Card UUID>": {
    "<Card Format>": { // Game format
      "<Price Provider ID>": { // Price provider
        "buylist": { // Provider buylist values
          "foil": { // Foil prices
            "<YYYY-MM-DD>": <Float> // Date and price as value
          },
          "normal": { // Normal prices
            "<YYYY-MM-DD>": <Float> // Date and price as value
          }
        },
        "currency": "USD",
        "retail": { // Provider retail values
          "foil": { // Foil prices
            "<YYYY-MM-DD>": <Float> // Date and price as value
          },
          "normal": { // Normal prices
            "<YYYY-MM-DD>": <Float> // Date and price as value
          }
        }
      },
      ... // More providers
    }
  },
  ... // More formats
}

# Example Model

{
  "0120a941-9cfb-50b5-b5e4-4e0c7bd32410": {
    "mtgo": {
      "cardhoarder": {
        "currency": "USD",
        "retail": {
          "foil": {
            ..., // more rows
            "2020-04-21": 0.02
          },
          "normal": {
            ..., // more rows
            "2020-04-21": 0.02
          }
        }
      },
    },
    "paper": {
      "cardkingdom" : {
        "buylist": {
          "foil": {
            ..., // more rows
            "2020-04-21": 0.6
          },
          "normal": {
            ..., // more rows
            "2020-04-21": 0.01
          }
        },
        "currency": "USD",
        "retail": {
          "foil": {
            ..., // more rows
            "2020-04-21": 0.12
          },
          "normal": {
            ..., // more rows
            "2020-04-21": 0.02
          }
        }
      },
      "cardmarket": {
        "currency": "USD",
        "retail": {
          "foil": {
            ..., // more rows
            "2020-04-21": 0.12
          },
          "normal": {
            ..., // more rows
            "2020-04-21": 0.02
          }
        }
      },
      "tcgplayer": {
        "currency": "USD",
        "retail": {
          "foil": {
            ..., // more rows
            "2020-04-21": 0.12
          },
          "normal": {
            ..., // more rows
            "2020-04-21": 0.02
          }
        }
      }
    }
  }
}

Need more data? Join the Discord and let us know or open an issue on GitHub. We'll be happy to discuss your needs.