mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-20 05:05:47 +01:00
1.1 KiB
1.1 KiB
Home > bitburner > TIX > cancelOrder
TIX.cancelOrder() method
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.
Signature:
cancelOrder(sym: StockSymbol, shares: number, price: number, type: OrderType, pos: OrderPos): void;
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 | OrderPos | Specifies whether the order is a “Long” or “Short” position. |
Returns:
void
Remarks
2.5 GB