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

33 lines
924 B
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; [getVolatility](./bitburner.tix.getvolatility.md)
## TIX.getVolatility() method
Returns the volatility of the specified stock.
<b>Signature:</b>
```typescript
2021-11-03 05:27:21 +01:00
getVolatility(sym: string): number;
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
<b>Returns:</b>
number
Volatility of the specified stock.
## Remarks
2021-10-30 22:03:34 +02:00
RAM cost: 2.5 GB Volatility represents the maximum percentage by which a stocks 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.
2021-10-30 18:34:14 +02:00