mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-27 16:37:33 +01:00
2.2 KiB
2.2 KiB
TIX interface
Stock market API
Signature:
export interface TIX
Methods
Method | Description |
---|---|
buy(sym, shares) | Buy stocks. |
cancelOrder(sym, shares, price, type, pos) | Cancel order for stocks. |
getAskPrice(sym) | Returns the ask price of that stock. |
getBidPrice(sym) | Returns the bid price of that stock. |
getForecast(sym) | Returns the probability that the specified stock’s price will increase (as opposed to decrease) during the next tick. |
getMaxShares(sym) | Returns the maximum number of shares of a stock. |
getOrders() | Returns your order book for the stock market. |
getPosition(sym) | Returns the player’s position in a stock. |
getPrice(sym) | Returns the price of a stock |
getPurchaseCost(sym, shares, posType) | Calculates cost of buying stocks. |
getSaleGain(sym, shares, posType) | Calculate profit of setting stocks. |
getSymbols() | Returns an array of the symbols of the tradable stocks |
getVolatility(sym) | Returns the volatility of the specified stock. |
placeOrder(sym, shares, price, type, pos) | Place order for stocks. |
purchase4SMarketData() | Purchase 4S Market Data Access. |
purchase4SMarketDataTixApi() | Purchase 4S Market Data TIX API Access. |
sell(sym, shares) | Sell stocks. |
sellShort(sym, shares) | Sell short stock. |
short(sym, shares) | Short stocks. |