Expand description
Access the in-game market to buy or sell resources.
Structs
- An object that represents an order on the market.
Functions
- Get the amount of energy required to send a given amount of any resource from one room to another. See
TERMINAL_SEND_COST_SCALE
for information about the calculation. - Cancel one of your existing orders on the market, without refunding associated fees.
- Change the price of an existing order. If new_price is greater than old price, you will be charged (newPrice-oldPrice)remainingAmount
MARKET_FEE
credits. - Create a new order on the market.
- Your current credit balance.
- Execute a trade on an order on the market. Name of a room with a terminal from which to send or receive resources is required unless the order is for an account resource.
- Adds more capacity to one of your existing orders, offering or requesting more of the resource and incurring additional fees.
- Get information about the price history on the market for the last 14 days for a given resource as an
Array
ofOrderHistoryRecord
s, or for all resources ifNone
. Warning: returns an emptyObject
instead of an array if there is no history for the resource, verifying the type is recommended before use if the market might be empty. - Get an object with information about a specific order, in the same format as returned by
get_all_orders
- An
Array
of the last 100Transaction
s sent to your terminals. - An
Array
of the last 100Transaction
s sent from your terminals.