mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-18 05:33:54 +01:00
751 B
751 B
Home > bitburner > TIX > getPrice
TIX.getPrice() method
Returns the price of a stock, given its symbol (NOT the company name). The symbol is a sequence of two to four capital letters.
The stock’s price is the average of its bid and ask price
Signature:
getPrice(sym: StockSymbol): number;
Parameters
Parameter | Type | Description |
---|---|---|
sym | StockSymbol | Stock symbol. |
Returns:
number
The price of a stock.
Remarks
2 GB
Example
getPrice("FISG");