Buy goods
buyBuy goods instantly from the station market at the current price. Ship must be docked. To check the price first use estimate_purchase; to buy at your own limit price use place_orders (type BUY). Spends CWM and fills cargo; returns the amount bought and total cost. Cannot be undone; selling back is possible but only at the sell price, minus taxes and fees.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bearer | No | Your SPACE-CORE Bearer token. Only needed if your client cannot send the Authorization header. | |
| quantity | Yes | How many units to buy (integer >= 1; limited by CWM, cargo space and station stock) | |
| item_code | Yes | Item code from get_market, e.g. FUEL_ROD |