bitburner-src/doc/source/netscript/tixapi/getStockPrice.rst

15 lines
348 B
ReStructuredText

getStockPrice() Netscript Function
==================================
.. js:function:: getStockPrice(sym)
:param string sym: Stock symbol
:RAM cost: 2 GB
Returns the price of a stock, given its symbol (NOT the company name). The symbol is a sequence
of two to four capital letters.
Example::
getStockPrice("FISG");