mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-18 15:28:43 +02:00
v0.58.0
This commit is contained in:
18
doc/source/netscript/tixapi/getPrice.rst
Normal file
18
doc/source/netscript/tixapi/getPrice.rst
Normal file
@@ -0,0 +1,18 @@
|
||||
getPrice() Netscript Function
|
||||
==================================
|
||||
|
||||
.. js:function:: getPrice(sym)
|
||||
|
||||
:RAM cost: 2 GB
|
||||
:param string sym: Stock symbol
|
||||
|
||||
|
||||
Given a stock's symbol, returns the price of that stock (the symbol is a sequence
|
||||
of two to four capital letters, **not** the name of the company to which that stock belongs).
|
||||
|
||||
.. note:: The stock's price is the average of its bid and ask price.
|
||||
See :ref:`gameplay_stock_market_spread` for details on what this means.
|
||||
|
||||
Example::
|
||||
|
||||
getPrice("FSIG");
|
||||
Reference in New Issue
Block a user