聚宽平台需要申请账号,可试用14天
实时数据获取如下:
def get_current_price(stock_code): df = qs.realtime_data(code = stock_code) current_price = df.loc[0,"最新"] return current_price
文章为作者独立观点,不代表股票交易接口观点