-
Notifications
You must be signed in to change notification settings - Fork 46
CookBook
- Read This First
- Refresh Your Data The Normal Way
- List Stations In A System
- Find Systems Near A System
- Find Trading Stations Near You
- Plan An In-System Trading Tour
- Plan A Route That Comes Back Home
- Compare Two Stations Directly
- Find Somewhere To Buy An Item
- Find Somewhere To Sell An Item
- Inspect One Station Market
- Find Old Data To Refresh
- Find Rare Goods Near A System
- Want The Full Reference
Practical examples of using Trade Dangerous in common or slightly odd situations.
This page is deliberately recipe-driven. It is not the full option reference, and it does not try to duplicate it.
For installation and first-time setup, see the Setup Guide.
For the full command reference, see Command Line Options.
For plugin-specific import details, see Plugin Options.
These examples assume a normal installed TD, so the command is:
tradeYou'd only trade or python -m trade if you've done something mad like download the repo, rather than follow the normal install method.
The examples also use the long option names for clarity. TD accepts many abbreviations, but the longer forms are usually easier to read and easier to come back to later.
One important modern detail: for run, the current option name is --jumps-per. Older text or older error messages may still refer to --jumps.
Results will vary depending on your local database and how fresh your data is, so this page focuses on the commands, not on pretending your output will match somebody else's line-for-line.
For nearly all users, the normal update path is:
trade import -P eddblinkFor a fuller refresh, we normally recommend skipping vendor data unless you specifically need it:
trade import -P eddblink -O all,skipvendIf you prefer the GUI, start:
tradeguiand use the Import workspace there.
Use local with --ly 0, and ask for detail so the stations are shown.
trade local @sol --ly 0 -vIf you want the extra Itms column as well, use -vv:
trade local @sol --ly 0 -vvUsing @sol forces TD to treat sol as a system name.
To list systems within a few light years of a system:
trade local @lave --ly 8This is the basic "what is near here?" command.
If you give TD a station instead of a system, it will use the station's host system.
If you want nearby systems, but only care about stations that are actually useful for trading:
trade local @sol --ly 15 --stations --trading -vThat asks for systems within 15ly of Sol, filters to systems with stations, filters again to stations with market/trade data, and shows the station rows.
You can add the usual station filters as well, for example:
trade local @sol --ly 15 --stations --trading --pad L --planetary N -vIf you want TD to stay inside one multi-station system, set --jumps-per 0.
For example, to make TD plan a trading tour within Sol:
trade run --from @sol --capacity 50 --credits 40000 --ly-per 15 --jumps-per 0 --hops 8 --unique -vvThe important parts are:
-
--from @solmeans "start somewhere in Sol" -
--jumps-per 0means "do not leave the system" -
--uniquemeans "do not revisit stations" -
--hops 8means 8 station-to-station legs
If you want to force a specific starting station instead, give a station:
trade run --from "sol/mars high" --capacity 50 --credits 40000 --ly-per 15 --jumps-per 0 --hops 8 --uniqueIf you want a route that returns to where it started, use --loop.
For example:
trade run --from @alioth --via @lagunnosso --loop --hops 7 --jumps-per 2 --capacity 52 --credits 268224 --ly-per 14.18 --empty-ly 15.92 --insurance 100000 --progressUseful knobs here are:
-
--loopto come back to the starting station -
--viato force a place to be included -
--avoidto exclude places or items -
--uniqueto avoid revisiting stations -
--insuranceso you do not trade away your rebuy
If you specify several --via places, make sure --hops is high enough to allow them.
If you already know the two endpoints you care about, use trade direct:
trade direct "sol/abraham lincoln" "lave/lave station"A few useful variants:
trade direct "sol/abraham lincoln" "lave/lave station" --limit 10
trade direct "sol/abraham lincoln" "lave/lave station" --fill
trade direct "sol/abraham lincoln" "lave/lave station" --reverse
trade direct sol --local --limit 20Use this when you want a direct endpoint-to-endpoint trade table, rather than a full route search.
Use buy:
trade buy gold --near @sol --ly 15If you want stations carrying several things at once:
trade buy "gold,silver" --near @sol --ly 15 --one-stopIf you want cheaper results first rather than nearer ones:
trade buy gold --near @sol --ly 15 --price-sortIf you want bigger stock first:
trade buy gold --near @sol --ly 15 --units-sortUse sell:
trade sell gold --near @sol --ly-per 15If you want best price first rather than nearest first:
trade sell gold --near @sol --ly-per 15 --price-sortYes, sell uses --ly-per while buy uses --ly when searching around a --near system. That is the current CLI, not a typo in this page.
If you just want to inspect a station's market, use market:
trade market "sol/abraham lincoln"Only show what the station is selling:
trade market "sol/abraham lincoln" --sellingOnly show what the station is buying:
trade market "sol/abraham lincoln" --buyingThis is usually the quickest way to answer "what does this station actually stock or pay for?"
If you want to see stale data in your database:
trade olddata --limit 20If you want to find stale data near a particular area and sort it into a practical refresh route:
trade olddata --near @sol --ly 20 --route --min-age 7That is useful if you are deliberately revisiting old stations to refresh your local data.
Use buy --rare:
trade buy --rare --near @lave --ly 180If you want to sort by price rather than distance:
trade buy --rare --near @lave --ly 180 --price-sort --limit 10If you want to filter for a particular rare by name, include the item name:
trade buy --rare lavian --near @lave --ly 180This page is intentionally the quick practical version.
For the full detail, use:
For notes on moving older examples and scripts to the current command surface, see v12 to v13 Transition Notes.
- Windows Python Install
- Install Trade Dangerous
- Running Trade Dangerous
- Get Market Data
- Upgrading
- Python 3.14 Warning
- Solo Stuff
- Mac/Linux
- Virtual Environment Stuff
- Troubleshooting
- Getting Started
- Conventions
- Using Trade Dangerous
- Obtaining Data
- Shortcuts
- Local Price Data
- Programming
- Starting The GUI
- How The GUI Is Laid Out
- Commander Baseline And Ship Profiles
- Workspaces
- Import
- Results And Diagnostics
- Saved State
- Troubleshooting
- Read This First
- Refresh Your Data The Normal Way
- List Stations In A System
- Find Systems Near A System
- Find Trading Stations Near You
- Plan An In-System Trading Tour
- Plan A Route That Comes Back Home
- Compare Two Stations Directly
- Find Somewhere To Buy An Item
- Find Somewhere To Sell An Item
- Inspect One Station Market
- Find Old Data To Refresh
- Find Rare Goods Near A System