Skip to content

Latest commit

 

History

History
46 lines (27 loc) · 697 Bytes

bitburner.tix.getprice.md

File metadata and controls

46 lines (27 loc) · 697 Bytes

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");