bitburner-src/markdown/bitburner.tix.placeorder.md
Olivier Gagnon feb0430aff work on doc
2021-10-30 15:46:34 -04:00

1.3 KiB

Home > bitburner > TIX > placeOrder

TIX.placeOrder() method

Places an order on the stock market. This function only works for Limit and Stop Orders.

The ability to place limit and stop orders is **not** immediately available to the player and must be unlocked later on in the game.

Returns true if the order is successfully placed, and false otherwise.

Signature:

placeOrder(sym: StockSymbol, shares: number, price: number, type: OrderType, pos: OrderPosition): boolean;

Parameters

Parameter Type Description
sym StockSymbol Stock symbol.
shares number Number of shares for order. Must be positive. Will be rounded to nearest integer.
price number Execution price for the order.
type OrderType Type of order.
pos OrderPosition Specifies whether the order is a “Long” or “Short” position.

Returns:

boolean

True if the order is successfully placed, and false otherwise.

Remarks

RAM cost: 2.5 GB