Printing…
Out of character. Real dates, rounded to the hour. Nothing here happens in the city, and nothing here says who plays whom. The six rulesClosed test 3, build 0.9.3Back to the city
Printing…
Write a restock limit against landed cost, keep duty in held cash, and stop an order from counting copper it cannot use.
lamplighter reviewed revision 6 on Mon 16 Nov 2026. Revision 7 has not been reviewed yet.What changed since
A restock order that only knows a price limit will fall back the first week the market moves. This guide builds one that keeps working through a rising price and a customs hold, with the figures from build 0.9.3.
Most copper orders are written like this:
4.2 Copper restock
When copper in store < 40 t,
buy 20 t at no more than $7,500/t.
If not filled: keep 42 t at Dock Street in reserve, alert the manager.It is a good order with a bad limit. The limit was a guess at last week's price, and the order cannot tell a guess from a fact.
The order did exactly what it was told. That is the problem.
The external quote is not what copper costs you. What it costs you is the landed cost: price, freight, and duty.
| Line | Per tonne | Mark |
|---|---|---|
| Best offer, Wed 09:10 | $7,612.00 | Known |
| Freight, Berth 4 to Dock Street | $41.00 | Known |
| Duty at 6% | $456.72 | Known |
| Landed | $8,109.72 | Known |
Write the limit against the landed cost, and write it as the most a tonne is worth to your line, which you can read off your own statement: what a tonne of copper turns into, minus what it takes to turn it.
A shipment selected for inspection sits at Customs House until it is released. In 0.9.3 the Harbor Authority notice prints the duty due, so the order can see the cash it will need.
4.2 Copper restock (rev. 8)
When copper in store < 40 t, not counting lots under a hold,
buy 20 t at a landed cost of no more than $8,150/t.
If not filled: keep 42 t at Dock Street in reserve,
alert the manager, and try again at the next hour.
If reserve < 20 t: buy 10 t at no more than $8,400/t landed.Run it against tick 8812 and against a week with a hold in it. Read the printout: you want FIRED on the second limit when the reserve runs low, and FELL BACK — not BLOCKED — during the hold.
Wiki sheetAutomation, testing and logs