mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-30 01:47:33 +01:00
33 lines
924 B
Markdown
33 lines
924 B
Markdown
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|||
|
|
|||
|
[Home](./index.md) > [bitburner](./bitburner.md) > [TIX](./bitburner.tix.md) > [getVolatility](./bitburner.tix.getvolatility.md)
|
|||
|
|
|||
|
## TIX.getVolatility() method
|
|||
|
|
|||
|
Returns the volatility of the specified stock.
|
|||
|
|
|||
|
<b>Signature:</b>
|
|||
|
|
|||
|
```typescript
|
|||
|
getVolatility(sym: string): number;
|
|||
|
```
|
|||
|
|
|||
|
## Parameters
|
|||
|
|
|||
|
| Parameter | Type | Description |
|
|||
|
| --- | --- | --- |
|
|||
|
| sym | string | Stock symbol. |
|
|||
|
|
|||
|
<b>Returns:</b>
|
|||
|
|
|||
|
number
|
|||
|
|
|||
|
Volatility of the specified stock.
|
|||
|
|
|||
|
## Remarks
|
|||
|
|
|||
|
RAM cost: 2.5 GB Volatility represents the maximum percentage by which a stock’s price can change every tick. The volatility is returned as a decimal value, NOT a percentage (e.g. if a stock has a volatility of 3%, then this function will return 0.03, NOT 3).
|
|||
|
|
|||
|
In order to use this function, you must first purchase access to the Four Sigma (4S) Market Data TIX API.
|
|||
|
|