mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-27 16:37:33 +01:00
697 B
697 B
Home > bitburner > TIX > getPrice
TIX.getPrice() method
Returns the price of a stock
Signature:
getPrice(sym: string): number;
Parameters
Parameter | Type | Description |
---|---|---|
sym | string | 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 1
// NS1
stock.getPrice("FISG");
Example 2
// NS2
ns.stock.getPrice("FISG");