mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-17 14:59:16 +02:00
1.4 KiB
1.4 KiB
Home > bitburner > Stock > cancelOrder
Stock.cancelOrder() method
Cancel order for stocks.
Signature:
cancelOrder(sym: string, shares: number, price: number, orderType: OrderType, positionType: PositionType): void;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
sym |
string |
Stock symbol. |
|
shares |
number |
Number of shares for order. Must be positive. Will be rounded to the nearest integer. |
|
price |
number |
Execution price for the order. |
|
orderType |
Type of order. | |
|
positionType |
Specifies whether the order is a Long ("L") or Short ("S") position. |
Returns:
void
Remarks
RAM cost: 2.5 GB Cancels an outstanding 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.