Felix-Ma/Berkeley-Function-Calling-Leaderboard huggingface dataset:
Function: add_to_watchlist
This tool belongs to the trading system, which allows users to trade stocks, manage their account, and view stock information. Tool description: Add a stock to the watchlist.
Parameters: stock: type: string
description: the stock symbol to add to the watchlist. 
Required parameters: stock
Returns: symbol: type: string
description: the symbol that were successfully added to the watchlist.
Function: cancel_order
This tool belongs to the trading system, which allows users to trade stocks, manage their account, and view stock information. Tool description: Cancel an order.
Parameters: order_id: type: integer
description: ID of the order to cancel. 
Required parameters: order_id
Returns: order_id: type: integer
description: ID of the cancelled order.
status: type: string
description: New status of the order after cancellation attempt.
Function: filter_stocks_by_price
This tool belongs to the trading system, which allows users to trade stocks, manage their account, and view stock information. Tool description: Filter stocks based on a price range.
Parameters: stocks: type: array
items: type: string
description: List of stock symbols to filter.
min_price: type: float
description: Minimum stock price.
max_price: type: float
description: Maximum stock price. 
Required parameters: stocks, min_price, max_price
Returns: filtered_stocks: type: array
description: Filtered list of stock symbols within the price range.
items: type: string
Function: fund_account
This tool belongs to the trading system, which allows users to trade stocks, manage their account, and view stock information. Tool description: Fund the account with the specified amount.
Parameters: amount: type: float
description: Amount to fund the account with. 
Required parameters: amount
Returns: status: type: string
description: Status of the funding operation.
new_balance: type: float
description: Updated account balance after funding.
Function: get_account_info
This tool belongs to the trading system, which allows users to trade stocks, manage their account, and view stock information. Tool description: Get account information.
Returns: account_id: type: integer
description: ID of the account.
balance: type: float
description: Current balance of the account.
binding_card: type: integer
description: Card number associated with the account.
Function: get_available_stocks
This tool belongs to the trading system, which allows users to trade stocks, manage their account, and view stock information. Tool description: Get a list of stock symbols in the given sector.
Parameters: sector: type: string
description: The sector to retrieve stocks from (e.g., 'Technology'). 
Required parameters: sector
Returns: stock_list: type: array
description: List of stock symbols in the specified sector.
items: type: string
Function: get_current_time
This tool belongs to the trading system, which allows users to trade stocks, manage their account, and view stock information. Tool description: Get the current time.
Returns: current_time: type: string
description: Current time in HH:MM AM/PM format.
Function: get_order_details
This tool belongs to the trading system, which allows users to trade stocks, manage their account, and view stock information. Tool description: Get the details of an order.
Parameters: order_id: type: integer
description: ID of the order. 
Required parameters: order_id
Returns: id: type: integer
description: ID of the order.
order_type: type: string
description: Type of the order.
symbol: type: string
description: Symbol of the stock in the order.
price: type: float
description: Price at which the order was placed.
amount: type: integer
description: Number of shares in the order.
status: type: string
description: Current status of the order. [Enum]: ["Open", "Pending", "Completed", "Cancelled"]
Function: get_order_history
This tool belongs to the trading system, which allows users to trade stocks, manage their account, and view stock information. Tool description: Get the stock order ID history.
Returns: order_history: type: array
description: List of orders ID in the order history.
items: type: integer
Function: get_stock_info
This tool belongs to the trading system, which allows users to trade stocks, manage their account, and view stock information. Tool description: Get the details of a stock.
Parameters: symbol: type: string
description: Symbol that uniquely identifies the stock. 
Required parameters: symbol
Returns: price: type: float
description: Current price of the stock.
percent_change: type: float
description: Percentage change in stock price.
volume: type: float
description: Trading volume of the stock. MA(5) (float): 5-day Moving Average of the stock. MA(20) (float): 20-day Moving Average of the stock.
Function: get_symbol_by_name
This tool belongs to the trading system, which allows users to trade stocks, manage their account, and view stock information. Tool description: Get the symbol of a stock by company name.
Parameters: name: type: string
description: Name of the company. 
Required parameters: name
Returns: symbol: type: string
description: Symbol of the stock or "Stock not found" if not available.
Function: get_transaction_history
This tool belongs to the trading system, which allows users to trade stocks, manage their account, and view stock information. Tool description: Get the transaction history within a specified date range.
Parameters: start_date: type: string
description: Start date for the history (format: 'YYYY-MM-DD').
default: None
end_date: type: string
description: End date for the history (format: 'YYYY-MM-DD'). 
default: None
Returns: transaction_history: type: array
description: List of transactions within the specified date range.
items: type: dict
properties: type: type: string
description: Type of transaction. [Enum]: ["deposit", "withdrawal"]
amount: type: float
description: Amount involved in the transaction.
timestamp: type: string
description: Timestamp of the transaction, formatted as 'YYYY-MM-DD HH:MM:SS'.
Function: get_watchlist
This tool belongs to the trading system, which allows users to trade stocks, manage their account, and view stock information. Tool description: Get the watchlist.
Returns: watchlist: type: array
description: List of stock symbols in the watchlist.
items: type: string
Function: make_transaction
This tool belongs to the trading system, which allows users to trade stocks, manage their account, and view stock information. Tool description: Make a deposit or withdrawal based on specified amount.
Parameters: account_id: type: integer
description: ID of the account.
xact_type: type: string
description: Transaction type (deposit or withdrawal).
amount: type: float
description: Amount to deposit or withdraw. 
Required parameters: account_id, xact_type, amount
Returns: status: type: string
description: Status of the transaction.
new_balance: type: float
description: Updated account balance after the transaction.
Function: notify_price_change
This tool belongs to the trading system, which allows users to trade stocks, manage their account, and view stock information. Tool description: Notify if there is a significant price change in the stocks.
Parameters: stocks: type: array
items: type: string
description: List of stock symbols to check.
threshold: type: float
description: Percentage change threshold to trigger a notification. 
Required parameters: stocks, threshold
Returns: notification: type: string
description: Notification message about the price changes.
Function: place_order
This tool belongs to the trading system, which allows users to trade stocks, manage their account, and view stock information. Tool description: Place an order.
Parameters: order_type: type: string
description: Type of the order (Buy/Sell).
symbol: type: string
description: Symbol of the stock to trade.
price: type: float
description: Price at which to place the order.
amount: type: integer
description: Number of shares to trade. 
Required parameters: order_type, symbol, price, amount
Returns: order_id: type: integer
description: ID of the newly placed order.
order_type: type: string
description: Type of the order (Buy/Sell).
status: type: string
description: Initial status of the order.
price: type: float
description: Price at which the order was placed.
amount: type: integer
description: Number of shares in the order.
Function: remove_stock_from_watchlist
This tool belongs to the trading system, which allows users to trade stocks, manage their account, and view stock information. Tool description: Remove a stock from the watchlist.
Parameters: symbol: type: string
description: Symbol of the stock to remove. 
Required parameters: symbol
Returns: status: type: string
description: Status of the removal operation.
Function: trading_get_login_status
This tool belongs to the trading system, which allows users to trade stocks, manage their account, and view stock information. Tool description: Get the login status.
Returns: status: type: boolean
description: Login status.
Function: trading_login
This tool belongs to the trading system, which allows users to trade stocks, manage their account, and view stock information. Tool description: Handle user login.
Parameters: username: type: string
description: Username for authentication.
password: type: string
description: Password for authentication. 
Required parameters: username, password
Returns: status: type: string
description: Login status message.
Function: trading_logout
This tool belongs to the trading system, which allows users to trade stocks, manage their account, and view stock information. Tool description: Handle user logout for trading system.
Returns: status: type: string
description: Logout status message.
Function: update_market_status
This tool belongs to the trading system, which allows users to trade stocks, manage their account, and view stock information. Tool description: Update the market status based on the current time.
Parameters: current_time_str: type: string
description: Current time in HH:MM AM/PM format. 
Required parameters: current_time_str
Returns: status: type: string
description: Status of the market. [Enum]: ["Open", "Closed"]
Function: update_stock_price
This tool belongs to the trading system, which allows users to trade stocks, manage their account, and view stock information. Tool description: Update the price of a stock.
Parameters: symbol: type: string
description: Symbol of the stock to update.
new_price: type: float
description: New price of the stock. 
Required parameters: symbol, new_price
Returns: symbol: type: string
description: Symbol of the updated stock.
old_price: type: float
description: Previous price of the stock.
new_price: type: float
description: Updated price of the stock.