plantvsbirds / xq-getUnitData

unit scraper
0 stars 0 forks source link

Some XQ data as public variable #2

Closed plantvsbirds closed 8 years ago

plantvsbirds commented 8 years ago

JSON.stringify(window.SNB.cubeInfo) => Basic unit data, OWNER data

{"id":87854,"name":"可持续发展","symbol":"ZH087953","description":"本组合仅为投资者提供参考,股市有风险,投资需谨慎!","active_flag":true,"star":0,"market":"cn","owner_id":6141838440,"created_at":1419442098633,"updated_at":1443595511577,"last_rb_id":10553330,"daily_gain":0,"monthly_gain":9.2,"total_gain":401.13,"net_value":5.0113,"rank_percent":null,"annualized_gain_rate":401.13,"bb_rate":140.06,"following":false,"follower_count":11582,"view_rebalancing":{"id":10553330,"status":"success","cube_id":87854,"prev_bebalancing_id":8280343,"category":"user_rebalancing","exe_strategy":"intraday_all","created_at":1443595511577,"updated_at":1443595511577,"cash_value":4.96285556,"cash":99.03,"error_code":null,"error_message":"你上一笔调仓已成交。","error_status":null,"holdings":[{"stock_id":1000000,"weight":0.97,"segment_name":"银行","segment_id":2603788,"stock_name":"浦发银行","stock_symbol":"SH600000","segment_color":"#5594e7","proactive":false,"volume":0.00304926,"textname":"undefined(SH600000)","url":"/S/SH600000"}],"rebalancing_histories":[],"comment":"","diff":0,"new_buy_count":0},"last_rebalancing":{"id":10553330,"status":"success","cube_id":87854,"prev_bebalancing_id":8280343,"category":"user_rebalancing","exe_strategy":"intraday_all","created_at":1443595511577,"updated_at":1443595511577,"cash_value":4.96285556,"cash":99.03,"error_code":null,"error_message":"你上一笔调仓已成交。","error_status":null,"holdings":[{"stock_id":1000000,"weight":0.97,"segment_name":"银行","segment_id":2603788,"stock_name":"浦发银行","stock_symbol":"SH600000","segment_color":"#5594e7","proactive":false,"volume":0.00304926}],"rebalancing_histories":[],"comment":"","diff":0,"new_buy_count":0},"last_success_rebalancing":{"id":10553330,"status":"success","cube_id":87854,"prev_bebalancing_id":8280343,"category":"user_rebalancing","exe_strategy":"intraday_all","created_at":1443595511577,"updated_at":1443595511577,"cash_value":4.96285556,"cash":99.03,"error_code":null,"error_message":"你上一笔调仓已成交。","error_status":null,"holdings":[{"stock_id":1000000,"weight":0.97,"segment_name":"银行","segment_id":2603788,"stock_name":"浦发银行","stock_symbol":"SH600000","segment_color":"#5594e7","proactive":false,"volume":0.00304926}],"rebalancing_histories":[],"comment":"","diff":0,"new_buy_count":0},"style":{"name":"疯狂过山车","color0":"#f05a3c","color1":"#f05a3c","degree":30},"tag":["银行"],"recommend_reason":null,"sale_flag":false,"sell_flag":false,"commission":8,"initial_capital":0,"listed_flag":true,"contractor_id":null,"contractor_name":null,"last_user_rb_gid":10553330,"in_rank_list":false,"owner":{"subscribeable":false,"status":1,"common_count":0,"remark":null,"recommend_reason":null,"screen_name":"MakerJoy","verified":false,"verified_type":0,"st_color":"1","allow_all_stock":false,"blocking":false,"following":false,"donate_count":0,"verified_description":null,"profile":"/ukitech","friends_count":1,"city":"其他","gender":"m","status_count":140,"last_status_id":58315364,"follow_me":false,"followers_count":845,"province":"其他","recommend":null,"blog_description":null,"step":"null","intro":null,"stock_status_count":null,"stocks_count":null,"domain":"ukitech","id":6141838440,"url":null,"description":"","location":null,"type":"1","stats":null,"name":null,"group_ids":null,"name_pinyin":null,"screenname_pinyin":null,"photo_domain":"http://xavatar.imedao.com/","profile_image_url":"community/20155/1435297091244-1435297091482.jpg,community/20155/1435297091244-1435297091482.jpg!180x180.png,community/20155/1435297091244-1435297091482.jpg!50x50.png,community/20155/1435297091244-1435297091482.jpg!30x30.png"},"performance":{"top_gainer_symbol":null,"top_gainer_name":null,"gain_count":0,"loss_count":1},"sell_rebalancing":{"id":10553330,"status":"success","cube_id":87854,"prev_bebalancing_id":8280343,"category":"user_rebalancing","exe_strategy":"intraday_all","created_at":1443595511577,"updated_at":1443595511577,"cash_value":4.96285556,"cash":99,"error_code":null,"error_message":"你上一笔调仓已成交。","error_status":null,"holdings":null,"rebalancing_histories":[{"id":55508300,"rebalancing_id":10553330,"stock_id":1000000,"stock_name":"浦发银行","stock_symbol":"SH600000","volume":0.00304926,"price":16.44,"net_value":0.0501,"weight":1,"target_weight":1,"prev_weight":100,"prev_target_weight":100,"prev_weight_adjusted":100,"prev_volume":0.30492611,"prev_price":16.31,"prev_net_value":4.97334485,"proactive":true,"created_at":1443595511577,"updated_at":1443595511577,"target_volume":0.00304926,"prev_target_volume":0.30492611}],"comment":"","diff":99,"new_buy_count":0,"updated_at_format":"2015.9.30 14:45"},"created_date":"2014.12.25"}

This is a great supplement to data from AJAX request

plantvsbirds commented 8 years ago

Note: Rebalance is term for 调仓