samco-sdk / Python-SDK

Official Python SDK for accessing Stocknote API
MIT License
15 stars 11 forks source link

set_streaming_data #14

Open tarakbluru opened 1 year ago

tarakbluru commented 1 year ago

This should make a local copy of the value instead of just assigning.

def set_streaming_data(self,value=None):
    if(value is None):
        raise ValueError("Missing value attribute, please give value of symbols")
    self.streaming=value

Right approach is

    def set_streaming_data(self,value:list=None):
        if(value is None):
            raise ValueError("Missing value attribute, please give value of symbols")
        self.streaming=value.copy ()

Please check.