pokemon_tcg_sdk/card/cardmarket.rs
1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Clone, Deserialize, Serialize)]
4pub struct Prices {
5 /// The average sell price as shown in the chart at the website for non-foils
6 #[serde(alias = "averageSellPrice")]
7 pub average_sell_price: Option<f32>,
8 /// The lowest price at the market for non-foils
9 #[serde(alias = "lowPrice")]
10 pub low_price: Option<f32>,
11 /// The trend price as shown at the website (and in the chart) for non-foils
12 #[serde(alias = "trendPrice")]
13 pub trend_price: Option<f32>,
14 /// The lowest sell price from German professional sellers
15 #[serde(alias = "germanProLow")]
16 pub german_pro_low: Option<f32>,
17 /// A suggested sell price for professional users, determined by an internal algorithm; this algorithm is controlled by cardmarket, not this API
18 #[serde(alias = "suggestedPrice")]
19 pub suggested_price: Option<f32>,
20 /// The average sell price as shown in the chart at the website for reverse holos
21 #[serde(alias = "reverseHoloSell")]
22 pub reverse_holo_sell: Option<f32>,
23 /// The lowest price at the market as shown at the website (for condition EX+) for reverse holos
24 #[serde(alias = "reverseHoloLow")]
25 pub reverse_holo_low: Option<f32>,
26 /// The trend price as shown at the website (and in the chart) for reverse holos
27 #[serde(alias = "reverseHoloTrend")]
28 pub reverse_holo_trend: Option<f32>,
29 /// The lowest price at the market for non-foils with condition EX or better
30 #[serde(alias = "lowPriceExPlus")]
31 pub low_price_ex_plus: Option<f32>,
32 /// The average sale price over the last day
33 pub avg1: Option<f32>,
34 /// The average sale price over the last 7 days
35 pub avg7: Option<f32>,
36 /// The average sale price over the last 30 days
37 pub avg30: Option<f32>,
38 /// The average sale price over the last day for reverse holos
39 #[serde(alias = "reverseHoloAvg1")]
40 pub reverse_holo_avg1: Option<f32>,
41 /// The average sale price over the last 7 days for reverse holos
42 #[serde(alias = "reverseHoloAvg7")]
43 pub reverse_holo_avg7: Option<f32>,
44 /// The average sale price over the last 30 days for reverse holos
45 #[serde(alias = "reverseHoloAvg30")]
46 pub reverse_holo_avg30: Option<f32>,
47}
48
49#[derive(Debug, Clone, Deserialize, Serialize)]
50pub struct CardMarket {
51 /// The URL to the cardmarket store page to purchase this card.
52 pub url: String,
53 /// A date that the price was last updated. In the format of YYYY/MM/DD
54 pub updated_at: Option<String>,
55 /// A hash of price types. All prices are in Euros.
56 pub prices: Option<Prices>,
57}