bitburner-src/markdown/bitburner.tix.cancelorder.md

35 lines
1.1 KiB
Markdown
Raw Normal View History

2021-10-30 18:34:14 +02:00
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [TIX](./bitburner.tix.md) &gt; [cancelOrder](./bitburner.tix.cancelorder.md)
## TIX.cancelOrder() method
2021-10-30 22:03:34 +02:00
Cancel order for stocks.
2021-10-30 18:34:14 +02:00
<b>Signature:</b>
```typescript
2021-10-30 21:46:34 +02:00
cancelOrder(sym: StockSymbol, shares: number, price: number, type: OrderType, pos: OrderPosition): void;
2021-10-30 18:34:14 +02:00
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| sym | [StockSymbol](./bitburner.stocksymbol.md) | 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](./bitburner.ordertype.md) | Type of order. |
2021-10-30 21:46:34 +02:00
| pos | [OrderPosition](./bitburner.orderposition.md) | Specifies whether the order is a “Long” or “Short” position. |
2021-10-30 18:34:14 +02:00
<b>Returns:</b>
void
## Remarks
2021-10-30 22:03:34 +02:00
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.
2021-10-30 18:34:14 +02:00