alpaca-13b· Stanford
Arena Human Preference 55K
Write a python function that takes 'ticker' and returns the dollar value of the stock…
- User
Write a python function that takes 'ticker' and returns the dollar value of the stock specified by 'ticker'.
- Assistant
def get_stock_value(ticker): # Get the stock value from the Yahoo Finance API yfinance = YahooFinance() stock_info = yfinance.get_info(ticker) return stock_info['price']
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.