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

39 lines
1.2 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; [placeOrder](./bitburner.tix.placeorder.md)
## TIX.placeOrder() method
2021-10-30 22:03:34 +02:00
Place order for stocks.
2021-10-30 18:34:14 +02:00
<b>Signature:</b>
```typescript
2021-11-03 05:27:21 +01:00
placeOrder(sym: string, shares: number, price: number, type: string, pos: string): boolean;
2021-10-30 18:34:14 +02:00
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
2021-11-03 05:27:21 +01:00
| sym | string | Stock symbol. |
2021-10-30 18:34:14 +02:00
| shares | number | Number of shares for order. Must be positive. Will be rounded to nearest integer. |
| price | number | Execution price for the order. |
2021-11-03 05:27:21 +01:00
| type | string | Type of order. |
| pos | string | Specifies whether the order is a “Long” or “Short” position. |
2021-10-30 18:34:14 +02:00
<b>Returns:</b>
boolean
True if the order is successfully placed, and false otherwise.
## Remarks
2021-10-30 22:03:34 +02:00
RAM cost: 2.5 GB 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.
2021-10-30 18:34:14 +02:00