bitburner-src/markdown/bitburner.tix.cancelorder.md
Olivier Gagnon 2b79871c02 doc
2021-11-03 00:27:21 -04:00

1.0 KiB

Home > bitburner > TIX > cancelOrder

TIX.cancelOrder() method

Cancel order for stocks.

Signature:

cancelOrder(sym: string, shares: number, price: number, type: string, pos: string): void;

Parameters

Parameter Type Description
sym string 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 string Type of order.
pos string Specifies whether the order is a “Long” or “Short” position.

Returns:

void

Remarks

RAM cost: 2.5 GB Cancels an oustanding Limit or Stop order on the stock market.

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