2022-11-28 16:44:04 +01:00
|
|
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
|
|
|
|
[Home](./index.md) > [bitburner](./bitburner.md) > [TIX](./bitburner.tix.md) > [getOrganization](./bitburner.tix.getorganization.md)
|
|
|
|
|
|
|
|
## TIX.getOrganization() method
|
|
|
|
|
|
|
|
Returns the organization associated with a stock symbol.
|
|
|
|
|
2023-02-11 19:18:50 +01:00
|
|
|
**Signature:**
|
2022-11-28 16:44:04 +01:00
|
|
|
|
|
|
|
```typescript
|
|
|
|
getOrganization(sym: string): string;
|
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
|
|
|
| Parameter | Type | Description |
|
|
|
|
| --- | --- | --- |
|
|
|
|
| sym | string | Stock symbol. |
|
|
|
|
|
2023-02-11 19:18:50 +01:00
|
|
|
**Returns:**
|
2022-11-28 16:44:04 +01:00
|
|
|
|
|
|
|
string
|
|
|
|
|
2024-08-04 22:09:50 +02:00
|
|
|
The organization associated with the stock symbol.
|
2022-11-28 16:44:04 +01:00
|
|
|
|
|
|
|
## Remarks
|
|
|
|
|
|
|
|
RAM cost: 2 GB
|
|
|
|
|
|
|
|
The organization associated with the corresponding stock symbol. This function requires that you have the following:
|
|
|
|
|
|
|
|
1. WSE Account
|
|
|
|
|
|
|
|
1. TIX API Access
|
|
|
|
|
2023-04-28 20:19:30 +02:00
|
|
|
## Example
|
2022-11-28 16:44:04 +01:00
|
|
|
|
|
|
|
|
2023-04-28 20:19:30 +02:00
|
|
|
```js
|
2022-11-28 16:44:04 +01:00
|
|
|
ns.stock.getOrganization("FSIG");
|
|
|
|
|
|
|
|
// Choose the first stock symbol from the array of stock symbols. Get the
|
|
|
|
// organization associated with the corresponding stock symbol.
|
|
|
|
const sym = ns.stock.getSymbols()[0];
|
|
|
|
ns.tprint("Stock symbol: " + sym);
|
|
|
|
ns.tprint("Stock organization: " + ns.stock.getOrganization(sym));
|
|
|
|
```
|
|
|
|
|