2021-10-30 18:34:14 +02:00
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home ](./index.md ) > [bitburner ](./bitburner.md ) > [TIX ](./bitburner.tix.md )
## TIX interface
2021-10-30 21:46:34 +02:00
Stock market API
2021-10-30 18:34:14 +02:00
< b > Signature:< / b >
```typescript
2021-10-30 22:03:34 +02:00
export interface TIX
2021-10-30 18:34:14 +02:00
```
## Methods
| Method | Description |
| --- | --- |
2022-08-17 14:50:05 +02:00
| [buyShort(sym, shares) ](./bitburner.tix.buyshort.md ) | Short stocks. |
| [buyStock(sym, shares) ](./bitburner.tix.buystock.md ) | Buy stocks. |
2021-10-30 22:03:34 +02:00
| [cancelOrder(sym, shares, price, type, pos) ](./bitburner.tix.cancelorder.md ) | Cancel order for stocks. |
| [getAskPrice(sym) ](./bitburner.tix.getaskprice.md ) | Returns the ask price of that stock. |
| [getBidPrice(sym) ](./bitburner.tix.getbidprice.md ) | Returns the bid price of that stock. |
| [getForecast(sym) ](./bitburner.tix.getforecast.md ) | Returns the probability that the specified stock’ s price will increase (as opposed to decrease) during the next tick. |
| [getMaxShares(sym) ](./bitburner.tix.getmaxshares.md ) | Returns the maximum number of shares of a stock. |
| [getOrders() ](./bitburner.tix.getorders.md ) | Returns your order book for the stock market. |
| [getPosition(sym) ](./bitburner.tix.getposition.md ) | Returns the player’ s position in a stock. |
2022-10-10 00:46:13 +02:00
| [getPrice(sym) ](./bitburner.tix.getprice.md ) | Returns the price of a stock. |
2021-10-30 22:03:34 +02:00
| [getPurchaseCost(sym, shares, posType) ](./bitburner.tix.getpurchasecost.md ) | Calculates cost of buying stocks. |
2022-01-08 19:25:06 +01:00
| [getSaleGain(sym, shares, posType) ](./bitburner.tix.getsalegain.md ) | Calculate profit of selling stocks. |
2021-10-30 18:34:14 +02:00
| [getSymbols() ](./bitburner.tix.getsymbols.md ) | Returns an array of the symbols of the tradable stocks |
2021-10-30 22:03:34 +02:00
| [getVolatility(sym) ](./bitburner.tix.getvolatility.md ) | Returns the volatility of the specified stock. |
2022-08-17 14:50:05 +02:00
| [has4SData() ](./bitburner.tix.has4sdata.md ) | Returns true if the player has access to the 4S Data |
| [has4SDataTIXAPI() ](./bitburner.tix.has4sdatatixapi.md ) | Returns true if the player has access to the 4SData TIX API |
| [hasTIXAPIAccess() ](./bitburner.tix.hastixapiaccess.md ) | Returns true if the player has access to the TIX API |
| [hasWSEAccount() ](./bitburner.tix.haswseaccount.md ) | Returns true if the player has access to a WSE Account |
2021-10-30 22:03:34 +02:00
| [placeOrder(sym, shares, price, type, pos) ](./bitburner.tix.placeorder.md ) | Place order for stocks. |
| [purchase4SMarketData() ](./bitburner.tix.purchase4smarketdata.md ) | Purchase 4S Market Data Access. |
| [purchase4SMarketDataTixApi() ](./bitburner.tix.purchase4smarketdatatixapi.md ) | Purchase 4S Market Data TIX API Access. |
2022-03-29 21:49:31 +02:00
| [purchaseTixApi() ](./bitburner.tix.purchasetixapi.md ) | Purchase TIX API Access |
| [purchaseWseAccount() ](./bitburner.tix.purchasewseaccount.md ) | Purchase WSE Account. |
2021-10-30 22:03:34 +02:00
| [sellShort(sym, shares) ](./bitburner.tix.sellshort.md ) | Sell short stock. |
2022-08-17 14:50:05 +02:00
| [sellStock(sym, shares) ](./bitburner.tix.sellstock.md ) | Sell stocks. |
2021-10-30 18:34:14 +02:00