RHSX (Richmond Hill Stock Exchange) is an order-driven exchange used by Richmond Hill High School's Finance Club. It includes a discord bot which users can interact with and an API to fetch data.
Optional parameters are italicized.
Adds a user to the exchange, allowing them to trade
Displays the user's general account information
Displays the user's current positions
Submits a limit order
Submits a market order
Submits a stop order that when triggered, submits a limit order
Submits a stop order that when triggered, submits a market order
Finds an order with the specified id
Queries the user's orders given the specified filters
Cancels the order with the specified id
Check if the bot is alive
Opens the market, allowing orders to be submitted and processed
Closes the market
When the market is closed, no orders can be submitted. However, previously submitted orders can still be cancelled.
Returns a file containing the objects stored in the bot's cache
Used to test experimental commands or features