bitburner-src/markdown/bitburner.tix.getprice.md
Olivier Gagnon f4ac7344c4 doc
2022-01-08 13:25:06 -05:00

697 B
Raw Blame History

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 stocks price is the average of its bid and ask price.

Example 1

// NS1
stock.getPrice("FISG");

Example 2

// NS2
ns.stock.getPrice("FISG");