2022-10-21 17:16:00 +02:00
|
|
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
|
|
|
|
[Home](./index.md) > [bitburner](./bitburner.md) > [TIX](./bitburner.tix.md) > [placeOrder](./bitburner.tix.placeorder.md)
|
|
|
|
|
|
|
|
## TIX.placeOrder() method
|
|
|
|
|
|
|
|
Place order for stocks.
|
|
|
|
|
2023-02-11 19:18:50 +01:00
|
|
|
**Signature:**
|
2022-10-21 17:16:00 +02:00
|
|
|
|
|
|
|
```typescript
|
|
|
|
placeOrder(sym: string, shares: number, price: number, type: string, pos: string): boolean;
|
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
|
|
|
| Parameter | Type | Description |
|
|
|
|
| --- | --- | --- |
|
|
|
|
| sym | string | Stock symbol. |
|
2023-10-03 02:14:44 +02:00
|
|
|
| shares | number | Number of shares for order. Must be positive. Will be rounded to the nearest integer. |
|
2022-10-21 17:16:00 +02:00
|
|
|
| price | number | Execution price for the order. |
|
|
|
|
| type | string | Type of order. |
|
|
|
|
| pos | string | Specifies whether the order is a “Long” or “Short” position. |
|
|
|
|
|
2023-02-11 19:18:50 +01:00
|
|
|
**Returns:**
|
2022-10-21 17:16:00 +02:00
|
|
|
|
|
|
|
boolean
|
|
|
|
|
|
|
|
True if the order is successfully placed, and false otherwise.
|
|
|
|
|
|
|
|
## Remarks
|
|
|
|
|
|
|
|
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.
|
|
|
|
|