mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-10 09:43:54 +01:00
662 B
662 B
Home > bitburner > TIX > getPrice
TIX.getPrice() method
Returns the price of a stock
Signature:
getPrice(sym: StockSymbol): number;
Parameters
Parameter | Type | Description |
---|---|---|
sym | StockSymbol | Stock symbol. |
Returns:
number
The price of a stock.
Remarks
RAM cost: 2 GB The stock’s price is the average of its bid and ask price.
Example
getPrice("FISG");