FutunnOpen / py-futu-api

富途 OpenAPI Python SDK
Apache License 2.0
1.03k stars 221 forks source link

modify_user_security remove the stock from all groups by mistake #110

Closed cyleefrank closed 2 years ago

cyleefrank commented 2 years ago

calling _quote_ctx.modify_user_security("A", ModifyUserSecurityOp.DEL, stock_list) will remove stock_list not just from group "A". It will remove stock_list from all other groups

junmo1215 commented 2 years ago

calling _quote_ctx.modify_user_security("A", ModifyUserSecurityOp.DEL, stock_list) will remove stock_list not just from group "A". It will remove stock_list from all other groups

ModifyUserSecurityOp.DEL would do this indeed. if you don't want to DEL the stock from watchlist, you can use ModifyUserSecurityOp.MOVE_OUT