Writing rules that work
Learn the rule language behind repricing and buylist rules, and avoid the mistakes that make a rule quietly do nothing.
Last updated 2026-11-25
Repricing rules decide what you charge. Buylist rules decide what you offer. Both are written in the same small language, and the rule builder is a visual front end for it. This guide explains what the choices in the builder mean, so you pick the right ones and can read a rule someone else wrote. Its main job is to show you the handful of mistakes that make a rule do nothing at all, with no error to warn you.
For the clicks, see Building a repricing rule and Building a buylist rule.
How a rule works
A rule is one sentence: when a card matches, do this to its price. The IF half picks the cards. The THEN half says what to do with the price.
IF CONDITION IS 'Near Mint' THEN SET PRICE TCGPLAYER_LOW_NEAR_MINT
Four things are true for every rule:
- The first matching rule wins. For each card, HippoLink reads your list from top to bottom, uses the first rule that matches, and stops. Put specific rules at the top and your broad catch-all at the bottom.
- One list per game. A Magic rule never touches Pokemon cards. Each game you sell has its own set of rules.
- One currency per rule. A rule starts with
CURRENCY USDorCURRENCY EUR. Left off, it means your store's currency. Marketplace prices are not converted, so aCURRENCY EURrule readingTCGPLAYER_LOWstill gets the dollar figure. - Words are written in capitals. Keywords and price names are uppercase. Only the
text inside quotes, like
'Near Mint', is written normally.
When you write a rule by hand, line breaks and extra spaces do not matter.
How to name a price
This one idea prevents the most common mistake. Most prices come in two spellings, depending on whether a grade is on the end.
| Name | What it reads |
|---|---|
TCGPLAYER_LOW |
TCGplayer's lowest price for the card's own condition |
TCGPLAYER_LOW_NEAR_MINT |
TCGplayer's lowest Near Mint price, whatever the card's condition |
TCGPLAYER_LOW_LIGHTLY_PLAYED |
TCGplayer's lowest Lightly Played price, whatever the card's condition |
No grade on the end: the price follows the card. A Lightly Played copy reads the Lightly Played low, and a Near Mint copy reads the Near Mint low. When the card's own grade has no price, it climbs to the next better grade until it finds one. It never climbs down, so a Near Mint copy is never priced off a played price. Use this unless you have a reason not to.
A grade on the end: that grade, and only that grade. It never falls back. When that grade has no listing, the price is empty. This is what you want for "price my played copies as a percentage of Near Mint", and the wrong tool for most other things.
Either way, the price matches the card's language and finish. A foil reads foil prices, and a Japanese printing reads Japanese prices.
Where prices come from
TCGplayer prices work for every game, except Direct Low, which TCGplayer only has for Magic and Pokémon. The other three sources exist for Magic only, and a rule that uses them on another game is rejected when you save.
| Source | Games | Names start with |
|---|---|---|
| TCGplayer | All games | TCGPLAYER_LOW, TCGPLAYER_MARKET, TCGPLAYER_DIRECT_LOW |
| Card Kingdom | Magic only | CARDKINGDOM_RETAIL, CARDKINGDOM_BUYLIST |
| Mana Pool | Magic only | MANAPOOL_LOW, MANAPOOL_MARKET |
| CardTrader | Magic only | CARDTRADER_LOW, CARDTRADER_MEDIAN |
What the words mean:
| Word | Meaning |
|---|---|
LOW |
The cheapest listing right now |
MARKET |
The marketplace's estimate of the going rate, from recent sales. Steadier than LOW. |
DIRECT_LOW |
The cheapest TCGplayer Direct listing. Magic and Pokémon only; empty for other games. |
DELUXE_LOW |
The cheapest listing from a trusted seller only. Filled in for higher-value products only. |
MEDIAN |
The middle listing price (CardTrader) |
RETAIL / BUYLIST |
A shop's sell price, or what it pays you (Card Kingdom) |
WITH_SHIPPING |
The price including the cheapest listing's shipping |
QUANTITY |
A count of copies listed, not a price. Handy in an IF to gauge how deep the market is. |
You can also use facts about your own stock: CURRENT_PRICE, CURRENT_QUANTITY,
UNITS_SOLD_LAST_7_DAYS, UNITS_SOLD_LAST_30_DAYS, SELL_THROUGH_30_DAYS,
AVG_SALE_PRICE_LAST_7_DAYS, AVG_SALE_PRICE_LAST_30_DAYS and LAST_SALE_PRICE.
Combining prices
Wrap two or more prices in a function to combine them. You can nest one function inside another, one level deep.
| Function | Gives you |
|---|---|
LOWEST(a, b) |
The lower price |
HIGHEST(a, b) |
The higher price |
MEDIAN(a, b, c) |
The middle price |
AVERAGE(a, b) |
The average |
FIRST_DEFINED(a, b) |
The first one that actually has a price |
All five ignore empty prices. The result is only empty when every price inside is empty,
which makes LOWEST(...) the safe way to handle a card where one source has no data.
The flip side is that AVERAGE(a, b, c) with two prices missing is just the one that is
left. Use FIRST_DEFINED when you mean "this price, or else that one".
Doing math on prices
Anywhere you can write a price, you can write a calculation with +, -, * and /.
Multiplication and division go first, and parentheses change the order.
IF AVERAGE(TCGPLAYER_LOW, TCGPLAYER_MARKET, MANAPOOL_LOW) > 10
THEN SET PRICE (TCGPLAYER_LOW + TCGPLAYER_MARKET) / 2
- Empty prices stay empty. If any price in a calculation is missing, the whole calculation is empty. A missing price is never treated as $0. What an empty result does depends on the rule: a repricing rule skips that card and the next rule gets a turn, while a buylist rule gives the card no offer and the rules below never see it.
- Dividing by a value that turns out to be zero makes that one card's result empty,
with the same effect. A literal
/ 0is rejected when you save. - A repricing result below $0 or above $99,999,999.99 is skipped too. The rule does
not price that card and the next rule gets a turn. Subtraction is the one to watch,
since whether
A - Bgoes negative depends on the card. Nothing warns you, so test it in the Price Lab if a subtraction rule prices fewer cards than expected. A buylist offer below $0 becomes a $0.00 offer instead.
Repricing rules
IF <which cards>
THEN SET PRICE <a price> [ADJUST ...] [LIMIT ...] [GUARD ...] [ROUND ...]
SET PRICE is required. The four settings after it are optional, and are written in
this order: ADJUST, LIMIT, GUARD, ROUND. In the builder they are the Adjust Price,
Price Limit, Price Guard and Price Rounding blocks. See
Refining a rule's price for the clicks.
| Setting | Example | Meaning |
|---|---|---|
ADJUST |
ADJUST -10% |
Nudge the price. A plus or minus sign is required. Units are %, $ or €, on either currency. |
LIMIT |
LIMIT MIN 0.25 MAX 500.00 |
A hard floor and ceiling. |
GUARD |
GUARD MAX_DECREASE 20% MAX_INCREASE 50% |
The most one run can move a price. |
ROUND |
ROUND UP CHARM |
Tidy the final number. |
ROUND takes a direction (UP, DOWN, NEAREST) and an increment: PENNY, NICKEL,
DIME, QUARTER, HALF_DOLLAR, DOLLAR, or CHARM. Charm rounds to a half-dollar in
the direction you chose, then drops a penny so the price ends in .49 or .99. That means
ROUND UP CHARM turns 5.00 into 4.99, a cent below where it started.
You write the settings in one order, but they run in another: start from the price, then
ADJUST, then GUARD, then LIMIT, then ROUND. The part that matters is that LIMIT beats
ADJUST and GUARD. If the other settings land on 5 cents, LIMIT MIN 0.25 pulls it back
up to 25 cents. ROUND comes last, so it can move the final price one increment past a
limit.
Building a rule up
Match the lowest Near Mint price:
IF CONDITION IS 'Near Mint' THEN SET PRICE TCGPLAYER_LOW
Undercut by 10%, but never drop below a quarter:
IF CONDITION IS 'Near Mint'
THEN SET PRICE TCGPLAYER_LOW_NEAR_MINT ADJUST -10% LIMIT MIN 0.25
Work down slow stock that has not sold in a month, without cratering it:
IF UNITS_SOLD_LAST_30_DAYS = 0 AND CURRENT_QUANTITY > 3
THEN SET PRICE TCGPLAYER_LOW_NEAR_MINT GUARD MAX_DECREASE 15%
Keep a card off specific marketplaces instead of pricing it:
IF SET_CODE IS 'MH3' THEN DO NOT LIST ON EBAY, SHOPIFY
When no rule says so any more, the card goes back up at the next run.
Keeping cards off a marketplace
A DO NOT LIST ON rule decides where a card lists, not what it costs. Your price
rules run as if it weren't there. Take a store with these two Magic rules:
IF CURRENT_QUANTITY >= 0 THEN SET PRICE 1.00
IF CURRENT_QUANTITY >= 0 THEN DO NOT LIST ON TCGPLAYER
Every Magic card in stock is listed at $1.00 on ManaPool, CardTrader, CardNexus, Shopify, Square, Lightspeed, eBay and the kiosk, and is not listed on TCGplayer. It still has its $1.00 price in HippoLink; TCGplayer just gets no copies to sell. TCGplayer can't delete a listing, so it stays in your seller portal at a quantity of 0.
- Where it sits in the list doesn't matter. Swap the two rules and nothing changes.
- It covers sold-out cards too, so a restock never puts the card on TCGplayer.
- It is per game. To keep every game off TCGplayer, add it to each game's list.
- It can't have a
MARKETPLACEcondition, and it can't nameTCGPLAYER_DIRECT. - It doesn't count as covering a card. A card only this kind of rule matches still shows under No rule in the Price Lab and in the run summary.
Buylist rules
Buylist rules use the same language with one twist. Grade is not something you filter on in the IF. It is a percentage table on the action itself, so one rule can cover every grade.
IF <which cards> THEN BUY <a price> CASH <percent>% [CREDIT <percent>%] [LIMIT ...]
[MAX_STOCK <count>] [CONDITIONS ('<grade>' <percent>%, ...)] [ROUND ...]
IF <which cards> THEN DECLINE [CONDITIONS ('<grade>', ...)]
- CASH is your cash offer as a percentage of the price. It is required, and it can go above 100%.
- CREDIT is an optional, usually higher, store-credit offer.
- CONDITIONS is an optional per-grade multiplier on top of CASH and CREDIT. In the builder this is the Grade Pricing table. Each percentage is above 0 and at most 100.
- MAX_STOCK is how many copies you want to hold. A quote buys at most that number minus what you already have, and turns down the extra copies rather than the whole line.
- DECLINE means make no offer on this card.
Offer 70% cash and 100% credit of the lowest Near Mint price, cap the payout at $50, round to the quarter, and pay full price only for Near Mint, with 85% for Lightly Played:
IF TCGPLAYER_LOW_NEAR_MINT IS_NOT_NULL
THEN BUY TCGPLAYER_LOW_NEAR_MINT CASH 70% CREDIT 100% LIMIT MAX 50.00
CONDITIONS ('Near Mint' 100%, 'Lightly Played' 85%)
ROUND NEAREST QUARTER
The IF checks that the card has a Near Mint low price. A card without one skips this rule and gets a turn at the next, instead of ending up with no offer. The grade percentages multiply your CASH and CREDIT rates. Lightly Played here pays 70% x 85% = 59.5% of the Near Mint low in cash.
A safe general buy price
For a solid default, base your offer on the lowest of TCGplayer's low and market prices,
across Near Mint and Lightly Played. LOWEST ignores any of the four that is empty, so
you always get a number, and it lands on the most conservative signal.
IF TCGPLAYER_LOW_NEAR_MINT IS_NOT_NULL OR TCGPLAYER_MARKET_NEAR_MINT IS_NOT_NULL
THEN BUY LOWEST(TCGPLAYER_LOW_NEAR_MINT, TCGPLAYER_LOW_LIGHTLY_PLAYED,
TCGPLAYER_MARKET_NEAR_MINT, TCGPLAYER_MARKET_LIGHTLY_PLAYED)
CASH 65% CREDIT 80%
CONDITIONS ('Near Mint' 100%, 'Lightly Played' 100%)
Selling leans on the low price so your cards move. Buying leans on the lowest of low and market so you do not overpay.
The hotlist
Flag a card as hotlist from the inventory screen, and a rule can pay extra for it. Put the hotlist rule near the top so it beats your general offers. See Tracking cards you want to buy.
IF HOTLIST THEN BUY TCGPLAYER_LOW_NEAR_MINT CASH 90% CREDIT 100%
IF NOT HOTLIST THEN BUY TCGPLAYER_LOW_NEAR_MINT CASH 50%
How buylist differs from repricing
| Repricing | Buylist | |
|---|---|---|
| A rule matches, but its price is empty | The card moves on to the next rule, unless it is getting its first price, then it stays unpriced. | The card gets no offer, and the rules below never see it. |
| Picking grades | CONDITION IS ... in the IF |
A CONDITIONS (...) table. An unlisted grade skips the rule. |
| Saying no | A card no rule matches keeps its price. | DECLINE makes no offer. |
| Settings after the price | ADJUST, LIMIT, GUARD, ROUND |
LIMIT, MAX_STOCK, CONDITIONS, ROUND |
| Per-marketplace prices | MARKETPLACE IS ... |
Not available |
| Date checks | All of them | Not OLDEST_COPY_INSERTION_DATE or LAST_PRICE_CHANGE_DATE |
CURRENT_PRICE |
What you charge now | Also what you charge now, so it is empty for any card you do not stock |
| Money | Whole cents | Fractions of a cent are possible, so finish with ROUND ... PENNY for whole cents |
The empty-price difference is the one that catches people. On the buylist, once a rule's IF matches, that rule decides, even if its price turned out to be missing. Test the price you pay on in the IF, or give it a fallback that always exists:
IF TCGPLAYER_MARKET >= 10
THEN BUY FIRST_DEFINED(TCGPLAYER_DELUXE_LOW, TCGPLAYER_LOW) CASH 60% CREDIT 75%
Avoid gating on one price and paying on another that might be missing. If you would rather say no on purpose when data is missing, put it at the top:
IF TCGPLAYER_MARKET IS_NULL THEN DECLINE
Mistakes that make a rule do nothing
Pricing against an empty grade
This one made a store think the whole tool was broken. Their rule checked the Near Mint price but priced against the Lightly Played price. Plenty of cards have a Near Mint low and no Lightly Played low, simply because nobody has an LP copy listed. When a rule works out to no price, the card is skipped with no error. From the outside, the rule looked like it never ran.
Broken:
IF CONDITION IS 'Near Mint'
THEN SET PRICE TCGPLAYER_LOW_LIGHTLY_PLAYED
Fixed, with a price that is always there as long as one tier has data:
IF CONDITION IS 'Near Mint'
THEN SET PRICE LOWEST(TCGPLAYER_LOW_NEAR_MINT, TCGPLAYER_LOW_LIGHTLY_PLAYED)
Also fixed, and simpler. A name with no grade follows the card's own condition, so the condition you check and the price you set cannot disagree:
IF CONDITION IS 'Near Mint'
THEN SET PRICE TCGPLAYER_LOW
Rule order
The first matching rule wins. If your broad "all Near Mint" rule sits above your "Near
Mint foils" rule, the foils never reach their own rule. A store once built five rules
meant to step down through the grades, each with a bigger discount, but every one said
CONDITION IS 'Near Mint'. The first took every card, and the other four never ran. When
you copy a rule to make the next one, check that the part you meant to change changed.
A DO NOT LIST ON rule is the exception: it sets no price, so it can sit anywhere.
Per-marketplace rules go below your regular rules. A regular rule resets any
per-marketplace prices on the cards it matches, so a MARKETPLACE IS 'SQUARE' rule
placed above it gets its Square price wiped in the same run. Note that MARKETPLACE
sets a price on that one marketplace. It does not mean "only reprice cards listed
there".
Typos in quotes
Text in quotes is matched against your catalog. A typo does not error. It matches zero cards.
CONDITION,FINISH,RARITYandLANGUAGEignore capitals.'NM'and'Near Mint'both work.SET_CODE,PRODUCT_TYPE,BORDER_COLORandFRAME_EFFECTare exact.SET_CODE IN ('mh3')will not matchMH3.PRODUCT_NAME CONTAINSignores capitals and accents, but quotes cannot contain an apostrophe. Search for'Urza', not'Urza's'.- A
RARITYhas to be one the game's catalog uses.RARITY NOT_IN ('Token', 'Land')excludes nothing, because those are not Magic rarities. The builder's dropdown shows the real values.
Missing data in the IF
If you compare against a price that might be empty, a card with no data for it does not match and falls through to the next rule. Usually that is what you want. Know which way it goes:
- With
AND, one empty price sinks the whole IF. AddingIS_NOT_NULLin front changes nothing, since the comparison already fails. - With
OR, the other side can still carry it. - To treat missing as zero, say so:
IF FIRST_DEFINED(TCGPLAYER_LOW_NEAR_MINT, 0) >= 1.00. - To act on missing data, use
IS_NULL.
Dates that look right but are not
LATEST_COPY_SOLD_DATEis empty for a card that has never sold, soLATEST_COPY_SOLD_DATE IS_BEFORE SIX_MONTHS_AGOskips the never-sold cards, which are usually the ones you meant. For "has not moved", useUNITS_SOLD_LAST_30_DAYS = 0, orOLDEST_COPY_INSERTION_DATE IS_BEFORE SIX_MONTHS_AGOfor "has been on the shelf a while".LATEST_COPY_SOLD_DATEandNEWEST_COPY_INSERTION_DATEcarry a time of day, so= TODAYonly matches a sale at exactly midnight UTC. UseIS_AFTER_OR_ONandIS_BEFOREwith them.
Thin and trusted-seller prices
TCGPLAYER_RETAIL_QUANTITY_* and TCGPLAYER_DELUXE_LOW_* come from a deeper scan that
only runs on cards above about $10. On cheaper cards they are empty, so wrap them:
IF CONDITION IS 'Near Mint'
THEN SET PRICE FIRST_DEFINED(TCGPLAYER_DELUXE_LOW_NEAR_MINT, TCGPLAYER_LOW_NEAR_MINT)
An empty quantity means "not scanned", never "zero for sale".
When it says it ran but nothing changed
Read the run summary before assuming a rule is broken. See Reading repricing history for where to find it.
- Price-locked cards are never touched by any rule.
- Needs attention counts cards no rule priced. A high number means your rules do not cover them: wrong game, a condition filter that excludes them, or an empty price.
- New counts stocked cards that had no price and just got their first one.
- No rule matched counts stocked cards no price rule matched. A
DO NOT LIST ONrule does not count, since it sets no price.
Whenever you can, test a rule on your real inventory with Test rules in the editor before trusting it, even before you save it. A rule can save cleanly and still match nothing, and the Price Lab's No rule tab shows that in seconds. See Testing rules in the Price Lab.
Starter templates
A solid repricing rule with the safety settings built in: an always-available price, a real floor and ceiling, a downside guard, and clean rounding.
IF TCGPLAYER_LOW_NEAR_MINT IS_NOT_NULL
AND CONDITION IN ('Near Mint', 'Lightly Played')
THEN SET PRICE LOWEST(TCGPLAYER_LOW_NEAR_MINT, TCGPLAYER_LOW_LIGHTLY_PLAYED)
ADJUST -5%
LIMIT MIN 0.25 MAX 999.00
GUARD MAX_DECREASE 20% MAX_INCREASE 50%
ROUND UP CHARM
A matching buylist: hotlist first, an explicit "no data, no offer", one buying rule with a grade table, and a decline at the bottom that catches everything else.
IF HOTLIST
THEN BUY LOWEST(TCGPLAYER_LOW_NEAR_MINT, TCGPLAYER_LOW_LIGHTLY_PLAYED,
TCGPLAYER_MARKET_NEAR_MINT, TCGPLAYER_MARKET_LIGHTLY_PLAYED)
CASH 90% CREDIT 100% LIMIT MAX 200.00
IF TCGPLAYER_MARKET IS_NULL THEN DECLINE
IF TCGPLAYER_LOW_NEAR_MINT >= 0.10
THEN BUY LOWEST(TCGPLAYER_LOW_NEAR_MINT, TCGPLAYER_LOW_LIGHTLY_PLAYED,
TCGPLAYER_MARKET_NEAR_MINT, TCGPLAYER_MARKET_LIGHTLY_PLAYED)
CASH 65% CREDIT 80%
CONDITIONS ('Near Mint' 100%, 'Lightly Played' 77%,
'Moderately Played' 46%, 'Heavily Played' 46%)
ROUND DOWN PENNY
IF CURRENT_QUANTITY >= 0 THEN DECLINE
Change the percentages and amounts to fit your margins, but keep the shape. The last
rule is always true, which makes it a handy catch-all for Damaged, sealed product and
anything under 10 cents. Sealed product has no Near Mint or Lightly Played price, so the
buying rule never matches it, and adding 'Unopened' 100% to the table does not change
that. If you buy sealed, give it its own rule above the catch-all, priced from an
_UNOPENED source:
IF PRODUCT_TYPE IS 'sealed' AND TCGPLAYER_LOW_UNOPENED IS_NOT_NULL
THEN BUY TCGPLAYER_LOW_UNOPENED CASH 60% CREDIT 75%
ROUND DOWN PENNY
Quick reference
Rule shapes
Repricing: IF <condition> THEN SET PRICE <price> [ADJUST] [LIMIT] [GUARD] [ROUND]
Repricing: IF <condition> THEN DO NOT LIST ON <marketplace>[, <marketplace> ...]
Buylist: IF <condition> THEN BUY <price> CASH <n>% [CREDIT <n>%] [LIMIT] [MAX_STOCK <n>] [CONDITIONS (...)] [ROUND]
Buylist: IF <condition> THEN DECLINE [CONDITIONS ('<grade>', ...)]
Matching cards
| Kind | How you write it |
|---|---|
| Compare a price or number | >= <= > < = |
| Compare a date | IS_AFTER_OR_ON, IS_BEFORE_OR_ON, IS_AFTER, IS_BEFORE, = (see Dates) |
| Match text | IS, IS_NOT, IN (...), NOT_IN (...), CONTAINS |
| Check for missing data | IS_NULL, IS_NOT_NULL |
| Combine conditions | AND, OR, and NOT (only as NOT HOTLIST and NOT TAG ...). AND binds tighter than OR, so use parentheses to group. |
| Hotlist | HOTLIST, NOT HOTLIST |
| Your own tags | TAG IS 'signed', TAG IN ('case-staple', 'buy-hard'), TAG IS_NOT 'signed' |
Two tags act without any rule: a card tagged do-not-buy never gets a buylist offer,
and do-not-sell keeps a card's listed quantity at zero.
Card attributes
| Attribute | Values |
|---|---|
CONDITION |
'Near Mint', 'Lightly Played', 'Moderately Played', 'Heavily Played', 'Damaged', 'Unopened'. NM, LP, MP, HP and DMG also work. |
FINISH |
Depends on the game. Magic has 'normal', 'foil', 'etched' and 'alternative_foil'. |
RARITY |
Per game, such as 'common', 'uncommon', 'rare', 'mythic' for Magic |
LANGUAGE |
'English', 'Japanese', 'German', and so on |
SET_CODE |
The exact set code, such as 'MH3' |
PRODUCT_TYPE |
'card' or 'sealed' in every game. Magic also has 'token'. |
PRODUCT_NAME |
Used with CONTAINS, such as PRODUCT_NAME CONTAINS 'Goblin' |
BORDER_COLOR |
Magic only |
FRAME_EFFECT |
Magic only. Used with CONTAINS, such as 'showcase'. |
MARKETPLACE |
Repricing only. Sets a per-marketplace price. 'TCGPLAYER', 'TCGPLAYER_DIRECT', 'MANA_POOL', 'CARD_TRADER', 'SHOPIFY', 'SQUARE', 'LIGHTSPEED', 'KIOSK', 'EBAY', 'CARD_NEXUS', 'MISPRINT'. |
A rule that uses a Magic only attribute in another game's list is rejected when you save.
Dates
Compare date variables to a relative constant or a literal written 'YYYY-MM-DD', using
IS_AFTER_OR_ON, IS_BEFORE_OR_ON, IS_AFTER or IS_BEFORE. For example,
LATEST_COPY_SOLD_DATE IS_AFTER_OR_ON THREE_DAYS_AGO means it sold in the last three days,
and SET_RELEASE_DATE IS_AFTER TODAY picks out preorders. Rules written with >=, <=,
> and < still work and mean the same thing, with a later date counting as greater.
The words only work on dates.
Variables are OLDEST_COPY_INSERTION_DATE, NEWEST_COPY_INSERTION_DATE,
LATEST_COPY_SOLD_DATE, LAST_COPY_BUY_DATE, LAST_PRICE_CHANGE_DATE,
PRODUCT_RELEASE_DATE (Magic only) and SET_RELEASE_DATE. Constants run from TODAY and
YESTERDAY through THREE_DAYS_AGO, then ONE_WEEK_AGO, TWO_WEEKS_AGO,
THREE_WEEKS_AGO and FOUR_WEEKS_AGO, to TWO_MONTHS_AGO through SIX_MONTHS_AGO.
OLDEST_COPY_INSERTION_DATE follows your stock first in, first out. If you hold a copy
from a month ago and one from today, the card reads a month old. Sell one and the older
copy goes, so it reads as today. Use LAST_COPY_BUY_DATE for the last time you bought
the card in, regardless of what is left.
Games
Every rule belongs to one game: Magic, Pokemon, Japanese Pokemon, Lorcana, One Piece, Riftbound, Union Arena, Gundam, Star Wars Unlimited, Yu-Gi-Oh, Cyberpunk, Palworld, Digimon, Flesh and Blood, Cookie Run, Sorcery, World of Warcraft, Cardfight Vanguard, Dragon Ball Super Masters, Dragon Ball Super Fusion World, Weiss Schwarz, Grand Archive, and Shadowverse Evolve.
Five habits worth keeping
- Use price names without a grade on the end unless you mean a different grade from the
card's own. Use
LOWEST(...)orFIRST_DEFINED(...)so one empty price cannot skip the card. - Put a
GUARD MAX_DECREASEon every repricing rule. - Set
LIMIT MINandLIMIT MAXso nothing goes to pennies or spikes. Keep them consistent with the IF. A rule for cards under $10 withLIMIT MIN 9.99prices all of them at $9.99 or more. - Order rules with the specific ones first and the catch-all last.
- Test a rule in the Price Lab before you trust it, and read the run summary when something looks off.
Common questions
How do I sell on ManaPool and CardTrader but not TCGplayer?
Add IF CURRENT_QUANTITY >= 0 THEN DO NOT LIST ON TCGPLAYER to the game's rules
(Don't list in the editor's THEN section). Your other rules keep pricing the
cards, and they list everywhere except TCGplayer.
I saved a rule and nothing changed. Is it broken? Usually not. Read the run summary, and check the rule is not pricing against an empty grade. A rule that lands on a missing price skips the card with no error.
My Lightly Played rule does not do anything.
Most cards have no Lightly Played market price. Use TCGPLAYER_LOW instead. On a
Lightly Played card it reads the LP low and falls back to the Near Mint low.
How do I price Moderately Played, Heavily Played or Damaged cards?
Use a name with no grade: IF CONDITION IS 'Heavily Played' THEN SET PRICE TCGPLAYER_LOW.
It uses the Heavily Played low when there is one and climbs when there is not. Add
ADJUST -30% if you want played copies to sit below whatever it found. On the buylist,
use a CONDITIONS table.
How do I stop a rule from changing a price I am happy with?
Point the rule at your own price: THEN SET PRICE CURRENT_PRICE. For example,
IF LATEST_COPY_SOLD_DATE IS_AFTER_OR_ON THREE_DAYS_AGO THEN SET PRICE CURRENT_PRICE holds anything
that just sold. Do not multiply it (CURRENT_PRICE * 1.1) in a regular rule, because
that applies again every run and keeps climbing. It does nothing for a card with no price
yet.
Can I cap how many copies I will buy?
Yes. Add MAX_STOCK 4, or any number, to the BUY.
My buylist makes no offer on a card I am sure a rule covers. Check the first rule whose IF matches that card. If its BUY price is empty for that card, the buylist turns the card down and never tries the rules below.
My Square, Lightspeed or Kiosk price keeps resetting to the regular price.
Move the MARKETPLACE rule below your regular rules.