BitAgent/bfcl_shuffle_full huggingface dataset:
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
Response:
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
Response:
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
Response:
status: type: string
description: Status of the funding operation.
new_balance: type: float
description: Updated account balance after funding.
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
Response:
stock_list: type: array
description: List of stock symbols in the specified sector.
items: type: string
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
Response:
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_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
Response:
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_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
Response:
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: 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
Response:
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
Response:
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
Response:
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: 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
Response:
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
Response:
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.