Loading...
Loading...
BaoStock A-share Data Platform, free and open-source, supports queries for stock quotes, K-lines, financial data, industry classification, and index constituent stocks; used when users need to obtain A-share historical quotes, financial statements, trading calendars and other data
npx skill4agent add lzwme/finance-quant-skills baostockBAOSTOCK_SERVER_IPBAOSTOCK_SERVER_PORTpython scripts/market_data.py --type kline --code sh.600000 --start 2024-01-01 --end 2024-01-31python scripts/financial_data.py --type profit --code sh.600000 --year 2023 --quarter 4python scripts/stock_info.py --type all_stocks --date 2024-01-02python scripts/stock_info.py --type index_stocks --index hs300python scripts/stock_info.py --type industrypython scripts/stock_info.py --type trade_dates --start 2024-01-01 --end 2024-12-31--file--frequency--adjustpython scripts/market_data.py --type kline --code sh.600519 --start 2024-03-01 --end 2024-03-31 --frequency d --adjust 2python scripts/financial_data.py --type profit --code sh.601398 --year 2023 --quarter 4python scripts/stock_info.py --type index_stocks --index hs300python scripts/market_data.py --type kline --code sh.600519,sz.000001,sh.600036 --start 2024-01-01 --end 2024-12-31 --output stocks.csvbs.login()sh.600000sz.000001bj.430047bs.login()bs.logout().astype(float)